:root {
  --navy: #162b40;
  --navy2: #213c55;
  --ink: #243344;
  --muted: #73808b;
  --line: #e3e8e7;
  --bg: #f5f7f6;
  --green: #26785f;
  --green-bg: #eaf4ee;
  --amber: #a57422;
  --amber-bg: #faf2e1;
  --red: #a45a55;
  --red-bg: #faeeeb;
  --shadow: 0 5px 22px #162b4007;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
}
button,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #78b9a0;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 208px;
  flex: 0 0 208px;
  background: var(--navy);
  color: #dae3ec;
  padding: 31px 18px 21px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px;
}
.brandmark {
  width: 32px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #e2eee7;
  color: #234d41;
  border-radius: 4px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brandname {
  font-weight: 750;
  letter-spacing: 0.12em;
  font-size: 17px;
  color: white;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #a4b4c4;
  margin-top: 1px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #8a9eaf;
  margin: 45px 13px 12px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  color: #adbfce;
  background: transparent;
  border-radius: 7px;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.nav button.active {
  color: white;
  background: #2a4358;
}
.nav button:hover {
  background: #243d52;
}
.nav .count {
  margin-left: auto;
  background: #3b5266;
  color: #dae6ed;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 11px;
}
.side-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.side-note {
  padding: 14px 12px;
  border: 1px solid #3d5263;
  border-radius: 8px;
  color: #afbecb;
  font-size: 11px;
}
.side-note b {
  display: block;
  color: #e7edea;
  font-weight: 500;
  margin-bottom: 4px;
}
.reset {
  font-size: 11px;
  background: transparent;
  color: #a9bbc9;
  padding: 14px 10px 0;
  text-align: left;
}
.reset:hover {
  color: white;
}
.workspace {
  margin-left: 208px;
  width: calc(100% - 208px);
  padding: 30px 38px 38px;
  max-width: 1800px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}
.breadcrumb .sep {
  color: #b3bfc5;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
}
.eyebrow {
  font-size: 10px;
  color: var(--green);
  font-weight: 650;
  letter-spacing: 0.13em;
  margin: 0 0 4px;
}
h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.subhead {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.select,
input[type="search"],
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
}
.select {
  font-size: 12px;
  min-height: 37px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: white;
  border: 1px solid #d8e1de;
  padding: 9px 12px;
  border-radius: 6px;
  color: #43584d;
  font-weight: 550;
  font-size: 12px;
  white-space: nowrap;
}
.button:hover {
  background: #edf3ef;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.primary:hover {
  background: #1f644f;
}
.button.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.sample-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: #5c6b64;
  background: #ebf0ec;
  border: 1px solid #dce5dd;
  border-radius: 6px;
  padding: 10px 13px;
  margin-bottom: 23px;
}
.sample-banner .tag {
  flex-shrink: 0;
  font-size: 10px;
  background: white;
  border: 1px solid #d4dfd6;
  padding: 0 5px;
  border-radius: 3px;
  color: #4e6955;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 21px 16px;
  box-shadow: var(--shadow);
}
.metric.primary-metric {
  border-top: 3px solid var(--green);
  padding-top: 17px;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #56646f;
}
.metric-label .pill {
  font-size: 9px;
  background: var(--green-bg);
  color: var(--green);
  padding: 1px 5px;
  border-radius: 3px;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 5px 0 6px;
  font-variant-numeric: tabular-nums;
}
.metric-value strong {
  font-size: 34px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.metric-value span {
  font-size: 11px;
  color: var(--muted);
}
.metric-foot {
  font-size: 10px;
  color: var(--muted);
}
.metric-value .review-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--amber);
}
.kpi-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 13px 3px 15px;
  color: #7a858c;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.kpi-strip b {
  font-size: 14px;
  color: #475661;
  margin: 0 4px;
  font-weight: 600;
}
.kpi-strip .caption {
  margin-right: auto;
  font-size: 10px;
}
.service-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 23px 0 19px;
}
.service-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.service-tabs button {
  background: transparent;
  border-bottom: 2px solid transparent;
  padding: 9px 15px 11px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.service-tabs button.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 650;
}
.service-tabs button:hover {
  color: var(--green);
}
.rules-button {
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  white-space: nowrap;
}
.filters {
  display: flex;
  gap: 9px;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search .icon {
  position: absolute;
  left: 11px;
  top: 10px;
  color: #8c9b9c;
  width: 16px;
}
.search input {
  width: 100%;
  padding-left: 36px;
  height: 37px;
  font-size: 12px;
}
.filters .star-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.filters .star-filter.active {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: #e7d4aa;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
  font-size: 11px;
  color: var(--muted);
}
.list-heading b {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.list-heading .dot {
  margin: 0 7px;
  color: #bac3c4;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.property-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px 18px 15px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.property-card:hover {
  border-color: #b7ccc0;
  box-shadow: 0 7px 18px #162b400b;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: #8a989f;
  letter-spacing: 0.02em;
}
.star {
  background: transparent;
  color: #a6b1b5;
  padding: 3px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.star.on {
  color: #b88426;
}
.star.on .icon {
  fill: #f8edce;
}
.card-title {
  margin: 8px 0 2px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.025em;
}
.card-title small {
  font-weight: 500;
  font-size: 12px;
  margin-left: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.location {
  font-size: 11px;
  color: #78858f;
}
.card-values {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0 12px;
  border-bottom: 1px solid #eef1ef;
}
.card-values div {
  font-size: 19px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.card-values small {
  font-size: 10px;
  color: #7c878d;
  margin-left: 3px;
  font-weight: 400;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 10px;
  font-size: 10px;
  color: #89949c;
}
.stage {
  border: 1px solid #dce4e6;
  color: #72808b;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 9px;
  background: #fafcfc;
}
.stage.progress {
  background: #eaf0f8;
  color: #5b759a;
  border-color: #dce5f2;
}
.judgment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  min-height: 25px;
}
.judgment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e1e9e4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  color: #697a6e;
  white-space: nowrap;
}
.judgment .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.judgment.candidate,
.badge.candidate {
  color: var(--green);
  background: var(--green-bg);
  border-color: #d9e8dc;
}
.judgment.review,
.badge.review {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: #eddfbf;
}
.judgment.rejected,
.badge.rejected {
  color: var(--red);
  background: var(--red-bg);
  border-color: #f0dcd5;
}
.card-note {
  font-size: 10px;
  color: #8b969c;
  margin: 0 0 12px;
  min-height: 32px;
  line-height: 1.6;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #eef1ef;
  padding-top: 11px;
}
.card-footer span {
  font-size: 10px;
  color: #829087;
}
.detail-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  padding: 1px 0;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.detail-button .icon {
  width: 14px;
}
.footer-note {
  font-size: 10px;
  color: #8c979e;
  margin-top: 21px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
  padding: 23px;
  margin-bottom: 16px;
}
.panel h2 {
  font-size: 15px;
  margin: 0 0 6px;
  font-weight: 650;
}
.panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  background: #f7f9f7;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px;
  border-bottom: 1px solid #edf1ed;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 30px;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  font-size: 11px;
}
.bar-track {
  height: 9px;
  border-radius: 3px;
  background: #edf1ee;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #729b88;
  border-radius: 3px;
}
.bar-fill.amber {
  background: #c5a364;
}
.small-note {
  font-size: 10px !important;
  color: #8b969c !important;
  margin: 13px 0 0 !important;
  white-space: normal;
}
.flow {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
}
.flow .step {
  flex: 1;
  min-width: 0;
  background: #f5f8f5;
  border: 1px solid #e6eee7;
  padding: 14px;
  border-radius: 6px;
  font-size: 11px;
  color: #6c7e72;
}
.flow .step strong {
  font-size: 25px;
  display: block;
  color: #425d4e;
}
.flow .arrow {
  color: #9aaba0;
}
.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.reason-list .reason {
  padding: 7px 11px;
  border-radius: 5px;
  background: #f4f6f3;
  font-size: 11px;
  color: #69796c;
}
.reason-list strong {
  margin-left: 12px;
  color: #344e3d;
}
.ng-list {
  display: grid;
  gap: 0;
}
.ng-row {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.7fr 1.4fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf1ed;
  font-size: 11px;
}
.ng-row:last-child {
  border-bottom: 0;
}
.ng-name {
  font-size: 12px;
  font-weight: 600;
}
.ng-note {
  color: var(--muted);
  font-size: 11px;
  white-space: normal;
}
.history-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.history-item:last-child {
  border: 0;
}
.history-item small {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 55px 20px;
  background: white;
  border: 1px dashed #ccd8cf;
  border-radius: 8px;
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}
.empty b {
  display: block;
  color: #596b5d;
  font-size: 16px;
  margin-bottom: 6px;
}
.empty button {
  margin-top: 15px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 0;
  font-size: inherit;
}
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.status-line span {
  color: var(--muted);
  font-size: 11px;
}
dialog {
  padding: 0;
  border: 1px solid #dce5df;
  border-radius: 12px;
  max-height: 88vh;
  width: min(900px, calc(100% - 32px));
  box-shadow: 0 20px 70px #172d4040;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #132b3b66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 21px;
  margin: 0;
}
.dialog-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.close-button {
  background: #f2f5f2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #77877a;
  flex-shrink: 0;
}
.dialog-body {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 25px;
  padding: 24px 26px;
}
.detail-overview {
  min-width: 0;
}
.detail-art {
  background: #f0f4ef;
  border: 1px solid #e3eae2;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px;
  margin-bottom: 17px;
  color: #94aa96;
}
.detail-art svg {
  height: 70px;
  width: 100px;
}
.detail-art span {
  font-size: 10px;
  color: #849483;
  max-width: 115px;
}
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 12px;
  margin: 15px 0;
}
.facts-grid dt {
  font-size: 10px;
  color: var(--muted);
}
.facts-grid dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 550;
}
.detail-section-title {
  font-size: 12px;
  margin: 22px 0 9px;
}
.detail-source {
  font-size: 11px;
  background: #f6f8f6;
  border-radius: 5px;
  padding: 9px 12px;
  margin: 5px 0;
  color: #728276;
}
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  margin-bottom: 17px;
}
.form-panel h3 {
  font-size: 13px;
  margin: 0 0 16px;
}
.field {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
}
.field label {
  font-size: 11px;
  color: #6d7d72;
}
.field .select,
.field textarea {
  width: 100%;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field small {
  font-size: 10px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.form-error {
  color: var(--red);
  font-size: 11px;
  margin: 10px 0;
  min-height: 0;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-footer small {
  font-size: 9px;
  color: var(--muted);
}
.detail-timeline {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 12px;
}
.rules-content {
  padding: 24px 26px;
}
.rules-content ul {
  padding-left: 20px;
  font-size: 12px;
  color: #65756a;
  line-height: 2.1;
}
.rules-content h3 {
  font-size: 14px;
  margin: 22px 0 6px;
}
.rules-content .pending-box {
  border: 1px solid #e8dfc7;
  border-radius: 6px;
  background: #fcf8ed;
  padding: 13px 15px;
  font-size: 12px;
  color: #92773e;
}
.rules-content .small-note {
  margin-top: 15px !important;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 100px);
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  box-shadow: 0 7px 26px #152a4030;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: calc(100% - 30px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 1600px) {
  .workspace {
    padding-left: 48px;
    padding-right: 48px;
  }
  .property-grid {
    gap: 20px;
  }
  .property-card {
    padding: 20px 23px;
  }
}
@media (max-width: 1250px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    padding: 27px 27px 32px;
  }
  .sidebar {
    width: 190px;
    flex-basis: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .metric {
    padding-left: 17px;
    padding-right: 17px;
  }
  .metric-value strong {
    font-size: 30px;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .service-tabs button {
    padding-left: 10px;
    padding-right: 10px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .ng-row {
    grid-template-columns: 1fr 0.7fr 0.7fr auto;
  }
  .ng-row .ng-note {
    grid-column: 1/4;
    grid-row: 2;
  }
  .ng-row .detail-button {
    grid-column: 4;
    grid-row: 1/3;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 18px;
    display: block;
  }
  .brand {
    padding: 0;
  }
  .brandmark {
    width: 27px;
    height: 29px;
    font-size: 19px;
  }
  .brandname {
    font-size: 15px;
  }
  .brand small {
    font-size: 8px;
  }
  .nav-caption,
  .side-bottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 4px;
    margin-top: 15px;
    overflow: auto;
  }
  .nav button {
    font-size: 10px;
    padding: 8px;
    gap: 5px;
  }
  .nav .icon {
    width: 15px;
  }
  .nav .count {
    display: none;
  }
  .workspace {
    width: 100%;
    margin: 0;
    padding: 22px 18px;
  }
  .breadcrumb {
    display: none;
  }
  .page-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 21px;
  }
  .subhead {
    font-size: 10px;
    max-width: 225px;
  }
  .header-actions .button {
    display: none;
  }
  .select {
    font-size: 11px;
  }
  .sample-banner {
    margin-bottom: 17px;
    font-size: 10px;
  }
  .metrics {
    gap: 7px;
  }
  .metric {
    padding: 12px 10px;
    border-radius: 7px;
  }
  .metric.primary-metric {
    padding-top: 10px;
  }
  .metric-label {
    font-size: 10px;
    gap: 4px;
  }
  .metric-label .pill {
    display: none;
  }
  .metric-value strong {
    font-size: 27px;
  }
  .metric-value {
    gap: 3px;
    flex-wrap: wrap;
    margin-bottom: 3px;
  }
  .metric-value .review-count {
    font-size: 9px;
    margin-left: 0;
    width: 100%;
  }
  .metric-foot {
    font-size: 9px;
    line-height: 1.5;
  }
  .kpi-strip {
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 11px;
    font-size: 10px;
  }
  .kpi-strip .caption {
    width: 100%;
    margin: 0;
  }
  .kpi-strip b {
    font-size: 12px;
  }
  .service-toolbar {
    margin: 17px 0 15px;
    display: block;
  }
  .service-tabs {
    justify-content: space-between;
  }
  .service-tabs button {
    font-size: 11px;
    padding: 9px 8px;
  }
  .rules-button {
    margin-left: auto;
    font-size: 10px;
    padding-top: 10px;
    padding-bottom: 0;
  }
  .filters {
    gap: 7px;
  }
  .search {
    flex-basis: 100%;
  }
  .filters .select {
    flex: 1;
    min-width: 0;
  }
  .filters .star-filter {
    font-size: 10px;
  }
  .property-grid {
    gap: 10px;
  }
  .property-card {
    padding: 12px;
  }
  .card-title {
    font-size: 13px;
  }
  .card-title small {
    font-size: 10px;
  }
  .location {
    font-size: 10px;
  }
  .card-values {
    display: block;
    padding: 9px 0;
  }
  .card-values div {
    font-size: 18px;
  }
  .card-meta {
    font-size: 9px;
    margin: 9px 0;
  }
  .judgment-tags {
    gap: 4px;
    margin-bottom: 8px;
  }
  .judgment {
    font-size: 8px;
    padding: 1px 4px;
  }
  .card-note {
    display: none;
  }
  .card-footer {
    padding-top: 8px;
  }
  .card-footer span {
    font-size: 9px;
  }
  .detail-button {
    font-size: 10px;
  }
  .card-top {
    font-size: 8px;
  }
  .list-heading {
    font-size: 10px;
  }
  .panel {
    padding: 18px 15px;
  }
  .flow {
    gap: 5px;
  }
  .flow .step {
    padding: 10px;
    font-size: 10px;
  }
  .flow .step strong {
    font-size: 21px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  .dialog-body {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 8px;
  }
  .detail-art {
    display: none;
  }
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .detail-overview .detail-section-title {
    margin-top: 13px;
  }
  .rules-content {
    padding: 18px;
  }
  .ng-row {
    gap: 8px;
    font-size: 10px;
  }
  .ng-name {
    font-size: 11px;
  }
  #toast {
    left: 50%;
    width: max-content;
    max-width: 90%;
    font-size: 11px;
  }
  .header-actions .select {
    max-width: 112px;
  }
  .footer-note {
    line-height: 1.7;
  }
}
@media (max-width: 390px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
  .card-values {
    display: flex;
  }
  .metrics {
    gap: 5px;
  }
  .metric-label {
    font-size: 9px;
  }
  .workspace {
    padding: 18px 13px;
  }
  .nav button {
    font-size: 9px;
  }
  .nav button .icon {
    display: none;
  }
  .card-title {
    font-size: 15px;
  }
}

/* Persistent local application. All assets are served on the same origin. */
.loading,
.startup-error {
  padding: 60px;
  color: var(--muted);
}
.property-card {
  padding: 0 18px 15px;
  overflow: hidden;
}
.card-photo,
.no-photo {
  height: 144px;
  width: calc(100% + 36px);
  margin: 0 -18px 12px;
  object-fit: cover;
  background: #e8eeea;
}
.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #94a69b;
  font-size: 11px;
  background: linear-gradient(130deg, #eaf0eb, #f2f5f1);
}
.no-photo .icon {
  width: 25px;
  height: 25px;
}
.location {
  min-height: 34px;
  overflow-wrap: anywhere;
}
.card-title {
  min-height: 45px;
  font-size: 14px;
}
.card-values {
  gap: 12px;
  padding: 10px 0;
}
.card-values div {
  font-size: 18px;
  white-space: normal;
}
.card-values small {
  white-space: nowrap;
}
.card-footer {
  flex-wrap: wrap;
}
.card-footer span {
  font-size: 9px;
}
.card-meta {
  flex-wrap: wrap;
  gap: 5px;
}
.card-note {
  overflow-wrap: anywhere;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 23px 0;
  color: var(--muted);
  font-size: 11px;
}
.pagination span {
  margin-right: auto;
}
.numeric-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 10px;
  color: var(--muted);
}
.numeric-filters label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.numeric-filters input {
  width: 90px;
  padding: 5px 7px;
  font-size: 11px;
}
.field input,
form textarea,
form input[type="number"],
.numeric-filters input {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.field input {
  padding: 9px 10px;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
.field {
  font-size: 11px;
  color: #66766d;
}
.check-field {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.detail-photo {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #f2f5f2;
  border-radius: 7px;
}
.detail-notes {
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #627369;
}
.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.detail-source {
  display: block;
  overflow-wrap: anywhere;
  text-align: left;
}
.detail-source small {
  display: block;
}
.detail-overview .table-wrap {
  max-height: 340px;
}
.detail-overview table {
  font-size: 10px;
}
.detail-overview th,
.detail-overview td {
  padding: 8px;
}
.facts-grid {
  gap: 14px 10px;
}
.facts-grid dd {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.form-panel textarea,
#register-form textarea {
  width: 100%;
  font-size: 12px;
  margin-bottom: 10px;
}
.form-panel {
  padding: 16px;
}
.form-panel h3 {
  margin-bottom: 12px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-columns input {
  min-width: 0;
}
dialog {
  width: min(1060px, calc(100% - 32px));
}
.dialog-body {
  grid-template-columns: 1fr 1.1fr;
}
details {
  margin: 18px 0;
  color: #63756a;
  font-size: 12px;
}
summary {
  cursor: pointer;
  line-height: 1.8;
  color: var(--green);
  font-size: 12px;
}
details[open] > summary {
  margin-bottom: 12px;
}
.comment {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.comment small {
  font-size: 9px;
  color: var(--muted);
}
.comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0;
}
.comments {
  margin-bottom: 14px;
  max-height: 340px;
  overflow: auto;
}
.comment .text-button {
  font-size: 10px;
}
#comment-form textarea {
  min-height: 65px;
}
.history-item {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.history-item b {
  font-weight: 600;
}
.search-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 9px;
  margin: 5px 0;
  border-radius: 4px;
  font-size: 11px;
}
.search-choice small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.search-choice input {
  margin-top: 4px;
}
.upload-note {
  background: #f1f5ef;
  border: 1px solid #dfe7dc;
  border-radius: 7px;
  padding: 14px 16px;
  font-size: 12px;
  color: #67785f;
  margin: 16px 0;
  line-height: 1.8;
}
.intake-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
  align-items: center;
}
.intake-tabs .text-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}
.intake-tabs .icon {
  width: 14px;
}
.table-note {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
}
.receipt-empty {
  padding: 30px !important;
  color: var(--muted);
  font-size: 12px;
}
.receipt-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.hash {
  font-size: 9px;
  margin-top: 6px;
  color: var(--muted);
}
.linked-property {
  margin: 3px;
}
.refresh-intake {
  margin-top: 14px;
}
.extracted-text pre {
  background: #f5f7f4;
  padding: 14px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.extracted-text h4 {
  font-size: 12px;
}
.catalog-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.catalog-card .card-title {
  min-height: 0;
}
.catalog-card .location {
  min-height: 34px;
}
.rules-content input[type="number"] {
  width: 100px;
  padding: 8px;
}
.bar-row meter {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 3px;
  background: #edf1ee;
}
.bar-row meter::-webkit-meter-bar {
  border: 0;
  background: #edf1ee;
}
.bar-row meter::-webkit-meter-optimum-value {
  background: #729b88;
  border-radius: 3px;
}
.ng-row {
  grid-template-columns: 1.1fr 0.7fr 0.7fr 1.4fr auto;
}
.empty {
  line-height: 1.9;
}
.receipt-status .badge {
  font-size: 11px;
}
@media (max-width: 1250px) {
  .ng-row {
    grid-template-columns: 1fr 0.7fr 0.7fr auto;
  }
  .ng-row .ng-note {
    grid-column: 1/4;
  }
  .property-card {
    padding: 0 16px 14px;
  }
  .card-photo,
  .no-photo {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }
}
@media (max-width: 760px) {
  .property-card {
    padding: 0 12px 12px;
  }
  .card-photo,
  .no-photo {
    height: 115px;
    width: calc(100% + 24px);
    margin: 0 -12px 9px;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    font-size: 9px;
    padding: 8px 7px;
  }
  .nav .icon {
    width: 13px;
  }
  .page-header {
    flex-wrap: wrap;
  }
  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .header-actions .button {
    display: flex;
    padding: 7px 10px;
    font-size: 11px;
  }
  .header-actions .select {
    max-width: 140px;
  }
  .card-title {
    min-height: 41px;
    font-size: 13px;
  }
  .metric-value .review-count {
    margin-top: 0;
  }
  .metric-foot {
    font-size: 8px;
  }
  .metric-value strong {
    font-size: 26px;
  }
  .card-values {
    display: block;
    padding: 8px 0;
    min-height: 68px;
  }
  .card-values div {
    font-size: 16px;
  }
  .card-values small {
    font-size: 9px;
  }
  .card-meta {
    font-size: 8px;
  }
  .card-footer .detail-button {
    margin-left: auto;
  }
  .location {
    font-size: 10px;
    min-height: 32px;
  }
  .judgment-tags {
    min-height: 45px;
  }
  .numeric-filters {
    gap: 8px;
    font-size: 9px;
  }
  .numeric-filters input {
    width: 67px;
  }
  .numeric-filters > span {
    width: 100%;
  }
  .dialog-body {
    grid-template-columns: 1fr;
  }
  .dialog-head h2 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  .detail-photo {
    max-height: 220px;
  }
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-actions {
    flex-wrap: wrap;
  }
  .form-columns {
    grid-template-columns: 1fr 1fr;
  }
  .receipt-status .badge {
    font-size: 9px;
  }
  .receipt-empty {
    font-size: 11px;
  }
  .upload-note {
    font-size: 11px;
  }
  .insight-grid {
    display: block;
  }
  .table-note {
    white-space: normal;
    min-width: 190px;
  }
  .sample-banner {
    font-size: 9px;
  }
  .nav-caption {
    display: none;
  }
  .ng-row {
    grid-template-columns: 1fr 0.7fr 0.7fr auto;
  }
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.goal-grid small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.goal-grid strong {
  display: block;
  font-size: 26px;
  margin-top: 5px;
}
.goal-grid strong span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.goal-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .goal-inputs {
    grid-template-columns: 1fr 1fr;
  }
  .goal-grid strong {
    font-size: 23px;
  }
}

@media (max-width: 760px) {
  .filters > .select {
    flex: 1 1 calc(50% - 9px);
    width: calc(50% - 9px);
  }
  .filters > .star-filter {
    flex: 1 1 100%;
    justify-content: center;
  }
}
/* Automatic routing and decision knowledge */
.photo-frame {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: #edf1ef;
}
.photo-frame .card-photo {
  position: relative;
  height: 120px;
  width: 100%;
  object-fit: contain;
  display: block;
}
.photo-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  opacity: 0.25;
  transform: scale(1.12);
}
.no-photo {
  height: 120px;
}
.stage-button {
  cursor: pointer;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line);
}
.stage-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 20px;
}
.chip.active {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green);
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
}
.card-flags {
  display: flex;
  gap: 6px;
  margin: 0 18px 10px;
  flex-wrap: wrap;
}
.card-flags span {
  font-size: 11px;
  padding: 2px 7px;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 4px;
}
.card-footer {
  flex-wrap: wrap;
  gap: 9px;
}
.card-footer .detail-button {
  margin-left: auto;
}
.theme-button {
  background: #ffffff0d;
  color: #d7e9e0;
  width: 100%;
  margin-bottom: 15px;
  font-size: 12px;
}
.sample-banner > span:nth-child(2) {
  flex: 1;
}
.sample-banner small {
  font-size: 11px;
}
.period-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 20px;
}
.period-form label {
  font-size: 12px;
  display: grid;
  gap: 4px;
}
.period-form input {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 5px;
  color: var(--ink);
}
.routing-panel {
  padding: 24px 28px;
  background: var(--green-bg);
  border-bottom: 1px solid var(--line);
}
.routing-panel h3 {
  font-size: 16px;
  margin: 0;
}
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 15px 0;
}
.fit-card {
  padding: 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}
.fit-card p {
  margin: 7px 0;
}
.fit-card .status-line {
  align-items: start;
  flex-wrap: wrap;
  gap: 6px;
}
.fit-card summary {
  font-size: 12px;
  padding: 8px 0;
}
.fit-card ul {
  padding-left: 18px;
}
.case-evidence {
  border-top: 1px solid var(--line);
  padding: 9px 0;
}
.case-evidence small {
  display: block;
  color: var(--muted);
}
.detail-top-actions {
  padding: 16px 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.fact-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
  font-size: 12px;
}
.fact-field select {
  width: 130px;
}
.unit-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
}
.unit-edit .field {
  margin: 0;
}
.service-checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
  padding: 12px;
  font-size: 12px;
}
.service-checks legend {
  color: var(--muted);
}
.service-checks label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 0;
}
.ratio-grid > div {
  border: 1px solid var(--line);
  padding: 16px 22px;
  border-radius: 10px;
  background: var(--surface, #fff);
}
.ratio-grid strong {
  display: block;
  font-size: 26px;
  color: var(--green);
}
.ratio-grid small {
  color: var(--muted);
}
.chart-scroll {
  overflow-x: auto;
  margin: 18px 0;
  max-width: 100%;
}
.kdi-chart {
  display: block;
}
.kdi-chart text {
  fill: var(--muted);
  font-size: 11px;
  font-family: inherit;
}
.kdi-chart line {
  stroke: var(--line);
}
.series-received {
  fill: #b5c4d3;
  background: #b5c4d3;
}
.series-acquired {
  fill: #26785f;
  background: #26785f;
}
.series-viewing {
  fill: #69a8a0;
  background: #69a8a0;
}
.series-apply {
  fill: #d4a959;
  background: #d4a959;
}
.series-contract {
  fill: #8068a2;
  background: #8068a2;
}
.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}
.chart-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.activity-counts {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  margin: 25px 0;
}
.activity-counts strong {
  display: block;
  font-size: 24px;
}
.activity-counts small {
  color: var(--muted);
}
.knowledge-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.knowledge-summary span {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 13px;
}
.knowledge-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.knowledge-item .badge {
  margin-left: 12px;
}
.knowledge-item p {
  white-space: pre-wrap;
  margin: 8px 0;
  font-size: 13px;
}
.knowledge-item small {
  color: var(--muted);
}
.knowledge-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 15px;
}
.knowledge-item .status-line {
  gap: 10px;
}
.knowledge-item .status-line > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
#copy-dialog,
#stage-dialog,
#case-dialog {
  max-width: 720px;
}
#copy-text {
  min-height: 360px;
  line-height: 1.8;
  resize: vertical;
}
.table-wrap {
  max-width: 100%;
}
.detail-timeline {
  flex-wrap: wrap;
}
.status-line {
  gap: 12px;
}
.form-panel textarea {
  min-height: 90px;
}
.property-card {
  min-width: 0;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e0e9e7;
  --muted: #a4b5b0;
  --line: #354943;
  --bg: #15231f;
  --surface: #1e3029;
  --green: #8fd0b0;
  --green-bg: #243e32;
  --amber: #dec38d;
  --amber-bg: #473c23;
  --red: #e7aca4;
  --red-bg: #482e2b;
  --shadow: 0 5px 22px #0002;
}
.property-card,
.panel,
.metric,
.goal-grid > div {
  background: var(--surface, #fff);
}
:root[data-theme="dark"] .workspace,
:root[data-theme="dark"] dialog {
  background: var(--bg);
  color: var(--ink);
}
:root[data-theme="dark"] .select,
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .button:not(.primary),
:root[data-theme="dark"] .search {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .dialog-head,
:root[data-theme="dark"] .form-panel,
:root[data-theme="dark"] .rules-content,
:root[data-theme="dark"] .facts-grid,
:root[data-theme="dark"] .goal-grid,
:root[data-theme="dark"] .numeric-filters,
:root[data-theme="dark"] .extracted-text pre,
:root[data-theme="dark"] table th {
  background: var(--surface);
  color: var(--ink);
}
:root[data-theme="dark"] .sample-banner,
:root[data-theme="dark"] .upload-note {
  background: var(--green-bg);
  color: var(--ink);
}
:root[data-theme="dark"] .primary {
  background: #287b5b;
  color: white;
}
:root[data-theme="dark"] .service-tabs button.active {
  background: var(--green-bg);
  color: var(--green);
}
:root[data-theme="dark"] .service-tabs button,
:root[data-theme="dark"] .text-button,
:root[data-theme="dark"] .detail-button {
  color: var(--green);
}
@media (max-width: 850px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
  .ratio-grid {
    gap: 9px;
  }
  .ratio-grid > div {
    padding: 12px;
  }
  .ratio-grid strong {
    font-size: 22px;
  }
  .routing-panel {
    padding: 20px;
  }
  .sort-label {
    margin-left: 0;
  }
  .knowledge-footer {
    align-items: start;
    flex-direction: column;
  }
  .stage-shortcuts {
    gap: 6px;
  }
  .chip {
    padding: 6px 10px;
  }
  .header-actions {
    flex-wrap: wrap;
  }
  .card-footer {
    font-size: 11px;
  }
  .detail-top-actions {
    padding: 14px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Document work queue and selected-property activity entry. */
.selection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  background: var(--green-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.selection-bar .check-field {
  margin: 0;
}
.selection-bar small {
  flex-basis: 100%;
  color: var(--muted);
}
.card-select {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.card-select input,
.selection-bar input {
  accent-color: var(--green);
}
.card-top {
  flex-wrap: wrap;
}
.bulk-targets {
  max-height: 210px;
  overflow: auto;
  padding-left: 23px;
}
.bulk-targets li {
  margin-bottom: 9px;
}
.bulk-targets small {
  display: block;
  color: var(--muted);
}
.receipt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 15px;
}
.receipt-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--bg);
}
.receipt-counter strong {
  font-size: 18px;
}
.receipt-counter.active {
  border-color: var(--green);
  background: var(--green-bg);
  color: var(--green);
}
.receipt-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
}
.receipt-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}
.extraction-results {
  margin: 24px 0;
}
.extraction-results article {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 14px;
}
.extraction-results h4 {
  margin: 0 0 5px;
}
.extraction-results article > p {
  color: var(--muted);
  margin-top: 0;
}
.extraction-checks {
  padding: 12px 12px 12px 30px;
  background: var(--amber-bg);
  border-radius: 6px;
}
.receipt-review {
  margin: 20px 0;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.receipt-review form {
  margin-top: 12px;
}
.receipt-review-done {
  background: var(--green-bg);
  padding: 14px;
  border-radius: 8px;
  margin: 20px 0;
}
.receipt-review-done p {
  white-space: pre-wrap;
}
@media (max-width: 600px) {
  .selection-bar {
    padding: 12px;
    gap: 10px;
  }
  .selection-bar .primary {
    width: 100%;
  }
  .receipt-counter {
    padding: 8px 10px;
    gap: 8px;
  }
  .receipt-filters {
    gap: 7px;
  }
  .receipt-counter strong {
    font-size: 16px;
  }
}

/* Local rebuild: terms and a finite daily review queue. */
.queue-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:22px 0 10px; }
.queue-tab { display:flex; justify-content:space-between; align-items:center; padding:15px 18px; border:1px solid var(--line); border-radius:10px; background:var(--surface,#fff); color:var(--muted); text-align:left; }
.queue-tab b { font-size:22px; font-variant-numeric:tabular-nums; }
.queue-tab.active { background:var(--green-bg); border-color:var(--green); color:var(--green); }
.queue-explanation { color:var(--muted); margin:0 0 18px; font-size:12px; }
.offer-terms { border-top:1px solid var(--line); padding:10px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 12px; }
.offer-terms > div { min-width:0; }
.offer-terms dt { color:var(--muted); font-size:10px; }
.offer-terms dd { font-size:12px; margin:0; overflow-wrap:anywhere; }
.selection-summary { background:var(--bg); padding:12px 14px; border-left:3px solid var(--line); margin:10px 0; border-radius:0 6px 6px 0; }
.selection-summary.has-primary { border-left-color:var(--green); background:var(--green-bg); }
.selection-kicker { display:block; font-size:10px; color:var(--muted); }
.selection-summary strong { display:block; font-size:14px; }
.selection-summary p { font-size:11px; margin:5px 0; line-height:1.7; color:var(--muted); }
.selection-summary small { font-size:10px; color:var(--muted); }
#detail-dialog > .selection-summary, #detail-dialog > .review-actions { margin:14px 26px; }
.review-actions { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.review-actions .text-button { font-size:11px; }
.review-actions .badge { font-size:10px; }
.terms-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:14px 0; }
.terms-form-grid .field { margin:0; min-width:0; }
.terms-form-grid input { width:100%; min-width:0; }
.unit-edit .terms-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.knowledge-rule { padding:10px 12px; background:var(--green-bg); border-radius:6px; font-size:12px; }
.property-card .card-note { -webkit-line-clamp:3; min-height:0; }
@media(max-width:760px) {
 .queue-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .queue-tab { padding:10px 12px; font-size:12px; }
 .queue-tab b { font-size:19px; }
 .terms-form-grid, .unit-edit .terms-form-grid { grid-template-columns:1fr; }
}
.board-context { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:11px; margin:12px 0; flex-wrap:wrap; }
.board-context span { margin-left:auto; }
.display-toggle { display:flex; gap:5px; }
.list-heading { gap:14px; flex-wrap:wrap; }
.property-comparison { margin-top:12px; border:1px solid var(--line); border-radius:8px; background:var(--surface,#fff); }
.property-comparison table { width:100%; font-size:11px; }
.property-comparison td { vertical-align:top; padding:14px 12px; }
.property-comparison td:first-child { min-width:180px; max-width:240px; }
.property-comparison td:nth-child(2) { min-width:145px; max-width:180px; }
.property-comparison td small { display:block; color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.property-comparison .property-name { font-size:13px; font-weight:650; line-height:1.7; text-align:left; }
.property-comparison .review-actions { display:flex; gap:3px 8px; border:0; padding:5px 0; max-width:130px; }
.property-comparison .review-actions .text-button { font-size:10px; }
.property-comparison details p { max-width:180px; }
.property-comparison summary { font-size:10px; color:var(--muted); }
.table-select { font-size:10px; color:var(--muted); white-space:nowrap; }
@media(max-width:760px) { .property-comparison { overflow-x:auto; } .property-comparison table { min-width:850px; } .board-context span { margin-left:0; width:100%; } }

/* Operator workspace: visible actions, compact rows, plain language. */
:root { --ink:#253447; --muted:#586779; --line:#dbe1e8; --bg:#f4f6f8; --green:#21624f; --green-bg:#edf5f0; --surface:#fff; font-size:13px; }
body { background:var(--bg); }
.shell { display:block; }
.app-topbar { display:flex; align-items:center; gap:25px; min-height:50px; padding:0 22px; background:var(--surface); border-bottom:1px solid var(--line); }
.app-brand { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.app-brand b { font-size:15px; letter-spacing:.05em; }
.app-brand span { font-size:11px; color:var(--muted); }
.workspace-nav { display:flex; align-self:stretch; gap:5px; }
.workspace-nav button { color:var(--muted); background:transparent; padding:12px 14px; border-bottom:3px solid transparent; white-space:nowrap; font-size:12px; }
.workspace-nav button.active { color:var(--green); border-bottom-color:var(--green); font-weight:700; }
.workspace-nav button:hover { background:var(--bg); }
.local-label { margin-left:auto; font-size:10px; color:var(--muted); white-space:nowrap; }
.workspace { width:100%; margin:0 auto; padding:18px 24px 36px; max-width:1600px; }
.page-header { margin:0 0 12px; gap:14px; align-items:center; }
h1 { font-size:22px; line-height:1.45; letter-spacing:0; }
.subhead { font-size:11px; margin:3px 0 0; max-width:none; }
.header-actions { flex-direction:row; align-items:center; gap:8px; }
.header-actions .button { display:inline-flex; }
.period-label { display:flex; align-items:center; gap:6px; color:var(--muted); white-space:nowrap; font-size:11px; }
.select,.button { font-size:12px; min-height:32px; }
.select { padding:5px 25px 5px 9px; border-radius:4px; max-width:100%; }
.button { padding:6px 11px; border-radius:4px; }
.text-button { font-size:12px; text-align:left; }
.refresh-button { padding:6px; }
.weekly-strip { display:grid; grid-template-columns:90px repeat(3,minmax(0,1fr)) 145px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:5px; margin:0 0 9px; padding:9px 14px; }
.week-label { line-height:1.4; }
.week-label b { display:block; font-size:12px; }
.week-label small { color:var(--muted); font-size:10px; }
.weekly-stat { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:0 8px; padding:0 18px; border-left:1px solid var(--line); }
.weekly-stat > span { font-size:11px; color:var(--muted); }
.weekly-stat strong { grid-column:2; grid-row:1/3; font-size:24px; line-height:1.2; font-variant-numeric:tabular-nums; }
.weekly-stat strong small { font-size:10px; font-weight:400; margin-left:4px; }
.weekly-stat > small { font-size:10px; color:var(--muted); }
.week-diff { margin-left:7px; }
.weekly-link { display:flex; align-items:center; justify-content:flex-end; gap:5px; color:var(--green); background:transparent; font-size:11px; }
.weekly-link .icon { width:15px; }
.service-toolbar { margin:0; padding:0; border:0; min-height:35px; gap:10px; }
.service-tabs { gap:0; }
.service-tabs button { padding:7px 14px; font-size:12px; border-radius:0; border-bottom:2px solid transparent; }
.service-tabs button.active { color:var(--green); background:transparent; border-bottom-color:var(--green); }
.rules-button { font-size:10px; padding:5px 0; }
.region-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:4px 0 10px; padding:8px 10px; background:var(--surface); border:1px solid var(--line); border-radius:5px; }
.region-toolbar > b { font-size:12px; margin-right:5px; }
.region-toolbar .select { min-width:142px; }
.region-toolbar .city-select .select { min-width:180px; max-width:260px; }
.region-toolbar > small { font-size:10px; color:var(--muted); margin-left:auto; }
.region-shortcuts { display:flex; gap:5px; }
.region-shortcuts .chip { padding:3px 7px; border-radius:3px; font-size:10px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.queue-tabs { display:flex; gap:0; margin:8px 0 0; border-bottom:1px solid var(--line); }
.queue-tab { display:flex; gap:10px; justify-content:flex-start; padding:7px 16px; border:0; border-bottom:2px solid transparent; background:transparent; border-radius:0; color:var(--muted); font-size:12px; }
.queue-tab b { font-size:12px; line-height:1.3; border-radius:3px; background:#e9edf1; padding:2px 6px; }
.queue-tab.active { background:transparent; border-color:var(--green); color:var(--green); font-weight:700; }
.queue-tab.active b { background:var(--green-bg); }
.queue-explanation { font-size:11px; color:var(--muted); margin:6px 0 9px; }
.filters { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 8px; }
.filters .search { flex:1 1 220px; min-width:190px; background:var(--surface); padding:0 10px; min-height:33px; }
.filters .search input { font-size:12px; padding:6px 0; min-width:0; width:100%; }
.filters > label { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:11px; }
.filters > label .select { max-width:150px; }
.filters .star-filter { padding:5px 7px; font-size:11px; margin:0; min-height:32px; }
.advanced-filters { margin:0; position:relative; }
.advanced-filters summary { font-size:11px; padding:5px 0; }
.advanced-filter-body { position:absolute; top:36px; right:0; background:var(--surface); border:1px solid var(--line); box-shadow:0 5px 18px #22334420; padding:14px; z-index:5; width:320px; display:grid; gap:9px; border-radius:4px; }
.advanced-filter-body label { display:flex; gap:8px; align-items:center; justify-content:space-between; font-size:11px; }
.advanced-filter-body input { width:90px; max-width:150px; border:1px solid var(--line); border-radius:4px; padding:5px 7px; }
.advanced-filter-body > small { color:var(--muted); font-size:10px; }
.selection-bar { display:flex; align-items:center; gap:12px; position:static; padding:7px 10px; background:#edf1f5; border:1px solid var(--line); border-radius:4px 4px 0 0; box-shadow:none; margin:0; flex-wrap:wrap; font-size:11px; }
.selection-bar .check-field { margin:0; font-size:11px; }
.selection-bar strong { font-size:11px; }
.selection-bar .text-button { font-size:10px; }
.selection-bar > small { margin-left:auto; color:var(--muted); font-size:10px; }
.bulk-action-label { display:flex; align-items:center; gap:5px; }
.selection-bar .select { min-height:27px; font-size:11px; }
.activity-service-control { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:5px 10px; background:var(--surface); border:1px solid var(--line); border-top:0; font-size:10px; color:var(--muted); }
.activity-service-control .select { min-height:25px; padding:3px 24px 3px 7px; font-size:10px; }
.activity-service-control small { font-size:10px; }
.list-heading { display:flex; justify-content:space-between; gap:10px; margin:10px 0 7px; font-size:12px; }
.list-heading b { font-size:14px; color:var(--ink); margin-right:3px; }
.list-tools { display:flex; gap:10px; align-items:center; }
.list-tools label { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:10px; }
.list-tools .select { font-size:10px; min-height:27px; padding-top:3px; padding-bottom:3px; }
.display-toggle { gap:0; }
.display-toggle .chip { font-size:10px; border-radius:3px; padding:4px 8px; }
.worklist { border:1px solid var(--line); background:var(--surface); border-radius:4px; overflow:clip; }
.worklist-head,.work-row { display:grid; grid-template-columns:24px minmax(0,1.1fr) minmax(0,1.05fr) minmax(0,1.1fr); gap:14px; }
.worklist-head { padding:7px 12px; background:#edf1f5; font-size:11px; font-weight:600; color:var(--muted); border-bottom:1px solid var(--line); }
.work-row { padding:13px 12px; border-bottom:1px solid var(--line); align-items:start; }
.work-row:last-child { border-bottom:0; }
.work-row.selected { background:#f0f7f3; }
.work-row:hover { background:#f9fbfc; }
.row-checkbox { padding:3px 0; }
input[type=checkbox] { accent-color:var(--green); width:15px; height:15px; vertical-align:middle; }
.work-property,.work-conditions,.work-operation { min-width:0; }
.row-meta { display:flex; align-items:center; justify-content:space-between; gap:7px; color:var(--muted); font-size:10px; flex-wrap:wrap; margin-bottom:3px; }
.property-name { font-size:14px; font-weight:700; color:#205b85; line-height:1.55; overflow-wrap:anywhere; }
.row-address { margin:4px 0 8px; font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.business-summary { border-top:1px solid var(--line); padding-top:6px; margin-top:6px; line-height:1.5; }
.business-summary > span { font-size:10px; color:var(--muted); margin-right:7px; }
.business-summary > b { display:inline; font-size:12px; color:var(--ink); }
.business-summary small { display:block; font-size:10px; color:var(--muted); margin-top:3px; }
.business-summary details { margin:4px 0 0; font-size:11px; }
.business-summary details p { margin:6px 0; }
.business-summary summary { font-size:10px; }
.row-links { display:flex; align-items:center; gap:13px; margin-top:7px; }
.row-links .text-button { font-size:11px; }
.offer-line { display:grid; grid-template-columns:auto 1fr auto; align-items:baseline; gap:1px 8px; margin:0 0 7px; }
.offer-line > b { font-size:11px; overflow-wrap:anywhere; }
.offer-line strong { font-size:14px; font-variant-numeric:tabular-nums; }
.offer-line > small { grid-column:1/-1; font-size:10px; color:var(--muted); }
.compact-terms { display:grid; gap:3px; padding-top:6px; border-top:1px solid var(--line); }
.compact-terms > span { color:var(--muted); font-size:10px; line-height:1.65; overflow-wrap:anywhere; }
.compact-terms b { color:var(--ink); font-size:11px; font-weight:500; margin-left:5px; }
.more-offers { margin:3px 0 7px; }
.more-offers summary { font-size:10px; }
.inline-progress { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.inline-progress label { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:600; }
.inline-progress .select { min-width:98px; min-height:31px; font-size:12px; font-weight:500; background:var(--surface); color:var(--ink); }
.inline-progress .text-button { font-size:10px; }
.work-actions { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin:6px 0; }
.work-actions > span { font-size:10px; color:var(--muted); }
.work-actions button { background:transparent; border:1px solid var(--line); border-radius:3px; padding:2px 7px; font-size:10px; color:var(--muted); }
.work-actions button.is-done { color:var(--green); background:var(--green-bg); border-color:#aecbbd; }
.work-actions button.is-held { color:var(--amber); background:var(--amber-bg); border-color:#dac79c; }
.next-checks { margin-top:8px; padding-top:6px; border-top:1px solid var(--line); }
.check-task { display:block; width:100%; background:transparent; color:var(--ink); font-size:11px; line-height:1.6; padding:1px 0; text-align:left; overflow-wrap:anywhere; }
.check-task > span { display:inline-block; color:var(--amber); font-size:9px; background:var(--amber-bg); margin-right:5px; border-radius:2px; padding:0 4px; }
.check-task.risk > span { color:var(--red); background:var(--red-bg); }
.check-task:hover { text-decoration:underline; color:var(--green); }
.next-checks details { margin:4px 0 0; }
.next-checks summary { font-size:10px; color:var(--muted); }
.next-checks ul { margin:4px 0; padding-left:16px; font-size:11px; color:var(--ink); }
.next-checks .text-button { font-size:10px; }
.processing-note { margin:8px 0; padding:6px 10px; font-size:11px; background:var(--amber-bg); }
.weekly-operations h2 { font-size:16px; }
.weekly-operations p { font-size:11px; margin:3px 0; color:var(--muted); }
.backlog-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:15px 0; }
.backlog-grid button { text-align:left; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); padding:12px 15px; }
.backlog-grid button:hover { background:var(--green-bg); border-color:var(--green); }
.backlog-grid span { font-size:12px; }
.backlog-grid strong { display:block; font-size:26px; font-variant-numeric:tabular-nums; }
.backlog-grid strong small { font-size:11px; font-weight:400; margin-left:5px; }
.weekly-goal { display:flex; align-items:center; gap:12px; padding-top:10px; border-top:1px solid var(--line); flex-wrap:wrap; font-size:12px; }
.weekly-goal progress { width:200px; height:10px; accent-color:var(--green); }
.historical-kdi { margin:12px 0; }
.historical-kdi > summary { background:var(--surface); border:1px solid var(--line); padding:12px; border-radius:4px; font-size:12px; }
.historical-kdi .ratio-grid { margin-top:12px; }
dialog { border-radius:6px; width:min(1000px,calc(100% - 42px)); max-height:90vh; }
dialog::backdrop { backdrop-filter:none; background:#17293966; }
.dialog-head { padding:16px 20px; position:sticky; top:0; background:var(--surface); z-index:3; }
.dialog-head h2 { font-size:18px; }
.close-button { border-radius:4px; background:var(--bg); }
.stage-date-options { margin:12px 0; }
.stage-date-options summary { font-size:11px; }
[data-drop-fields][hidden] { display:none !important; }
.property-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.property-card { border-radius:5px; box-shadow:none; }
.property-card .next-checks { margin-bottom:10px; }
.property-card .card-meta { margin:8px 0; }
.property-card .business-summary { margin-bottom:10px; }
:root[data-theme=dark] .app-topbar,:root[data-theme=dark] .weekly-strip,:root[data-theme=dark] .region-toolbar,:root[data-theme=dark] .worklist,:root[data-theme=dark] .activity-service-control { background:var(--surface); }
:root[data-theme=dark] .worklist-head,:root[data-theme=dark] .selection-bar,:root[data-theme=dark] .queue-tab b { background:#23342e; }
:root[data-theme=dark] .work-row:hover,:root[data-theme=dark] .work-row.selected { background:#243e32; }
:root[data-theme=dark] .property-name { color:#9bcaed; }
@media (max-width:1100px) {
 .workspace { padding:14px 18px 30px; }
 .app-topbar { gap:16px; padding:0 18px; }
 .workspace-nav button { padding:12px 10px; }
 .local-label { display:none; }
 .region-toolbar > small { flex-basis:100%; margin-left:0; }
 .region-shortcuts { display:none; }
 .weekly-strip { grid-template-columns:76px repeat(3,minmax(0,1fr)) 110px; padding:8px 11px; }
 .weekly-stat { padding:0 10px; }
 .weekly-link { font-size:10px; }
 .worklist-head,.work-row { gap:11px; grid-template-columns:20px minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr); }
 .work-row { padding:11px 10px; }
 .row-meta { font-size:9px; }
 .property-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
 .app-topbar { display:block; padding:10px 12px 0; }
 .app-brand { margin-bottom:6px; }
 .workspace-nav { display:flex; overflow-x:auto; gap:0; }
 .workspace-nav button { flex:0 0 auto; font-size:11px; padding:8px 12px; }
 .workspace { width:100%; padding:12px; margin:0; }
 .page-header { flex-wrap:wrap; gap:7px; }
 h1 { font-size:19px; }
 .header-actions { width:100%; justify-content:flex-end; flex-direction:row; }
 .header-actions .button { display:inline-flex; }
 .period-label { margin-right:auto; }
 .weekly-strip { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px 0; padding:9px; }
 .week-label { grid-column:1/-1; display:flex; gap:8px; align-items:baseline; }
 .weekly-stat { padding:0 8px; display:block; border-left:1px solid var(--line); }
 .weekly-stat > span { display:block; font-size:10px; }
 .weekly-stat strong { display:block; font-size:22px; }
 .weekly-stat > small { display:block; }
 .weekly-link { grid-column:1/-1; margin-top:4px; }
 .service-tabs { overflow-x:auto; }
 .service-tabs button { white-space:nowrap; padding:7px 10px; font-size:11px; }
 .rules-button { font-size:0; }
 .rules-button .icon { width:16px; }
 .region-toolbar { gap:6px; }
 .region-toolbar > b { width:100%; }
 .region-toolbar label { flex:1; min-width:0; }
 .region-toolbar .select,.region-toolbar .city-select .select { width:100%; min-width:0; }
 .region-toolbar > small { font-size:9px; }
 .queue-tabs { overflow-x:auto; margin-top:7px; }
 .queue-tab { flex:0 0 auto; padding:7px 11px; font-size:11px; gap:6px; }
 .queue-tab b { font-size:10px; }
 .queue-explanation { font-size:10px; }
 .filters { gap:7px; }
 .filters .search { flex-basis:100%; }
 .filters .star-filter { width:auto; margin-left:0; }
 .filters .select { font-size:11px; }
 .advanced-filters { margin-left:auto; }
 .advanced-filter-body { right:0; width:min(320px,90vw); }
 .selection-bar { gap:6px 12px; padding:7px; }
 .selection-bar > small { width:100%; margin:0; font-size:9px; }
 .activity-service-control { gap:5px; }
 .activity-service-control > small { flex-basis:100%; font-size:9px; }
 .list-heading { align-items:flex-start; gap:6px; flex-wrap:wrap; }
 .list-tools { margin-left:auto; flex-wrap:wrap; gap:7px; }
 .list-tools > label { font-size:0; }
 .worklist-head { display:none; }
 .work-row { grid-template-columns:18px minmax(0,1fr); gap:9px; padding:12px; }
 .work-property { grid-column:2; }
 .work-conditions { grid-column:2; }
 .work-operation { grid-column:2; border-top:1px solid var(--line); padding-top:8px; }
 .row-meta { font-size:10px; }
 .property-name { font-size:15px; }
 .business-summary { padding-top:5px; }
 .compact-terms { grid-template-columns:1fr 1fr; }
 .inline-progress { justify-content:flex-start; }
 .property-grid { grid-template-columns:1fr; }
 .backlog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 dialog { width:calc(100% - 26px); max-height:92vh; }
 .dialog-head { padding:12px 14px; }
 .dialog-head h2 { font-size:16px; }
 .dialog-body { grid-template-columns:1fr; }
}
/* Keep the work area within reach on standard laptop windows. */
.selection-bar > small { flex-basis:auto; }
.filters .search input { padding-left:24px; height:33px; }
.filters .search .icon { top:9px; }
.region-toolbar > b small { font-size:9px; color:var(--muted); font-weight:400; margin-left:3px; }
.weekly-strip { padding-top:7px; padding-bottom:7px; }
.weekly-stat > small { line-height:1.3; }
.weekly-stat strong { font-size:23px; }
@media(max-width:1100px) {
 .region-toolbar { padding-top:6px; padding-bottom:6px; }
 .selection-bar > small { display:none; }
 .weekly-link { line-height:1.5; }
}
@media(max-width:760px) {
 .selection-bar > small { display:none; }
 .region-toolbar > b { width:auto; }
}
.row-address { font-size:12px; }
.check-task { font-size:12px; }
.compact-terms > span { font-size:11px; }
.compact-terms b { font-size:12px; }
.appearance-toggle { background:transparent; color:var(--muted); padding:4px 6px; font-size:18px; margin-left:2px; }
.selected-service-fit { font-weight:600; color:var(--green) !important; margin-bottom:4px; }
@media(max-width:760px) {
 .app-topbar { position:relative; }
 .appearance-toggle { position:absolute; right:12px; top:8px; }
 .filters .star-filter { flex:0 0 auto; width:auto; }
 .service-toolbar { flex-wrap:nowrap; }
 .rules-button { flex:0 0 auto; }
}

/* Property discovery: photo-led listings with explicit search state. */
:root { --green:#21845e; --green-bg:#eaf7ef; --ink:#253330; --muted:#677570; --line:#e1e8e4; --bg:#f5f7f6; --price:#b94249; font-size:14px; }
.app-topbar { border-bottom-color:#e6ece8; min-height:60px; gap:25px; }
.app-brand b { color:#1f6449; font-size:18px; letter-spacing:.045em; }
.app-brand span { font-size:12px; }
.workspace-nav button { padding:17px 15px; font-size:13px; }
.workspace-nav button.active { color:var(--green); background:#f5faf7; }
.workspace { max-width:1500px; padding:22px 28px 40px; }
.page-header { margin-bottom:6px; gap:16px; }
h1 { font-size:26px; font-weight:700; letter-spacing:.015em; }
.subhead { font-size:12px; margin:5px 0; }
.header-actions { gap:9px; }
.period-label { font-size:11px; }
.button,.select { border-radius:7px; min-height:36px; font-size:12px; }
.button.primary { background:var(--green); font-weight:600; }
.button.primary:hover { background:#176d4c; }
.select { border-color:#d4dfd8; background-color:var(--surface); }
.discovery-kdi { display:flex; align-items:center; flex-wrap:wrap; gap:7px 18px; margin:7px 0 17px; color:var(--muted); font-size:11px; }
.discovery-kdi > span:first-child { color:var(--ink); font-weight:600; }
.discovery-kdi b { color:var(--ink); margin-left:3px; font-weight:650; }
.discovery-kdi .text-button { display:flex; gap:4px; align-items:center; margin-left:auto; font-size:11px; }
.discovery-kdi .icon { width:14px; }
.service-toolbar { margin:0 0 15px; padding:0; display:block; }
.service-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:0; gap:10px; overflow:visible; }
.service-tabs button { display:flex; align-items:center; gap:12px; min-width:0; min-height:72px; padding:12px 17px; border:1px solid #dbe4de; border-radius:9px; background:var(--surface); color:var(--ink); text-align:left; white-space:normal; box-shadow:0 1px 2px #20352b03; }
.service-tabs button:hover { border-color:#7db798; background:#f5fbf7; color:var(--green); }
.service-tabs button.active { background:var(--green-bg); border:2px solid var(--green); padding:11px 16px; color:#176c48; box-shadow:none; }
.service-tabs b { display:block; font-size:16px; line-height:1.4; letter-spacing:.01em; }
.service-tabs small { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.service-symbol { display:grid; place-items:center; background:#f0f5f2; color:#5f8876; width:38px; height:38px; border-radius:8px; flex-shrink:0; }
.service-tabs button.active .service-symbol { color:var(--green); background:#d8efe1; }
.service-symbol .icon { width:22px; height:22px; }
.service-selected { margin-left:auto; color:var(--green); min-width:17px; }
.service-selected .icon { width:18px; height:18px; }
.property-search-panel { display:flex; align-items:flex-end; gap:16px; padding:16px 18px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.region-toolbar { display:flex; align-items:flex-end; gap:12px; border:0; border-radius:0; margin:0; padding:0; background:transparent; flex:1 1 52%; flex-wrap:nowrap; min-width:0; }
.discovery-field { display:block; min-width:0; flex:1; }
.discovery-field > span { display:flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.discovery-field > span .icon { width:15px; height:15px; color:var(--green); }
.discovery-field .select { width:100%; min-width:0; max-width:none; font-size:13px; min-height:40px; padding:8px 25px 8px 11px; }
.region-toolbar .select,.region-toolbar .city-select .select { min-width:0; width:100%; max-width:none; }
.keyword-field { flex:1 1 38%; }
.keyword-field .search { border:1px solid #d4dfd8; border-radius:7px; background:var(--surface); position:relative; margin:0; min-width:0; }
.keyword-field .search .icon { position:absolute; left:11px; top:11px; width:17px; height:17px; }
.keyword-field .search input { border:0; background:transparent; color:var(--ink); font-size:13px; min-height:38px; height:38px; padding:8px 12px 8px 36px; width:100%; outline-offset:1px; }
.active-filter-bar { display:flex; align-items:center; gap:9px 14px; padding:11px 2px 15px; min-height:47px; }
.active-filter-label { font-size:11px; color:var(--muted); flex-shrink:0; }
.filter-chips { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
.filter-chip { display:inline-flex; align-items:center; gap:7px; background:#e5f3ea; color:#216448; border:1px solid #cee5d6; padding:4px 8px 4px 10px; border-radius:18px; font-size:12px; line-height:1.5; text-align:left; max-width:100%; }
.filter-chip > span { overflow-wrap:anywhere; }
.filter-chip:hover { background:#d7eede; border-color:#80b498; }
.filter-chip .icon { width:14px; height:14px; flex-shrink:0; }
.reset-all { color:var(--muted); font-size:11px; padding:5px; background:transparent; text-decoration:underline; text-underline-offset:3px; margin-left:auto; white-space:nowrap; }
.reset-all:hover { color:var(--green); }
.no-filters { font-size:11px; color:var(--muted); }
.discovery-layout { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:start; gap:22px; }
.filter-panel { background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:16px; min-width:0; }
.filter-panel-toggle { display:none; }
.refinement-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:15px; }
.refinement-heading h2 { margin:0; font-size:14px; }
.refinement-heading .text-button { font-size:10px; white-space:nowrap; text-decoration:underline; text-underline-offset:3px; color:var(--muted); }
.refinement-section { margin:15px 0 0; padding:14px 0 0; border-top:1px solid var(--line); }
.refinement-section h3 { font-size:12px; margin:0 0 12px; }
.refinement-section .field { display:block; font-size:11px; color:var(--muted); margin:10px 0; }
.refinement-section .field > .select { margin-top:5px; }
.refinement-section input { min-width:0; width:100%; background:transparent; color:var(--ink); border:0; font-size:12px; padding:8px; border-radius:7px; }
.input-with-unit { display:flex; align-items:center; border:1px solid #d4dfd8; border-radius:7px; margin-top:5px; background:var(--surface); }
.input-with-unit > span { font-size:10px; padding-right:8px; color:var(--muted); }
.area-range { display:flex; gap:5px; align-items:center; min-width:0; }
.area-range > .input-with-unit { flex:1; min-width:0; }
.area-range .input-with-unit > span { padding-right:5px; }
.area-range input { padding:8px 5px; font-size:11px; }
.refinement-note { font-size:10px; color:var(--muted); line-height:1.6; margin:9px 0 0; }
.refinement-section .select { width:100%; min-width:0; }
.favorite-filter { display:flex; align-items:center; justify-content:center; gap:7px; font-size:11px; padding:9px 5px; border:1px solid #d8e2dc; border-radius:7px; background:var(--surface); color:var(--muted); width:100%; margin:14px 0 0; }
.favorite-filter .icon { width:16px; height:16px; }
.favorite-filter.active { background:#fff7df; color:#927121; border-color:#e6cd84; }
.other-display-options { margin:16px 0 0; padding-top:12px; border-top:1px solid var(--line); }
.other-display-options summary { font-size:11px; color:var(--muted); }
.other-display-options .field { display:block; margin:12px 0; font-size:11px; }
.other-display-options .select { width:100%; margin-top:5px; }
.other-display-options .text-button { font-size:11px; }
.discovery-results { min-width:0; }
.discovery-results-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.discovery-results-title p { margin:0 0 2px; color:var(--muted); font-size:11px; }
.discovery-results-title h2 { margin:0; font-size:13px; font-weight:500; }
.discovery-results-title h2 strong { font-size:27px; font-weight:700; margin-right:6px; color:var(--ink); line-height:1.3; }
.list-tools { gap:10px; }
.list-tools .select { font-size:11px; min-height:33px; }
.display-toggle { display:flex; border:1px solid #d6e0d9; border-radius:7px; padding:3px; background:var(--surface); }
.display-toggle button { display:flex; align-items:center; gap:4px; padding:5px 7px; background:transparent; color:var(--muted); border-radius:4px; font-size:10px; }
.display-toggle button .icon { width:14px; height:14px; }
.display-toggle button.active { color:var(--green); background:#e8f5ed; }
.queue-tabs { display:flex; gap:4px; margin:0 0 9px; border:0; overflow-x:auto; }
.queue-tab { display:flex; gap:6px; align-items:center; background:transparent; border:1px solid transparent; border-radius:6px; color:var(--muted); padding:6px 9px; font-size:11px; white-space:nowrap; }
.queue-tab b { background:#e9eeeb; border-radius:4px; padding:1px 5px; font-size:10px; }
.queue-tab.active { border-color:#bfdfcc; background:#e5f4eb; color:#1d714e; }
.queue-tab.active b { background:#d0e9d9; }
.queue-tab:hover { background:#ecf3ef; }
.queue-explanation.sr-only { margin:0; }
.selection-bar { display:flex; gap:10px; align-items:center; padding:9px 1px; background:transparent; border:0; border-top:1px solid var(--line); border-radius:0; margin:0 0 9px; font-size:10px; }
.selection-bar.has-selection { background:#e7f5ed; border:1px solid #c1dfce; padding:8px 10px; border-radius:7px; }
.selection-bar .check-field { font-size:11px; color:var(--ink); white-space:nowrap; }
.selection-help { font-size:10px; color:var(--muted); }
.selection-bar .activity-service-control { display:flex; flex:0 0 auto; gap:5px; margin-left:auto; padding:0; background:transparent; border:0; color:var(--muted); font-size:10px; }
.selection-bar .activity-service-control .select { min-height:28px; font-size:10px; padding-top:3px; padding-bottom:3px; }
.selection-bar .bulk-action-label .select { font-size:11px; min-height:29px; }
.listing-results { display:grid; gap:16px; }
.listing-card { border:1px solid #dce6df; border-radius:11px; background:var(--surface); box-shadow:0 2px 5px #234a3504; overflow:hidden; min-width:0; }
.listing-card:hover { border-color:#a6c6b4; box-shadow:0 3px 10px #234a3509; }
.listing-card.selected { border-color:var(--green); box-shadow:0 0 0 1px var(--green); }
.listing-card-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 16px; border-bottom:1px solid #edf1ee; background:#fdfefd; }
.listing-select { display:flex; gap:9px; align-items:center; font-size:11px; color:var(--muted); }
.listing-select input { margin:0; }
.listing-header-meta { display:flex; gap:10px; align-items:center; font-size:10px; color:var(--muted); }
.listing-state { background:var(--green-bg); padding:2px 7px; border-radius:4px; color:var(--green); }
.listing-favorite { display:grid; place-items:center; padding:3px; background:transparent; color:#9baba2; }
.listing-favorite .icon { width:19px; height:19px; }
.listing-favorite.on { color:#b18b1a; }
.listing-favorite.on .icon { fill:#f7dc88; }
.listing-body { display:grid; grid-template-columns:176px minmax(0,1fr); gap:18px; padding:17px 16px 15px; align-items:start; }
.listing-image { display:block; position:relative; width:100%; aspect-ratio:4/3; background:#edf2ee; border-radius:7px; overflow:hidden; padding:0; }
.listing-image img { width:100%; height:100%; object-fit:contain; display:block; }
.photo-caption { position:absolute; left:0; right:0; bottom:0; text-align:center; font-size:10px; padding:4px 8px; background:#1d3226a3; color:#fff; }
.listing-no-photo { display:flex; width:100%; height:100%; align-items:center; justify-content:center; flex-direction:column; gap:8px; color:#8a9e91; font-size:11px; }
.listing-no-photo .icon { width:35px; height:35px; stroke-width:1.2; }
.listing-info { min-width:0; }
.listing-title { display:block; text-align:left; background:transparent; color:#24674e; font-size:18px; font-weight:700; line-height:1.5; padding:0; overflow-wrap:anywhere; }
.listing-title:hover { text-decoration:underline; text-underline-offset:3px; }
.listing-address { display:flex; align-items:flex-start; gap:4px; font-size:12px; color:var(--muted); margin:5px 0 10px; overflow-wrap:anywhere; line-height:1.6; }
.listing-address .icon { width:13px; height:15px; margin-top:2px; }
.business-summary { margin-top:7px; border:0; padding:0; }
.recommendation-line { display:flex; align-items:center; gap:5px 7px; flex-wrap:wrap; }
.recommendation-label { font-size:10px; color:var(--muted); }
.business-pill { display:inline-flex; align-items:center; gap:4px; color:#276b50; background:#e9f6ee; border:1px solid #d0e8d9; font-size:12px; font-weight:600; padding:4px 9px; border-radius:5px; line-height:1.5; }
.business-pill .icon { width:13px; height:13px; }
.business-pill[data-business=meby] { color:#99556f; background:#f9eef3; border-color:#eed8e1; }
.business-pill[data-business=allshare] { color:#6d5b94; background:#f2eff9; border-color:#e2daef; }
.business-pill.recommended { border-color:transparent; color:white; background:#2b8b60; }
.business-pill.recommended[data-business=meby] { background:#ae6280; }
.business-pill.recommended[data-business=allshare] { background:#7c6aa5; }
.business-pill.uncertain { font-weight:500; color:var(--muted); background:#f1f4f2; border-color:#e1e6e2; }
.service-fit-note { font-size:10px; color:var(--muted); }
.recommendation-reason { margin:5px 0 9px; }
.business-summary .recommendation-reason summary { font-size:10px; color:var(--muted); text-underline-offset:3px; }
.recommendation-reason p { font-size:12px; margin:6px 0; color:var(--ink); }
.recommendation-reason small { display:block; margin:5px 0; font-size:10px; }
.recommendation-reason .text-button { display:block; margin:7px 0; font-size:11px; }
.listing-terms .offer-line { display:grid; grid-template-columns:minmax(40px,auto) minmax(0,1fr) minmax(0,1.1fr); gap:0 10px; margin:6px 0; align-items:baseline; }
.listing-terms .offer-line > b { font-size:11px; color:var(--muted); max-width:100px; }
.listing-terms .offer-line strong { font-size:20px; line-height:1.4; color:var(--ink); font-weight:650; }
.listing-terms .offer-line strong:last-of-type { color:var(--price); font-size:24px; text-align:right; }
.listing-terms .offer-line small { grid-column:1/-1; text-align:right; font-size:10px; margin-bottom:1px; }
.listing-terms .compact-terms { grid-template-columns:1fr 1fr; gap:3px 16px; padding-top:8px; margin-top:7px; }
.listing-terms .compact-terms > span { font-size:10px; }
.listing-terms .compact-terms b { font-size:11px; color:var(--ink); font-weight:500; }
.listing-terms .more-offers { margin:6px 0; }
.listing-terms .more-offers summary { font-size:11px; }
.listing-bottom { padding:0 16px 12px; }
.listing-checks .next-checks { display:flex; flex-wrap:wrap; gap:4px 15px; padding:9px 0; margin:0; border-top:1px solid #edf1ee; }
.listing-checks .check-task { display:block; width:auto; font-size:11px; line-height:1.6; padding:0; }
.listing-checks .check-task > span { background:#fff5df; color:#9a722d; font-size:9px; padding:1px 5px; }
.listing-checks .check-task.risk > span { background:var(--red-bg); color:var(--red); }
.listing-checks .next-checks details { margin:0; flex:0 1 auto; }
.listing-checks .next-checks details[open] { flex-basis:100%; }
.listing-checks .next-checks summary { font-size:10px; color:var(--muted); }
.listing-actions { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding-top:9px; border-top:1px solid #edf1ee; }
.listing-actions > div:first-child { display:flex; flex-wrap:wrap; align-items:center; gap:7px 13px; }
.listing-actions .inline-progress { gap:9px; }
.listing-actions .inline-progress label { font-size:11px; gap:6px; }
.listing-actions .inline-progress .select { font-size:12px; min-width:95px; min-height:32px; border-radius:6px; }
.listing-actions .inline-progress .text-button { font-size:10px; }
.listing-actions .work-actions { margin:0; gap:5px; }
.listing-actions .work-actions > span { display:none; }
.listing-actions .work-actions button { border:0; padding:4px 7px; background:#f0f4f1; border-radius:5px; font-size:10px; }
.listing-cta { display:flex; gap:8px; margin-left:auto; }
.listing-cta .button { font-size:11px; padding:6px 10px; min-height:33px; gap:5px; }
.listing-cta .icon { width:15px; height:15px; }
.listing-cta .copy-button { border-color:#d7e3da; color:#5d7769; }
.work-row .business-pill { font-size:10px; padding:3px 6px; }
.work-row .recommendation-line { display:block; }
.work-row .recommendation-label { display:block; margin-bottom:3px; }
.property-discovery .empty { display:flex; flex-direction:column; align-items:center; gap:10px; padding:45px 15px; background:var(--surface); border-radius:10px; border:1px solid var(--line); }
.property-discovery .empty > span { font-size:12px; }
.property-discovery .pagination { margin-top:20px; }
:root[data-theme=dark] .service-tabs button,:root[data-theme=dark] .property-search-panel,:root[data-theme=dark] .filter-panel,:root[data-theme=dark] .listing-card,:root[data-theme=dark] .listing-card-header { background:var(--surface); color:var(--ink); }
:root[data-theme=dark] .service-tabs button.active,:root[data-theme=dark] .filter-chip,:root[data-theme=dark] .queue-tab.active { background:#244333; color:#b0d7bf; }
:root[data-theme=dark] .listing-title { color:#a8dabb; }
:root[data-theme=dark] .listing-terms .offer-line strong:last-of-type { color:#edabb1; }
@media(max-width:1199px) {
 .workspace { padding:18px 20px 35px; }
 .discovery-layout { display:flex; flex-direction:column; gap:12px; }
 .filter-panel { padding:0; width:100%; }
 .filter-panel-toggle { display:flex; align-items:center; gap:8px; padding:11px 14px; background:transparent; color:var(--ink); font-size:12px; width:100%; }
 .filter-panel-toggle > span { margin-left:auto; font-size:16px; color:var(--green); }
 .filter-panel-toggle .icon { width:16px; height:16px; color:var(--green); }
 .refinement-body { display:none; }
 .filter-panel.is-open .refinement-body { display:grid; grid-template-columns:1fr 1fr; gap:14px 24px; border-top:1px solid var(--line); padding:15px; }
 .refinement-heading { display:none; }
 .refinement-section { margin:0; padding:0; border:0; }
 .other-display-options { grid-column:1/-1; margin:0; }
 .discovery-results { width:100%; }
 .service-tabs { gap:8px; }
 .service-tabs button { gap:8px; padding:10px 12px; min-height:68px; }
 .service-tabs button.active { padding:9px 11px; }
 .service-tabs b { font-size:14px; }
 .service-symbol { width:31px; height:34px; }
 .service-symbol .icon { width:20px; height:20px; }
 .service-selected { min-width:14px; }
 .listing-body { grid-template-columns:160px minmax(0,1fr); gap:16px; }
 .selection-help { display:none; }
}
@media(max-width:760px) {
 .app-topbar { min-height:0; padding:12px 12px 0; }
 .app-brand { margin-bottom:8px; }
 .app-brand b { font-size:16px; }
 .workspace-nav button { font-size:11px; padding:9px 12px; }
 .workspace { padding:15px 12px 28px; }
 h1 { font-size:23px; }
 .subhead { font-size:11px; }
 .page-header { align-items:flex-start; gap:9px; margin:0; }
 .header-actions { gap:6px; margin:5px 0; }
 .header-actions .button { min-height:34px; font-size:11px; padding:6px 9px; }
 .header-actions .period-label { font-size:10px; }
 .header-actions .select { min-height:34px; max-width:145px; font-size:11px; }
 .discovery-kdi { gap:4px 10px; margin:9px 0 14px; font-size:10px; }
 .discovery-kdi .text-button { font-size:10px; }
 .service-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
 .service-tabs button { padding:9px 11px; min-height:62px; gap:8px; }
 .service-tabs button.active { padding:8px 10px; }
 .service-tabs b { font-size:13px; }
 .service-tabs small { font-size:9px; margin-top:2px; }
 .service-symbol { width:29px; height:31px; }
 .service-selected .icon { width:15px; height:15px; }
 .property-search-panel { display:block; padding:12px; }
 .region-toolbar { gap:8px; padding:0; margin:0; display:flex; }
 .discovery-field > span { font-size:11px; margin-bottom:5px; }
 .discovery-field .select { font-size:12px; min-height:37px; padding-left:7px; }
 .keyword-field { margin-top:11px; }
 .keyword-field .search input { font-size:12px; height:35px; min-height:35px; }
 .keyword-field .search .icon { top:9px; }
 .active-filter-bar { align-items:flex-start; gap:7px; flex-wrap:wrap; padding:10px 0 12px; }
 .active-filter-label { font-size:10px; line-height:2.4; }
 .filter-chips { flex:1; gap:5px; }
 .filter-chip { font-size:11px; padding:3px 6px 3px 9px; }
 .filter-chip .icon { width:13px; height:13px; }
 .reset-all { font-size:10px; }
 .no-filters { font-size:10px; line-height:2.4; }
 .discovery-layout { gap:11px; }
 .filter-panel-toggle { padding:10px 12px; font-size:12px; }
 .filter-panel.is-open .refinement-body { display:block; padding:14px; }
 .refinement-section + .refinement-section { margin-top:15px; border-top:1px solid var(--line); padding-top:15px; }
 .other-display-options { margin-top:15px; }
 .discovery-results-title { align-items:flex-end; gap:7px; flex-wrap:wrap; margin-bottom:9px; }
 .discovery-results-title p { font-size:10px; }
 .discovery-results-title h2 { font-size:12px; }
 .discovery-results-title h2 strong { font-size:25px; }
 .list-tools { gap:7px; margin-left:auto; }
 .list-tools .select { min-height:30px; font-size:10px; max-width:143px; }
 .display-toggle button { padding:4px 6px; }
 .display-toggle button > span { display:none; }
 .list-tools > a { font-size:10px; }
 .queue-tabs { gap:2px; margin-bottom:6px; }
 .queue-tab { padding:5px 7px; font-size:10px; gap:4px; }
 .queue-tab b { font-size:9px; }
 .selection-bar { padding:7px 0; margin-bottom:8px; gap:6px 8px; }
 .selection-bar .check-field { font-size:10px; }
 .selection-bar .activity-service-control { font-size:9px; gap:4px; }
 .selection-bar .activity-service-control .select { font-size:9px; max-width:140px; }
 .listing-results { gap:12px; }
 .listing-card-header { padding:8px 10px; gap:7px; }
 .listing-select { gap:6px; font-size:10px; }
 .listing-header-meta { gap:6px; font-size:9px; }
 .listing-body { grid-template-columns:98px minmax(0,1fr); gap:11px; padding:12px 10px; }
 .listing-image { aspect-ratio:3/4; border-radius:5px; }
 .photo-caption { font-size:8px; padding:4px; }
 .listing-title { font-size:15px; line-height:1.55; }
 .listing-address { font-size:10px; margin:4px 0 7px; }
 .listing-address .icon { width:11px; height:13px; }
 .recommendation-line { gap:4px; }
 .recommendation-label { font-size:9px; flex-basis:100%; }
 .business-pill { font-size:10px; padding:3px 6px; }
 .business-summary .recommendation-reason summary { font-size:9px; }
 .listing-terms .offer-line { grid-template-columns:auto minmax(0,1fr); gap:1px 6px; margin-top:7px; }
 .listing-terms .offer-line > b { font-size:9px; }
 .listing-terms .offer-line strong { font-size:15px; text-align:right; }
 .listing-terms .offer-line strong:last-of-type { grid-column:1/-1; font-size:21px; }
 .listing-terms .offer-line small { font-size:9px; }
 .listing-terms .compact-terms { grid-template-columns:1fr; gap:2px; padding-top:6px; }
 .listing-terms .compact-terms > span { font-size:9px; }
 .listing-terms .compact-terms b { font-size:10px; margin-left:4px; }
 .listing-bottom { padding:0 10px 11px; }
 .listing-checks .next-checks { gap:3px 8px; padding:8px 0; }
 .listing-checks .check-task { font-size:10px; }
 .listing-checks .next-checks summary { font-size:9px; }
 .listing-actions { gap:8px; }
 .listing-actions > div:first-child { gap:7px; width:100%; justify-content:space-between; }
 .listing-actions .inline-progress { gap:6px; }
 .listing-actions .inline-progress label { font-size:10px; }
 .listing-actions .inline-progress .select { min-height:30px; min-width:85px; font-size:11px; }
 .listing-actions .inline-progress .text-button { font-size:9px; }
 .listing-actions .work-actions { gap:4px; }
 .listing-actions .work-actions button { font-size:9px; padding:4px 6px; }
 .listing-cta { margin-left:0; width:100%; }
 .listing-cta .button { flex:1; justify-content:center; font-size:11px; min-height:34px; }
 .listing-no-photo { font-size:9px; }
}
/* Prioritize the first property instead of stacking introductory controls. */
.page-header { margin-bottom:17px; }
.page-header .subhead > span { color:#bdc9c1; padding:0 4px; }
.page-header .subhead b { font-weight:600; }
.service-tabs button { min-height:62px; padding-top:9px; padding-bottom:9px; }
.service-tabs button.active { padding-top:8px; padding-bottom:8px; }
.property-search-panel { padding-top:11px; padding-bottom:11px; margin-bottom:17px; }
.discovery-field > span { margin-bottom:5px; font-size:11px; }
.discovery-field .select { min-height:37px; font-size:12px; padding-top:6px; padding-bottom:6px; }
.keyword-field .search input { height:35px; min-height:35px; font-size:12px; }
.keyword-field .search .icon { top:9px; }
.active-filter-bar { margin-top:-10px; padding:0 2px 13px; min-height:33px; }
@media(max-width:1199px) {
 .filter-panel { display:none; }
 .filter-panel.is-open { display:block; }
 .filter-panel.is-open .refinement-body { border-top:0; }
 .discovery-results-title .filter-panel-toggle { display:flex; align-items:center; gap:5px; font-size:11px; width:auto; padding:6px 9px; border:1px solid #d6e0d9; background:var(--surface); border-radius:7px; white-space:nowrap; }
 .discovery-results-title .filter-panel-toggle > span { font-size:12px; margin-left:3px; }
 .discovery-results-title .filter-panel-toggle .icon { width:13px; height:13px; }
 .service-tabs button { min-height:60px; }
 .queue-tabs { margin-bottom:5px; }
}
@media(max-width:760px) {
 .page-header { margin-bottom:12px; }
 .page-header .subhead { font-size:10px; }
 .property-search-panel { padding-top:11px; padding-bottom:11px; margin-bottom:14px; }
 .active-filter-bar { margin-top:-5px; padding-bottom:11px; }
 .discovery-results-title .filter-panel-toggle { font-size:10px; padding:5px 6px; }
 .discovery-results-title .filter-panel-toggle > span { display:none; }
 .list-tools { flex-wrap:wrap; }
}
/* Desktop search sits beside the listings; smaller windows keep it above. */
.discovery-filter-column { min-width:0; }
.discovery-filter-column .property-search-panel { display:block; padding:14px; margin-bottom:14px; }
.discovery-filter-column .region-toolbar { display:block; }
.discovery-filter-column .city-select { margin-top:12px; }
.discovery-filter-column .keyword-field { margin-top:12px; }
.discovery-results > .active-filter-bar { margin-top:0; padding-top:0; padding-bottom:12px; }
@media(max-width:1199px) {
 .discovery-filter-column { width:100%; }
 .discovery-filter-column .property-search-panel { display:flex; padding:11px 15px; margin-bottom:0; }
 .discovery-filter-column .region-toolbar { display:flex; }
 .discovery-filter-column .city-select,.discovery-filter-column .keyword-field { margin-top:0; }
 .discovery-filter-column .filter-panel.is-open { margin-top:12px; }
 .discovery-results-title { margin-top:0; }
}
@media(max-width:760px) {
 .discovery-filter-column .property-search-panel { display:block; padding:11px 12px; }
 .discovery-filter-column .region-toolbar { display:flex; }
 .discovery-filter-column .keyword-field { margin-top:11px; }
}
:root[data-theme=dark] .listing-actions .work-actions button { background:#2c4337; color:var(--ink); }
:root[data-theme=dark] .service-symbol,:root[data-theme=dark] .listing-image { background:#273d31; }
:root[data-theme=dark] .select,:root[data-theme=dark] .input-with-unit { border-color:var(--line); }
.detail-recommendation { padding:15px 18px; margin:17px 22px; border:1px solid #dcebe1; border-radius:9px; background:#f4faf6; }
.detail-recommendation .selection-kicker { font-size:11px; margin-bottom:7px; }
.detail-recommendation .business-pill { font-size:14px; padding:5px 10px; }
.detail-recommendation .recommendation-label { font-size:11px; }
.detail-recommendation .recommendation-reason { margin-bottom:0; }
:root[data-theme=dark] .detail-recommendation { background:#233d2d; border-color:var(--line); }
@media(max-width:760px) { .detail-recommendation { margin:12px 14px; padding:12px; } .detail-recommendation .business-pill { font-size:12px; } }
/* The search tools stay on the right of a wide property list. */
@media(min-width:1200px) {
 .discovery-layout { grid-template-columns:minmax(0,1fr) 230px; }
 .discovery-results { grid-column:1; grid-row:1; }
 .discovery-filter-column { grid-column:2; grid-row:1; }
}
.property-source-links { display:flex; flex-wrap:wrap; align-items:center; gap:7px 18px; margin:7px 0 12px; font-size:12px; }
.property-source-links a { display:inline-flex; align-items:center; gap:4px; color:var(--green); text-decoration:underline; text-underline-offset:3px; font-weight:600; }
.property-source-links .icon { width:14px; height:14px; }
.property-source-links > span { font-size:11px; color:var(--muted); }
.detail-top-actions .property-source-links { margin:0 auto 0 0; }
.business-pill.unsuitable { background:#fbe9e9; color:#b14a4a; }
.intake-intro { display:flex; justify-content:space-between; gap:25px; align-items:center; padding:26px 30px; border:1px solid #dce8e1; background:linear-gradient(100deg,#f3faf6,#fff); border-radius:12px; margin-bottom:22px; }
.section-eyebrow { color:var(--green); font-size:12px; font-weight:700; }
.intake-intro h2 { font-size:23px; margin:8px 0 10px; }
.intake-intro p { font-size:13px; color:var(--muted); line-height:1.9; margin:0; }
.intake-intro > .button { flex-shrink:0; min-height:46px; }
.intake-queue.panel { padding:22px; }
.intake-tabs { display:flex; gap:22px; align-items:center; margin:0 0 18px; padding:0 0 14px; border-bottom:1px solid var(--line); }
.intake-tabs .selected { color:var(--green); font-weight:700; text-decoration:underline; text-underline-offset:9px; }
.intake-tabs > :last-child { margin-left:auto; }
.receipt-filters { display:flex; gap:10px; margin:0 0 18px; }
.receipt-counter { flex:1; display:flex; justify-content:space-between; align-items:center; padding:13px 16px; border:1px solid var(--line); background:var(--surface); border-radius:8px; color:var(--muted); cursor:pointer; min-width:0; }
.receipt-counter.active { color:var(--green); border-color:var(--green); background:#f0f8f3; box-shadow:inset 0 0 0 1px var(--green); }
.receipt-counter span { font-size:12px; }
.receipt-counter strong { font-size:23px; white-space:nowrap; }
.receipt-counter strong small { font-size:10px; font-weight:400; margin-left:4px; }
.receipt-search-line { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:16px; }
.receipt-search-line .receipt-search { flex:1; min-width:220px; margin:0; max-width:420px; }
.receipt-search-line .small-note { font-size:11px; }
.receipt-list { display:grid; gap:12px; }
.receipt-card { display:flex; gap:15px; align-items:flex-start; border:1px solid var(--line); border-radius:9px; padding:19px; background:var(--surface); }
.receipt-card-icon,.result-icon { color:var(--green); background:#eef7f1; border-radius:50%; width:38px; height:38px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.receipt-card-icon .icon { width:21px; height:21px; }
.receipt-card.attention .receipt-card-icon,.receipt-card.partial .receipt-card-icon { background:#fff4e0; color:#ac7520; }
.receipt-card-main { flex:1; min-width:0; }
.receipt-name { text-align:left; background:none; border:0; padding:0; color:var(--ink); font-size:16px; font-weight:700; line-height:1.6; overflow-wrap:anywhere; cursor:pointer; }
.receipt-name:hover { color:var(--green); text-decoration:underline; }
.receipt-card-main p { font-size:12px; color:var(--muted); line-height:1.7; margin:6px 0; }
.receipt-card-main .receipt-meta { font-size:11px; margin:4px 0 12px; }
.receipt-outcome { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.receipt-outcome b { font-size:13px; color:var(--green); }
.receipt-outcome > span { font-size:11px; padding:3px 7px; background:#fff4e0; color:#99681f; border-radius:4px; }
.receipt-card.attention .receipt-outcome b,.receipt-card.partial .receipt-outcome b { color:#99681f; }
.receipt-open { font-size:12px; margin-top:2px; flex-shrink:0; }
.receipt-property-links { display:flex; gap:7px; flex-wrap:wrap; margin-top:10px; }
.receipt-property-links button { display:inline-flex; align-items:center; gap:8px; border:1px solid #dbe8df; border-radius:5px; background:#f5faf7; color:var(--green); padding:6px 9px; font-size:12px; cursor:pointer; text-align:left; }
.receipt-property-links .icon { width:13px; height:13px; }
.intake-runtime-note { padding-top:12px; border-top:1px solid var(--line); }
.intake-upload { max-width:850px; margin:auto; }
.upload-dropzone { position:relative; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; padding:30px 18px; border:2px dashed #b6d0c2; border-radius:10px; background:#f6fbf8; cursor:pointer; text-align:center; }
.upload-dropzone input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.upload-dropzone:focus-within { outline:3px solid var(--green); outline-offset:3px; }
.upload-dropzone.dragging { background:#e3f3e9; border-color:var(--green); }
.upload-drop-icon { color:var(--green); }
.upload-drop-icon .icon { width:32px; height:32px; }
.upload-dropzone b { font-size:19px; }
.upload-dropzone > span:last-of-type { font-size:12px; color:var(--muted); }
.upload-file-list { margin-top:15px; font-size:12px; }
.upload-file-list > b { color:var(--green); }
.upload-file-list ul { margin:8px 0 0; padding:0; list-style:none; }
.upload-file-list li { display:flex; align-items:center; gap:9px; padding:8px 0; border-bottom:1px solid var(--line); }
.upload-file-list li .icon { width:16px; height:16px; color:var(--muted); flex-shrink:0; }
.upload-file-list li span { overflow-wrap:anywhere; }
.upload-file-list small { color:var(--muted); margin-left:auto; white-space:nowrap; }
.auto-intake-steps { list-style:none; display:flex; justify-content:center; gap:24px; padding:0; margin:25px 0 18px; }
.auto-intake-steps li { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); }
.auto-intake-steps b { display:flex; align-items:center; justify-content:center; border-radius:50%; color:var(--green); width:24px; height:24px; background:#e9f4ed; font-size:12px; }
.upload-explanation { font-size:13px; line-height:1.9; color:var(--muted); margin-bottom:18px; }
.upload-options { margin-bottom:18px; font-size:12px; }
.upload-options .field { margin-top:12px; }
.upload-submit { width:100%; justify-content:center; min-height:46px; font-size:15px; }
.receipt-result-banner { display:flex; gap:14px; padding:20px; border:1px solid #cde3d5; border-radius:10px; background:#f3faf5; }
.receipt-result-banner h3 { margin:0 0 7px; color:var(--green); font-size:20px; }
.receipt-result-banner p { font-size:13px; line-height:1.8; color:var(--muted); margin:4px 0; }
.receipt-result-banner.partial,.receipt-result-banner.attention { background:#fffaf1; border-color:#ecddbd; }
.receipt-result-banner.partial h3,.receipt-result-banner.attention h3 { color:#916728; }
.result-icon { background:#e0f0e6; }
.receipt-result-actions { display:flex; gap:15px; flex-wrap:wrap; align-items:center; margin:22px 0; }
.registered-results h3 { font-size:16px; margin-bottom:12px; }
.registered-results h3 > span { font-size:12px; margin-left:8px; color:var(--muted); }
.registered-results article { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:17px; border:1px solid var(--line); border-radius:8px; margin:9px 0; }
.registered-results b { font-size:16px; overflow-wrap:anywhere; }
.registered-results p { font-size:12px; color:var(--muted); margin:6px 0 0; }
.registered-results .button { white-space:nowrap; font-size:12px; }
.receipt-attention { border-top:1px solid var(--line); margin-top:23px; padding-top:20px; }
.receipt-attention h3 { font-size:16px; }
.receipt-attention > p { font-size:12px; line-height:1.8; color:var(--muted); }
.receipt-attention > .unresolved-page { display:flex; gap:12px; padding:12px; background:#fff6e6; border-radius:6px; color:#916728; }
.unresolved-page > b { flex-shrink:0; }
.receipt-attention > details { margin:9px 0; padding:12px; background:var(--surface-2); border-radius:6px; font-size:12px; }
.receipt-attention li { margin:7px 0; line-height:1.7; }
.manual-complement,.receipt-technical { margin-top:22px; padding:15px 0 0; border-top:1px solid var(--line); font-size:13px; }
.manual-complement > summary,.receipt-technical > summary { color:var(--muted); }
.manual-complement form { margin-top:18px; }
.receipt-technical .extraction-results { margin-top:20px; }
:root[data-theme=dark] .intake-intro { background:var(--surface); border-color:var(--line); }
:root[data-theme=dark] .receipt-counter.active,:root[data-theme=dark] .upload-dropzone,:root[data-theme=dark] .receipt-result-banner,:root[data-theme=dark] .receipt-property-links button { background:#223e2d; border-color:#45634f; }
:root[data-theme=dark] .receipt-result-banner.partial,:root[data-theme=dark] .receipt-result-banner.attention,:root[data-theme=dark] .receipt-attention > .unresolved-page { background:#433b29; color:#dfc38a; border-color:#6a5b3b; }
:root[data-theme=dark] .receipt-result-banner.partial h3,:root[data-theme=dark] .receipt-result-banner.attention h3 { color:#dfc38a; }
@media(max-width:900px) {
 .intake-intro { padding:22px; align-items:flex-start; flex-direction:column; gap:16px; }
 .receipt-filters { flex-wrap:wrap; }
 .receipt-counter { flex-basis:calc(50% - 10px); }
 .receipt-card { flex-wrap:wrap; }
 .receipt-open { margin-left:53px; }
}
@media(max-width:760px) {
 .property-source-links { gap:8px 12px; font-size:10px; margin:5px 0 9px; }
 .property-source-links > span { font-size:9px; }
 .property-source-links .icon { width:12px; height:12px; }
 .intake-intro { padding:18px; border-radius:9px; margin-bottom:14px; }
 .intake-intro h2 { font-size:19px; line-height:1.6; }
 .intake-intro p { font-size:12px; }
 .intake-queue.panel { padding:13px; }
 .receipt-counter { padding:10px; }
 .receipt-counter span { font-size:10px; }
 .receipt-counter strong { font-size:19px; }
 .receipt-search-line .receipt-search { min-width:0; width:100%; max-width:none; flex-basis:100%; }
 .receipt-card { gap:10px; padding:13px; }
 .receipt-card-icon { width:28px; height:28px; }
 .receipt-card-icon .icon { width:17px; height:17px; }
 .receipt-name { font-size:14px; }
 .receipt-card-main p { font-size:11px; }
 .receipt-outcome b { font-size:12px; }
 .receipt-open { margin-left:38px; font-size:11px; }
 .intake-tabs { gap:13px; }
 .intake-tabs .text-button { font-size:10px; }
 .upload-dropzone { padding:24px 13px; }
 .upload-dropzone b { font-size:16px; }
 .auto-intake-steps { gap:7px; margin:20px 0 15px; }
 .auto-intake-steps li { font-size:9px; gap:4px; }
 .auto-intake-steps b { width:19px; height:19px; font-size:10px; flex-shrink:0; }
 .upload-explanation { font-size:12px; }
 .receipt-result-banner { padding:14px; gap:10px; }
 .receipt-result-banner h3 { font-size:17px; line-height:1.6; }
 .receipt-result-banner p { font-size:11px; }
 .receipt-result-banner .result-icon { width:27px; height:27px; }
 .receipt-result-banner .result-icon .icon { width:17px; height:17px; }
 .registered-results article { padding:12px; align-items:flex-start; flex-direction:column; }
 .registered-results b { font-size:14px; }
 .receipt-attention > .unresolved-page { flex-direction:column; gap:5px; }
}
.intake-tabs > .text-button { flex:0 0 auto; }
body.document-preview { margin:0; background:#e8ecea; color:#263c32; font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif; }
.document-preview-header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:16px 24px; background:#fff; border-bottom:1px solid #d2dbd5; }
.document-preview-header h1 { font-size:19px; margin:0; overflow-wrap:anywhere; }
.document-preview-header p { margin:5px 0 0; font-size:12px; color:#657a6c; }
.document-preview-header a { color:#226449; font-size:13px; font-weight:600; }
.document-preview-nav { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.document-preview-pages { max-width:1100px; margin:20px auto; padding:0 15px; }
.document-preview-page { margin:0 0 24px; padding:12px; background:#fff; box-shadow:0 2px 9px #1b38221a; border-radius:5px; }
.document-preview-page img { display:block; width:100%; height:auto; }
.document-preview-page figcaption { font-size:12px; color:#657a6c; padding:5px 0 12px; }
@media(max-width:760px) { .document-preview-header { padding:13px; } .document-preview-header h1 { font-size:15px; } .document-preview-pages { padding:0 7px; margin:10px auto; } .document-preview-page { padding:5px; } }
.document-preview-nav { max-width:1100px; padding:13px 20px 0; margin:0 auto; font-size:13px; }
.document-preview-page { scroll-margin-top:105px; }
/* KDI retains the original summary → trend → people flow. */
.analytics-workspace { margin-top:18px; }
.analytics-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.kdi-period-shortcuts,.kdi-metric-tabs { display:flex; gap:5px; flex-wrap:wrap; }
.kdi-period-shortcuts button,.kdi-metric-tabs button { background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:8px 12px; color:var(--muted); cursor:pointer; font-size:12px; }
.kdi-period-shortcuts button.active,.kdi-metric-tabs button.active { background:#e9f5ed; color:var(--green); border-color:#a1c8b1; font-weight:700; }
.analytics-section-nav { display:flex; gap:20px; flex-wrap:wrap; font-size:12px; margin:0 0 22px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.analytics-section-nav a { color:var(--muted); text-decoration:none; }
.analytics-section-nav a:hover { color:var(--green); text-decoration:underline; }
.analytics-workspace section[id] { scroll-margin-top:80px; }
.kdi-section-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; flex-wrap:wrap; margin-bottom:17px; }
.kdi-section-heading h2,.kdi-section-heading h3 { margin:0; }
.kdi-section-heading h2 { font-size:19px; }
.kdi-section-heading h3 { font-size:15px; }
.kdi-section-heading p { margin:6px 0 0; font-size:12px; color:var(--muted); }
.kdi-overview { margin-bottom:24px; }
.kdi-funnel { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); border-radius:11px; background:var(--surface); overflow:hidden; }
.kdi-stage { padding:20px 22px 16px; min-width:0; }
.kdi-stage + .kdi-stage { border-left:1px solid var(--line); }
.kdi-stage.acquisition { background:#f3faf6; }
.kdi-stage-label { display:flex; align-items:center; gap:7px; }
.kdi-stage-label > span { font-size:9px; font-weight:700; border-radius:3px; padding:3px 5px; background:#edf2ef; color:#5b7065; }
.kdi-stage.acquisition .kdi-stage-label > span { background:var(--green); color:#fff; }
.kdi-stage h3 { font-size:14px; margin:0; }
.kdi-stage-count { display:flex; align-items:baseline; gap:8px; margin:13px 0 9px; }
.kdi-stage-count strong { font-size:40px; line-height:1.2; font-weight:700; letter-spacing:-1px; }
.kdi-stage-count > span { font-size:12px; color:var(--muted); }
.kdi-today { font-size:12px; color:var(--muted); }
.kdi-today b { font-size:14px; color:var(--ink); margin:0 3px; }
.kdi-target { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:11px; min-height:30px; margin-top:8px; color:var(--muted); }
.kdi-target small { font-size:10px; }
.kdi-stage progress,.goal-grid progress { display:block; width:100%; height:5px; accent-color:var(--green); border:0; margin:5px 0 12px; }
.kdi-conversion { border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:10px; color:var(--muted); padding-top:12px; margin-top:10px; }
.kdi-conversion b { font-size:12px; color:var(--ink); }
.kdi-count-note { font-size:11px; color:var(--muted); margin:12px 0; line-height:1.8; }
.kdi-supporting { display:flex; flex-wrap:wrap; gap:10px 25px; padding:12px 16px; background:#eef3f0; border-radius:6px; font-size:11px; color:var(--muted); }
.kdi-supporting b { color:var(--ink); font-size:13px; margin:0 4px; }
.analytics-workspace > .panel { margin-bottom:24px; padding:23px; }
.kdi-trend-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:12px; }
.kdi-trend-tools > label { display:flex; align-items:center; gap:9px; font-size:11px; color:var(--muted); }
.kdi-trend-tools .select { width:auto; min-height:34px; font-size:12px; }
.kdi-range-presets { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:12px; font-size:11px; }
.kdi-range-presets button { font-size:11px; }
.kdi-chart .kdi-target-line { stroke:#bc7445; stroke-width:1.5; stroke-dasharray:6 4; }
.goal-legend { color:#a36f41; }
.kdi-scroll-table { max-height:380px; overflow:auto; border:1px solid var(--line); border-radius:6px; }
.kdi-scroll-table thead { position:sticky; top:0; z-index:1; }
.kdi-scroll-table tfoot { position:sticky; bottom:0; background:#eef5f0; }
.analytics-workspace table { width:100%; }
.analytics-workspace th { white-space:nowrap; font-size:11px; }
.analytics-workspace td { font-size:12px; }
.analytics-workspace .rate-cell { text-align:right; color:#6d8d7c; font-size:11px; }
.kdi-scroll-table tfoot td,.kdi-scroll-table tfoot th { font-weight:700; background:#eef5f0; }
.analytics-workspace .table-title { margin:20px 0 12px; }
.goal-current-summary { display:flex; flex-wrap:wrap; gap:12px 25px; font-size:12px; margin-bottom:18px; color:var(--muted); }
.goal-current-summary b { color:var(--ink); }
.routing-links { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.criteria-workspace { margin-top:20px; }
.criteria-overview { background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--green); border-radius:10px; padding:23px 26px; }
.criteria-overview-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.criteria-kicker { display:block; color:var(--green); font-size:11px; font-weight:700; margin-bottom:7px; }
.criteria-overview h2 { margin:0; font-size:21px; line-height:1.65; }
.criteria-ai-state,.criteria-kind,.criteria-scope { display:inline-block; border-radius:5px; padding:5px 9px; font-size:11px; white-space:nowrap; color:var(--muted); background:var(--bg); }
.criteria-ai-state.enabled { color:var(--green); background:var(--green-bg); }
.criteria-overview > p { color:var(--muted); font-size:12px; margin:11px 0 20px; }
.criteria-key-points { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line); padding-top:16px; gap:15px; }
.criteria-key-points > div { min-width:0; }
.criteria-key-points span { display:block; color:var(--muted); font-size:11px; }
.criteria-key-points b { display:block; font-size:24px; line-height:1.6; margin-top:4px; }
.criteria-key-points small { font-size:11px; font-weight:400; margin-left:5px; }
.criteria-overview .criteria-key-note { margin:14px 0 0; font-size:11px; }
.criteria-section-nav { display:flex; gap:23px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding:19px 0 13px; margin-bottom:23px; font-size:12px; }
.criteria-section-nav a { color:var(--muted); text-decoration:none; }
.criteria-section-nav a:hover { text-decoration:underline; color:var(--green); }
.criteria-workspace > .panel { padding:24px; margin-bottom:22px; }
.criteria-workspace section[id] { scroll-margin-top:80px; }
.criteria-section-heading { display:flex; justify-content:space-between; gap:18px; align-items:center; flex-wrap:wrap; margin-bottom:19px; }
.criteria-section-heading h2,.criteria-version h2 { margin:0; font-size:18px; }
.criteria-section-heading p { font-size:12px; color:var(--muted); margin:6px 0 0; }
.criteria-policy-list > article { display:grid; grid-template-columns:30px minmax(0,1fr); gap:16px; padding:18px 0; }
.criteria-policy-list > article + article { border-top:1px solid var(--line); }
.criteria-policy-index { display:flex; align-items:center; justify-content:center; width:28px; height:28px; background:var(--green-bg); color:var(--green); border-radius:50%; font-size:12px; font-weight:700; }
.criteria-policy-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.criteria-policy-heading h3 { margin:0; font-size:14px; }
.criteria-policy-list p { font-size:13px; line-height:1.9; margin:8px 0 0; }
.criteria-policy-list .criteria-limitation { color:var(--muted); font-size:11px; margin-top:5px; }
.criteria-calculation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.criteria-calculation article { position:relative; padding:18px; border:1px solid var(--line); border-radius:7px; background:var(--bg); }
.criteria-step-number { color:var(--green); font-size:11px; font-weight:700; }
.criteria-calculation h3 { font-size:13px; margin:7px 0; }
.criteria-calculation b { display:block; color:var(--green); font-size:22px; }
.criteria-calculation p { font-size:12px; line-height:1.8; color:var(--muted); margin:8px 0 0; }
.criteria-workspace .criteria-important { margin:16px 0; font-size:12px; line-height:1.9; padding:12px 15px; background:var(--green-bg); border-radius:5px; }
.criteria-business-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.criteria-business-grid h3 { margin:0 0 7px; font-size:14px; }
.criteria-business-grid p { font-size:12px; line-height:1.9; margin:0 0 9px; }
.criteria-business-grid small { color:var(--muted); font-size:10px; }
.criteria-technical { border-top:1px solid var(--line); padding-top:16px; margin-top:22px; }
.criteria-technical summary { color:var(--green); font-size:12px; cursor:pointer; }
.criteria-technical .table-wrap { margin-top:15px; }
.criteria-technical td { font-size:12px; vertical-align:top; }
.criteria-rule-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.criteria-rule-list article { border:1px solid var(--line); border-radius:7px; padding:17px; }
.criteria-rule-list h3 { margin:0; font-size:14px; }
.criteria-rule-list .status-line { align-items:flex-start; flex-wrap:wrap; gap:9px; }
.criteria-kind.strict { color:var(--red); background:var(--red-bg); }
.criteria-rule-list dl { margin:14px 0; }
.criteria-rule-list dl > div { display:flex; justify-content:space-between; gap:12px; font-size:11px; margin:8px 0; }
.criteria-rule-list dt { color:var(--muted); }
.criteria-rule-list dd { margin:0; text-align:right; }
.criteria-rule-list p { color:var(--muted); font-size:11px; line-height:1.85; margin:0; }
.criteria-learning-steps { padding:0; margin:0; list-style:none; counter-reset:knowledge-step; }
.criteria-learning-steps li { position:relative; counter-increment:knowledge-step; padding:15px 0 15px 40px; border-top:1px solid var(--line); }
.criteria-learning-steps li:before { content:counter(knowledge-step); position:absolute; left:0; top:18px; background:var(--green-bg); color:var(--green); border-radius:50%; font-size:11px; font-weight:700; width:26px; height:26px; text-align:center; line-height:26px; }
.criteria-learning-steps li > div { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.criteria-learning-steps h3 { margin:0; font-size:13px; }
.criteria-learning-steps span { font-size:10px; color:var(--green); }
.criteria-learning-steps p { font-size:12px; line-height:1.85; color:var(--muted); margin:7px 0 0; }
.criteria-learning-steps .planned:before { color:var(--muted); background:var(--bg); }
.criteria-learning-steps .planned span { color:var(--amber); }
.criteria-knowledge-counts { display:flex; gap:8px 22px; flex-wrap:wrap; padding:13px 16px; background:var(--bg); border-radius:5px; margin:16px 0; font-size:11px; color:var(--muted); }
.criteria-knowledge-counts b { color:var(--ink); margin-left:5px; }
.criteria-limits { padding-left:18px; margin:16px 0 0; color:var(--muted); font-size:11px; line-height:2; }
.criteria-gap-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.criteria-gap-list article { border:1px solid var(--line); padding:17px; border-radius:6px; }
.criteria-gap-list article > div { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.criteria-gap-list h3 { margin:0; font-size:13px; }
.criteria-gap-list span { color:var(--amber); font-size:10px; }
.criteria-gap-list p { margin:8px 0 0; font-size:12px; line-height:1.85; color:var(--muted); }
.criteria-version dl { display:flex; gap:14px 35px; flex-wrap:wrap; margin:18px 0; }
.criteria-version dl > div { min-width:150px; }
.criteria-version dt { color:var(--muted); font-size:10px; margin-bottom:4px; }
.criteria-version dd { margin:0; font-size:12px; overflow-wrap:anywhere; }
.criteria-version p { font-size:11px; line-height:1.85; color:var(--muted); }
@media(max-width:1000px) {
 .criteria-calculation,.criteria-business-grid,.criteria-rule-list { grid-template-columns:1fr; }
 .criteria-calculation article { padding:15px; }
 .criteria-calculation b { font-size:20px; }
}
@media(max-width:760px) {
 .criteria-overview { padding:18px; }
 .criteria-overview h2 { font-size:18px; }
 .criteria-overview-heading { gap:12px; }
 .criteria-key-points { grid-template-columns:1fr 1fr; gap:13px; }
 .criteria-key-points b { font-size:22px; }
 .criteria-section-nav { gap:11px 19px; font-size:11px; }
 .criteria-workspace > .panel { padding:17px; }
 .criteria-policy-list > article { gap:11px; grid-template-columns:26px minmax(0,1fr); }
 .criteria-policy-list p { font-size:12px; }
 .criteria-policy-heading h3 { font-size:13px; }
 .criteria-gap-list { grid-template-columns:1fr; }
 .criteria-section-heading { gap:12px; }
 .criteria-section-heading h2,.criteria-version h2 { font-size:16px; }
 .routing-links { gap:10px; }
}
.goal-grid .goal-achievement { color:var(--green); font-size:12px; font-weight:600; }
.goal-editor .goal-inputs { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; margin-bottom:15px; }
.kdi-weekly-section { border-top:1px solid var(--line); padding-top:25px; margin-top:25px; }
.kdi-weekly-section .weekly-strip { border-radius:8px; padding:15px; margin-bottom:18px; }
.kdi-weekly-section > .panel { border-radius:9px; margin-bottom:20px; }
:root[data-theme=dark] .kdi-stage.acquisition,:root[data-theme=dark] .kdi-period-shortcuts button.active,:root[data-theme=dark] .kdi-metric-tabs button.active,:root[data-theme=dark] .kdi-supporting,:root[data-theme=dark] .kdi-scroll-table tfoot td,:root[data-theme=dark] .kdi-scroll-table tfoot th { background:#243e2e; }
@media(max-width:1000px) {
 .kdi-stage { padding:17px 14px; }
 .kdi-stage-label { flex-wrap:wrap; }
 .kdi-stage h3 { font-size:12px; }
 .kdi-stage-count strong { font-size:32px; }
 .kdi-today { font-size:10px; }
}
@media(max-width:760px) {
 .analytics-workspace { margin-top:14px; }
 .analytics-section-nav { gap:10px 17px; font-size:10px; margin-bottom:18px; }
 .kdi-period-shortcuts button,.kdi-metric-tabs button { padding:6px 9px; font-size:10px; }
 .analytics-controls > .text-button { font-size:10px; }
 .kdi-section-heading h2 { font-size:17px; }
 .kdi-section-heading p { font-size:10px; }
 .kdi-funnel { grid-template-columns:1fr 1fr; }
 .kdi-stage { padding:15px; }
 .kdi-stage:nth-child(3) { border-left:0; border-top:1px solid var(--line); }
 .kdi-stage:nth-child(4) { border-top:1px solid var(--line); }
 .kdi-target { font-size:10px; }
 .kdi-conversion { align-items:flex-start; }
 .kdi-stage-count strong { font-size:32px; }
 .kdi-supporting { gap:8px 15px; font-size:10px; padding:10px; }
 .analytics-workspace > .panel { padding:15px; }
 .kdi-trend-tools { gap:10px; }
 .kdi-range-presets { gap:17px; }
 .goal-current-summary { gap:9px; flex-direction:column; font-size:11px; }
 .goal-editor .goal-inputs { grid-template-columns:1fr; }
}

.criteria-snapshot-list {margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
.criteria-snapshot-list article {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid var(--line)}
.criteria-snapshot-list code,.criteria-snapshot-content code {overflow-wrap:anywhere}
.criteria-snapshot-content h3 {margin-top:28px}
.criteria-snapshot-content p {line-height:1.8}
.decision-review-content {max-width:1100px;margin:0 auto}
#decision-review-dialog {width:min(1140px,calc(100vw - 32px))}
.impact-stats {display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}
.impact-stats>div {padding:17px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.impact-stats span,.impact-stats b {display:block}
.impact-stats span {font-size:12px;color:var(--muted)}
.impact-stats b {font-size:29px;margin-top:7px}
.impact-stats small {font-size:12px;margin-left:6px;font-weight:400}
.impact-stats .attention {border-color:#d99c51;background:#fff7ec;color:#8e4d0c}
.impact-service-table caption {text-align:left;font-size:12px;color:var(--muted);padding-bottom:10px}
.impact-note {border-left:3px solid var(--green);padding:12px 16px;background:var(--bg);line-height:1.8}
.impact-list-title {margin:28px 0 16px}
.impact-property {border:1px solid var(--line);border-radius:8px;margin:10px 0}
.impact-property>summary {padding:13px 17px;cursor:pointer}
.impact-property>summary b {margin-right:12px}
.impact-property>summary span,.impact-property>summary small {font-size:11px;color:var(--muted);margin-right:12px}
.impact-property-body {padding:0 18px 18px}
.impact-more {margin:18px 0}
.impact-more>summary {color:var(--green);cursor:pointer;font-weight:600}
.policy-review-section {scroll-margin-top:85px}
.policy-overview-stats,.policy-evidence-counts,.policy-actions {display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap;margin:18px 0}
.policy-overview-stats {padding:14px 18px;background:var(--bg);border-radius:8px;font-size:13px}
.policy-overview-stats b {font-size:20px;color:var(--green);margin:0 4px}
.policy-draft {border:1px solid var(--line);padding:20px;border-radius:9px;margin:16px 0}
.policy-draft h3 {font-size:15px;line-height:1.7;margin:0}
.policy-draft>p {font-size:13px;line-height:1.8}
.policy-evidence-counts {font-size:12px;color:var(--muted)}
.policy-draft>details {border-top:1px solid var(--line);padding:12px 0;font-size:13px}
.policy-source {margin:14px 0;padding-left:14px;border-left:2px solid var(--line)}
.policy-source p {margin:5px 0}
.evaluation-registry {border-top:1px solid var(--line);padding-top:24px;margin-top:26px}
.evaluation-registry h3 {margin:0;font-size:17px}
.policy-gate {background:var(--amber-bg);border:1px solid #e7cf9f;border-radius:9px;padding:18px 22px;margin-bottom:22px}
.policy-gate.eligible {background:var(--green-bg);border-color:#a5cdb6}
.policy-gate h3 {margin:0 0 10px}
.policy-gate li {margin:5px 0;font-size:13px}
.policy-collecting {margin:20px 0}
.evaluation-services {margin:18px 0;border:1px solid var(--line);border-radius:8px;padding:15px 18px}
.evaluation-services .check-field {display:inline-flex;margin-right:20px}
.evaluation-group-fields {margin:20px 0;padding:14px 17px;border:1px solid var(--line);border-radius:8px}
#policy-evaluation-dialog {width:min(1140px,calc(100vw - 32px))}
#policy-dialog {width:min(740px,calc(100vw - 32px))}
@media(max-width:700px){.policy-draft{padding:14px}.policy-actions .button{width:100%}.policy-overview-stats{gap:10px}.evaluation-services .check-field{display:flex}}
.impact-change {display:grid;grid-template-columns:90px minmax(0,1fr) 20px minmax(0,1fr);gap:14px;border-top:1px solid var(--line);padding:16px 0 0;margin-top:16px;align-items:start;font-size:13px}
.impact-change h4 {margin:0}
.impact-change>div>span {display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
.impact-change small {display:block;color:var(--muted);margin-top:5px}
.impact-change p {font-size:12px;line-height:1.7;margin:6px 0}
.impact-change details {margin-top:10px;font-size:12px}
.impact-adopt {border-top:1px solid var(--line);padding-top:22px;margin-top:26px}
.impact-actions {display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.impact-proposed {margin-bottom:24px}
.impact-proposed summary {font-weight:600;margin-bottom:14px}
.impact-lesson {padding:16px 20px;border-radius:8px;background:var(--bg);border:1px solid var(--line)}
.rule-revision {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-top:1px solid var(--line)}
.rule-revision p {margin:7px 0;line-height:1.6}
.rule-revision .button {flex-shrink:0}
:root[data-theme=dark] .impact-stats .attention {background:#493821;color:#f5cf95}
@media(max-width:700px){.impact-stats{grid-template-columns:1fr 1fr}.impact-change{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);gap:8px}.impact-change h4{grid-column:1/-1}.impact-stats b{font-size:23px}.rule-revision{align-items:flex-start;flex-direction:column}.impact-actions .button{width:100%}}
@media(max-width:650px){.criteria-snapshot-list article {align-items:flex-start;flex-direction:column}}
.page-reading-panel{margin:20px 0;padding:20px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px}
.page-reading-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.page-reading-heading h3{margin:0 0 8px}.page-reading-heading p{margin:0}
.page-reading-list{margin-top:12px}.page-reading-row{display:grid;grid-template-columns:78px minmax(0,1fr) auto;align-items:start;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.page-reading-row:last-child{border:0}
.page-reading-number{font-weight:650}.page-reading-row b{font-size:14px}.page-reading-row.complete b{color:var(--green)}.page-reading-row.attention b{color:var(--amber)}.page-reading-row small{display:block;color:var(--muted);line-height:1.8;margin-top:4px;overflow-wrap:anywhere}
@media(max-width:650px){.page-reading-panel{padding:14px}.page-reading-heading{align-items:flex-start;flex-direction:column}.page-reading-row{grid-template-columns:64px minmax(0,1fr);gap:10px}.page-reading-row>a{grid-column:2}}
.processing-panel{margin:18px 0;padding:18px 22px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:9px;background:var(--surface,#fff)}.processing-panel.waiting,.processing-panel.attention{border-left-color:var(--amber)}.processing-panel h3{font-size:16px;margin:0 0 6px}.processing-panel p{margin:5px 0;color:var(--muted)}.processing-counts{display:flex;flex-wrap:wrap;gap:8px 22px;margin:12px 0}.processing-counts span{white-space:nowrap}.processing-counts b{margin-left:6px}.processing-panel details{font-size:12px}.processing-panel details small{display:block}.processing-panel details>p{padding-top:6px}
.upload-file-list .upload-file-error{background:var(--amber-bg);padding:10px;border-radius:5px}.upload-file-error em{font-style:normal;display:block;font-size:12px;color:var(--amber);line-height:1.6;margin-top:4px}.upload-saved-results{margin-left:10px}

.reason-interpretation{margin:14px 0;padding:14px 18px;background:var(--bg,#f3f7f4);border-left:3px solid #6b9b82;border-radius:4px}.reason-interpretation blockquote{margin:10px 0;padding-left:12px;border-left:2px solid #bdcfc4}.input-evidence li{margin:6px 0}

.ai-comparison-table{table-layout:fixed;white-space:normal}.ai-comparison-table th,.ai-comparison-table td{vertical-align:top;overflow-wrap:anywhere}.ai-comparison-table th:first-child{width:86px}.ai-comparison-table td p{line-height:1.8}.ai-comparison-table td{width:calc((100% - 86px)/2)}

.policy-ai-flow {margin:18px 0;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.policy-ai-flow h3 {margin:0;font-size:16px}
.policy-ai-flow ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0;list-style:none;counter-reset:policy-step}
.policy-ai-flow li {counter-increment:policy-step;display:grid;grid-template-columns:28px 1fr;gap:6px 8px;font-size:13px;line-height:1.8}
.policy-ai-flow li::before {content:counter(policy-step);grid-row:1/3;width:27px;height:27px;border-radius:50%;background:var(--green);color:white;text-align:center;font-weight:700}
.policy-ai-flow li span {grid-column:2;color:var(--muted)}
.policy-ai-conditions {margin:16px 0;padding:16px 20px;background:var(--bg);border-left:3px solid var(--green);border-radius:4px;font-size:13px;line-height:1.8}
.policy-ai-conditions .status-line {font-size:12px;gap:10px;flex-wrap:wrap}
.policy-ai-conditions ul {padding-left:22px;margin:10px 0}
@media(max-width:750px){.policy-ai-flow ol{grid-template-columns:1fr}.policy-ai-flow{padding:16px}}

/* Plain-language search intent and feedback share one workspace. */
.brief-business-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 24px}.brief-business-tabs button{background:var(--surface,#fff);border:1px solid var(--border,#dce5e1);border-radius:10px;text-align:left;padding:18px 22px;color:inherit;cursor:pointer}.brief-business-tabs b{display:block;font-size:18px}.brief-business-tabs small{display:block;margin-top:7px;color:var(--muted,#65746d)}.brief-business-tabs button.active{border:2px solid #218664;background:#eef8f2;padding:17px 21px;color:#166447}.brief-section-tabs{display:flex;gap:24px;border-bottom:1px solid var(--border,#dce5e1);margin-bottom:24px}.brief-section-tabs button{border:0;background:none;color:var(--muted,#65746d);padding:0 2px 15px;font-weight:600;cursor:pointer}.brief-section-tabs button.active{color:#167450;border-bottom:3px solid #218664}.brief-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.brief-main{min-width:0}.brief-aside{display:grid;gap:18px}.brief-main>.panel{margin-bottom:24px}.brief-editor-panel{padding:28px}.brief-editor-heading{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:20px}.brief-editor-heading h2{font-size:24px;margin:5px 0 8px}.brief-eyebrow{font-size:13px;font-weight:700;color:#29785c}.brief-seed-note{background:#f3f7ee;border-left:3px solid #91ad69;border-radius:4px;padding:13px 16px;margin-bottom:24px;line-height:1.7;color:#4d624b;font-size:14px}.brief-text-field{margin-bottom:24px;gap:9px}.brief-text-field>span{font-size:17px;font-weight:700}.brief-text-field>small{font-size:13px;color:var(--muted,#65746d);font-weight:400}.brief-text-field textarea{font:inherit;line-height:1.9;width:100%;padding:15px 17px;resize:vertical;min-height:180px;border:1px solid #c8d5ce;border-radius:8px;background:var(--surface,#fff);color:inherit}.brief-text-field textarea:focus{outline:2px solid #86bfa5;outline-offset:2px}.brief-save-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.brief-draft-state{font-size:13px;color:var(--muted,#65746d)}.brief-processing-state{border-top:1px solid var(--border,#dce5e1);padding-top:18px;margin-top:22px;display:flex;align-items:baseline;gap:8px;font-size:13px;color:var(--muted,#65746d);line-height:1.7}.brief-status-dot{flex:none;width:8px;height:8px;border-radius:50%;background:#a9b5ae}.brief-status-dot.enabled{background:#24925d}.brief-examples{margin-top:18px;font-size:13px;line-height:1.8}.brief-examples summary,.brief-advanced>summary{color:#39775c;cursor:pointer;font-weight:600}.brief-howto{padding-left:20px;display:grid;gap:20px}.brief-howto li{padding-left:6px}.brief-howto b,.brief-howto span{display:block}.brief-howto span{font-size:13px;line-height:1.7;color:var(--muted,#65746d);margin-top:6px}.brief-history details{padding:12px 0;border-bottom:1px solid var(--border,#dce5e1);font-size:13px}.brief-history summary{cursor:pointer;font-weight:600;line-height:1.7}.brief-preserve-lines{white-space:pre-wrap;line-height:1.9}.brief-history h4{margin:16px 0 4px}.brief-history p{max-height:320px;overflow:auto}.brief-empty{padding:24px 18px;background:var(--background,#f5f8f6);border-radius:8px;line-height:1.8}.brief-empty p{font-size:14px;color:var(--muted,#65746d)}.brief-suggestions>article{padding:18px 0;border-bottom:1px solid var(--border,#dce5e1)}.brief-suggestions details{margin:12px 0}.brief-suggestions>article>small{color:var(--muted,#65746d)}.brief-advanced{padding:20px;border:1px solid var(--border,#dce5e1);border-radius:8px;margin-bottom:28px}.brief-advanced>p{font-size:13px;color:var(--muted,#65746d)}#brief-technical-content{margin-top:20px}.brief-ng-intro{margin:0 0 24px;line-height:1.8}.brief-diff p{padding:12px 15px;white-space:pre-wrap;line-height:1.8}.brief-diff .added{background:#e9f5ec;color:#1d6440}.brief-diff .removed{background:#fbeeed;color:#a23b35}.brief-checks{margin:12px 0}.brief-check{display:flex;gap:10px;padding:12px 0;border-bottom:1px solid var(--border,#dce5e1)}.brief-check>span{flex:none;align-self:start;border-radius:4px;background:#f1f3f2;color:#627169;font-size:11px;padding:3px 6px}.brief-check.match>span{background:#e3f3e8;color:#256d46}.brief-check.conflict>span{background:#fff0dd;color:#9c5b0d}.brief-check b{font-size:13px;font-weight:500;line-height:1.7}.brief-check p{font-size:12px;color:var(--muted,#65746d);line-height:1.7}.brief-advanced .criteria-key-points{grid-template-columns:repeat(2,1fr)}
@media(max-width:1050px){.brief-layout{grid-template-columns:minmax(0,1fr) 245px}.brief-editor-panel{padding:22px}}@media(max-width:800px){.brief-layout{grid-template-columns:1fr}.brief-aside{grid-template-columns:1fr 1fr}.brief-business-tabs{gap:8px}.brief-business-tabs button{padding:14px}.brief-business-tabs button.active{padding:13px}.brief-business-tabs b{font-size:16px}.brief-business-tabs small{font-size:11px}.brief-editor-heading h2{font-size:20px}}@media(max-width:520px){.brief-aside{grid-template-columns:1fr}.brief-section-tabs{gap:16px;font-size:13px}.brief-editor-panel{padding:18px}.brief-business-tabs b{font-size:14px}.brief-business-tabs button{padding:12px 8px}.brief-business-tabs button.active{padding:11px 7px}}
[data-theme="dark"] .brief-business-tabs button.active{background:#1e382b;color:#b9e4ca}[data-theme="dark"] .brief-seed-note{background:#283329;color:#bfd1b3}[data-theme="dark"] .brief-diff .added{background:#213a2a;color:#b6e2c3}[data-theme="dark"] .brief-diff .removed{background:#472b2a;color:#f1b2a8}
.brief-business-tabs{margin-bottom:16px}.brief-business-tabs button{padding:14px 20px}.brief-business-tabs button.active{padding:13px 19px}.brief-section-tabs{margin-bottom:18px}.brief-editor-heading{margin-bottom:14px}.brief-editor-heading h2{font-size:23px}.brief-seed-note{padding:10px 13px;margin-bottom:14px;font-size:13px}.brief-processing-state{margin:0 0 20px;padding:9px 0;border-top:0}.brief-editor-panel{padding:24px}

.intake-connections{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:20px}.intake-connections p{margin:8px 0}.intake-connections>div+div{border-left:1px solid var(--border,#dce5e2);padding-left:24px}@media(max-width:760px){.intake-connections{grid-template-columns:1fr}.intake-connections>div+div{border-left:0;padding-left:0}}

/* Google identity and administrator connection settings. */
.auth-page {min-height:100vh;display:grid;place-items:center;padding:24px;background:#f4f8f6;}
.auth-card {width:min(100%,480px);background:#fff;padding:40px;border:1px solid #dce6e1;border-radius:16px;box-shadow:0 12px 48px #17462d0b;}
.auth-card h1 {font-size:26px;margin:12px 0 16px;}
.auth-card p {line-height:1.8;margin-bottom:24px;}
.auth-brand {font-weight:700;color:#217855;letter-spacing:.03em;}
.account-controls {display:flex;align-items:center;gap:12px;font-size:13px;margin-left:auto;white-space:nowrap;}
.connection-panel {max-width:950px;margin-bottom:20px;}
.connection-steps {padding-left:24px;}
.connection-steps li {padding:16px 8px 24px;border-bottom:1px solid #e1e8e4;}
.connection-steps li:last-child {border-bottom:0;}
.connection-steps p {line-height:1.7;}
.connection-notice {padding:16px;border-radius:8px;background:#fff6df;color:#725422;line-height:1.7;}
.connection-error {color:#b23030;}
@media(max-width:900px){.account-controls{gap:8px;flex-wrap:wrap}.auth-card{padding:28px;}.account-controls>span{max-width:140px;overflow:hidden;text-overflow:ellipsis;}}

/* Shared document inbox: simple folder navigation and a large drop target. */
.document-library{background:var(--surface,#fff);border:1px solid var(--border,#dce5e1);border-radius:14px;padding:24px}
.library-toolbar,.library-files-heading,.library-folder-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.library-toolbar>div,.library-breadcrumb{display:flex;align-items:center;gap:12px}
.library-breadcrumb{font-size:20px}.library-breadcrumb button{border:0;background:none;color:var(--accent,#217a59);font:inherit;cursor:pointer;padding:4px}
.library-dropzone{border:2px dashed #a9c7ba;border-radius:12px;background:#f5faf7;display:flex;align-items:center;justify-content:center;gap:20px;min-height:154px;margin:20px 0 12px;padding:24px;cursor:pointer;color:#304e41}
.library-dropzone b{font-size:18px}.library-dropzone p{margin:8px 0}.library-dropzone small{color:#64796e}
.library-dropzone:hover,.library-dropzone.dragging{background:#e7f5ed;border-color:#21835b}.library-dropzone:focus-visible{outline:3px solid #21835b;outline-offset:3px}
.library-ai-notice{font-size:13px;padding:10px 14px;background:#fff7e8;color:#7e5b22;border-radius:7px;margin-bottom:24px}
.library-folder-heading{margin-top:28px}.library-folder-heading h2,.library-files-heading h2{font-size:17px;margin:0}.library-folder-heading span{color:#738179;font-size:13px}
.library-table{width:100%}.library-table th{font-weight:500;font-size:13px}.library-table td{padding:15px 12px}.library-folder-name{display:flex;align-items:center;gap:12px;border:0;background:none;font:inherit;cursor:pointer;color:inherit;text-align:left;padding:4px}.library-folder-name:hover{text-decoration:underline}.library-folder-icon{color:#7d9e8d}.library-folder-icon .icon{width:26px;height:26px}
.library-files-heading{margin-top:30px}.library-files-heading form{display:flex;gap:8px;align-items:center}.library-files-heading input{max-width:260px;padding:10px 12px;border:1px solid #dce5e1;border-radius:7px;font:inherit}
[data-theme=dark] .library-dropzone{background:#1b3027;color:#d6e9de}[data-theme=dark] .library-ai-notice{background:#39301e;color:#efcf95}
@media(max-width:760px){.document-library{padding:16px}.library-toolbar,.library-files-heading{align-items:flex-start;flex-direction:column}.library-dropzone{justify-content:flex-start}.library-dropzone b{font-size:16px}.library-breadcrumb{font-size:17px}.library-table th:last-child,.library-table td:last-child{display:none}}

[data-theme=dark] .document-library{background:var(--bg);border-color:var(--line)}
.library-people{margin:28px 0}.library-people h2{font-size:17px;margin:0}.library-person-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.library-person-button{border:1px solid var(--line);border-radius:10px;padding:12px 18px;background:var(--bg);text-align:left;color:var(--ink);display:flex;flex-direction:column;min-width:140px}.library-person-button:hover{border-color:var(--green);background:var(--green-bg)}.library-person-button small{font-size:12px;color:var(--muted)}.library-person-button.legacy{border-style:dashed}.library-migration-note{background:var(--amber-bg);padding:12px 16px;border-radius:7px;color:var(--amber)}.library-file-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.library-original-link{display:inline-block;text-decoration:none}.library-original-link:hover{text-decoration:underline}.library-file-actions .text-button{white-space:nowrap}
.favorite-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--green-bg);margin:12px 0 6px}.favorite-toolbar label{display:flex;align-items:center;gap:8px;font-weight:600;white-space:nowrap}.favorite-toolbar .select{min-width:220px;max-width:360px;font-weight:400}.favorite-toolbar .icon{color:#947124}.favorite-owners{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px;margin:8px 0}.favorite-owners>span{display:flex;align-items:center;gap:5px;color:#8d6e29}.favorite-owners .icon{width:14px;height:14px}.favorite-person{border:1px solid var(--line);padding:2px 9px;border-radius:20px;background:var(--bg);color:var(--ink);font-size:12px}.favorite-person:hover{border-color:#b19b58;background:var(--amber-bg)}.favorite-person small{font-size:10px;color:var(--muted);margin-left:4px}@media(max-width:760px){.favorite-toolbar{align-items:flex-start}.favorite-toolbar label{flex-wrap:wrap}.favorite-toolbar .select{min-width:0;max-width:100%;width:100%}.favorite-toolbar>.small-note{width:100%}}
