:root {
  color-scheme: light;
  font-family: Satoshi, sans-serif;
  color: #17211f;
  background: #f5f7f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --mint: #00a887;
  --border: #e1e8e5;
  --muted: #64736e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 10% 0%, rgba(0, 214, 171, .12), transparent 30rem), #f5f7f6; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.questionnaire-header { width: min(1100px, calc(100% - 48px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.questionnaire-logo img { display: block; width: 128px; height: auto; }
.header-home { color: #24312d; font-size: 13px; font-weight: 800; }
.header-home:hover { color: #00866d; }
.questionnaire-shell { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.questionnaire-intro { padding: 66px 0 34px; }
.eyebrow { margin: 0 0 13px; color: #00866d; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 700px; margin: 0; font-size: clamp(36px, 6vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; }
.intro-copy { max-width: 700px; margin: 19px 0 0; color: #52615b; font-size: 16px; line-height: 1.75; }
.share-panel { margin-top: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(23, 33, 31, .03); }
.share-panel summary { padding: 16px 18px; cursor: pointer; font-size: 13px; font-weight: 700; }
.share-panel summary::marker { color: #00866d; }
.share-form { display: grid; gap: 15px; padding: 0 18px 18px; }
.share-form > p, .share-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.share-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.share-fields label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.share-fields label:last-child { grid-column: 1 / -1; }
.share-fields input, .share-fields textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f9fbfa; color: #17211f; }
.share-fields textarea { resize: vertical; }
.share-link-fallback { display: block; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f9fbfa; color: #17211f; font-size: 12px; }
.share-link-fallback[hidden] { display: none; }
.questionnaire-form { display: grid; gap: 16px; }
.question-section { margin: 0; padding: 27px 31px 30px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 3px 14px rgba(23, 33, 31, .035); }
.section-heading { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 5px 13px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.section-number { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #e7f8f3; color: #00866d; font-size: 12px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-description { grid-column: 2; margin: 0; color: #3e524b; font-size: 14px; line-height: 1.55; }
#admin-link-builder .share-form { padding: 0; }
.question-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 18px; padding-top: 23px; }
.repeat-group { display: grid; gap: 14px; padding-top: 23px; }
.repeat-card { display: grid; gap: 14px; padding: 16px 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: #f7faf8; }
.repeat-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.repeat-card-header h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.repeat-card .question-fields { padding-top: 0; }
.repeat-group .secondary-button { min-height: 44px; padding: 0 16px; border: 1px solid #c5d2cc; background: #fff; color: #17211f; font-size: 13px; }
.repeat-group .secondary-button:hover { background: #f3f7f5; color: #17211f; }
.repeat-add { justify-self: start; }
.question-field { display: flex; flex-direction: column; min-width: 0; }
.question-field > :is(input, textarea, select) { margin-top: auto; }
.question-field--wide { grid-column: 1 / -1; }
.question-field label { display: block; margin-bottom: 8px; color: #17211f; font-size: 15px; font-weight: 700; line-height: 1.45; }
.required-mark { color: #0b6b56; }
.field-hint { margin: 6px 0 0; color: #3e524b; font-size: 13px; line-height: 1.4; }
.field-error { margin: 6px 0 0; color: #991b1b; font-size: 13px; font-weight: 700; line-height: 1.4; }
.question-field.has-error input, .question-field.has-error textarea, .question-field.has-error select { border-color: #e35d5d; background: #fff8f8; }
.question-field input, .question-field textarea, .question-field select { display: block; width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #dce5e1; border-radius: 9px; background: #f9fbfa; color: #17211f; font-size: 14px; line-height: 1.5; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.question-field textarea { min-height: 88px; resize: vertical; }
.question-field input::placeholder, .question-field textarea::placeholder { color: #5f736c; }
.question-field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #17211f 50%), linear-gradient(135deg, #17211f 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.question-field input:focus, .question-field textarea:focus, .question-field select:focus, .share-fields input:focus, .share-fields textarea:focus { outline: none; border-color: var(--mint); background-color: #fff; box-shadow: 0 0 0 3px rgba(0, 168, 135, .13); }
.form-progress { display: grid; gap: 8px; }
.form-progress p { margin: 0; color: #24312d; font-size: 13px; font-weight: 700; }
.form-progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e1e8e5; }
.form-progress-bar { height: 100%; border-radius: inherit; background: #00a887; }
.form-actions { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; }
.form-actions .primary-button { flex: 1; min-height: 52px; border-radius: 12px; }
.form-actions .secondary-button { min-height: 48px; padding: 0 18px; border: 1px solid #c5d2cc; background: #fff; color: #17211f; font-size: 13px; }
.form-actions .secondary-button:hover { background: #f3f7f5; }
.privacy-note a { color: #0b6b56; font-weight: 800; text-decoration: underline; }
.thank-you { display: grid; justify-items: start; gap: 16px; margin-top: 28px; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.thank-you[hidden] { display: none; }
.thank-you h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.thank-you p { max-width: 620px; margin: 0; color: #24312d; font-size: 16px; line-height: 1.7; }
.thank-you a:not(.primary-button) { color: #0b6b56; font-weight: 800; }
.privacy-page { display: grid; gap: 12px; margin-bottom: 40px; }
.privacy-page h2 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.03em; }
.privacy-page p { margin: 0; color: #24312d; font-size: 16px; line-height: 1.7; }
.privacy-page a { color: #0b6b56; font-weight: 800; text-decoration: underline; }
.submit-panel { display: grid; justify-items: stretch; gap: 12px; width: 100%; padding: 0; text-align: center; }
.privacy-note { width: 100%; max-width: none; margin: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: #52615b; font-size: 12px; line-height: 1.7; text-align: left; }
.privacy-note strong { color: #17211f; overflow-wrap: anywhere; }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; padding: 0 22px; border: 0; border-radius: 9px; background: #17211f; color: #fff; font-size: 13px; font-weight: 700; }
.secondary-button { min-height: 40px; justify-self: start; padding: 0 15px; font-size: 12px; }
.primary-button:hover, .secondary-button:hover { background: #2c3e38; }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid rgba(0, 168, 135, .35); outline-offset: 3px; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.submit-status { max-width: 620px; margin: 0; font-size: 13px; line-height: 1.6; }
.submit-status:empty { display: none; }
.submit-status[data-state="error"] { padding: 13px 16px; border: 1px solid #fecaca; border-radius: 9px; background: #fff1f1; color: #991b1b; text-align: left; }
.submit-status[data-state="success"] { padding: 13px 16px; border: 1px solid #a7e8d5; border-radius: 9px; background: #effbf7; color: #11634f; text-align: left; }
.footnote { margin: 0; color: #84918c; font-size: 12px; }
.questionnaire-footer { padding: 48px 20px 25px; color: #84918c; font-size: 12px; text-align: center; }
.questionnaire-footer a { color: #17211f; font-weight: 800; }

@media (max-width: 640px) {
  .questionnaire-header { width: calc(100% - 36px); height: 64px; }
  .questionnaire-logo img { width: 108px; }
  .questionnaire-shell { width: calc(100% - 36px); }
  .questionnaire-intro { padding: 46px 0 27px; }
  .intro-copy { font-size: 14px; }
  .share-fields { grid-template-columns: minmax(0, 1fr); }
  .share-fields label:last-child { grid-column: auto; }
  .question-section { padding: 22px 18px 24px; }
  .section-heading h2 { font-size: 17px; }
  .question-fields { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .question-field--wide { grid-column: auto; }
  .submit-panel { padding-right: 0; padding-left: 0; }
  .form-actions { flex-direction: column; align-items: stretch; padding: 16px 18px; }
  .form-actions .primary-button, .form-actions .secondary-button { width: 100%; }
  .thank-you { padding: 24px 18px; }
}

.admin-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 80px; }
.admin-login-card { width: min(100%, 460px); margin: 20px auto; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(23, 33, 31, .07); }
.admin-login-card h1, .admin-title-row h1 { font-size: clamp(28px, 4vw, 38px); }
.admin-login-copy { margin: 14px 0 24px; color: #52615b; font-size: 14px; line-height: 1.7; }
.admin-login-form { display: grid; gap: 9px; }
.admin-login-form label, .detail-controls > label { margin-top: 8px; font-size: 12px; font-weight: 700; }
.admin-login-form input, .submission-toolbar input, .submission-toolbar select, .detail-status-select, .detail-controls textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfc; color: #17211f; font-size: 13px; }
.admin-login-form input:focus, .submission-toolbar input:focus, .submission-toolbar select:focus, .detail-status-select:focus, .detail-controls textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 168, 135, .13); }
.admin-login-form .primary-button { margin-top: 8px; }
.admin-login-footnote { margin: 18px 0 0; color: #84918c; font-size: 11px; line-height: 1.6; }
.admin-status { color: #52615b; font-size: 13px; line-height: 1.6; }
.admin-status:empty { display: none; }
.admin-status[data-state="error"] { padding: 11px 13px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f1; color: #991b1b; overflow-wrap: anywhere; }
.admin-dashboard[hidden], .admin-login-card[hidden] { display: none; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-account { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.admin-title-actions { display: flex; align-items: center; gap: 14px; }
.admin-title-actions .secondary-button { min-height: 42px; background: #fff; color: #17211f; border: 1px solid var(--border); }
.text-button { padding: 9px 0; color: #52615b; font-size: 12px; font-weight: 700; }
.text-button:hover { color: #17211f; }
.admin-tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.7); }
.admin-tab { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #52615b; font-size: 12px; font-weight: 700; }
.admin-tab.is-active { background: #17211f; color: #fff; }
.admin-tab-panel { display: none; }
.admin-tab-panel.is-active { display: block; }
.admin-overview-panel { padding: 26px 28px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(23, 33, 31, .035); }
.admin-overview-panel h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.04em; }
.admin-overview-panel p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }
.admin-home-heading, .crm-module-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-home-heading > div > p:last-child, .crm-module-heading > div > p:last-child { margin: 9px 0 0; color: var(--muted); line-height: 1.7; }
.admin-home-heading .primary-button, .crm-module-heading .primary-button { flex: 0 0 auto; }
.crm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 28px; }
.crm-metric { display: grid; min-height: 145px; align-content: space-between; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fbfcfc; }
.crm-metric > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.crm-metric > strong { font-size: 32px; letter-spacing: -.05em; line-height: 1; }
.crm-metric > button { justify-self: start; padding: 0; border: 0; background: none; color: #00866d; font-size: 11px; font-weight: 800; }
.crm-metric > button:hover { text-decoration: underline; }
.admin-home-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 30px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--border); }
.admin-home-bottom h3 { margin: 0 0 14px; font-size: 15px; }
.admin-home-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.crm-recent-activity { display: grid; gap: 12px; }
.crm-recent-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: start; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1ef; }
.crm-recent-type { color: #00866d; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.crm-recent-item strong { font-size: 12px; }
.crm-recent-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.crm-module { min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(23, 33, 31, .035); }
.crm-module-heading { margin-bottom: 22px; }
.crm-module-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.04em; }
.crm-toolbar { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }
.crm-toolbar input { width: min(100%, 390px); min-height: 41px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfc; font: inherit; font-size: 12px; }
.crm-toolbar input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 168, 135, .13); }
.crm-count { color: var(--muted); font-size: 11px; font-weight: 700; }
.crm-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 13px; }
.crm-record-card, .crm-deal-card { min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: 11px; background: #fbfcfc; }
.crm-record-card h3, .crm-deal-card h4 { min-width: 0; margin: 0; font-size: 15px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.crm-record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.crm-badge { display: inline-flex; flex: 0 0 auto; padding: 5px 8px; border-radius: 20px; background: #e7f8f3; color: #00866d; font-size: 9px; font-weight: 800; text-transform: capitalize; }
.crm-record-meta, .crm-record-line { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.crm-record-notes { margin: 12px 0 0; color: #34423d; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-record-link { display: inline-block; margin-top: 10px; color: #00866d; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.crm-record-link:hover { text-decoration: underline; }
.crm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.crm-small-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: #34423d; font-size: 10px; font-weight: 700; }
.crm-small-button:hover { border-color: #83d8c2; color: #00866d; }
.crm-delete-button:hover { border-color: #e8baba; color: #a33131; }
.crm-empty { margin: 0; padding: 20px 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.crm-pipeline { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); align-items: start; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.crm-pipeline-column { min-height: 250px; padding: 11px; border: 1px solid var(--border); border-radius: 11px; background: #f7f9f8; transition: border-color .15s ease, background .15s ease; }
.crm-pipeline-column.is-drop-target { border-color: var(--mint); background: #eaf9f4; }
.crm-pipeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 2px 11px; }
.crm-pipeline-heading h3 { margin: 0; font-size: 12px; }
.crm-pipeline-count { color: var(--muted); font-size: 10px; font-weight: 800; }
.crm-pipeline-column > .crm-empty { padding: 16px 4px; font-size: 10px; }
.crm-deal-card { margin-bottom: 9px; padding: 13px; background: #fff; cursor: grab; }
.crm-deal-card.is-dragging { opacity: .5; cursor: grabbing; }
.crm-deal-card h4 { font-size: 12px; }
.crm-deal-value { margin: 10px 0 0; color: #00866d; font-size: 13px; font-weight: 800; }
.crm-deal-card .crm-card-actions { gap: 5px; margin-top: 11px; }
.crm-deal-card .crm-small-button { min-height: 28px; padding: 0 7px; font-size: 9px; }
.crm-activity-list { display: grid; max-width: 850px; gap: 0; }
.crm-timeline-item { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
.crm-timeline-marker { position: relative; display: block; width: 12px; height: 12px; margin-top: 4px; border: 3px solid #b5e8d9; border-radius: 50%; background: #fff; }
.crm-timeline-marker::after { position: absolute; top: 7px; left: 1px; width: 2px; height: calc(100% + 24px); background: #e1e8e5; content: ""; }
.crm-timeline-item:last-child .crm-timeline-marker::after { display: none; }
.crm-timeline-body { min-width: 0; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.crm-timeline-body h3 { margin: 0; font-size: 14px; }
.crm-converted-label { align-self: center; color: #00866d; font-size: 11px; font-weight: 800; }
.crm-dialog { width: min(620px, calc(100% - 28px)); max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 15px; background: #fff; color: #17211f; box-shadow: 0 24px 80px rgba(23, 33, 31, .25); }
.crm-dialog::backdrop { background: rgba(13, 24, 20, .48); backdrop-filter: blur(3px); }
.crm-dialog-form { display: grid; gap: 19px; padding: 25px; }
.crm-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.crm-dialog-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; text-transform: capitalize; }
.crm-dialog-heading .eyebrow { margin-bottom: 7px; }
.crm-dialog-close { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: #52615b; font-size: 22px; line-height: 1; }
.crm-dialog-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.crm-form-field { display: grid; align-content: start; gap: 7px; color: #34423d; font-size: 11px; font-weight: 700; }
.crm-form-field:has(textarea), .crm-form-field:has(select[name="organizationId"]), .crm-form-field:has(input[name="documentUrl"]) { grid-column: 1 / -1; }
.crm-form-field input, .crm-form-field select, .crm-form-field textarea { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fbfcfc; color: #17211f; font: inherit; font-size: 12px; font-weight: 400; }
.crm-form-field textarea { min-height: 88px; resize: vertical; }
.crm-form-field input:focus, .crm-form-field select:focus, .crm-form-field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(0, 168, 135, .13); }
.crm-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 15px; border-top: 1px solid var(--border); }
.crm-dialog-actions .secondary-button { border: 1px solid var(--border); background: #fff; color: #34423d; }
.crm-dialog-actions .primary-button, .crm-dialog-actions .secondary-button { min-height: 40px; font-size: 11px; }
.crm-dialog-actions button:disabled { cursor: wait; opacity: .65; }
.admin-workspace { display: grid; min-height: 600px; grid-template-columns: minmax(270px, 350px) minmax(0, 1fr); gap: 18px; margin-top: 15px; }
.submission-panel, .submission-detail { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(23, 33, 31, .035); }
.submission-panel { padding: 16px; }
.submission-toolbar { display: grid; gap: 9px; }
.submission-toolbar input, .submission-toolbar select { min-height: 40px; font-size: 12px; }
.submission-count { margin: 14px 0 9px; color: #84918c; font-size: 11px; font-weight: 700; }
.submission-list { display: grid; align-content: start; gap: 8px; max-height: 670px; overflow: auto; }
.submission-list-empty { padding: 22px 9px; color: #84918c; font-size: 12px; line-height: 1.6; text-align: center; }
.submission-card { display: grid; gap: 7px; width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 10px; background: #f8faf9; text-align: left; }
.submission-card:hover { border-color: #cfe9e1; background: #f2faf7; }
.submission-card.is-selected { border-color: #83d8c2; background: #effaf6; }
.submission-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.submission-date { color: #84918c; font-size: 10px; }
.submission-card-name { overflow: hidden; color: #17211f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.submission-card-company { overflow: hidden; color: #64736e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 20px; background: #e8eeeb; color: #43514b; font-size: 9px; font-weight: 800; }
.status-pill--sent { background: #f3e8ff; color: #6b3fa0; }
.status-pill--new { background: #e7f1ff; color: #2454a6; }
.status-pill--in-progress { background: #fff4dc; color: #875f00; }
.status-pill--completed { background: #e4f7ee; color: #176742; }
.status-pill--archived { background: #ececee; color: #66666d; }
.submission-detail { padding: 25px; }
.detail-empty { display: grid; min-height: 500px; align-content: center; justify-items: center; color: #84918c; text-align: center; }
.detail-empty > span { display: grid; width: 44px; height: 44px; margin-bottom: 15px; place-items: center; border-radius: 50%; background: #e7f8f3; color: #00866d; }
.detail-empty h2 { margin: 0; color: #17211f; font-size: 17px; }
.detail-empty p { max-width: 280px; margin: 8px 0; font-size: 12px; line-height: 1.6; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.detail-heading h2 { margin: 0; color: #17211f; font-size: 24px; letter-spacing: -.03em; }
.detail-heading .eyebrow { margin-bottom: 8px; }
.detail-created-at { margin: 7px 0 0; color: #84918c; font-size: 11px; }
.detail-heading .secondary-button { min-height: 38px; flex: 0 0 auto; background: #fff; color: #17211f; border: 1px solid var(--border); }
.detail-controls { display: grid; gap: 11px; padding: 16px 0 20px; border-bottom: 1px solid var(--border); }
.detail-controls > label { display: grid; gap: 7px; color: #52615b; }
.detail-status-select { width: min(100%, 230px); }
.detail-controls textarea { min-height: 75px; resize: vertical; }
.detail-action-row { display: flex; flex-wrap: wrap; gap: 9px; }
.detail-action-row .primary-button { min-height: 39px; padding: 0 15px; font-size: 12px; }
.danger-button { min-height: 39px; padding: 0 13px; border: 1px solid #f1caca; border-radius: 9px; background: #fff; color: #a33131; font-size: 12px; font-weight: 700; }
.danger-button:hover { background: #fff4f4; }
.detail-answer-section { padding-top: 21px; }
.detail-answer-section h3 { margin: 0 0 13px; font-size: 15px; }
.detail-answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 0; }
.detail-answer { min-width: 0; padding: 11px 12px; border-radius: 8px; background: #f8faf9; }
.detail-answer--wide { grid-column: 1 / -1; }
.detail-answer dt { color: #64736e; font-size: 10px; font-weight: 700; line-height: 1.5; }
.detail-answer dd { margin: 5px 0 0; color: #17211f; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .admin-shell { width: calc(100% - 36px); padding-top: 38px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .crm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-home-bottom { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .crm-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-module { padding: 19px; }
  .admin-workspace { grid-template-columns: minmax(0, 1fr); }
  .submission-list { max-height: 300px; }
  .submission-detail { padding: 18px; }
  .detail-answer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .admin-login-card { padding: 23px 19px; }
  .admin-title-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .detail-heading { flex-direction: column; }
  .admin-home-heading, .crm-module-heading { align-items: flex-start; flex-direction: column; }
  .crm-metrics, .crm-card-grid, .crm-dialog-fields { grid-template-columns: minmax(0, 1fr); }
  .crm-form-field:has(textarea), .crm-form-field:has(select[name="organizationId"]), .crm-form-field:has(input[name="documentUrl"]) { grid-column: auto; }
  .crm-toolbar { align-items: stretch; flex-direction: column; }
  .crm-toolbar input { width: 100%; }
  .crm-dialog-form { padding: 19px; }
}
