:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d7dee8;
  --header: #253041;
  --accent: #176b87;
  --accent-dark: #12546a;
  --ok: #1f7a4d;
  --warn-bg: #fff6e5;
  --warn-line: #efc36f;
  --bad: #a23a2f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--header);
  color: #fff;
  border-bottom: 1px solid #17202c;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 760;
}

.tag,
.health {
  color: #c7d2df;
  font-size: 13px;
}

.tag {
  margin-left: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.session-user {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 2px;
}

.secondary-button {
  background: transparent;
  border: 1px solid #8795a8;
}

.secondary-button:hover {
  background: #344155;
}

.logout-button {
  min-height: 34px;
}

main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px;
}

.login-body {
  background: #edf1f5;
}

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

.login-card {
  width: min(100%, 420px);
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgb(37 48 65 / 12%);
}

.login-brand {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.login-card p {
  margin-bottom: 24px;
}

.login-form {
  gap: 18px;
}

.login-error {
  margin: 0;
}

.login-links {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.login-links a {
  color: var(--accent-dark);
}

.form-help {
  margin-top: -8px;
  font-size: 13px;
}

.success-message {
  border-color: #86c8a5;
  background: #ecf8f1;
  color: var(--ok);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.upload-panel,
.quote-panel,
.empty-state,
.summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-panel {
  padding: 16px;
  position: sticky;
  top: 72px;
}

.projects-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #344155;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d2df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 760;
  cursor: pointer;
  padding: 0 14px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  background: #9aa8b7;
}

.quote-panel {
  min-height: calc(100vh - 100px);
  padding: 0;
  overflow: hidden;
}

.quote-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.attention-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.attention-toggle input {
  width: auto;
}

.attention-toggle span {
  margin: 0;
  font-weight: 700;
}

.quote-total {
  min-width: 144px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: right;
}

.quote-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quote-total strong {
  display: block;
  font-size: 19px;
}

.summary {
  margin-top: 14px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.summary strong {
  color: var(--ink);
}

.scope-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.scope-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.scope-topline strong {
  font-size: 13px;
}

.scope-actions {
  display: inline-flex;
  gap: 4px;
}

.link-button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 12px;
}

.link-button:hover {
  background: #eef7fb;
}

.scope-list {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}

.scope-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #fff;
}

.scope-option input {
  width: auto;
}

.scope-option-main {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-option-count,
.scope-hint {
  color: var(--muted);
  font-size: 12px;
}

.scope-badge {
  grid-column: 2 / 4;
  color: var(--ok);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-hint {
  margin-top: 8px;
}

.alert {
  margin: 14px 16px 0;
  padding: 12px;
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-bg);
  color: #5f420d;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 178px);
}

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

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e9eef4;
  color: #354253;
  font-size: 12px;
  font-weight: 800;
}

.line-number {
  width: 42px;
  color: var(--muted);
}

.request-cell {
  width: 260px;
}

.request-text {
  font-weight: 760;
}

.request-meta,
.candidate-meta,
.evidence,
.price-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.candidate-cell {
  min-width: 380px;
}

.candidate-select {
  max-width: 520px;
}

.bundle-components {
  display: grid;
  gap: 8px;
}

.bundle-component {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  background: #f8fafc;
}

.bundle-label {
  font-size: 12px;
  font-weight: 800;
  color: #344155;
}

.bundle-select {
  max-width: 520px;
}

.bundle-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence summary {
  cursor: pointer;
  color: #385066;
  font-weight: 700;
}

.evidence-body {
  max-width: 580px;
  padding-top: 5px;
  line-height: 1.45;
}

.quantity-input {
  width: 82px;
}

.price-cell,
.line-total {
  white-space: nowrap;
  font-weight: 760;
}

.price-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-input {
  width: 96px;
  padding: 8px 9px;
  font-weight: 760;
}

.price-input:disabled {
  color: var(--muted);
  background: #eef2f6;
}

.price-reset {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-size: 12px;
}

.price-reset:hover {
  background: #eef7fb;
}

.price-reset:disabled {
  border-color: #d5dde7;
  background: #eef2f6;
  color: #8a99aa;
}

.price-meta {
  font-weight: 500;
  line-height: 1.35;
  max-width: 210px;
  white-space: normal;
}

.status-select {
  min-width: 150px;
}

.notes-input {
  min-width: 180px;
}

.needs-attention {
  background: #fffaf0;
}

.hidden-by-filter {
  display: none;
}

.empty-state {
  margin: 18px;
  padding: 36px;
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    position: static;
  }

  .quote-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }
}

/* Application shell: a restrained, source-matched Home around the existing quote DOM. */
[hidden] {
  display: none !important;
}

.application-body {
  min-width: 0;
  overflow-x: hidden;
  background: #fbfcfd;
  color: #172b3d;
}

.application-shell {
  min-height: 100vh;
}

.application-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  display: flex;
  width: 238px;
  min-height: 100vh;
  flex-direction: column;
  padding: 35px 22px 34px;
  background: #1b293c;
  color: #edf5fa;
}

.application-wordmark {
  margin-left: 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.application-nav {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.application-nav-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  border-radius: 6px;
  color: #b9c9d7;
  font-size: 20px;
  font-weight: 650;
  text-decoration: none;
}

.application-nav-link svg,
.start-quote-link svg,
.recent-project-link svg,
.account-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.application-nav-link[aria-current="page"] {
  background: #156b8c;
  color: #fff;
}

.application-nav-link[aria-current="page"] svg {
  fill: currentColor;
}

.application-nav-link svg {
  width: 24px;
  height: 24px;
}

.application-rail-divider {
  height: 1px;
  margin: 16px 0 0;
  background: #405064;
}

.account-control {
  position: relative;
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid #405064;
}

.account-trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.account-trigger:hover,
.account-trigger:focus-visible {
  background: transparent;
}

.account-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #0b6f90;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.account-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.session-user,
.account-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-user {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.account-username {
  color: #a9bdcc;
  font-size: 14px;
}

.account-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #b8c8d6;
}

.account-menu {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 172px;
  padding: 6px;
  border: 1px solid #375269;
  border-radius: 3px;
  background: #18354e;
}

.account-menu-action {
  width: 100%;
  min-height: 38px;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.account-menu-action:hover {
  background: #264760;
}

.application-main {
  max-width: none;
  min-height: 100vh;
  margin: 0 0 0 238px;
  padding: 39px 59px 64px 65px;
  background: #f6f7fa;
}

.application-status {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-right: -11px;
  color: #526575;
  font-size: 16px;
}

.health {
  color: inherit;
  font-size: inherit;
}

.health-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9caab5;
}

.health-dot.is-ready {
  background: #2ba463;
}

.shell-alert {
  max-width: 620px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--warn-line);
  border-radius: 3px;
  color: var(--warn-text);
  background: var(--warn-fill);
  font-size: 14px;
}

.home-view {
  margin-top: 76px;
}

.home-heading h1 {
  position: relative;
  top: -4px;
  margin: 0;
  color: #18334a;
  font-size: 47px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.18;
}

.home-heading p {
  position: relative;
  top: -4px;
  margin-top: 10px;
  color: #526575;
  font-size: 23px;
  letter-spacing: 0.015em;
}

.start-quote-link {
  display: inline-flex;
  width: 416px;
  max-width: 100%;
  min-height: 67px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  padding: 0 20px;
  border-radius: 6px;
  background: #0b5f7d;
  color: #fff;
  font-size: 20px;
  font-weight: 720;
  text-decoration: none;
}

.start-quote-link:hover {
  background: #07536d;
}

.start-quote-link svg {
  width: 23px;
  height: 23px;
}

.home-divider {
  height: 1px;
  margin-top: 54px;
  background: #d9e1e6;
}

.recent-projects {
  margin-top: 61px;
}

.recent-projects h2 {
  margin: 0 0 20px;
  color: #31485b;
  font-size: 28px;
  font-weight: 720;
}

.recent-project-state {
  color: #526575;
  font-size: 14px;
}

.recent-table-wrap {
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: #fff;
}

.recent-table {
  min-width: 0;
  table-layout: fixed;
}

.recent-table th,
.recent-table td {
  height: 85px;
  padding: 0 26px;
  border-bottom: 1px solid #e1e7eb;
  color: #172b3d;
  font-size: 18px;
  font-weight: 500;
  vertical-align: middle;
}

.recent-table th {
  position: static;
  background: transparent;
  color: #526575;
  height: 69px;
  font-size: 16px;
  font-weight: 700;
}

.recent-table th:nth-child(1),
.recent-table td:nth-child(1) {
  width: 43%;
  color: #172b3d;
  font-weight: 500;
}

.recent-table th:nth-child(2),
.recent-table td:nth-child(2) {
  width: 31%;
}

.recent-table th:nth-child(3),
.recent-table td:nth-child(3) {
  width: 20%;
}

.recent-table th:nth-child(4),
.recent-table td:nth-child(4) {
  width: 6%;
  padding-right: 18px;
  text-align: right;
}

.recent-project-link {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 4px;
  color: #4f6677;
}

.recent-project-link:hover {
  background: #eaf2f4;
  color: #007f91;
}

.recent-project-link svg {
  width: 22px;
  height: 22px;
}

.quotes-view {
  margin-top: 39px;
}

.quotes-view .workspace {
  max-width: none;
}

.quote-library {
  max-width: 1100px;
  margin: 48px auto;
}

.library-heading, .editor-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.library-heading h1 { margin: 8px 0; font-size: 36px; letter-spacing: -1px; }
.library-heading p, .library-footnote { color: var(--muted); }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 1.5px; font-weight: 700; }
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.primary-link:hover { background: #12566b; }
.library-tools { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.library-count { color: var(--muted); font-size: 13px; margin: 24px 0 12px; }
.library-state { padding: 36px 24px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); }
.quote-library-list { display: grid; gap: 12px; }
.quote-library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}
.quote-library-item:hover { border-color: var(--accent); background: #f0f8fa; }
.quote-library-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.quote-library-meta { grid-column: 1; color: var(--muted); font-size: 13px; }
.quote-library-open { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 14px; font-weight: 700; }
.library-footnote { font-size: 13px; margin-top: 28px; line-height: 1.6; }
.editor-navigation a { color: var(--accent); font-weight: 700; text-decoration: none; }
.editor-title { margin: 22px 0; font-size: 28px; }
.intake-heading, .quote-toolbar h2 { margin: 0 0 16px; font-size: 20px; }

@media (max-width: 1000px) {
  .projects-panel { grid-template-columns: minmax(160px, 1fr) auto; }
  .projects-panel #refresh-quote-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 600px) {
  .quote-library { margin-top: 28px; }
  .library-heading { align-items: start; flex-direction: column; gap: 12px; }
  .library-heading .primary-link { width: 100%; }
  .library-tools { grid-template-columns: 1fr; margin-top: 28px; gap: 14px; }
  .quote-library-item { padding: 18px; grid-template-columns: minmax(0, 1fr); }
  .quote-library-open { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .projects-panel { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .projects-panel #refresh-quote-button { justify-self: stretch; }
}

.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;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #6ec8d4;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .application-rail {
    width: 190px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .application-main {
    margin-left: 190px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .account-trigger {
    gap: 6px;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
  }

  .session-user {
    font-size: 12px;
  }

  .account-username {
    font-size: 12px;
  }

  .account-chevron {
    width: 12px;
    height: 12px;
  }

  .recent-table th,
  .recent-table td {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 15px;
  }

  .recent-table th:nth-child(1),
  .recent-table td:nth-child(1) {
    width: 46%;
  }

  .recent-table th:nth-child(2),
  .recent-table td:nth-child(2) {
    width: 17%;
  }

  .recent-table th:nth-child(3),
  .recent-table td:nth-child(3) {
    width: 30%;
  }

  .recent-table th:nth-child(4),
  .recent-table td:nth-child(4) {
    width: 7%;
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (max-width: 640px) {
  .application-rail {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 20px;
  }

  .application-nav {
    display: flex;
    grid-column: 1 / -1;
    margin-top: 18px;
  }

  .application-nav-link {
    min-width: 0;
    flex: 1;
    justify-content: center;
  }

  .application-rail-divider {
    display: none;
  }

  .account-control {
    grid-column: 2;
    grid-row: 1;
    width: 150px;
    margin: 0;
  }

  .account-trigger {
    gap: 10px;
  }

  .account-avatar {
    width: 40px;
    height: 40px;
  }

  .session-user {
    font-size: 15px;
  }

  .account-username {
    font-size: 14px;
  }

  .account-chevron {
    width: 16px;
    height: 16px;
  }

  .application-main {
    margin-left: 0;
    padding: 27px 20px 48px;
  }

  .home-view {
    margin-top: 57px;
  }

  .home-heading h1 {
    font-size: 32px;
  }

  .home-heading p {
    font-size: 17px;
  }

  .start-quote-link {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
  }

  .recent-projects {
    margin-top: 48px;
  }

  .recent-projects h2 {
    font-size: 23px;
  }

  .home-divider {
    margin-top: 58px;
  }

  .recent-table th:nth-child(1),
  .recent-table td:nth-child(1) {
    width: 40%;
  }

  .recent-table th:nth-child(2),
  .recent-table td:nth-child(2) {
    width: 18%;
  }

  .recent-table th:nth-child(3),
  .recent-table td:nth-child(3) {
    width: 32%;
  }

  .recent-table th:nth-child(4),
  .recent-table td:nth-child(4) {
    width: 10%;
    padding-right: 0;
    padding-left: 0;
  }

  .recent-table th,
  .recent-table td {
    height: auto;
    padding-right: 8px;
    padding-left: 8px;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 13px;
  }

  .recent-project-link {
    width: 32px;
  }
}

.organization-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.organization-list { display: grid; gap: 14px; }
.organization-card, .organization-form, .organization-assignment { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.organization-card h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.organization-card p { color: var(--muted); font-size: 14px; }
.organization-card a { margin-right: 24px; color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: none; }
.organization-card a:hover { text-decoration: underline; }
.organization-form { display: grid; gap: 18px; }
.organization-form h2, .organization-assignment h2 { margin: 0 0 12px; font-size: 19px; }
.organization-feedback { margin: 20px 0; }
.organization-feedback p { color: var(--muted); max-width: 80ch; }
.organization-assignment { margin: 0 0 24px; }
.organization-assignment form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; }
.organization-form input, .organization-form select, .organization-assignment select { width: 100%; min-width: 0; }

/* Directly ported directory/table/modal presentation from the canonical study;
   the existing shell variables keep it integrated with MatchDesk. */
.organization-directory-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:16px 0 6px; }
.organization-directory-tools label { display:grid; gap:5px; font-size:12px; color:var(--muted); }
.organization-directory-tools .visually-hidden { position:absolute!important; width:1px!important; height:1px!important; margin:-1px!important; padding:0!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.organization-directory-tools input { width:220px; height:30px; padding:7px 10px; border:1px solid var(--line-strong); border-radius:var(--radius); font:inherit; }
.organization-table-wrap { overflow-x:auto; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.organization-table { width:100%; min-width:700px; border-collapse:collapse; text-align:left; }
.organization-table th { padding:10px 12px; color:#69737a; background:#f8f9f9; font-size:11px; font-weight:550; }
.organization-table td { padding:15px 12px; border-bottom:1px solid var(--line); font-size:12px; line-height:1.5; vertical-align:middle; }
.organization-table td:first-child { padding-left:0; }
.organization-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.organization-table .quiet { min-height:0; padding:8px 12px; border:1px solid transparent; border-radius:var(--radius); background:transparent; color:var(--ink); font:inherit; font-size:13px; font-weight:500; line-height:18px; }
.organization-status { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:12px; }
.organization-status::before { content:""; width:6px; height:6px; border:1px solid #869198; border-radius:50%; }
.organization-status.good { color:#35684e; }
.organization-status.good::before { border-color:currentColor; background:currentColor; }
.organization-status.alert { color:var(--danger); }
.organization-status.alert::before { border-color:currentColor; background:currentColor; }
.organization-table a { color:var(--accent); font-weight:550; text-decoration:none; }
.organization-table a:hover { text-decoration:underline; }
.organization-subordinate { display:block; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.organization-dialog { width:520px; max-width:calc(100vw - 28px); border:1px solid #c7cdd1; border-radius:8px; padding:0; color:var(--ink); box-shadow:0 18px 70px #1a29332e; }
.organization-dialog::backdrop { background:#18232c55; }
.organization-form { display:block; padding:0; border:0; border-radius:8px; }
.organization-form .dialog-head { padding:22px 24px 18px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }
.organization-form .dialog-head h2 { margin:0; font-size:19px; font-weight:600; }
.organization-form .dialog-body { padding:23px 24px; }
.organization-form .dialog-body .field { display:flex; flex-direction:column; gap:7px; }
.organization-form .dialog-body .field > label { margin:0; color:var(--ink); font-size:12px; font-weight:550; }
.organization-form .dialog-body label span { display:inline; margin:0; color:var(--muted); font:inherit; }
.organization-form .dialog-body input, .organization-form .dialog-body select, .organization-form .dialog-body textarea { min-height:0; margin:0; border:1px solid var(--line-strong); border-radius:5px; padding:9px 10px; color:var(--ink); font:inherit; font-size:13px; }
.organization-form .dialog-body input:focus-visible, .organization-form .dialog-body select:focus-visible, .organization-form .dialog-body textarea:focus-visible { outline:2px solid #37779a; outline-offset:2px; }
.organization-form button { min-height:0; border:1px solid var(--line-strong); border-radius:var(--radius); padding:8px 12px; background:white; color:var(--ink); font:inherit; font-size:13px; font-weight:500; line-height:18px; }
.organization-form .dialog-head .quiet { border-color:transparent; background:transparent; padding:4px 7px; font-size:12px; }
.organization-form .dialog-footer .primary { border-color:var(--accent); background:var(--accent); color:white; }
.organization-form button:disabled { opacity:.55; cursor:not-allowed; }
.organization-form .dialog-body .field + .field { margin-top:18px; }
.organization-form .dialog-footer { display:flex; gap:8px; justify-content:flex-end; border-top:1px solid var(--line); padding:16px 24px; background:#fafbfb; }
.organization-form .dialog-body textarea { line-height:1.6; }
.organization-detail { padding-top:0; }
.organization-detail .record-header { border-bottom:1px solid var(--line); padding:0 0 24px; }
.record-detail-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.record-detail-head h1 { margin:0; color:var(--ink); font-size:26px; font-weight:620; letter-spacing:-.75px; }
.record-detail-head p { margin:7px 0 0; color:var(--muted); font-size:13px; line-height:1.55; }
.record-detail-head .quiet, .organization-detail .section-heading .quiet { min-height:36px; padding:8px 12px; border:1px solid var(--line-strong); border-radius:var(--radius); background:white; color:var(--ink); font:inherit; font-size:13px; font-weight:500; line-height:18px; text-decoration:none; }
.record-detail-head .eyebrow { margin:0 0 8px; font-size:10px; }
.organization-detail .record-details { display:grid; grid-template-columns:1fr 1fr; gap:30px; margin:25px 0; }
.organization-detail .record-details h3 { margin:0; font-size:13px; font-weight:600; }
.organization-detail .record-details p { margin:10px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.organization-detail .section-heading { display:flex; justify-content:space-between; align-items:center; margin:29px 0 14px; }
.organization-detail .section-heading h2 { margin:0; font-size:18px; font-weight:620; }
.organization-form em { color:var(--muted); font-style:normal; font-weight:400; }
@media (max-width: 1200px) {
  .library-tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .organization-layout, .organization-assignment form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .application-nav { flex-wrap: wrap; }
  .application-nav-link { flex: 1 1 40%; }
  .library-tools { grid-template-columns: minmax(0, 1fr); }
  .organization-card, .organization-form, .organization-assignment { padding: 18px; }
  .organization-directory-tools { align-items:flex-start; flex-direction:column; }
  .organization-directory-tools input { width:min(100%,320px); }
  .organization-detail .record-details { grid-template-columns:minmax(0,1fr); gap:18px; }
  .record-detail-head { align-items:flex-start; flex-direction:column; }
}

@media (max-width: 420px) {
  .application-rail {
    min-height: 184px;
  }

  .account-control {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 10px;
  }

  .account-trigger {
    max-width: 100%;
  }
}
/* Durable matching is a compact cross-page activity region, not an editor lock. */
.matching-panel { margin: 0 0 24px; padding: 18px 22px; border: 1px solid #cedde5; border-radius: 12px; background: #f3f9fb; }
.matching-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.matching-heading h2 { margin: 0; font-size: 18px; }
.matching-panel p { margin: 10px 0; }
.matching-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.matching-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 0; border-top: 1px solid #d7e4eb; }
.matching-list a { color: #176f86; font-weight: 650; overflow-wrap: anywhere; }
.matching-list span { color: #475d6c; font-size: 14px; }
.matching-list button { margin-left: auto; }
@media (max-width: 600px) {
  .matching-panel { padding: 14px; }
  .matching-heading { align-items: flex-start; }
  .matching-list li { align-items: flex-start; flex-direction: column; gap: 6px; }
  .matching-list button { margin-left: 0; }
}

/* Block 1: approved MatchDesk desk presentation. The quote editor keeps its
   established component contracts; Home, library, shell, and sign-in share
   the deliberately restrained desktop reference treatment. */
:root {
  --ink: #252b30;
  --muted: #687078;
  --line: #e1e4e6;
  --line-strong: #bbc2c7;
  --paper: #fff;
  --wash: #f6f7f7;
  --rail: #f1f3f3;
  --accent: #244e64;
  --accent-wash: #eaf1f4;
  --danger: #97431f;
  --green: #35684e;
  --radius: 5px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body.application-body, body.login-body { margin: 0; background: var(--paper); color: var(--ink); }
.application-shell { display: grid; grid-template-columns: 194px minmax(0, 1fr); min-height: 100vh; }
.application-rail { position: sticky; top: 0; display: flex; flex-direction: column; width: 194px; height: 100vh; padding: 26px 14px 16px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--rail); }
.application-wordmark, .login-brand { display: inline-flex; flex-direction: column; gap: 3px; padding: 0 10px 25px; color: var(--ink); font-size: 20px; font-weight: 660; letter-spacing: -.8px; line-height: 1; text-decoration: none; }
.application-wordmark span, .login-brand span { color: #6b747a; font-size: 10px; font-weight: 400; letter-spacing: 1.1px; text-transform: uppercase; }
.rail-new { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 36px; margin: 0 0 25px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--ink); font-weight: 500; text-decoration: none; }
.rail-new svg { width: 15px; height: 15px; }
.application-nav { display: grid; gap: 3px; margin: 0; }
.application-nav-link { display: flex; align-items: center; min-height: 38px; padding: 10px 11px; border: 0; border-radius: 4px; color: #515b62; font-size: 13px; font-weight: 500; text-decoration: none; }
.application-nav-link svg { display: none; }
.application-nav-link:hover { background: #e7eaea; color: var(--ink); }
.application-nav-link[aria-current="page"] { background: #e0e8ec; box-shadow: none; color: #203f50; font-weight: 620; }
.application-rail-divider { display: block; margin: 16px 4px; border-top: 1px solid var(--line); }
.account-control { margin-top: auto; width: 100%; }
.account-trigger { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 4px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); text-align: left; }
.account-trigger:hover:not(:disabled), .account-trigger[aria-expanded="true"] { background: #e7eaea; }
.account-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #d9e2e5; color: var(--accent); font-size: 11px; font-weight: 750; }
.account-copy { min-width: 0; margin-left: 8px; }
.session-user { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-username { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.account-menu { right: 14px; bottom: 58px; width: calc(100% - 28px); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 8px 22px rgb(37 43 48 / .13); }
.application-main { min-width: 0; margin-left: 0; padding: 0; background: var(--paper); }
.application-topbar { display: flex; align-items: center; justify-content: space-between; height: 53px; padding: 0 30px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 650; }
.application-topbar .link-button { color: var(--accent); font-size: 12px; }
.application-status { position: fixed; right: 20px; bottom: 16px; z-index: 5; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, white 92%, transparent); font-size: 11px; }
.shell-alert { max-width: 1120px; margin: 16px 30px 0; }
.home-view, .quote-library, .quotes-view, #organization-view { max-width: 1120px; margin: 0; padding: 29px 30px 44px; }
.home-view { position: relative; }
.home-heading { max-width: 560px; margin: 0; }
.home-heading h1 { margin: 0; color: var(--ink); font-size: 30px; font-weight: 620; letter-spacing: -.75px; line-height: 1.25; }
.home-heading p:last-child, .library-heading p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.start-quote-link, .primary-link { display: inline-flex; width: auto; align-items: center; gap: 7px; min-height: 34px; margin-top: 22px; padding: 0 12px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.start-quote-link { position: absolute; top: 51px; right: 30px; margin: 0; }
.start-quote-link svg { width: 15px; height: 15px; }
.home-divider { margin: 31px 0 0; border-top: 1px solid var(--line); }
.home-metrics { display: flex; gap: 34px; padding: 24px 0 0; border: 0; }
.home-metrics > div { display: grid; gap: 0; min-width: 115px; padding: 0 32px 0 0; border: 0; border-right: 1px solid var(--line); }
.home-metrics > div:first-child { padding-left: 0; border-left: 0; }
.home-metrics > div:last-child { padding-right: 0; border-right: 0; }
.home-metrics strong { font-size: 25px; font-weight: 550; letter-spacing: -.6px; }
.home-metrics span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.recent-projects { margin-top: 27px; }
.continue-work-list { margin-top: 17px; border-top: 1px solid var(--line); }
.continue-work-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.continue-work-item > span { color: var(--muted); font-size: 11px; }
.continue-work-item > div { display: grid; gap: 4px; }
.continue-work-item a { color: var(--accent); font-size: 14px; font-weight: 550; text-decoration: none; }
.continue-work-item div span { color: var(--muted); font-size: 12px; }
.continue-work-item > a { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); font-size: 12px; font-weight: 500; }
.quote-summary-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 620; letter-spacing: -.3px; }
.library-heading h1 { margin: 0; color: var(--ink); font-size: 26px; font-weight: 620; letter-spacing: -.75px; }
.section-heading a { color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.recent-table-wrap, .quote-library-table-wrap { margin-top: 13px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recent-table, .quote-library-table { width: 100%; border-collapse: collapse; text-align: left; }
.recent-table th, .quote-library-table th { padding: 10px 12px; color: #69737a; background: #f8f9f9; font-size: 11px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.recent-table td, .quote-library-table td { padding: 15px 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.recent-table th:first-child, .recent-table td:first-child, .quote-library-table th:first-child, .quote-library-table td:first-child { padding-left: 0; }
.recent-table th:last-child, .recent-table td:last-child, .quote-library-table th:last-child, .quote-library-table td:last-child { padding-right: 0; }
.quote-library-table td:nth-child(3), .quote-library-table td:nth-child(4), .quote-library-table td:nth-child(5) { color: var(--muted); }
.quote-library-table a { color: var(--ink); font-weight: 700; text-decoration: none; }
.quote-library-table a:hover { color: var(--accent); text-decoration: underline; }
.recent-saved-heading { margin-top: 30px; }
.recent-saved-heading h2 { font-size: 17px; }
.recent-saved-heading span { color: var(--muted); font-size: 12px; }
.library-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.library-tools { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border: 0; border-radius: 0; background: transparent; }
.library-tools label { display: grid; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.library-tools label:first-child { margin-right: auto; }
.library-tools input, .library-tools select { height: 32px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--ink); font: inherit; }
.library-tools input[type="search"] { width: 220px; font-size: 12px; }
.library-count { margin: 16px 0 7px; color: var(--muted); font-size: 12px; }
.library-state { margin-top: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--wash); color: var(--muted); }
.library-footnote { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.matching-panel { max-width: 1120px; margin: 16px 30px 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); }
.matching-heading h2 { font-size: 16px; }
.login-main { display: grid; min-height: 100vh; place-items: center; padding: 32px; background: var(--wash); }
.login-card { width: min(100%, 390px); padding: 38px; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; background: white; }
.login-card .login-brand { padding: 0 0 35px; }
.login-card h1 { margin: 0 0 8px; font-size: 23px; font-weight: 620; letter-spacing: -.75px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.login-form { gap: 16px; }
.login-form label { gap: 6px; color: var(--ink); font-size: 12px; font-weight: 700; }
.login-form input { height: 36px; border: 1px solid var(--line-strong); border-radius: 3px; }
.login-form button { height: 36px; border-radius: var(--radius); background: var(--accent); }
.skip-link { position: fixed; z-index: 10; left: 12px; top: -48px; padding: 8px 12px; border-radius: var(--radius); background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

/* Exact desktop-study mapping for the deliberately limited Block 1 surfaces. */
.application-wordmark { margin-left: 0; gap: 5px; }
.application-rail-divider { display: none; }
.account-control { position: relative; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.account-trigger { min-height: 28px; gap: 0; padding: 0; color: var(--ink); }
.account-avatar { width: 28px; height: 28px; margin-right: 7px; background: #dbe1e4; color: #47535c; font-size: 10px; }
.account-copy { margin-left: 0; }
.application-topbar .link-button { display: inline-flex; align-items: center; gap: 5px; min-height: 0; padding: 5px 7px; border-color: transparent; background: transparent; color: var(--accent); font-size: 12px; font-weight: 500; }
.application-topbar .link-button:hover { background: var(--rail); }
.application-topbar .link-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.home-view { max-width: 1120px; }
.quote-library, .quotes-view, #organization-view { max-width: none; }
.home-heading { display: flex; align-items: end; justify-content: space-between; max-width: none; gap: 20px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.home-heading > div { min-width: 0; }
.home-heading .eyebrow { position: static; margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .3px; text-transform: none; }
.home-heading h1 { position: static; top: auto; font-size: 30px; }
.home-heading p:last-child { position: static; top: auto; margin: 7px 0 0; font-size: 13px; line-height: 1.6; }
.start-quote-link { position: static; flex: 0 0 auto; margin: 0; }
.home-divider { display: none; }
.home-metrics { margin-top: 24px; padding-top: 0; }
.library-tools { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 0; padding: 14px 0; }
.library-tools label { position: relative; }
.library-tools label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.library-tools label:first-child { margin-right: 0; }
.library-tools label:nth-child(4) { margin-left: auto; }
.library-count { margin: 16px 0 7px; }
.library-footnote { margin: 14px 0 0; }
.recent-table th:first-child, .quote-library-table th:first-child { padding-left: 12px; }
.recent-table th:last-child, .recent-table td:last-child, .quote-library-table th:last-child, .quote-library-table td:last-child { padding-right: 10px; }
.quote-library-table th:nth-child(4), .quote-library-table th:nth-child(5), .quote-library-table td:nth-child(4), .quote-library-table td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-library-table a { color: var(--accent); font-weight: 550; }
.login-main { min-height: 100vh; align-content: center; gap: 0; padding: 35px; background: #f3f5f5; }
.login-card { width: 390px; max-width: 100%; padding: 38px; }
.login-card .login-brand { margin-bottom: 0; padding: 0 0 35px; }
.login-form { gap: 16px; }
.login-form label { gap: 7px; font-size: 12px; font-weight: 400; }
.login-form input { border-radius: 5px; }
.login-form button { min-height: 0; height: 36px; font-weight: 500; }
.login-foot { margin: 22px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.account-menu { position: fixed; inset: 0; width: 520px; height: fit-content; max-width: calc(100vw - 28px); margin: auto; padding: 0; border: 1px solid #c7cdd1; border-radius: 8px; color: var(--ink); box-shadow: 0 18px 70px rgb(26 41 51 / .18); }
.account-menu::backdrop { background: rgb(24 35 44 / .33); }
.account-menu[hidden] { display: none; }
.account-dialog-panel { width: 100%; background: white; }
.account-dialog-panel header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.account-dialog-panel h2 { margin: 0; color: var(--ink); font-size: 19px; }
.account-dialog-panel header .link-button { min-height: 0; padding: 4px 7px; border-color: transparent; background: transparent; font-size: 12px; font-weight: 500; }
.account-dialog-panel dl { display: grid; gap: 0; margin: 0; padding: 10px 24px; }
.account-dialog-panel dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.account-dialog-panel dl div:last-child { border-bottom: 0; }
.account-dialog-panel dt { color: var(--muted); font-size: 11px; }
.account-dialog-panel dd { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; text-align: right; }
.account-dialog-panel footer { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbfb; }
.account-dialog-panel .account-menu-action { width: auto; min-height: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 18px; text-align: center; }
body.application-body, body.login-body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.recent-table-wrap { overflow: auto; border: 0; border-radius: 0; }
.recent-table-wrap .quote-library-table { min-width: 0; }
.rail-new svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.application-nav-link { min-height: 0; line-height: normal; }
.application-topbar { font-weight: 400; }
.recent-projects { margin-top: 29px; }
.continue-work-item { min-height: 82px; }
.continue-work-item div span { margin-top: 4px; line-height: 1.6; }
.continue-work-item > a { display: inline-flex; min-height: 36px; align-items: center; }
.application-rail .account-username { display: none; }
.start-quote-link { min-height: 36px; font-size: 13px; font-weight: 500; }
.section-heading a { font-weight: 400; }
.library-heading { align-items: flex-start; }
.library-heading p { margin-top: 7px; font-size: 13px; line-height: 1.6; }
.library-heading .primary-link { min-height: 36px; margin-top: 0; padding: 0 12px; font-size: 13px; font-weight: 500; }
.primary-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.library-table-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 12px; }
.library-table-footer .library-count, .library-table-footer .library-footnote { margin: 0; }
.quote-library-table-wrap { margin-top: 0; border-bottom: 0; }
.quote-library-table td { border-top: 0; border-bottom: 1px solid var(--line); }
.quote-library-table { min-width: 0; max-width: 100%; }
.quote-library-empty-row > td, .quote-library-table .quote-library-empty-row > td:last-child { padding: 0; border-bottom: 0; }
.quote-library-empty { padding: 58px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: normal; text-align: center; }
.quote-library-empty h2 { margin: 0 0 8px; color: var(--ink); font-size: 17px; font-weight: 620; letter-spacing: -.3px; line-height: normal; }
.quote-library-empty p { margin: 0; font-size: 13px; line-height: 1.6; }
.library-clear-filters { min-height: 36px; height: 36px; margin-top: 16px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; line-height: 18px; }
.library-clear-filters:hover { background: var(--wash); }
.library-tools { gap: 8px; padding: 17px 0 6px; }
.library-tools input, .library-tools select { font-size: 12px; font-weight: 400; }
.library-tools input { height: 30px; }
.library-tools select { height: 32px; }
.library-tools input[type="search"] { width: 220px; }
.library-tools label:nth-child(4) select { width: 160px; }
.application-body .library-tools input:focus-visible, .application-body .library-tools select:focus-visible { outline: 2px solid #37779a; outline-offset: 3px; box-shadow: none; }
.login-card h1 { line-height: 1.25; }
.login-card > p { margin: 9px 0 26px; font-size: 12px; }
.login-form label { font-weight: 550; }
.login-form input { font-size: 13px; }
.login-body a:focus-visible, .login-body button:focus-visible, .login-body input:focus-visible { outline: 2px solid #37779a; outline-offset: 3px; box-shadow: none; }
