:root { color-scheme: light; font-family: "Microsoft YaHei", system-ui, sans-serif; color: #16262d; background: #f5f7f7; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
a { color: #11678a; text-underline-offset: 3px; overflow-wrap: anywhere; }
.frame { width: min(1240px, calc(100% - 48px)); margin: auto; }
.section-head, .tabs, .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.section-head { justify-content: space-between; }
.company-mark { display: none; }
.section { padding-block: 22px; border-bottom: 1px solid #cfdbdf; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.35; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.employee-sign-in { max-width: 440px; margin: 36px auto 0; }
.employee-sign-in-action { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 16px; border-radius: 4px; background: #135064; color: #fff; text-decoration: none; }
.employee-sign-in-action:hover { background: #103c4d; }
p { margin: 8px 0; overflow-wrap: anywhere; }
.fields, .files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fields { grid-template-columns: minmax(115px, .55fr) repeat(2, minmax(0, 1.4fr)); }
.intake-fields { grid-template-columns: minmax(110px, .55fr) minmax(260px, 1.85fr) minmax(190px, 1.2fr); align-items: end; }
.search-field { min-width: 0; }
.search-field label { margin-bottom: 5px; }
.search-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.search-field button { white-space: nowrap; }
label { display: grid; gap: 5px; min-width: 0; font-weight: 600; }
input, select, textarea, button { font: inherit; letter-spacing: 0; }
input:not([type=checkbox]), select, textarea { max-width: 100%; width: 100%; border: 1px solid #a5b9c0; border-radius: 4px; padding: 8px 10px; background: #fff; color: inherit; }
.muted, .upload span { color: #4c636a; font-weight: 400; overflow-wrap: anywhere; }
#referenceInfo { min-height: 25px; margin: 5px 0 8px; }
.bench-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 285px); gap: 22px; }
.parameters { padding-inline: 15px; border-left: 1px solid #cfdbdf; background: #edf3f5; }
.parameters dl { margin: 0 0 12px; }
.parameters dd { margin: 0 0 7px; }
.parameters fieldset { display: grid; gap: 8px; margin: 12px 0 0; padding: 9px; border: 1px solid #b4c7ce; min-width: 0; }
.parameters fieldset label { grid-template-columns: minmax(0, 1fr) 80px; align-items: center; }
.parameters fieldset label[for] { display: block; }
.report-links a { display: block; width: fit-content; white-space: nowrap; }
.parameters .fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.parameters #compare { width: 100%; }
.loci-summary { margin: 12px 0; font-weight: 600; }
#referenceProfile { border-bottom: 1px solid #cdd8dc; padding-bottom: 12px; }
.profile-matches { margin-top: 8px; }
.profile-matches ul { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-matches button { min-height: 34px; }
.loci-panel th { min-width: 85px; }
@media (max-width: 950px) {
    .intake-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.upload { border: 1px dashed #9cb1b8; padding: 10px 12px; border-radius: 5px; background: #fff; }
.upload.dragging { border-color: #166e78; background: #e2f3f2; }
.upload input[type=file] { padding: 0; border: 0; }
.panel-info { margin-block: 12px; }
summary { cursor: pointer; }
button { min-height: 38px; border: 1px solid #9eb3bb; border-radius: 4px; padding: 6px 13px; background: #fff; color: #163c49; cursor: pointer; overflow-wrap: anywhere; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:hover:not(:disabled) { background: #e8f2f4; }
button.primary { color: #fff; background: #135465; border-color: #135465; }
button.primary:hover:not(:disabled) { background: #194453; }
button.danger, .different { color: #a12531; }
.same { color: #11678a; font-weight: 600; }
.actions { margin: 12px 0 0; gap: 8px; }
.tabs { border-bottom: 1px solid #b4c5cb; margin-bottom: 12px; gap: 4px; }
.tabs button { border: 0; border-radius: 0; background: transparent; border-bottom: 3px solid transparent; }
.tabs button[aria-pressed=true] { border-bottom-color: #167585; font-weight: 700; }
.status { background: #e3ecef; color: #173a47; padding: 4px 8px; border-radius: 4px; }
.status[data-state=supported] { background: #dbeee5; color: #0e5139; }
.status[data-state=review] { background: #f5e8cb; color: #684b11; }
.table-wrap { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; background: #fff; }
th, td { border: 1px solid #d1dde0; padding: 7px 9px; vertical-align: top; overflow-wrap: anywhere; }
th { background: #e6eef0; min-width: 110px; }
tbody tr:nth-child(even) { background: #f1f6f7; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-links a, td .history-link { display: inline-block; margin-right: 9px; }
.review-notes { padding-left: 22px; }
dialog { width: min(510px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid #9fb4bc; padding: 20px; border-radius: 7px; color: inherit; }
dialog::backdrop { background: #112c39a6; }
dialog form { display: grid; gap: 9px; }
.check { display: flex; align-items: center; }
[hidden] { display: none !important; }
@media(min-width: 1440px) {
    .company-mark { display: block; position: fixed; top: 25%; writing-mode: vertical-rl; padding: 14px 8px;
        background: #e8f0f3; color: #235361; border: 1px solid #c5d5da; border-radius: 4px; }
    .company-mark.left { left: max(14px, calc(50% - 690px)); }
    .company-mark.right { right: max(14px, calc(50% - 690px)); }
}
@media(max-width: 720px) {
    .frame { width: calc(100% - 28px); }
    .fields, .files { grid-template-columns: minmax(0, 1fr); }
    .bench-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .parameters { border-left: 0; margin-top: 10px; }
    button { min-height: 44px; }
    #reference table { table-layout: fixed; }
    #reference th, #reference td { min-width: 0; padding-inline: 6px; }
    #reference th:first-child { width: 28%; }
}
