

:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1b2935; background: #f4f7f9; font-size: 13px; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Mirrors the Explorer masthead so the two applications present one family. */
header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px max(22px, calc((100vw - 1200px) / 2)); color: #fff; background: #18354e; }
header strong, .heading, .about-assistant h2, .modal h2 { font-family: Georgia, serif; }
header strong { display: block; font-size: 20px; line-height: 1.25; }
header small { color: #cbd8e5; }
.header-actions { display: flex; align-items: center; gap: 18px; }.header-history { padding: 7px 10px; border: 1px solid #cbd8e5; border-radius: 6px; color: #fff; background: transparent; font-weight: 600; }.header-history:hover { background: #ffffff1a; }.crumbs .header-history { position: absolute; top: 50%; left: calc(50% + 360px); border-color: #a9cbd7; color: #285a6d; background: #e8f3f8; transform: translateY(-50%); }.crumbs .header-history:hover { background: #d8ebf3; }

.shell { max-width: 1480px; margin: 20px auto; padding: 0 22px; }
.panel { padding: 22px; border: 1px solid #dbe3e9; border-radius: 9px; background: #fff; box-shadow: 0 3px 14px #183d4b0a; }
.muted { color: #607483; }
.heading { margin: 0 0 5px; font-size: 22px; }
.btn { padding: 8px 12px; border: 1px solid #bacbd5; border-radius: 6px; color: #193e51; background: #fff; font-weight: 600; }
.btn:hover { background: #f0f7fa; }
.btn.primary { border-color: #176b89; color: #fff; background: #176b89; }
.btn.primary:hover { background: #125570; }
.btn:disabled { opacity: .43; cursor: not-allowed; }
.btn.small { padding: 5px 8px; }
.btn.green { border-color: #86c6a0; color: #207443; }.btn.red { border-color: #e5afb2; color: #a22729; }.btn.selected.green { background: #d4efdc; }.btn.selected.red { background: #ffe2e0; }
.flex { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.between { justify-content: space-between; }
.select-card { max-width: 720px; margin: 40px auto; }
.about-assistant { max-width: 720px; margin: 20px auto 40px; }.about-assistant h2 { margin: 0 0 8px; font-size: 24px; }.about-assistant p { margin: 0; }
.version-info { margin-top: 20px !important; padding-top: 12px; border-top: 1px solid #dce5eb; color: #607483; font-size: 11px; white-space: nowrap; }.version-info strong { color: #415768; font-weight: 600; }
.field { width: 100%; padding: 10px; border: 1px solid #b7cbd6; border-radius: 6px; background: #fff; }
.searchwrap, .defsearch { position: relative; }
.searchwrap { margin: 20px 0 12px; }
.searchwrap .field { padding-right: 39px; }
.searchclear { position: absolute; z-index: 6; top: 50%; right: 8px; width: 25px; height: 25px; transform: translateY(-50%); border: 0; border-radius: 50%; color: #516e7c; background: #e9f0f4; font-size: 20px; line-height: 20px; }
.import-summary { margin-top: 14px; padding: 11px 13px; border: 1px solid #d1dfe6; border-radius: 6px; background: #f8fbfd; }
.import-summary .filename { overflow-wrap: anywhere; }
.home-actions, .toolbar, .info-row, .filter-controls, .summary, .actions { display: flex; align-items: center; flex-wrap: wrap; }
.home-actions { gap: 12px; margin-top: 17px; }
.import-summary .flex { margin-top: 8px; }
.toolbar { justify-content: space-between; gap: 12px; margin: 12px 0; }
.info-row { justify-content: space-between; gap: 14px; margin: 14px 0 9px; }
.filter-controls { justify-content: flex-end; gap: 12px; margin-left: auto; }
.summary { gap: 15px; }
.action-row { margin: 9px 0 13px; }.summary b { font-size: 15px; }
.filter-controls label, .toolbar label { color: #415768; font-weight: 600; }
.filter-controls select, .toolbar select { padding: 7px; border: 1px solid #c3d2db; border-radius: 5px; background: #fff; }
/* Multi-select status filter; the menu does not change the review table layout. */
.status-filter-field { display: flex; align-items: center; gap: 6px; color: #415768; font-weight: 600; }
.status-filter { position: relative; min-width: 155px; font-weight: 400; }
.status-filter > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 31px; padding: 7px; border: 1px solid #c3d2db; border-radius: 5px; background: #fff; color: #1b2935; cursor: pointer; list-style: none; }
.status-filter > summary::-webkit-details-marker { display: none; }
.status-filter > summary::after { content: '▾'; color: #607483; }
.status-filter[open] > summary::after { content: '▴'; }
.status-filter > summary:focus-visible { outline: 2px solid #176b89; outline-offset: 2px; }
.status-filter-menu { position: absolute; z-index: 10; top: calc(100% + 4px); right: 0; min-width: 190px; padding: 8px; border: 1px solid #c3d2db; border-radius: 6px; background: #fff; box-shadow: 0 8px 20px #0000001a; }
.status-filter-menu label { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 4px; color: #1b2935; font-weight: 400; cursor: pointer; }
.status-filter-menu label:hover { background: #e6f3f8; }
.status-filter-menu input { margin: 0; accent-color: #176b89; }
.status-filter-actions { display: flex; justify-content: space-between; padding: 2px 2px 7px; border-bottom: 1px solid #e0e8ed; margin-bottom: 4px; }
.status-filter-actions button { padding: 4px; border: 0; background: transparent; color: #176b89; font-weight: 600; }
.status-filter-actions button:hover { text-decoration: underline; }
.defresult { position: relative; max-height: 170px; overflow: auto; margin-top: 4px; border: 1px solid #b7cbd6; border-radius: 5px; }
.defitem, .suggestion { padding: 9px 12px; cursor: pointer; }
.defitem:hover, .defitem.active, .suggestion:hover, .suggestion.active { background: #e6f3f8; }
.suggestions { position: absolute; z-index: 5; width: 100%; max-height: 260px; overflow: auto; border: 1px solid #b7cbd6; border-radius: 6px; background: #fff; box-shadow: 0 8px 16px #00000012; }
.hint, .caption { margin-top: 8px; color: #697b88; font-size: 12px; }
.gridwrap { max-height: 68vh; overflow: auto; border: 1px solid #d1dce3; border-radius: 6px; }
.history-group { margin: 12px 0; border: 1px solid #d1dce3; border-radius: 6px; background: #fff; }.history-group summary { padding: 10px 12px; color: #244a60; background: #ecf3f6; cursor: pointer; font-weight: 600; }.history-group summary .muted { margin-left: 8px; font-weight: 400; }.history-section { margin-top: 24px; }.history-section h2 { font-family: Georgia, serif; font-size: 20px; }
table { width: 100%; min-width: 1020px; border-collapse: collapse; }
thead { position: sticky; z-index: 2; top: 0; }
th { padding: 7px 9px; border-right: 1px solid #cedde5; border-bottom: 1px solid #b6c8d3; color: #264453; background: #e6eef2; font-size: 12px; text-align: left; white-space: nowrap; }
th.super { color: #264453; background: #dae8ee; text-align: center; font-weight: 700; }
td { padding: 4px 8px; border-bottom: 1px solid #e0e8ed; vertical-align: middle; white-space: nowrap; }
.birders { line-height: 1.45; white-space: normal; }
.history-changed { color: #1f6d92; font-weight: 600; }
tr.record:hover td { background: #f5fafc; }
tr.group td { padding: 8px 10px; border-top: 1px solid #c7d7e1; color: #244a60; background: #ecf3f6; font-weight: 700; }
tr.record td:first-child { padding-left: 19px; }
.val { width: 100%; min-width: 62px; max-width: 105px; padding: 5px 6px; border: 1px solid transparent; border-bottom-color: #b8d1d7; border-radius: 3px; background: #f8fbfc; }
.val:hover, .val:focus { border-color: #64a4bc; background: #fff; outline: none; }
.val.date { min-width: 117px; max-width: 138px; }
.val.wide { min-width: 115px; max-width: 190px; }
.val.site-name { width: 310px; min-width: 180px; max-width: 310px; text-overflow: ellipsis; }
.site-suffix { margin-left: 5px; color: #607483; font-size: 12px; }
.changed { border-bottom-color: #e1c779; background: #fff2c7 !important; }
.approved { background: #e1f3e6 !important; }
.rejected { background: #ffe5e3 !important; }
.status { font-size: 12px; font-weight: 600; }
.status.Pending { color: #a36d10; }.status.Approved { color: #237748; }.status.Rejected { color: #bd383e; }
.type { color: #647e8c; font-size: 11px; font-weight: 600; }
.resolve { padding: 3px 6px; border: 1px solid #e9b2a4; border-radius: 5px; color: #a6432a; background: #fff0ec; }
.actions { gap: 4px; }.actions button { padding: 4px 8px; border: 1px solid #c8d5db; border-radius: 4px; background: #fff; }.actions.inactive-actions { visibility: hidden; }.actions .ok { color: #237748; }.actions .no { color: #b12d32; }.actions .on.ok { border-color: #62ad7b; background: #d9efdf; }.actions .on.no { border-color: #d47b79; background: #ffe2e0; }
.foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid #dce5eb; }
.notice { margin: 12px 0; padding: 10px; border: 1px solid #a9cbd7; border-radius: 6px; color: #285a6d; background: #f0f8fb; }
.drop { margin: 14px 0; padding: 22px; border: 2px dashed #99b9c8; border-radius: 8px; background: #f4f9fb; text-align: center; }
.modalbg { position: fixed; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0c2231a8; }.modal { width: min(650px, 100%); max-height: 90vh; overflow: auto; padding: 22px; border-radius: 10px; background: #fff; box-shadow: 0 12px 35px #0003; }.modal h2 { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }.fields label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; }.fields input, .fields select, .fields textarea { width: 100%; padding: 8px; border: 1px solid #c4d1d7; border-radius: 5px; }.span2 { grid-column: 1 / -1; }textarea { min-height: 110px; }
.crumbs { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; max-width: 1480px; margin: 0 auto 12px; padding: 10px 22px; }
.crumb { padding: 2px 4px; border: 0; color: #286d98; background: none; }.crumb[aria-current="page"] { color: #223e50; cursor: default; }.crumb:disabled { opacity: .43; cursor: default; }
.hide { display: none !important; }.data-load-error { margin-bottom: 18px; padding: 14px; border: 1px solid #d66; color: #9d1b1b; background: #fff0f0; }
@media (max-width:650px) { header { padding: 14px 18px; }.shell { margin: 9px auto; padding: 0 9px; }.panel { padding: 13px; }.fields { grid-template-columns: 1fr; }.span2 { grid-column: auto; } }
@media (max-width:800px) { .crumbs .header-history { position: static; margin-left: auto; transform: none; } }
