@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root {
  font-family: 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  color-scheme: light;
  font-synthesis: none;
  --ink: #242733;
  --purple: #6551c9;
  --purple-dark: #4837a0;
  --blue: var(--purple);
  --light: #eeebfb;
  --line: #e7e8ee;
  --muted: #606574;
  --bg: #f6f7fa;
  --shadow: 0 3px 12px #24273305;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, .ops-button:disabled, .ops-button.primary:disabled { opacity: 1; cursor: not-allowed; background: #e5e7eb; border-color: #b8c3cf; color: #4b5563; }
input::placeholder, textarea::placeholder { color: #595959; opacity: 1; }
input:disabled, select:disabled, textarea:disabled { opacity: 1; color: #4b5563; -webkit-text-fill-color: #4b5563; background: #e5e7eb !important; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #6551c9;
  outline-offset: 2px;
}
.ops-skip { position: fixed; top: -60px; left: 16px; background: #4837a0; color: #fff; padding: 12px; z-index: 100; }
.ops-skip:focus { top: 10px; }
.ops-loading { padding: 65px 24px; text-align: center; color: var(--muted); }
.ops-sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; padding: 32px 18px 22px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; z-index: 15; }
.ops-brand { display: block; font-size: 31px; letter-spacing: -1.8px; font-weight: 800; color: var(--purple); background: transparent; padding: 0 17px; line-height: 1.2; }
.ops-brand sup { font-size: 11px; vertical-align: top; letter-spacing: 0; position: relative; top: 7px; margin-left: 2px; }
.ops-workspace-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .8px; padding: 26px 17px 22px; }
.ops-workspace-label span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; margin-top: 7px; }
.ops-nav { display: grid; align-content: start; gap: 6px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ops-nav a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 11px 15px; color: var(--muted); font-size: 14px; border-left: 0; border-radius: 8px; font-weight: 500; }
.ops-nav a:hover { background: #f5f3fc; color: var(--purple-dark); }
.ops-nav a.active { background: var(--light); color: var(--purple-dark); font-weight: 700; }
.ops-nav-preview { margin-left: auto; padding: 1px 4px; border-radius: 4px; font-size: 10px; color: var(--purple-dark); background: var(--light); white-space: nowrap; }
.ops-extension-notice { margin-bottom: 22px; color: var(--purple-dark); background: var(--light); border: 1px solid #dcd5f7; border-radius: 8px; padding: 13px 16px; font-size: 13px; line-height: 1.65; }
.ops-extension-screen { min-width: 0; }
.ops-server-status.is-preview { color: var(--purple-dark); }
.ops-server-status.is-preview:before { background: var(--purple); }
.ops-nav svg, .ops-button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ops-nav .menu-group, .ops-nav .ops-menu-group { color: var(--muted); font-size: 12px; font-weight: 600; padding: 17px 15px 4px; letter-spacing: .4px; }
.ops-sidebar-bottom { margin-top: auto; font-size: 12px; color: var(--muted); line-height: 1.8; padding: 22px 15px 0; }
.ops-sidebar-bottom a { display: block; margin-top: 10px; color: var(--purple-dark); }
.ops-workspace { margin-left: 224px; min-width: 0; min-height: 100vh; }
.ops-topbar { min-height: 73px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 14px 34px; gap: 15px; }
.ops-topbar-label { font-size: 13px; color: var(--muted); }
.ops-topbar-label b { color: var(--ink); font-weight: 500; margin-right: 14px; }
.ops-topbar-actions { display: flex; align-items: center; gap: 13px; color: var(--ink); font-size: 13px; }
.ops-topbar-actions .ops-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; border: 1px solid #dddfe8; background: #fff; padding: 9px 14px; border-radius: 7px; color: var(--ink); line-height: 1.5; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ops-server-status { display: flex; align-items: center; gap: 5px; color: #17603f; font-size: 12px; white-space: nowrap; }
.ops-server-status:before { content: ''; width: 6px; height: 6px; background: #348968; border-radius: 50%; }
.ops-main { max-width: 1820px; margin: auto; padding: 30px 32px 44px; outline: none; }
.ops-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.ops-eyebrow { color: var(--purple-dark); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; }
.ops-page-heading h1 { font-size: 26px; letter-spacing: -1px; margin: 6px 0 8px; line-height: 1.35; color: var(--ink); }
.ops-page-heading p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }
.ops-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ops-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 38px; border: 1px solid #d9dce6; background: #fff; padding: 6px 11px; border-radius: 3px; color: var(--ink); line-height: 1.4; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ops-button:hover { background: #faf9ff; border-color: #b4a6e0; }
.ops-button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.ops-button.primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.ops-button.soft { background: var(--light); border-color: var(--light); color: var(--purple-dark); }
.ops-button.text { padding: 0; min-height: auto; border: 0; background: transparent; color: var(--blue); }
.ops-button.danger { color: #9b1c1c; }
.ops-button:disabled, .ops-button:disabled:hover { background: #e5e7eb; border-color: #b8c3cf; color: #4b5563; }
.ops-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.ops-panel + .ops-panel { margin-top: 20px; }
.ops-panel-heading { min-height: 58px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; }
.ops-panel-heading h2 { font-size: 16px; margin: 0; letter-spacing: -.3px; color: var(--ink); }
.ops-panel-heading small { font-size: 12px; color: var(--muted); }
.ops-count { color: var(--blue); font-size: 14px; margin-left: 6px; }
.ops-toolbar { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: #fff; }
.ops-toolbar label { font-size: 14px; color: var(--ink); display: grid; gap: 5px; min-width: 110px; }
.ops-toolbar label.grow { flex: 1; min-width: 200px; }
.ops-toolbar input, .ops-toolbar select { border: 1px solid #dddfe8; min-height: 40px; padding: 9px 11px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; width: 100%; }
.ops-toolbar .ops-button { min-height: 40px; height: auto; }
.ops-table-wrap { overflow: auto; max-height: min(650px, calc(100vh - 355px)); min-height: 110px; }
.ops-table-wrap table { min-width: 760px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; text-align: left; }
th { position: sticky; top: 0; z-index: 1; background: #fafafe; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; padding: 13px 16px; border-bottom: 1px solid var(--line); border-right: 0; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 0; color: var(--ink); font-size: 14px; line-height: 1.65; vertical-align: middle; }
th:last-child, td:last-child { border-right: 0; }
tbody tr:nth-child(even) { background: #fff; }
tbody tr:hover { background: #faf9ff; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); font-size: 14px; font-weight: 600; }
td small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
td .ops-button { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.ops-row-link { padding: 0; border: 0; background: none; color: var(--purple-dark); text-align: left; font-weight: 600; font-size: 14px; line-height: 1.5; }
.ops-row-link:hover { text-decoration: underline; }
.ops-pagination { border-top: 1px solid var(--line); padding: 13px 19px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; background: #fff; gap: 12px; }
.ops-pagination .ops-actions { gap: 5px; }
.ops-pagination .ops-button { font-size: 12px; min-height: 32px; padding: 6px 10px; }
.ops-empty { text-align: center; padding: 38px 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.ops-empty strong { font-size: 15px; color: var(--ink); display: block; margin-bottom: 6px; }
.ops-empty .ops-button { margin-top: 12px; }
.ops-badge { display: inline-flex; align-items: center; background: var(--light); color: var(--purple-dark); padding: 3px 8px; border: 1px solid #e7e3f5; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.ops-badge.completed { background: #eaf5ef; border-color: #d3e9dc; color: #17603f; }
.ops-badge.canceled { background: #fff0ed; border-color: #f0d9d3; color: #9b1c1c; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 18px; }
.ops-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink); min-width: 0; }
.ops-field input, .ops-field select, .ops-field textarea { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #dddfe8; border-radius: 6px; background: #fff; padding: 9px 11px; color: var(--ink); font-size: 14px; }
.ops-field input[readonly] { background: #f1f4f7; color: var(--muted); }
.ops-field textarea { resize: vertical; min-height: 80px; line-height: 1.65; }
.ops-field small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ops-field.full, .ops-grid > .full { grid-column: 1/-1; }
.ops-checkbox { display: flex; gap: 7px; align-items: center; font-size: 13px; color: var(--ink); line-height: 1.7; }
.ops-checkbox input { accent-color: var(--blue); width: 15px; height: 15px; }
.ops-form-section { margin: 20px 0 12px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ops-info { border: 1px solid #e7e3f5; border-radius: 7px; padding: 13px 15px; background: #f5f3fc; color: #50436e; font-size: 13px; line-height: 1.8; margin: 16px 0; }
.ops-error { color: #9b1c1c; font-size: 14px; line-height: 1.8; margin-top: 11px; white-space: pre-wrap; }
.ops-error:empty { display: none; }
.ops-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0 0; }
.ops-dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
dialog { width: min(850px, calc(100% - 34px)); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 15px; padding: 29px; color: var(--ink); box-shadow: 0 20px 80px #28213b33; }
dialog::backdrop { background: #28243c70; backdrop-filter: blur(2px); }
dialog h2 { font-size: 22px; letter-spacing: -.5px; margin: 7px 0 22px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.ops-dialog-close { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--muted); font-size: 25px; }
.ops-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ops-detail-list > div { padding: 13px 15px; border-bottom: 1px solid var(--line); min-width: 0; }
.ops-detail-list > div.full { grid-column: 1/-1; }
.ops-detail-list dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ops-detail-list dd { font-size: 14px; margin: 0; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.ops-detail-section { border-top: 1px solid var(--line); margin-top: 19px; padding-top: 15px; }
.ops-detail-section h3 { font-size: 15px; margin: 0 0 11px; }
.ops-detail-row { padding: 10px 0; border-bottom: 1px solid #e1e8ee; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.ops-detail-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.ops-detail-row:last-child { border: 0; }
.ops-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 14px; margin-bottom: 24px; border: 0; background: transparent; }
.ops-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.ops-stat:last-child { border-right: 1px solid var(--line); }
.ops-stat span { font-size: 13px; color: var(--muted); }
.ops-stat strong { font-size: 27px; color: var(--ink); font-weight: 700; letter-spacing: -.5px; }
.ops-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 15px 19px; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.ops-summary strong, .ops-summary b { color: var(--ink); margin-left: 5px; }
.ops-summary small { margin-left: auto; color: var(--muted); font-size: 12px; }
.ops-tabs { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); background: #fff; gap: 4px; padding: 10px 16px 0; }
.ops-tabs a, .ops-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 13px; color: var(--muted); font-size: 13px; border-radius: 0; }
.ops-tabs .active, .ops-tabs [aria-selected="true"] { background: #fff; color: var(--purple-dark); border-bottom-color: var(--purple); box-shadow: none; font-weight: 700; }
.workflow-strip, .ops-workflow-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; padding: 14px 17px; background: #f5f3fc; border: 1px solid #e7e3f5; color: var(--muted); font-size: 13px; border-radius: 8px; }
.workflow-strip > span, .ops-workflow-strip > span { display: inline-flex; align-items: center; gap: 6px; }
.workflow-strip b, .ops-workflow-strip b { color: var(--ink); }
.workflow-strip .active, .ops-workflow-strip .active { color: var(--ink); font-weight: 700; }
.intake-grid, .ops-intake-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.intake-grid > .ops-panel + .ops-panel, .ops-intake-grid > .ops-panel + .ops-panel { margin-top: 0; }
.selection-panel, .ops-selection-panel { min-width: 0; }
.selection-panel .ops-table-wrap, .ops-selection-panel .ops-table-wrap { max-height: 400px; }
.selection-panel .ops-table-wrap table, .ops-selection-panel .ops-table-wrap table { min-width: 500px; }
.ops-table-wrap .ops-service-table { min-width: 1040px; }
.ops-table-wrap .ops-customer-table { min-width: 1030px; }
.ops-nowrap { white-space: nowrap; }
.ops-cell-address { min-width: 170px; max-width: 270px; }
.ops-cell-symptom { min-width: 160px; max-width: 270px; }
.ops-service-table th:last-child, .ops-service-table td:last-child { position: sticky; right: 0; background: #fbfaff; box-shadow: -1px 0 #e7e8ee; }
.ops-service-table th:last-child { z-index: 3; }
.ops-cell-symptom > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
tbody tr.selected, tbody tr.selected:hover { background: #eeebfb; }
.ops-selected-customer { padding: 18px; background: #f7f5fe; border-bottom: 1px solid #e7e3f5; }
.ops-selected-customer > strong { font-size: 14px; color: var(--ink); }
.ops-selected-customer p { margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ops-selected-customer .ops-button { margin-top: 4px; }
.ops-product-list { max-height: 350px; overflow-y: auto; }
.ops-product-list > .ops-note { padding: 8px 13px; }
.ops-intake-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 13px 0; border-top: 1px solid var(--line); }
.ops-intake-note { padding: 0 13px 13px; }
.product-choice, .ops-product-choice { display: flex; align-items: center; gap: 12px; padding: 15px 17px; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); background: #fff; text-align: left; width: 100%; }
.product-choice > div, .ops-product-choice > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.product-choice p, .ops-product-choice p { margin: 4px 0; font-size: 13px; }
.product-choice .ops-button, .ops-product-choice .ops-button { flex: 0 0 auto; }
.product-choice:hover, .ops-product-choice:hover { background: #f5f3fc; }
.product-choice.selected, .ops-product-choice.selected, .product-choice:has(input:checked), .ops-product-choice:has(input:checked) { background: #f7f5fe; box-shadow: inset 3px 0 #6551c9; }
.product-choice input, .ops-product-choice input { accent-color: var(--blue); }
.product-choice strong, .ops-product-choice strong { display: block; color: var(--ink); }
.product-choice small, .ops-product-choice small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.ops-import-section { padding: 17px; }
.ops-import-section + .ops-import-section { border-top: 1px solid var(--line); }
.ops-import-section h2 { font-size: 14px; margin: 0 0 15px; }
.ops-upload { display: block; padding: 26px; border: 1px dashed #cfc5eb; background: #faf9fd; text-align: center; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.ops-upload input { display: block; margin: 12px auto 0; max-width: 100%; font-size: 13px; }
.ops-import-steps { display: flex; gap: 16px; margin-bottom: 17px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ops-import-steps span { display: flex; align-items: center; gap: 7px; }
.ops-import-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; background: #e0e9f1; color: var(--muted); font-size: 12px; }
.ops-import-steps span.active { color: var(--blue); font-weight: 700; }
.ops-import-steps span.active b { background: var(--blue); color: #fff; }
.ops-mapping { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
.ops-map-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); padding: 11px 13px; border-radius: 7px; font-size: 13px; }
.ops-map-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; color: var(--ink); }
.ops-map-row select { min-width: 0; max-width: 55%; padding: 6px; border: 1px solid #d9dce6; border-radius: 2px; font-size: 13px; color: var(--ink); background: #fff; }
.ops-import-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 16px 0; }
.ops-import-summary > div { background: #f8f7fc; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.ops-import-summary span { font-size: 13px; color: var(--muted); }
.ops-import-summary strong { font-size: 22px; color: var(--ink); display: block; margin-top: 6px; }
.ops-import-summary .error { background: #fff2ef; }
.ops-import-summary .error strong { color: #9b1c1c; }
.ops-inline-search { display: flex; gap: 6px; }
.ops-inline-search input { flex: 1; min-width: 0; }
.ops-auth { max-width: 450px; margin: 10vh auto 50px; padding: 0 22px; }
.ops-auth .ops-brand { display: block; text-align: center; margin-bottom: 25px; background: transparent; color: var(--blue); padding: 0; font-size: 34px; }
.ops-auth .ops-panel { padding: 29px; border-top: 3px solid var(--purple); }
.ops-auth h1 { font-size: 22px; margin: 8px 0 12px; letter-spacing: -.6px; }
.ops-auth p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.ops-auth form { display: grid; gap: 15px; margin-top: 20px; }
.ops-auth .ops-field { font-size: 14px; }
.ops-auth .ops-field input { padding: 11px; }
.ops-auth .ops-button { width: 100%; padding: 11px; font-size: 14px; }
.ops-auth .ops-note { text-align: center; font-size: 12px; }
.ops-auth-links { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }
.ops-toast { position: fixed; bottom: 24px; left: calc(50% + 112px); transform: translate(-50%,15px); opacity: 0; pointer-events: none; transition: .18s; z-index: 100; background: #302d42; color: #fff; padding: 13px 20px; border-radius: 8px; max-width: 90vw; font-size: 14px; box-shadow: 0 5px 24px #29233622; }
.ops-toast.show { opacity: 1; transform: translate(-50%,0); }
.ops-footer { padding: 0 32px 28px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ops-unresolved { color: #704300 !important; }
.ops-status-note { background: #fff7e9; color: #704300; border-color: #ead8b7; }
/* Shell follows the existing customer-service administration design. */
.ops-topbar-divider { margin: 0 13px; color: var(--muted); }
.ops-server-notice { background: #f0eef9; color: #51456e; padding: 10px 34px; font-size: 12px; line-height: 1.7; }
.ops-server-notice > span { margin-right: 6px; }
.ops-staff-avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: var(--light); display: grid; place-items: center; color: var(--purple-dark); font-size: 13px; font-weight: 600; }
.ops-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1250px) {
  .ops-sidebar { width: 190px; padding-left: 11px; padding-right: 11px; }
  .ops-workspace { margin-left: 190px; }
  .ops-brand { font-size: 29px; padding-left: 12px; }
  .ops-workspace-label { padding-left: 12px; padding-right: 12px; letter-spacing: .2px; }
  .ops-nav a { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .ops-main { padding: 25px 22px 36px; }
  .ops-topbar { padding-left: 24px; padding-right: 24px; }
  .ops-server-notice { padding-left: 24px; padding-right: 24px; }
  .ops-mapping { grid-template-columns: 1fr; }
  .ops-toast { left: calc(50% + 95px); }
  .ops-toolbar label { min-width: 105px; flex: 1; }
  .ops-toolbar label.grow { flex: 2; min-width: 220px; }
  .intake-grid, .ops-intake-grid { grid-template-columns: 1fr; }
  .ops-stats { gap: 10px; }
  .ops-stat { padding: 17px 15px; }
}
@media (max-width: 780px) {
  .ops-sidebar { position: static; inset: auto; width: 100%; padding: 17px 17px 0; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .ops-brand { font-size: 25px; padding: 0 0 14px; }
  .ops-brand sup { font-size: 11px; top: 4px; }
  .ops-workspace-label, .ops-sidebar-bottom, .ops-nav .menu-group, .ops-nav .ops-menu-group { display: none; }
  .ops-nav { display: flex; overflow-x: auto; gap: 5px; padding: 0 0 12px; scrollbar-width: thin; }
  .ops-nav a { padding: 9px 12px; min-height: 40px; font-size: 14px; gap: 6px; white-space: nowrap; border: 0; border-radius: 7px; flex: 0 0 auto; }
  .ops-nav svg { width: 16px; height: 16px; }
  .ops-workspace { margin-left: 0; }
  .ops-topbar { min-height: 54px; padding: 9px 17px; gap: 9px; }
  .ops-topbar-label { font-size: 12px; }
  .ops-topbar-label b { display: none; }
  .ops-topbar-actions { gap: 8px; font-size: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .ops-server-status { font-size: 12px; }
  .ops-staff-avatar { width: 28px; height: 28px; font-size: 12px; }
  .ops-server-notice { padding: 9px 17px; }
  .ops-main { padding: 23px 17px 32px; }
  .ops-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .ops-page-heading h1 { font-size: 24px; }
  .ops-page-heading p { font-size: 13px; }
  .ops-page-heading > .ops-actions .ops-button { padding: 8px 11px; font-size: 13px; }
  .ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .ops-stat { padding: 15px; gap: 9px; }
  .ops-stat span { font-size: 12px; }
  .ops-stat strong { font-size: 23px; }
  .ops-summary { gap: 9px 13px; padding: 13px 16px; font-size: 13px; }
  .ops-toolbar { padding: 16px; gap: 10px; }
  .ops-toolbar label { flex: 1; min-width: 120px; }
  .ops-toolbar label.grow { min-width: 100%; }
  .ops-toolbar .ops-button { flex: 1; }
  .ops-table-wrap { max-height: 530px; }
  th, td { padding: 12px 14px; }
  .ops-panel-heading { padding: 16px; }
  .ops-panel-heading h2 { font-size: 15px; }
  .ops-panel-heading small { font-size: 12px; }
  .ops-grid { grid-template-columns: 1fr; gap: 16px; }
  .ops-detail-list { grid-template-columns: 1fr; }
  .ops-import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ops-import-summary > div { padding: 13px; }
  .ops-import-summary strong { font-size: 22px; }
  .ops-import-summary span { font-size: 12px; }
  .ops-import-section { padding: 17px; }
  .ops-upload { padding: 22px 16px; }
  .ops-import-steps { gap: 10px; font-size: 12px; }
  .ops-toast { left: 50%; font-size: 13px; }
  dialog { padding: 25px 19px; }
  .ops-footer { padding: 0 18px 25px; font-size: 12px; }
  .ops-auth { margin-top: 7vh; }
  .ops-auth .ops-brand { font-size: 31px; }
  .ops-tabs a, .ops-tabs button { padding: 10px 11px; }
  .workflow-strip, .ops-workflow-strip { gap: 10px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ASMS intake fields retained within the existing administration card design. */
.ops-intake-sheet { width: 100%; min-width: 0; color: var(--ink); }
.ops-intake-guide { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; margin: 0 0 20px; background: #f5f3fc; border: 1px solid #e7e3f5; border-radius: 8px; color: #51456e; font-size: 13px; line-height: 1.8; }
.ops-intake-guide p { margin: 0; }
.ops-intake-sheet .ops-intake-notice, .ops-intake-footnote { margin: 12px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ops-intake-search-panel { margin-bottom: 20px; }
.ops-intake-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; padding: 20px 22px; border: 0; background: #fff; }
.ops-intake-search-panel .ops-intake-customer-results { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ops-intake-search > label, .ops-intake-search > strong { font-weight: 600; white-space: nowrap; }
.ops-intake-search input[type="search"], .ops-intake-search input[type="text"] { width: 280px; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid #dddfe8; border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; }
.ops-intake-search fieldset { display: flex; flex-wrap: wrap; gap: 7px 12px; border: 0; margin: 0; padding: 0; }
.ops-intake-search fieldset label, .ops-intake-search .ops-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 400; }
.ops-intake-search label:has(input:disabled) { color: #606574; }
.ops-intake-search-types { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 13px; }
.ops-intake-search-types label { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; font-size: 13px; white-space: nowrap; }
.ops-intake-search input[type="radio"] { accent-color: var(--purple); margin: 0; }
.ops-intake-customer-results { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 20px; max-height: 300px; overflow: auto; background: #fff; }
.ops-intake-customer-results .ops-empty { padding: 22px; }
.ops-intake-customer-status { margin: 0 0 15px; padding: 10px 13px; background: #f7f5fe; border-radius: 7px; color: var(--purple-dark); font-size: 13px; line-height: 1.7; }
.ops-intake-customer-status:empty { display: none; }
.ops-intake-section, .ops-intake-card { margin: 0 0 20px; padding: 22px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.ops-intake-section > h2:not(.ops-sr-only), .ops-intake-section > h3:not(.ops-sr-only), .ops-intake-card > h2:not(.ops-sr-only) { font-size: 16px; font-weight: 600; margin: 0 0 18px; padding: 0 0 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); letter-spacing: -.3px; }
.ops-intake-section h2 small { margin-left: 12px; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.ops-form-label { width: 13%; }
.ops-intake-address { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 7px; }
.ops-intake-address > :last-child { grid-column: 1 / -1; }
.ops-notification-disabled { color: #606574; font-size: 13px; }
.ops-notification-disabled label { display: flex; align-items: center; white-space: normal; }
.ops-form-table { table-layout: fixed; width: 100%; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.ops-form-table th { position: static; width: 13%; white-space: normal; background: #fafafe; text-align: left; vertical-align: middle; padding: 12px 13px; font-size: 13px; color: var(--muted); font-weight: 500; border-color: var(--line); }
.ops-form-table td { padding: 11px 13px; border-color: var(--line); background: #fff; font-size: 14px; }
.ops-form-table tr:last-child th, .ops-form-table tr:last-child td { border-bottom: 0; }
.ops-form-table input:not([type="checkbox"]):not([type="radio"]), .ops-form-table select, .ops-form-table textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 10px; border: 1px solid #dddfe8; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; font-size: 14px; }
.ops-form-table input[readonly] { background: #f6f7fa !important; color: var(--muted) !important; }
.ops-form-table .ops-field { gap: 5px; }
.ops-form-table .ops-inline, .ops-form-table .ops-input-pair, .ops-form-table .ops-inline-fields { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-width: 0; }
.ops-form-table .ops-inline > input, .ops-form-table .ops-inline > select, .ops-form-table .ops-input-pair > *, .ops-form-table .ops-inline-fields > input, .ops-form-table .ops-inline-fields > select { flex: 1; min-width: 0; }
.ops-form-table .ops-button { flex: 0 0 auto; padding: 9px 11px; min-height: 40px; }
.ops-form-table small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.ops-form-table .ops-checks { display: flex; flex-wrap: wrap; gap: 11px 20px; align-items: center; }
.ops-form-table input[type="checkbox"] { margin-right: 5px; accent-color: var(--purple); }
.ops-intake-products-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 0 16px; border: 0; background: #fff; }
.ops-intake-products-tools h2 { flex-basis: 100%; margin: 0 0 7px; padding: 0 0 15px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.3px; }
.ops-intake-products-tools .ops-inline-fields { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; }
.ops-intake-products-tools label { font-size: 13px; color: var(--muted); }
.ops-intake-products-tools select { max-width: 560px; min-width: 180px; flex: 1; min-height: 40px; padding: 9px 11px; border: 1px solid #dddfe8; border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; }
.ops-intake-section:has(.ops-products-table) { overflow: hidden; }
.ops-intake-sheet .ops-table-wrap:has(.ops-products-table), .ops-intake-products-wrap { overflow: auto; max-height: 440px; min-height: 0; border: 1px solid var(--line); border-radius: 7px; }
.ops-products-table { table-layout: fixed; min-width: 1660px !important; width: 100%; border: 0; background: #fff; }
.ops-products-table th { padding: 12px 9px; text-align: center; white-space: normal; background: #fafafe; color: var(--muted); font-size: 13px; }
.ops-products-table td { padding: 10px 8px; vertical-align: top; background: #fff; }
.ops-products-table input, .ops-products-table select, .ops-products-table textarea { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 9px 8px; border: 1px solid #dddfe8; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.ops-products-table textarea { min-height: 60px; height: 60px; resize: vertical; }
.ops-products-table th:first-child, .ops-products-table td:first-child { position: sticky; left: 0; width: 150px; z-index: 2; box-shadow: 1px 0 var(--line); background: #fff; }
.ops-products-table th:first-child { z-index: 3; background: #fafafe; }
.ops-products-table th:last-child, .ops-products-table td:last-child { position: sticky; right: 0; width: 82px; z-index: 2; background: #fff; box-shadow: -1px 0 var(--line); }
.ops-products-table th:last-child { z-index: 3; background: #fafafe; }
.ops-products-table th:nth-child(2) { width: 145px; }
.ops-products-table th:nth-child(3) { width: 120px; }
.ops-products-table th:nth-child(6) { width: 150px; }
.ops-products-table th:nth-child(7), .ops-products-table th:nth-child(8) { width: 90px; }
.ops-products-table th:nth-child(10) { width: 160px; }
.ops-products-table th:nth-child(11), .ops-products-table th:nth-child(12) { width: 180px; }
.ops-products-table th .ops-button { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.ops-intake-submit, .ops-intake-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 19px 22px; background: #faf9fd; border: 1px solid var(--line); border-radius: 10px; }
.ops-intake-submit p, .ops-intake-footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ops-intake-submit .primary, .ops-intake-footer .primary { padding: 10px 26px; min-height: 42px; font-size: 14px; }
.ops-intake-sheet .ops-required { color: var(--purple-dark); }
@media (max-width: 1150px) and (min-width: 781px) {
  .ops-form-label, .ops-form-table th { width: 15%; }
  .ops-form-table .ops-inline, .ops-form-table .ops-input-pair, .ops-form-table .ops-inline-fields { flex-wrap: wrap; }
  .ops-form-table .ops-inline > input, .ops-form-table .ops-inline > select, .ops-form-table .ops-input-pair > *, .ops-form-table .ops-inline-fields > input, .ops-form-table .ops-inline-fields > select { flex-basis: 100%; }
}
@media (max-width: 780px) {
  .ops-intake-guide { align-items: flex-start; flex-wrap: wrap; padding: 14px 16px; }
  .ops-intake-search { gap: 10px; padding: 17px; }
  .ops-intake-search > strong { flex-basis: 100%; }
  .ops-intake-search input[type="search"] { flex: 1 0 100%; width: 100%; }
  .ops-intake-search > .ops-button { flex: 1; }
  .ops-intake-search fieldset, .ops-intake-search-types { flex-basis: 100%; }
  .ops-intake-section, .ops-intake-card { padding: 17px; margin-bottom: 18px; }
  .ops-intake-section h2 small { display: block; margin: 6px 0 0; }
  .ops-form-table, .ops-form-table tbody { display: block; }
  .ops-form-table colgroup { display: none; }
  .ops-form-table tr { display: grid; grid-template-columns: 98px minmax(0, 1fr); }
  .ops-form-table th { grid-column: 1; width: auto; min-width: 0; padding: 12px 10px; font-size: 13px; overflow-wrap: anywhere; }
  .ops-form-table td, .ops-form-table td[colspan] { grid-column: 2; min-width: 0; padding: 10px; border-right: 0; }
  .ops-form-table tr:last-child th, .ops-form-table tr:last-child td { border-bottom: 1px solid var(--line); }
  .ops-form-table tr:last-child th:nth-last-child(2), .ops-form-table tr:last-child td:last-child { border-bottom: 0; }
  .ops-form-table input:not([type="checkbox"]):not([type="radio"]), .ops-form-table select, .ops-form-table textarea { font-size: 15px; }
  .ops-form-table .ops-inline, .ops-form-table .ops-input-pair, .ops-form-table .ops-inline-fields { flex-wrap: wrap; }
  .ops-form-table .ops-inline > input, .ops-form-table .ops-inline > select, .ops-form-table .ops-input-pair > *, .ops-form-table .ops-inline-fields > input, .ops-form-table .ops-inline-fields > select { flex-basis: 100%; }
  .ops-intake-address { grid-template-columns: minmax(0, 1fr); }
  .ops-intake-products-tools .ops-inline-fields { flex-basis: 100%; }
  .ops-intake-products-tools select { flex-basis: 100%; min-width: 0; width: 100%; max-width: 100%; font-size: 15px; }
  .ops-products-table th:last-child, .ops-products-table td:last-child { position: static; box-shadow: none; }
  .ops-products-table th:first-child, .ops-products-table td:first-child { width: 140px; }
  .ops-intake-search input[type="search"], .ops-toolbar input, .ops-toolbar select, .ops-field input, .ops-field select, .ops-field textarea { font-size: 15px; }
  .ops-intake-submit, .ops-intake-footer { align-items: stretch; flex-direction: column; padding: 17px; }
}
