/* ETV 0.10.115 — approved light portal, pale-blue navigation and original logo.
   Presentation only: meeting geometry, rich-text formatting and document styles
   keep their existing ownership. This file is loaded after the portal styles. */
:root {
  --portal-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.portal-theme .offer-ai-start{max-width:900px;margin:20px auto;padding:28px}
body.portal-theme .offer-ai-start h2{margin:8px 0 12px}
body.portal-theme .offer-ai-start form{margin-top:24px}
body.portal-theme .offer-ai-start textarea{width:100%;min-height:220px;resize:vertical;line-height:1.6}
body.portal-theme .offer-ai-tools{display:flex;justify-content:flex-end;margin:4px 0}
body.portal-theme .offer-ai-start .actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
body.portal-theme .offer-ai-review{grid-column:1/-1;grid-row:2;background:#edf4f8;border:1px solid #d8e6ef;border-radius:8px;padding:16px 20px;color:#34576d}
body.portal-theme .flow-guided.with-ai-draft>.sales-wizard{grid-row:1}
@media(min-width:901px){body.portal-theme .flow-guided.with-ai-draft>.sales-form-section,body.portal-theme .flow-guided.with-ai-draft>.flow-summary{grid-row:3/9}}
body.portal-theme .offer-ai-review p{font-size:13px;line-height:1.5;margin:8px 0}
body.portal-theme .offer-ai-review summary{cursor:pointer;font-size:13px}
body.portal-theme .offer-ai-review li{font-size:13px;line-height:1.6}
@media(max-width:700px){body.portal-theme .offer-ai-start{margin:12px 0;padding:18px}body.portal-theme .offer-ai-start .actions>.btn{width:100%}body.portal-theme .offer-ai-start textarea{font-size:16px}}
body.portal-theme {
  --accent: #397ca4;
  --accent-dark: #2c678b;
  --ink: #242a30;
  --muted: #65727e;
  --line: #e5eaee;
  --bg: #f8f9fa;
  --soft: #edf4f8;
  --green: #377a5b;
  --radius: 10px;
  --shadow: 0 2px 10px #26384905;
  color-scheme: light;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--portal-font);
}
/* Navigation remains scrollable at short notebook heights. */
body.portal-theme .sidebar {
  background: #eaf3f6;
  color: #405969;
  border-right: 1px solid #dbe7ed;
  box-shadow: none;
}
body.portal-theme .sidebar .nav a {
  color: #526777;
  background: transparent;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: none;
}
body.portal-theme .sidebar .nav a:hover { background: #f6fafc; color: #283c4b; }
body.portal-theme .sidebar .nav a.active {
  background: #fff;
  color: #315e78;
  font-weight: 600;
  box-shadow: inset 3px 0 #81b0c3;
}
body.portal-theme .sidebar .nav a.active::before { display: none; }
body.portal-theme .portal-menu{margin-top:2px}
body.portal-theme .portal-menu>summary{list-style:none;display:flex;align-items:center;gap:9px;padding:12px 10px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;color:#526777}
body.portal-theme .portal-menu>summary::-webkit-details-marker{display:none}
body.portal-theme .portal-menu>summary:hover{background:#f6fafc}
body.portal-theme .portal-menu-arrow{margin-left:auto;transition:transform .15s}
body.portal-theme .portal-menu[open] .portal-menu-arrow{transform:rotate(180deg)}
body.portal-theme .portal-subnav{margin:3px 0 8px 17px;padding-left:10px;border-left:1px solid #cfdee7}
body.portal-theme .portal-subnav a{padding:8px 10px;font-size:12px}
body.portal-theme .portal-menu>summary{min-height:34px;padding:7px 9px;line-height:1.35}
body.portal-theme .portal-menu>summary:focus-visible{outline:2px solid #397ca4;outline-offset:-2px}
body.portal-theme .portal-menu.active-group>summary{color:#315e78;font-weight:600}
body.portal-theme .portal-menu:not([open])>.portal-subnav{display:none}
body.portal-theme .sidebar .navlabel { color: #627a88; font-size: 11px; font-weight: 500; }
body.portal-theme .sidebar .workspace {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dbe7ed;
  border-radius: 0;
  padding: 8px 10px 18px;
  margin-top: 0;
  box-shadow: none;
}
body.portal-theme .sidebar .workspace b { color: #344753; font-weight: 600; }
body.portal-theme .sidebar .workspace small,
body.portal-theme .sidebar .profile small { color: #637987; font-size: 11px; }
body.portal-theme .sidebar .square,
body.portal-theme .sidebar .avatar {
  background: #f8fcfd;
  color: #5a7384;
  border: 1px solid #d7e4eb;
}
body.portal-theme .sidebar .profile,
body.portal-theme .sidebar .secondary { border-color: #dbe7ed; }
body.portal-theme .sidebar .profile b { color: #344753; font-weight: 600; }
body.portal-theme .sidebar .iconbtn { color: #4c697b; }
body.portal-theme .sidebar .iconbtn:hover { background: #fff; }
body.portal-theme .sidebar .pilot { display: none; }
body.portal-theme .sidebar .meeting-mode-control { color: #415c6d; }
body.portal-theme .sidebar .meeting-mode-control > span { font-size: 11px; overflow-wrap: normal; }
body.portal-theme .sidebar .meeting-mode-control strong,
body.portal-theme .sidebar .meeting-mode-control small { color: inherit; }

/* Display the unchanged image at its native aspect ratio; small print is
   outside the compact logo viewport rather than compressed into illegibility. */
body.portal-theme .sidebar > .brand.portal-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 2px auto 22px;
  width: 150px;
  min-height: 0;
  height: 108px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}
body.portal-theme .portal-logo-crop {
  display: block;
  width: 150px;
  height: 108px;
  overflow: hidden;
  flex: none;
}
body.portal-theme .portal-logo-crop img {
  display: block;
  width: 150px;
  height: 150px;
  max-width: none;
  object-fit: contain;
  transform: translateY(-12px);
}
body.portal-theme .portal-mobile-brand { display: none; flex: none; }
body.portal-theme .topbar { background: #fff; border-color: var(--line); box-shadow: none; }
body.portal-theme .breadcrumb { color: var(--muted); }
body.portal-theme .breadcrumb strong { color: #48535d; font-weight: 500; }
body.portal-theme .topbar .searchbox,
body.portal-theme .searchfield { background: #fff; border-color: #dfe6eb; color: #74828e; box-shadow: none; }
body.portal-theme .pagehead h1,
body.portal-theme .cardhead h2,
body.portal-theme h2.section,
body.portal-theme .modalhead h2,
body.portal-theme .work-column h2 {
  font-family: var(--portal-font) !important;
  font-weight: 600 !important;
  color: var(--ink);
  letter-spacing: -.025em;
}
body.portal-theme .pagehead p,
body.portal-theme .cardhead p { color: var(--muted); }
body.portal-theme .eyebrow { color: #6f7c87; font-weight: 500; }
body.portal-theme .card,
body.portal-theme .sales-panel,
body.portal-theme .flow-step-card { background: #fff; border-color: var(--line); box-shadow: none; }
body.portal-theme .cardhead { background: transparent; }
body.portal-theme .btn {
  background: #fff;
  color: #414d58;
  border-color: #dfe5e9;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 500;
}
body.portal-theme .btn:hover { background: #f7fafb; border-color: #c6d4dd; transform: none; }
body.portal-theme .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}
body.portal-theme .btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
body.portal-theme .btn.danger { background: #fff; color: #a13945; border-color: #ebcdd1; }
body.portal-theme .btn.danger:hover { background: #fff5f6; }
body.portal-theme .badge { background: #f0f3f5; color: #566874; border-radius: 5px; font-weight: 500; }
body.portal-theme .badge.blue { background: #edf4f8; color: #386b8a; }
body.portal-theme .badge.green { background: #edf6f0; color: #377a5b; }
body.portal-theme .badge.orange { background: #fbf5e9; color: #896522; }
body.portal-theme .badge.red { background: #faeff1; color: #a13945; }
body.portal-theme .sales-status { background: #f0f3f5; color: #566874; font-weight: 500; }
body.portal-theme .sales-status.blue { background: #edf4f8; color: #386b8a; }
body.portal-theme .sales-status.green { background: #edf6f0; color: #377a5b; }
body.portal-theme .sales-status.red { background: #faeff1; color: #a13945; }
body.portal-theme th { background: #fcfdfd; color: #657581; border-color: var(--line); font-weight: 500; text-transform: none; letter-spacing: 0; }
body.portal-theme td { border-color: #edf0f3; }
body.portal-theme .tablelink { color: #32414e; font-weight: 500; }
body.portal-theme .tablelink:hover { color: var(--accent); }
body.portal-theme .datebadge { background: #f0f4f6; border-color: #e5ecef; color: #4c677b; }
body.portal-theme .datebadge small { color: #647b8b; }
body.portal-theme .object-thumbnail { border-color: #e4ebef; background: #f8fafb; }
body.portal-theme .object-thumbnail svg { color: #8296a4; }
body.portal-theme .filterbuttons { border-color: var(--line); box-shadow: none; }
body.portal-theme .filterbuttons button { color: #627381; font-weight: 500; }
body.portal-theme .filterbuttons button.active { background: #edf4f8; color: #315e78; }
body.portal-theme .tabs,
body.portal-theme .service-tabs,
body.portal-theme .sales-record-tabs,
body.portal-theme .sales-subnav { box-shadow: none; }
body.portal-theme .tabs { border-color: var(--line); background: #fff; }
body.portal-theme .tabs a,
body.portal-theme .service-tabs a { color: #5d7180; background: transparent; font-weight: 500; }
body.portal-theme .tabs a.active,
body.portal-theme .service-tabs a.active { background: #edf4f8; color: #315e78; box-shadow: none; }

/* Dashboard keeps live figures and routes; only its visual grouping changes. */
body.portal-theme .etv-stats {
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 0;
  overflow: hidden;
}
body.portal-theme .etv-stats .stat {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
body.portal-theme .etv-stats .stat:last-child { border-right: 0; }
body.portal-theme .etv-stats .stat:hover { background: #f8fbfc; box-shadow: none; }
body.portal-theme .etv-stats .stat strong { order: -1; color: var(--ink); margin: 0 0 7px; font-size: 29px; font-weight: 500; }
body.portal-theme .etv-stats .stat .label { color: var(--muted); font-size: 12px; }
body.portal-theme .etv-stats .stat .label svg { display: none; }
body.portal-theme .work-board { gap: 16px; }
body.portal-theme .card.work-column { border: 0; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
body.portal-theme .work-column > .cardhead { background: transparent; padding: 0 1px 11px; flex-wrap: wrap; gap: 6px; }
body.portal-theme .work-column > .cardhead h2 { color: #606c76; font-size: 13px; font-weight: 500 !important; gap: 7px; }
body.portal-theme .work-column > .cardhead h2 svg { width: 15px; height: 15px; color: #7e95a4; }
body.portal-theme .work-column > .cardhead .badge { background: transparent; padding: 0; font-size: 11px; color: #73818c; }
body.portal-theme .work-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 17px; margin-bottom: 12px; }
body.portal-theme .work-title { gap: 9px; align-items: flex-start; }
body.portal-theme .work-title a { color: #293640; font-weight: 600; font-size: 14px; }
body.portal-theme .work-title small { color: var(--muted); font-size: 12px; }
body.portal-theme .work-date { color: var(--muted); }
body.portal-theme .work-next { border: 0; padding-top: 0; margin-top: 14px; }
body.portal-theme .work-next small { color: #657987; font-weight: 500; }
body.portal-theme .work-next p { color: #5c6c79; }
body.portal-theme .work-card > .btn { width: auto; font-size: 12px; }
body.portal-theme .work-empty { border: 1px dashed #dae3e9; border-radius: 8px; padding: 20px 16px; margin: 0; background: #fcfdfd; }

/* Portal forms: no rules on rich-editor descendants or exported documents. */
body.portal-theme .field > label,
body.portal-theme label.field,
body.portal-theme .sales-form-section > h3 { color: #4b5f6e; font-weight: 500; }
body.portal-theme .field input:not([type=checkbox]):not([type=radio]):not([type=color]),
body.portal-theme .field select,
body.portal-theme .field textarea {
  border-color: #d9e3e9;
  border-radius: 6px;
  background: #fff;
  color: #2d3c48;
  box-shadow: none;
}
body.portal-theme .field input:focus,
body.portal-theme .field select:focus,
body.portal-theme .field textarea:focus { border-color: #86aec5; outline-color: #86aec5; }
body.portal-theme dialog { background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 18px 65px #1e344533; }
body.portal-theme dialog::backdrop { background: #21374666; }
body.portal-theme .modalhead { background: #fff; border-color: var(--line); }
body.portal-theme .modalbody { background: #fff; }
body.portal-theme .formactions { border-color: var(--line); }
body.portal-theme .hint { color: #5d7080; }
body.portal-theme .sales-form-section,
body.portal-theme .sales-record-summary,
body.portal-theme .masterdata-summary,
body.portal-theme .masterdata-panel,
body.portal-theme .board-fields { border-color: var(--line); box-shadow: none; }
body.portal-theme .sales-form-section { background: #fff; }
body.portal-theme .sales-form-section > .eyebrow { color: #6e7e89; }
body.portal-theme .flow-summary,
body.portal-theme .masterdata-meta { background: #f7fafb; color: #405967; }
body.portal-theme .flow-step.current { background: #edf4f8; color: #315e78; }
/* Keep the offers workspace readable beside the full navigation on tablets. */
body.portal-theme .sales-tabs { flex-wrap: wrap; max-width: 100%; gap: 4px; }
body.portal-theme .sales-tabs a { white-space: nowrap; padding: 9px 12px; font-size: 13px; color: #5d7180; font-weight: 500; }
body.portal-theme .sales-tabs a.active { color: #315e78; background: #edf4f8; }
body.portal-theme .sales-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,290px); gap: 14px; background: #fff; border-color: var(--line); border-radius: 9px; }
body.portal-theme .sales-filter-row { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1 1 560px; }
body.portal-theme .sales-filter-row button { font-size: 12px; white-space: nowrap; border-radius: 6px; color: #5d7180; }
body.portal-theme .sales-filter-row button.active { background: #edf4f8; color: #315e78; border-color: #c6dae5; }
body.portal-theme .sales-search { flex: 0 1 290px; min-width: 0; max-width: 100%; }
body.portal-theme .sales-cards .tablewrap { min-width: 0; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
body.portal-theme .flow-offer-table td > a:not(.btn) { color: #32414e; }
body.portal-theme .sales-overview-stats { gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
body.portal-theme .sales-overview-stats article { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
body.portal-theme .sales-overview-stats article:last-child { border-right: 0; }
@media (max-width:1100px) {
  body.portal-theme .sales-toolbar { grid-template-columns: minmax(0,1fr); align-items: stretch; }
  body.portal-theme .sales-search { flex-basis: 100%; width: 100%; }
  body.portal-theme .flow-offer-table { min-width: 0; }
  body.portal-theme .flow-offer-table thead { display: none; }
  body.portal-theme .flow-offer-table tbody { display: block; }
  body.portal-theme .flow-offer-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px 18px; padding: 18px; border-bottom: 1px solid var(--line); }
  body.portal-theme .flow-offer-table tr:last-child { border-bottom: 0; }
  body.portal-theme .flow-offer-table td { display: block; min-width: 0; border: 0 !important; padding: 0 !important; text-align: left; overflow-wrap: anywhere; }
  body.portal-theme .flow-offer-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: #657581; margin-bottom: 5px; }
  body.portal-theme .flow-offer-table td:first-child,
  body.portal-theme .flow-offer-table .offer-row-actions { grid-column: 1 / -1; }
  body.portal-theme .flow-offer-table .offer-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  body.portal-theme .flow-offer-table td.offer-row-actions::before { display: none; }
  body.portal-theme .flow-offer-table .offer-row-actions .btn { margin: 0; }
}
body.portal-theme .loginpage { background: #fff; }
body.portal-theme .loginbrand { background: #eaf3f6; color: #2d4556; }
body.portal-theme .loginbrand h1 { color: #2d4556; font-family: var(--portal-font); }
body.portal-theme .loginbrand p { color: #526f81; }
body.portal-theme .login-logo-card { background: transparent; border: 0; box-shadow: none; }
body.portal-theme .loginform { background: #fff; color: var(--ink); }

@media (min-width:701px) {
  body.portal-theme .layout:not(:has(.manager-workspace)):not(.sidebar-collapsed) { grid-template-columns: 210px minmax(0,1fr); }
  body.portal-theme .layout:not(:has(.manager-workspace)) > .sidebar { width: 210px; }
  body.portal-theme .sidebar .nav a { flex-direction: row; text-align: left; gap: 9px; font-size: 12px; }
  body.portal-theme .content:not(:has(.manager-workspace)) { padding: 28px 30px; }
}
@media (min-width:701px) and (max-height:800px) {
  body.portal-theme .sidebar > .brand.portal-brand { width: 118px; height: 85px; margin-bottom: 14px; }
  body.portal-theme .sidebar .portal-logo-crop { width: 118px; height: 85px; }
  body.portal-theme .sidebar .portal-logo-crop img { width: 118px; height: 118px; transform: translateY(-9.5px); }
}
@media (max-width:1100px) and (min-width:701px) {
  body.portal-theme .content:not(:has(.manager-workspace)) { padding: 22px; }
  body.portal-theme .etv-stats .stat { padding: 0 14px; }
  body.portal-theme .work-card { padding: 14px; }
}
@media (max-width:700px) {
  body.portal-theme .sidebar { padding-top: 16px; }
  body.portal-theme .sidebar > .brand.portal-brand { margin-bottom: 16px; }
  body.portal-theme .portal-mobile-brand { display: block; }
  body.portal-theme .portal-mobile-brand .portal-logo-crop { width: 70px; height: 50px; }
  body.portal-theme .portal-mobile-brand img { width: 70px; height: 70px; transform: translateY(-6px); }
  body.portal-theme .topbar { background: #f3f8fa; gap: 9px; }
  body.portal-theme .topbar > .inline { min-width: 0; gap: 8px; flex-wrap: wrap; }
  body.portal-theme .breadcrumb { min-width: 0; }
  body.portal-theme .breadcrumb strong { overflow-wrap: anywhere; }
  body.portal-theme .etv-stats { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  body.portal-theme .etv-stats .stat { padding: 16px; }
  body.portal-theme .etv-stats .stat:nth-child(2n) { border-right: 0; }
  body.portal-theme .etv-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  body.portal-theme .etv-stats .stat strong { font-size: 26px; }
  body.portal-theme .work-board { grid-template-columns: 1fr; }
  body.portal-theme .work-card { padding: 17px; }
  body.portal-theme .work-column > .cardhead { padding-top: 5px; }
  body.portal-theme .btn { min-height: 42px; }
}

/* The separate time-and-service module uses the same visual tokens. */
body.work-theme { --navy: #397ca4; --line: #e5eaee; --muted: #65727e; }
body.work-theme aside { background: #eaf3f6; border-color: #dbe7ed; }
body.work-theme nav button { background: transparent; color: #526777; border-radius: 6px; }
body.work-theme nav button.active { background: #fff; color: #315e78; box-shadow: inset 3px 0 #81b0c3; font-weight: 600; }
body.work-theme .card { border-radius: 9px; box-shadow: none; }
body.work-theme .timer { background: #fff; border-top: 3px solid #81b0c3; color: var(--ink); }
body.work-theme .timer small { color: #526f81; }
body.work-theme h1,
body.work-theme h2 { font-family: var(--portal-font); font-weight: 600; letter-spacing: -.025em; }
body.work-theme header .brand .portal-logo-crop { width: 70px; height: 50px; }
body.work-theme header .brand .portal-logo-crop img { width: 70px; height: 70px; transform: translateY(-6px); }
body.work-theme .primary { background: var(--navy); border-color: var(--navy); color: #fff; }
body.work-theme .primary:hover { background: #2c678b; }
body.work-theme .hint:not(.warning) { background: #f0f5f8; color: #526e80; }
body.work-theme dialog { color: var(--ink); }
@media print {
  body.portal-theme { background: #fff; }
  body.portal-theme .portal-mobile-brand { display: none; }
}
/* Shared manual/AI offer address suggestions; inline so they never cover a field. */
.offer-address-lookup{margin:12px 0 18px;padding:12px 14px;border:1px solid #cbdde6;border-radius:10px;background:#f4f9fc;min-width:0}
.offer-address-lookup[hidden],.offer-address-options[hidden]{display:none!important}
.offer-address-status{margin:0 0 8px;font-size:13px;color:#35576b;line-height:1.45}
.offer-address-options{max-height:210px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #d8e4eb;border-radius:8px;background:#fff;margin-bottom:8px}
.offer-address-option{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;border:0;border-bottom:1px solid #e7eef2;border-radius:0;background:#fff;padding:10px 12px;color:#203b50;font:inherit;cursor:pointer;min-height:46px;white-space:normal;overflow-wrap:anywhere}
.offer-address-option:last-child{border-bottom:0}
.offer-address-option:hover,.offer-address-option[aria-selected=true],.offer-address-option:focus-visible{background:#e7f2f8;outline:2px solid #6d9fba;outline-offset:-2px}
.offer-address-option strong{font-size:14px;font-weight:600}
.offer-address-option small,.offer-address-source{font-size:11px;color:#60778a;line-height:1.45}
.offer-address-source{display:block}
.offer-address-source a{color:#3d6c86;text-decoration:underline}
@media(max-width:600px){.offer-address-lookup{padding:10px;margin-top:10px}.offer-address-options{max-height:180px}}

/* .80: Compact object details, notes and bounded street imagery. */
.master-fee-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;padding:16px;background:#eef6f8;border-radius:12px}.master-fee-totals small,.master-fee-totals strong{display:block}.master-fee-totals strong{font-size:1.25rem;margin-top:6px}.master-fee-totals .hint{grid-column:1/-1;margin:0}
.crm-match-box{padding:16px;border:1px solid #c7dce7;background:#f3f8fb;border-radius:12px;margin:16px 0}.crm-related{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e0e8ee}.crm-related small,.crm-notes small{display:block;color:#536a7c;margin-top:5px}.crm-related p{margin:7px 0}.crm-note-text{white-space:pre-wrap;overflow-wrap:anywhere}.crm-notes article{padding:14px 0;border-bottom:1px solid #e0e8ee}.crm-notes .btn{margin-top:10px}.crm-timeline p{margin:7px 0;overflow-wrap:anywhere}.crm-timeline small{display:block}.crm-calendar-status{background:#eef6f8;padding:10px;border-radius:8px}
@media(max-width:650px){.crm-related{align-items:flex-start;flex-direction:column}.master-fee-totals{grid-template-columns:1fr}}

@media(max-width:600px){.sales-record-content .sales-contact-head{flex-direction:column;align-items:flex-start;gap:12px}.sales-record-content .sales-contact-head h2{margin:0;max-width:100%}}

/* .81: Existing thumbnail dimensions and page layout; only image interactions. */
.object-thumbnail .object-photo-button{position:relative;display:block;width:100%;height:100%;min-width:0;min-height:0;padding:0;border:0;border-radius:inherit;background:transparent;line-height:0;cursor:zoom-in;overflow:hidden;flex:none}
.object-thumbnail .object-photo-button img,.object-thumbnail.google-photo>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0}
.object-thumbnail.google-photo{border:1px solid #e4ebef;background:#f8fafb}
.object-thumbnail .object-photo-button:focus-visible{outline:2px solid #397fa4;outline-offset:-2px}
.object-thumbnail .object-photo-expand{position:absolute;top:2px;right:2px;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:4px;background:#173c60c9;color:white;opacity:0;pointer-events:none}
.object-thumbnail .object-photo-expand svg{width:13px;height:13px;color:inherit}
.object-photo-button:hover .object-photo-expand,.object-photo-button:focus-visible .object-photo-expand{opacity:1}
body.portal-theme a.object-route{display:inline-flex;align-items:center;gap:4px;margin-top:5px;color:#4c7085;font-size:12px;font-weight:400;line-height:1.5;text-decoration:none;white-space:nowrap;max-width:100%}
body.portal-theme a.object-route:hover{text-decoration:underline;color:#244f6c}
body.portal-theme a.object-route:focus-visible{outline:2px solid #397fa4;outline-offset:3px;border-radius:3px}
a.object-route svg{width:13px;height:13px;flex:none}
.object-photo-panel>div>.object-route{display:flex;width:max-content;margin:0 0 10px}
dialog.object-image-viewer{box-sizing:border-box;padding:0;border:1px solid #c7d4dd;border-radius:12px;background:#fff;color:#243443;width:min(1200px,94vw);height:min(850px,92vh);height:min(850px,92dvh);max-width:94vw;max-height:92dvh;overflow:hidden;box-shadow:0 24px 80px #142b4566}
dialog.object-image-viewer[open]{display:flex;flex-direction:column}
dialog.object-image-viewer::backdrop{background:#122b3acc;backdrop-filter:blur(2px)}
.object-image-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px;flex:none;border-bottom:1px solid #e2e9ee}
.object-image-head>div{min-width:0}
.object-image-head h2{margin:0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.object-image-head p{margin:5px 0 0;font-size:13px;color:#536b7b;overflow-wrap:anywhere}
.object-image-close{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;border:1px solid #dbe4eb;border-radius:8px;background:white;color:#304d62;font:26px/1 Arial,sans-serif;cursor:pointer}
.object-image-stage{display:flex;flex:1;min-height:0;min-width:0;background:#152533;align-items:center;justify-content:center;overflow:hidden}
.object-image-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.object-image-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 22px;min-height:48px;flex:none}
.object-image-footer a.object-route{margin:0;min-height:24px}
.object-image-source{font:400 12px/1.5 Arial,sans-serif;color:#5e5e5e;white-space:nowrap}
@media(max-width:600px){.object-image-head{padding:12px;gap:8px}.object-image-head h2{font-size:16px}.object-image-head p{font-size:12px}.object-image-footer{padding:10px 12px}}

/* .82: Retry a missing image without resizing its existing thumbnail slot. */
.object-thumbnail .object-photo-retry{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;cursor:pointer}
.object-thumbnail .object-photo-retry:hover{background:#eaf3f7;color:#397fa4}
.object-thumbnail .object-photo-retry:focus-visible{outline:2px solid #397fa4;outline-offset:-2px}

/* .84 — distinct entry modes and six editable checklist areas. */
body.portal-theme .offer-ai-start{background:#f7f9fa;border:0;box-shadow:none;max-width:960px;padding:22px;margin:12px auto}
body.portal-theme .offer-ai-start[data-offer-screen=checklist]{max-width:1480px}
body.portal-theme .offer-ai-start[data-offer-screen=choice]{max-width:900px;padding:34px 24px}
.offer-ai-start [hidden]{display:none!important}
.offer-ai-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:24px}
body.portal-theme .offer-ai-heading h2{font-size:26px;margin:8px 0}
.offer-ai-heading p{margin:0;color:#596f7f;font-size:14px}
.offer-ai-heading>.btn{margin-top:8px}
.offer-entry-choices{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:28px 0 20px}
.offer-entry-card{display:flex;align-items:flex-start;flex-direction:column;gap:14px;min-width:0;padding:28px;text-align:left;background:white;border:1px solid #d7e4eb;border-radius:15px;box-shadow:0 5px 18px #274e6606;font:inherit;color:#284252;cursor:pointer}
.offer-entry-card:hover{border-color:#79a6bd;background:#f9fcfd;box-shadow:0 8px 22px #274e6610}
.offer-entry-card:focus-visible{outline:3px solid #397ca4;outline-offset:3px}
.offer-entry-card strong{font-size:19px;line-height:1.4}
.offer-entry-card>span:not(.offer-entry-symbol){font-size:14px;line-height:1.6;color:#596f7f}
.offer-entry-card>b{font-size:13px;color:#346c8b;margin-top:4px}
.offer-entry-symbol{display:grid;place-items:center;background:#eaf3f6;color:#346c8b;border-radius:12px;width:46px;height:46px;font-size:27px}
.offer-check-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.offer-check-intro strong{font-size:17px;color:#284252}
.offer-check-intro p{font-size:13px;color:#607685;margin:5px 0 0}
.offer-check-top-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.offer-check-top-controls label{display:flex;gap:8px;align-items:center;font-size:12px;color:#607685}
.offer-check-top-controls select{padding:8px;max-width:220px;border:1px solid #d7e4eb;border-radius:7px;background:white;color:#284252;font:inherit}
.offer-check-total{display:inline-flex;padding:7px 11px;background:#eaf3f6;color:#346c8b;border-radius:7px;font-size:12px}
.offer-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin:18px 0}
.offer-check-card{border:1px solid #dce6ec;border-radius:13px;padding:20px;background:#fff;min-width:0}
.offer-check-heading{display:flex;align-items:center;gap:12px;margin-bottom:17px;padding-bottom:13px;border-bottom:1px solid #edf2f5}
.offer-check-heading h3{margin:0;font-size:16px;color:#294454}
.offer-check-heading .hint{font-size:11px;margin:2px 0 0;display:block;color:#6a7d89}
.offer-check-number{width:28px;height:28px;border-radius:8px;background:#edf4f7;color:#3c708b;display:grid;place-items:center;font-size:12px;font-weight:600;flex:none}
.offer-check-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px}
.offer-check-fields .field{min-width:0;margin:0;display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:400;color:#5a7181;border-radius:7px;transition:background .5s}
.offer-check-fields .check-wide{grid-column:1/-1}
.offer-check-fields input,.offer-check-fields select,.offer-check-fields output{width:100%;min-width:0;box-sizing:border-box;font-size:13px;padding:8px 9px;min-height:36px}
.offer-check-fields output{background:#f2f6f8;border:1px solid #e4ebef;border-radius:7px;color:#526d7c}
body.portal-theme .offer-check-fields textarea{min-height:80px!important;height:80px;padding:8px 9px;font-size:13px;line-height:1.5;resize:vertical}
.offer-check-fields .check-updated{background:#e8f5ed}
.offer-check-state{font-size:11px;color:#2f7057;min-height:0;overflow-wrap:anywhere}
.offer-check-state:empty{display:none}
.offer-check-reset{border:0;background:none;color:#347394;padding:0;text-align:left;font:inherit;font-size:12px;cursor:pointer;text-decoration:underline;line-height:1.5}
.offer-transcript{margin:18px 0;background:white;border:1px solid #dce6ec;border-radius:10px;padding:14px 18px;color:#4c697b;font-size:13px}
.offer-transcript summary{cursor:pointer}
.offer-transcript[open] summary{margin-bottom:12px}
body.portal-theme .offer-transcript textarea{min-height:150px;font-size:14px}
[data-note-panel]{background:#fff;border:1px solid #dce6ec;border-radius:12px;padding:22px}
[data-note-panel] .field{margin:0}
body.portal-theme [data-note-panel] textarea{min-height:260px}
.offer-unassigned{margin-top:18px;border-top:1px solid #e4ebef;padding-top:13px}
.offer-unassigned h4{font-size:13px;margin:0 0 7px;color:#3d5a6c}
.offer-unassigned h4 span{font-weight:400;color:#72838e;margin-left:5px}
.offer-unassigned p.hint{font-size:12px;line-height:1.5}
.offer-unassigned-item{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:400;color:#455d6c;margin:10px 0;overflow-wrap:anywhere}
.offer-unassigned-item input{width:16px;height:16px;min-width:16px;margin:2px 0 0;accent-color:#397ca4}
.offer-check-questions,.offer-check-review{border-radius:10px;padding:16px 20px;background:#edf4f8;border:1px solid #d8e6ef;margin:16px 0;color:#34576d;font-size:13px}
.offer-check-questions ul{padding-left:18px;margin:8px 0 0;line-height:1.6}
.offer-check-review{background:#eef7f2;border-color:#cbe4d7;color:#2d6650}
.offer-check-review p{margin:5px 0;font-size:13px}
.offer-recorder{position:sticky;bottom:12px;z-index:12;margin-top:20px;padding:16px 18px;border:1px solid #cadce6;background:#f0f6f9;border-radius:12px;box-shadow:0 8px 30px #1e415b14}
.offer-recorder-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.offer-recorder-copy{flex:1;min-width:180px}
.offer-recorder-copy strong{display:flex;align-items:center;gap:8px;font-size:14px;color:#294f65}
.offer-recorder-copy p{margin:5px 0 0;color:#5c7281;font-size:12px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.offer-mic-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#8096a2}
[data-recorder-state=active] .offer-mic-dot{background:#368060;box-shadow:0 0 0 4px #36806018}
[data-recorder-state=active]{border-color:#97c4ac}
.offer-recorder-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.offer-recorder-buttons .btn{white-space:normal;text-align:center;font-size:12px}
.offer-recorder-bottom:has(p:not(:empty)){border-top:1px solid #d9e5ec;padding-top:8px;margin-top:10px}
.offer-recorder-bottom p{margin:2px 0;font-size:12px;color:#526f80;line-height:1.45}
.offer-recorder-bottom p:empty{display:none}
body.portal-theme .offer-ai-privacy{font-size:11px;line-height:1.5;color:#758794;margin:16px 0 0}
@media(min-width:1600px){.offer-check-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){body.portal-theme .offer-ai-start{padding:12px}.offer-check-grid{grid-template-columns:1fr}.offer-entry-choices{grid-template-columns:1fr}.offer-entry-card{padding:22px}.offer-recorder{bottom:8px}.offer-recorder-buttons{width:100%}.offer-recorder-buttons .btn{flex:1}}
@media(max-width:480px){.offer-check-card{padding:16px}.offer-check-top-controls label{flex-wrap:wrap}.offer-recorder{padding:12px;bottom:5px}.offer-recorder-copy{min-width:0;flex-basis:100%}.offer-recorder-buttons{gap:6px}.offer-recorder-buttons .btn{padding:9px;font-size:12px;min-height:44px}.offer-check-fields input,.offer-check-fields select,body.portal-theme .offer-check-fields textarea{font-size:16px}.offer-ai-heading h2{font-size:23px!important}.offer-check-fields{gap:11px 9px}}
@media(prefers-reduced-motion:reduce){.offer-check-fields .field{transition:none}}
/* Let the shared recorder stick to the viewport instead of the generic card's clip box. */
body.portal-theme .card.offer-ai-start{overflow:visible}

/* Object filters: aligned labels, full width on narrow screens. */
body.portal-theme .object-list-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-start;gap:16px}
body.portal-theme .object-list-toolbar>.searchfield{flex:1 1 240px;max-width:420px}
body.portal-theme .object-list-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-left:auto}
body.portal-theme .object-filter-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:190px}
body.portal-theme .object-filter-field>span{font-size:11px;font-weight:600;color:#627a88}
body.portal-theme .object-filter-field select{width:100%;min-height:38px}
body.portal-theme .object-list-controls .sort-direction{min-height:38px}
body.portal-theme .service-menu>summary>svg{flex-shrink:0}
body.portal-theme .service-menu>summary>span:not(.portal-menu-arrow){min-width:0;flex:1;line-height:1.4}
@media(max-width:700px){body.portal-theme .object-list-controls{width:100%;margin-left:0}body.portal-theme .object-filter-field{flex:1 1 190px}}

.term-status{display:table;margin-top:5px;padding:3px 7px;border-radius:4px;font-size:11px;line-height:1.4}
.term-expired{background:#fbecee;color:#962b35}.term-soon{background:#fff0e3;color:#914519}.term-warning{background:#fff6d9;color:#725712}.term-valid{background:#edf5ef;color:#285f3b}.term-missing{background:#edf0f3;color:#52616c}
/* Consistent participation markers */
.participation-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:5px;font-size:12px;line-height:1.3;white-space:nowrap;border:1px solid transparent}
.participation-badge svg{width:16px;height:16px}
.participation-online{background:#eaf3fb;color:#225d88;border-color:#d0e2f1}
.participation-presence{background:#edf0f3;color:#465567;border-color:#dce2e8}
.participation-hybrid{background:#f1ecfa;color:#62458b;border-color:#e0d5f0}
.participation-circular{background:#edf4f1;color:#315f51}
.work-title .participation-badge{margin:7px 0}
.object-multifilter{position:relative}.object-filter-popover{position:absolute;top:100%;right:0;z-index:20;background:#fff;border:1px solid #d7e1e9;box-shadow:0 8px 30px #12334d22;border-radius:10px;padding:18px;width:300px;max-width:85vw;display:grid;gap:10px}
.object-filter-popover>label{display:flex;align-items:center;gap:8px}.object-filter-popover small{font-size:12px;color:#627a88}.object-filter-popover input{width:auto}
.object-filter-popover>.object-filter-field{display:flex;align-items:stretch}
.object-filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
.import-object-results{max-height:230px;overflow:auto;border:1px solid #d8e3eb;border-radius:6px;margin:8px 0}
.import-object-results>small{display:block;padding:9px;color:#627a88}
.import-object-option{width:100%;display:grid;text-align:left;gap:4px;background:white;border:0;border-top:1px solid #e4ebf0;padding:12px;cursor:pointer}
.import-object-option:hover,.import-object-option:focus-visible{background:#edf5fa}.import-object-option small{color:#627a88}
.import-comparison{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#edf5fa;padding:14px;border-radius:6px;margin:12px 0}
.import-comparison>div{display:grid;gap:6px}
.master-import-row>label,.master-import-row fieldset{margin:14px 0}.master-import-row fieldset{padding:12px;border:1px solid #d8e3eb;border-radius:6px}
.aftercare-reasons{padding-left:20px;line-height:1.7}
.reg-object-tools{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.reg-object-tools>label:first-child{flex:1;min-width:220px}.reg-object-tools>label{display:grid;gap:6px}
.reg-object-modes{margin:0 0 18px}.reg-object-name strong,.reg-object-name small{display:block}.reg-object-name small{margin-top:5px;color:#627a88}
@media(max-width:700px){.import-comparison{grid-template-columns:1fr}.object-filter-popover{position:relative;right:auto;width:auto}}
.object-multifilter>summary{list-style:none;cursor:pointer}
.object-multifilter>summary::-webkit-details-marker{display:none}
body.portal-theme .object-filter-field select{appearance:auto;border:1px solid #ccdae5;border-radius:7px;background:#fff;color:#223d54;padding:8px 12px;font:inherit;font-size:12px}
.reg-object-tools select,.reg-object-tools input{border:1px solid #ccdae5;border-radius:7px;background:white;min-height:39px;padding:8px 12px;font:inherit}
/* Keep existing type colors; use normal text rendering and no duplicate date tile. */
.participation-badge{font-size:13px;font-weight:500;text-shadow:none;filter:none;transform:none;line-height:20px}
.participation-badge>span{font-weight:500}
.participation-badge svg{width:16px;height:16px;flex-shrink:0}
.meeting-list-date{display:grid;gap:5px;line-height:1.4}
.meeting-list-date strong{font-weight:500}.meeting-list-date small{font-size:12px;color:#526777}

/* The label and its value share a row. The pieces of a value never compete for space. */
@media screen and (max-width:700px) {
  .meeting-list.responsive-table td:not(:first-child),
  .object-list .responsive-table td:nth-child(n+3) {
    display:grid; grid-template-columns:minmax(0,35%) minmax(0,1fr);
    gap:12px; align-items:start; text-align:left; overflow-wrap:normal;
  }
  .meeting-list.responsive-table td::before,
  .object-list .responsive-table td::before {
    font-size:11px; line-height:1.4; color:#536a7b; overflow-wrap:normal;
  }
  .meeting-list.responsive-table td>*, .object-list .responsive-table td>* { min-width:0; }
  .meeting-list.responsive-table .meeting-object-suffix, .meeting-list.responsive-table td:first-child br { display:none; }
  .meeting-list.responsive-table .meeting-list-date { gap:1px; }
  .meeting-list.responsive-table .meeting-manager-name { max-width:none; overflow-wrap:break-word; }
  .meeting-list.responsive-table .meeting-list-status { display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; gap:6px; }
  .meeting-list-status>[data-circular-progress]:empty { display:none; }
  .meeting-list-status .circular-progress { margin:0; overflow-wrap:normal; }
  .meeting-list-status .circular-progress strong,.meeting-list-status .circular-progress small { white-space:normal; line-height:1.4; }
  .meeting-list-status>.badge,.meeting-list.responsive-table .btn,.object-list .responsive-table .btn { max-width:100%; white-space:normal; text-align:left; }
  .meeting-list-status>.badge { line-height:1.4; }
  .meeting-list.responsive-table .participation-badge { justify-self:start; }
  .meeting-list.responsive-table td:last-child,.object-list .responsive-table td:last-child {
    display:block; text-align:left; padding:9px 0 0!important;
  }
  .meeting-list.responsive-table td:last-child::before,.object-list .responsive-table td:last-child::before { display:none; }
  .meeting-list.responsive-table td:last-child .inline,.object-list .responsive-table td:last-child .actions { justify-content:flex-start; gap:8px; }
  .meeting-list.responsive-table .btn,.meeting-list.responsive-table .iconbtn,.object-list .responsive-table .btn { min-height:44px; }
  .meeting-list.responsive-table td:has(.meeting-list-status [data-circular-progress]) {
    grid-template-columns:minmax(0,1fr); gap:4px;
  }
  .meeting-list.responsive-table td:has(.meeting-list-status [data-circular-progress]) .meeting-list-status { gap:8px; }
  .object-list .responsive-table td:first-child {
    display:flex; justify-content:flex-start; gap:5px; align-items:baseline; margin:0;
    color:#526777; font-size:12px; border:0!important; padding:0!important;
  }
  .object-list .responsive-table td:first-child::before { display:inline; content:'Objekt Nr.'; flex:none; }
  .object-list .responsive-table td:nth-child(2) {
    display:block; text-align:left; margin:0 0 4px; padding:6px 0 10px!important; border-bottom:1px solid var(--line)!important;
  }
  .object-list .responsive-table td:nth-child(2)::before { display:none; }
  .object-list .object-title { align-items:flex-start; }
  .object-list .object-title>div,.object-list .object-list-value { min-width:0; overflow-wrap:break-word; }
  .object-list .object-address { margin-top:2px; }
  .object-list .object-schedule-item { min-width:0; margin:0 0 6px; }
  .object-list .object-schedule-item:last-child { margin-bottom:0; }
  .object-list .responsive-table .object-name { font-size:14px; }
  body.portal-theme .object-list-toolbar>.searchfield { flex:1 1 100%; max-width:none; }
  body.portal-theme .object-list-controls { align-items:end; gap:8px; }
  body.portal-theme .object-list-controls .object-multifilter[open] { flex-basis:100%; }
  body.portal-theme .object-list-controls .object-filter-popover { max-width:100%; }
}
@media screen and (max-width:370px) {
  .meeting-list.responsive-table td:not(:first-child):not(:last-child),
  .object-list .responsive-table td:nth-child(n+3):not(:last-child) { grid-template-columns:minmax(0,1fr); gap:2px; }
}
.atba-address-row{border-top:1px solid #dbe5ea;padding:10px 0}.atba-address-row summary{cursor:pointer;padding:5px 0}.atba-address-row summary small{display:block;margin:4px 0 0 16px;color:#4e6877}.atba-address-row dl{display:grid;grid-template-columns:minmax(85px,1fr) 2fr;gap:6px 12px}.atba-address-row dd{margin:0}.atba-address-row .btn{margin:4px 6px 4px 0}

/* Offer-specific correspondence. The composer remains readable on phones. */
.om-work{display:grid;grid-template-columns:minmax(225px,30%) minmax(0,1fr);gap:16px;align-items:start}
.om-pane,.om-compose{border:1px solid #d7e3eb;border-radius:12px;background:#fff;padding:18px;min-width:0}.om-work h2{font-size:19px;margin:0 0 8px}.om-pane>small,.om-message small,.om-checked{color:#526979}
.om-message{border-top:1px solid #dde7ed;margin:2px -6px;padding:5px;border-radius:4px}.om-message.chosen{background:#eff6fa;box-shadow:inset 3px 0 #367fa7}
.om-choice{cursor:pointer;width:100%;font:inherit;display:grid;gap:4px;text-align:left;background:none;border:0;padding:8px;overflow-wrap:anywhere}.om-choice b,.om-choice strong{font-size:13px}.om-original{white-space:pre-wrap;overflow-wrap:anywhere;padding:4px 9px 12px;max-height:320px;overflow:auto;user-select:text}
.om-compose>header,.om-compose>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.om-compose>footer{justify-content:flex-start;padding-top:12px}.om-compose footer label{margin-left:auto}.om-compose select{max-width:100%;padding:5px 8px;border:1px solid #c8d7e1;border-radius:5px;background:#fff;color:#253e4e}
.om-fields{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:15px 0}.om-fields dt{font-size:12px;color:#536b7b}.om-fields dd{margin:0;overflow-wrap:anywhere}.om-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:7px;border:1px solid #d4e0e8;border-radius:7px 7px 0 0;background:#f7fafc}.om-tool,.om-file,.om-color{border:0;background:none;cursor:pointer;color:#243e50;padding:4px;font:inherit}.om-tool:hover{background:#e2eef4}.om-color,.om-file{position:relative;display:inline-flex;align-items:center}.om-color input,.om-file input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.om-writing{border:1px solid #d4e0e8;border-top:none;padding:17px;min-height:230px}.om-editor{min-height:126px;outline:none;overflow-wrap:anywhere;color:#1c303f}.om-editor:empty::before{content:'Antwort schreiben …';color:#8195a2;pointer-events:none}.om-signature img{max-width:100%}.om-attachments{display:flex;gap:6px;flex-wrap:wrap}.om-settings{border-top:1px solid #dce5ed;margin-top:14px;padding-top:12px}.om-settings>div{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:12px}.om-settings label{display:grid;gap:5px;font-size:12px}.om-settings summary{cursor:pointer;font-weight:600}.om-notice{padding:9px 12px;background:#f2f6f9;border-radius:6px}.offer-mail-badge{display:inline-block;width:max-content;max-width:100%;padding:3px 8px;margin:4px 0;border-radius:4px;color:#1b5b82;background:#e6f2fa;font-size:12px;text-decoration:none}.om-compose [role=status]{display:block;min-height:1.5em;margin:7px 0;color:#526b79}
@media(max-width:760px){.om-work{grid-template-columns:minmax(0,1fr)}.om-pane,.om-compose{padding:12px}.om-pane [data-om-list]{max-height:320px;overflow:auto}.om-compose footer label{margin-left:0}.om-compose .om-tool,.om-compose select,.om-file,.om-color{min-height:36px}.om-settings select{font-size:16px}}
.om-fields{align-items:center}.om-fields dd{border:1px solid #dce5ec;border-radius:5px;background:#fbfdfe;padding:6px 10px;font-size:14px}.om-tool,.om-file,.om-color{display:inline-flex;align-items:center;justify-content:center;border-radius:4px;min-width:28px;min-height:30px}.om-tool:focus-visible,.om-file:focus-within,.om-color:focus-within{outline:2px solid #317eac}.om-tool svg,.om-compose footer svg{flex:none}.om-pane>h2,.om-compose>header h2{letter-spacing:-.02em}.om-message .offer-mail-badge{line-height:1.4}

/* Angebotsantworten im Portalkopf */
[data-offer-bell]{position:relative;flex:none}
.omb-toggle{width:42px;height:42px;border:1px solid var(--line,#d8e3ea);background:white;color:#244b65;border-radius:8px;position:relative;display:grid;place-items:center;cursor:pointer}
.omb-toggle:focus-visible,.omb-panel a:focus-visible{outline:2px solid #236d94;outline-offset:2px}
.omb-count{position:absolute;right:-4px;top:-4px;min-width:18px;padding:1px 4px;border-radius:20px;background:#124e75;color:white;font:700 11px/16px system-ui;text-align:center}
.omb-panel{z-index:80;position:absolute;right:0;top:calc(100% + 8px);width:min(355px,calc(100vw - 24px));background:white;color:#203849;border:1px solid #cbdce7;border-radius:10px;box-shadow:0 8px 30px #0f2b4826;padding:12px;box-sizing:border-box}
.omb-panel h2{font-size:16px;margin:4px 4px 10px}.omb-panel p{font-size:13px;margin:8px 4px}.omb-list{max-height:min(55vh,410px);overflow-y:auto}.omb-panel .omb-link{display:grid;gap:3px;padding:10px 6px;border-top:1px solid #e3ebf2;text-decoration:none;color:inherit;overflow-wrap:anywhere}.omb-panel .omb-link:hover,.omb-link:focus-visible{background:#edf5fb}.omb-link span{font-size:14px}.omb-link small{color:#526b80}.omb-nav{display:flex;gap:8px;justify-content:space-between;padding-top:8px}
.om-draft-guard > :not(header):not([data-om-notice]){display:none!important}.om-draft-guard header button{display:none}
@media(max-width:700px){body.portal-theme .topbar .topactions:has([data-offer-bell]){display:flex;margin-left:auto}.omb-panel{position:fixed;top:var(--omb-bottom,68px);right:10px;width:min(355px,calc(100vw - 20px))}}

[data-offer-bell] > button.omb-count{border:1px solid white;min-width:21px;min-height:21px;line-height:18px;cursor:pointer;z-index:1}
.omb-panel{width:min(408px,calc(100vw - 24px));max-height:min(78vh,650px);overflow:auto}
.omb-head,.omb-tabs{display:flex;align-items:center;justify-content:space-between;gap:6px}.omb-tabs{justify-content:flex-start;margin:8px 0}.omb-tab,.omb-minor,.omb-state{background:none;color:#24546e;border:0;cursor:pointer;font:inherit}
.omb-tab{font-size:13px;padding:7px 10px;border-radius:6px}.omb-tab[aria-pressed=true]{background:#e8f2f9;color:#174d71;font-weight:650}.omb-minor{padding:6px;font-size:12px;text-decoration:underline;text-underline-offset:2px}
.omb-row{display:flex;align-items:center;border-top:1px solid #e1e9ee}.omb-row.is-unread{background:#eef6fc}.omb-panel .omb-row .omb-link{min-width:0;flex:1;border:0;padding:10px 7px}.omb-panel .omb-kind{font-size:11px}.omb-state{width:36px;height:36px;border-radius:6px;font-size:19px;flex:none}.omb-state:hover,.omb-state:focus-visible{background:#dcebf5}.omb-pref{display:flex;align-items:start;gap:8px;font-size:14px}.omb-error{color:#8c3030}
@media(max-width:700px){.omb-panel{max-height:calc(100dvh - var(--omb-bottom,70px) - 12px);width:min(408px,calc(100vw - 20px))}.omb-state{width:40px;height:40px}}

.oi-shell{margin-top:16px;color:var(--ink,#243543)}.oi-toolbar,.oi-filters,.oi-paging,.oi-diagnostic form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.oi-toolbar{margin-bottom:14px}.oi-toolbar label{flex:1;min-width:min(235px,100%)}.oi-search{width:100%;max-width:350px;padding:9px 12px;border:1px solid var(--line,#d6e1e8);background:white;color:inherit;border-radius:7px}.oi-filters button[aria-pressed=true]{background:#dfeef7;border-color:#95bad1;color:#164d70}.oi-grid{display:grid;gap:14px;min-width:0}.oi-selected .oi-grid{grid-template-columns:minmax(220px,28%) minmax(0,1fr)}.oi-index,.oi-diagnostic{background:white;border:1px solid var(--line,#d6e1e8);border-radius:10px;padding:14px;min-width:0}.oi-index [data-oi-count]{font-size:13px;color:#4b6375;margin:0 0 10px}.oi-index [data-oi-list]{max-height:70vh;overflow:auto}.oi-mail{display:grid;gap:3px;text-decoration:none;color:inherit;padding:12px;border-top:1px solid #e4ebef;overflow-wrap:anywhere}.oi-mail:hover,.oi-mail:focus-visible{background:#eef6fa}.oi-mail.is-selected{box-shadow:inset 3px 0 #24739d;background:#ebf3fa}.oi-mail.is-unread strong{color:#115477}.oi-mail small{color:#50697b}.oi-paging{justify-content:space-between;margin-top:8px}.oi-reader{min-width:0}.oi-reader>h2{font-size:18px}.oi-reader .om-work{grid-template-columns:minmax(0,1fr)}.oi-reader .om-pane [data-om-list] .om-message:not(.chosen){display:none}.oi-reader .om-pane .om-original{max-height:38vh;overflow:auto}.oi-reader .om-pane [data-om-count],.oi-reader .om-pane>h2{display:none}.oi-diagnostic{margin-top:16px}.oi-diagnostic summary{cursor:pointer;font-weight:600}.oi-diagnostic label{display:grid;gap:4px}.oi-diagnostic input{padding:8px}.oi-diagnostic [data-oi-result]{margin-top:10px}.oi-diagnostic form{align-items:end}.oi-reader [hidden],.oi-grid>[hidden]{display:none!important}
@media(max-width:900px){.oi-selected .oi-grid{grid-template-columns:minmax(0,1fr)}.oi-selected .oi-index,.oi-selected .oi-toolbar{display:none}.oi-grid,.oi-search{width:100%}.oi-index [data-oi-list]{max-height:none}.oi-toolbar label{flex:1 1 100%}}
.oi-offer-link{display:inline-block;margin:-4px 0 10px;font-size:13px}

.oi-picker{position:relative;flex:1 1 260px;min-width:0;max-width:420px}.oi-picker label,.oi-reader label{display:block}.oi-picker input{width:100%}.oi-options{position:absolute;inset:100% 0 auto;z-index:6;max-height:260px;overflow:auto;background:#fff;border:1px solid #b7cbd8;border-radius:6px;box-shadow:0 6px 18px #22354326}.oi-options[hidden]{display:none}.oi-options>small,.oi-options [role=option]{display:block;padding:8px 12px}.oi-options [role=option]{cursor:pointer;font-weight:600;overflow-wrap:anywhere}.oi-options [role=option] small{display:block;font-weight:400}.oi-options [role=option]:hover,.oi-options [aria-selected=true]{background:#e9f2f8}.oi-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:36vh;overflow:auto;background:#f6f8fa;border-radius:6px;padding:12px;margin-block:12px}.oi-review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.oi-reader select{display:block;max-width:100%;width:100%;margin:6px 0 10px}.oi-index,.oi-reader{min-width:0}.oi-diagnostic{overflow:visible}.oi-mail{overflow-wrap:anywhere}@media(max-width:620px){.oi-picker{width:100%;max-width:none}.oi-diagnostic form{align-items:stretch}.oi-options{max-height:210px}}

.oi-offer-scope select{padding:8px;min-height:40px;max-width:100%;background:#fff;color:inherit;border:1px solid var(--line,#d6e1e8);border-radius:6px}.oi-options .oi-offer-status{font-weight:600;color:#47647a}@media(max-width:620px){.oi-diagnostic .oi-offer-scope{flex:1 1 100%;min-width:0}.oi-offer-scope select{width:100%}}

/* Compact circular reminders: summary first, editable details on demand. */
body.portal-theme dialog.circular-reminder-dialog{width:min(720px,calc(100vw - 24px));max-width:none;padding:0;color-scheme:light;background:#fff}
body.portal-theme dialog.circular-reminder-dialog .modalhead{padding:20px 24px;border-bottom:1px solid #e5eaee}
body.portal-theme dialog.circular-reminder-dialog .modalhead h2{font-size:20px;line-height:1.35;margin:0}
body.portal-theme dialog.circular-reminder-dialog .modalbody{padding:22px 24px}
.cr-dialog,.cr-settings{font-size:14px;line-height:1.5;color:var(--ink,#242a30)}
body.portal-theme .cr-settings{max-width:780px}
body.portal-theme .cr-settings>h2{margin:0 0 20px;font-size:20px}
.cr-context{display:flex;flex-direction:column;gap:3px;margin-bottom:18px}
.cr-context>strong{font-size:16px}.cr-context>span{color:var(--muted,#65727e);font-size:13px}
.cr-editor{border:1px solid #dfe7ed;border-radius:10px;padding:18px;background:#f8fafc}
.cr-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
body.portal-theme .cr-section-head h3,body.portal-theme .cr-manual h3{margin:0;font-size:15px;line-height:1.4}
.cr-status{font-size:12px;font-weight:600;border-radius:20px;padding:4px 9px;background:#e9eef3;color:#526575;white-space:nowrap}
.cr-status.is-active{background:#e8f3ed;color:#327051}
.cr-plan-summary{display:flex;gap:12px;align-items:center;justify-content:space-between}
.cr-plan-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.cr-plan-summary strong{font-size:20px;line-height:1.4;color:#183e5c;overflow-wrap:anywhere}
.cr-plan-summary span{font-size:13px;color:#627384}
.cr-plan-summary .cr-eyebrow{font-size:12px;color:#65727e}
body.portal-theme .cr-dialog .btn.small,body.portal-theme .cr-settings .btn.small{font-size:13px;min-height:38px;padding:8px 12px;line-height:1.3;white-space:normal;border-radius:7px;flex-shrink:0}
body.portal-theme .cr-text-button{padding:4px 0;min-height:32px;border:0;background:transparent;color:#286c94;font:inherit;font-size:13px;line-height:1.4;cursor:pointer;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
.cr-default-line{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e2e9ef;margin-top:16px;padding-top:10px;font-size:12px;color:#65727e}
.cr-edit-fields{margin-top:16px;border-top:1px solid #e2e9ef;padding-top:16px}
body.portal-theme .cr-enable,body.portal-theme .cr-save-default{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:500;margin:0 0 12px}
body.portal-theme .cr-enable input,body.portal-theme .cr-save-default input{width:18px;height:18px;margin:0;accent-color:#397ca4;flex-shrink:0}
.cr-reminder-row{display:flex;align-items:center;gap:8px;margin:9px 0}
body.portal-theme .cr-reminder-row input,body.portal-theme .cr-reminder-row select{box-sizing:border-box;font:inherit;font-size:14px;line-height:20px;border:1px solid #cedbe4;border-radius:7px;background:#fff;color:#242a30;min-height:42px;padding:9px 10px}
body.portal-theme .cr-reminder-row input{width:76px;min-width:64px;flex:0 0 76px}
body.portal-theme .cr-reminder-row select{min-width:0;flex:1;width:auto}
.cr-note{font-size:12px!important;line-height:1.5!important;color:#65727e;margin:10px 0!important}
body.portal-theme .cr-save-default{margin-top:14px;font-size:13px}
.cr-save-bar{margin-top:16px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.cr-save-bar>div{display:flex;align-items:center;gap:12px}.cr-saved{font-size:12px;color:#327051}.cr-saved.is-dirty{color:#89621b}
body.portal-theme .cr-save-bar .btn{font-size:13px;padding:10px 14px;min-height:40px;line-height:1.3}
.cr-error{color:#a5313d;font-size:13px;margin:12px 0 0}
.cr-tools{display:flex;align-items:center;gap:12px;margin:14px 0 20px}.cr-tools>span{font-size:12px;color:#65727e}
.cr-manual{border-top:1px solid #e5eaee;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:12px}.cr-manual .cr-note{margin:4px 0 0!important}
.cr-confirm{padding:14px;margin:12px 0;background:#f3f7fa;border:1px solid #dfe7ed;border-radius:8px}.cr-confirm p{margin:0 0 12px!important;font-size:14px}.cr-confirm-actions{display:flex;gap:10px;flex-wrap:wrap}
.cr-history{border-top:1px solid #e5eaee;margin-top:18px;padding-top:14px}.cr-history summary{cursor:pointer;font-size:13px;font-weight:600}.cr-history summary span{font-weight:400;color:#65727e;margin-left:6px}
.cr-history-row{padding:12px 0;border-bottom:1px solid #edf1f4;display:flex;justify-content:space-between;gap:12px;font-size:12px}.cr-history-row strong{display:block;font-weight:500}.cr-history-row small{display:block;color:#65727e;margin-top:4px}.cr-history-row time{color:#65727e;text-align:right;font-size:11px;flex-shrink:0}
.cr-footer-note{color:#65727e;font-size:11px!important;margin:16px 0 0!important;line-height:1.5}
.cr-preview{border:1px solid #dfe7ed;border-radius:8px;margin-bottom:18px;overflow:hidden;background:#fff;color-scheme:light}.cr-preview-heading{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:14px;background:#f8fafc}.cr-preview-heading strong{font-size:13px}.cr-preview iframe{width:100%;height:850px;border:0;display:block;background:#fff;color-scheme:light}
.cr-dialog [hidden],.cr-settings [hidden]{display:none!important}
@media(max-width:540px){
 body.portal-theme dialog.circular-reminder-dialog .modalbody{padding:16px}
 body.portal-theme dialog.circular-reminder-dialog .modalhead{padding:16px}
 body.portal-theme dialog.circular-reminder-dialog .modalhead h2{font-size:18px}
 .cr-editor{padding:14px}.cr-section-head{gap:8px;align-items:flex-start}
 .cr-plan-summary{flex-wrap:wrap}.cr-plan-summary strong{font-size:19px}.cr-context>span{font-size:12px}
 body.portal-theme .cr-reminder-row input,body.portal-theme .cr-reminder-row select{font-size:16px;min-height:44px}
 body.portal-theme .cr-dialog .btn.small,body.portal-theme .cr-settings .btn.small{min-height:44px}
 .cr-reminder-row{flex-wrap:wrap}.cr-reminder-row .cr-remove{margin-left:auto}
 .cr-default-line{align-items:flex-start}.cr-save-bar{flex-wrap:wrap}.cr-tools{flex-wrap:wrap;gap:6px}
 .cr-manual{align-items:flex-start;flex-direction:column}.cr-history-row{flex-direction:column;gap:4px}.cr-history-row time{text-align:left}
 .cr-preview iframe{height:1050px}.cr-preview-heading{flex-wrap:wrap}
}

/* Current owner data and meeting context are edited separately. */
.owner-master-notice{padding:14px 16px;margin:0 0 18px;background:#eef5f8;border:1px solid #cddfe8;border-radius:10px;color:#27465a}
.owner-master-notice strong{display:block;font-size:15px}
.owner-master-notice p{margin:7px 0;line-height:1.5;font-size:14px}
.owner-master-notice small{display:block;line-height:1.5;color:#526875}
