.assistant-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:20px;align-items:start; }
.assistant-messages { display:flex;flex-direction:column;gap:12px;max-height:460px;min-height:180px;overflow:auto;padding:12px 0; }
.assistant-bubble { padding:14px 16px;border-radius:14px;background:#f0f5f1;white-space:pre-wrap;overflow-wrap:anywhere;max-width:95%;font-size:14px;line-height:1.6; }
.assistant-bubble.user { align-self:flex-end;background:#e5f2e8;border-bottom-right-radius:3px; }
.assistant-bubble.assistant { align-self:flex-start;border-bottom-left-radius:3px; }
.assistant-bubble small { display:block;font-weight:700;color:var(--green);margin-bottom:5px; }
.assistant-action { border:1px solid var(--line);padding:16px;border-radius:14px;margin-top:14px; }
.assistant-action dl { display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;margin:14px 0;font-size:13px; }
.assistant-action dt { color:var(--muted); }
.assistant-action dd { margin:0;overflow-wrap:anywhere;white-space:pre-wrap; }
.assistant-action .button,.assistant-action .secondary-button { margin:6px 6px 0 0; }
@media(max-width:1000px){.assistant-layout{grid-template-columns:1fr;}}
/* Company administration: styles scoped to the platform owner. */
.company-toolbar { display:flex; align-items:end; gap:16px; flex-wrap:wrap; margin:20px 0; }
.company-toolbar label:first-child { flex:1; min-width:220px; }
.company-toolbar label { min-width:180px; }
.company-toolbar p { padding-bottom:10px; margin:0; }
#tenant-detail-dialog { width:min(980px,94vw); max-width:980px; border:1px solid var(--line); border-radius:24px; padding:0; background:var(--bg); }
#tenant-detail-dialog .dialog-content { padding:0 28px 24px; }
#tenant-detail-dialog .dialog-header { position:sticky; top:0; z-index:2; background:var(--bg); padding:24px 0 18px; gap:16px; margin-bottom:24px; }
#tenant-detail-dialog .dialog-header h2 { margin:0; overflow-wrap:anywhere; }
#tenant-detail-dialog .dialog-content > section { background:white; border:1px solid var(--line); border-radius:16px; padding:22px; margin-bottom:18px; }
#tenant-detail-dialog .dialog-content > section[hidden] { display:none; }
#tenant-detail-dialog .dialog-content > .company-danger-zone { border-color:#ddbcbc; background:#fff8f8; }
#tenant-lifecycle-dialog { width:min(580px,94vw); max-height:90vh; overflow:auto; border:1px solid var(--line); border-radius:20px; padding:0; background:var(--bg); }
.lifecycle-form { display:grid; gap:16px; padding:28px; }
.lifecycle-form h2,.lifecycle-form p { margin:0; overflow-wrap:anywhere; }
.lifecycle-actions { display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.mfa-dialog { width:min(560px,94vw); max-height:92vh; overflow:auto; border:1px solid var(--line); border-radius:20px; padding:0; background:var(--bg); }
.mfa-content { display:grid; gap:16px; padding:26px; }
.mfa-content h2,.mfa-content p { margin:0; }
.mfa-content code,.mfa-content pre { display:block; white-space:pre-wrap; overflow-wrap:anywhere; user-select:all; padding:12px; background:white; border:1px solid var(--line); border-radius:10px; }
.mfa-content img { display:block; max-width:100%; height:auto; margin:auto; }
.mfa-content form,.mfa-settings-form,.mfa-policy-container form,#owner-company-mfa-policy form { display:grid; gap:14px; margin-top:14px; }
.mfa-actions { display:flex; flex-wrap:wrap; gap:10px; }
#detail-tenant-info { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 24px; }
#detail-tenant-info p { margin:0; overflow-wrap:anywhere; color:var(--muted); font-size:13px; }
#detail-tenant-info strong { display:block; margin-bottom:4px; color:var(--ink); font-size:12px; }
.company-section-title { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.company-section-title h3 { margin-bottom:0; }
.company-badge { border-radius:999px; padding:6px 12px; background:#e9f3ec; color:var(--green); font-size:12px; font-weight:700; white-space:nowrap; }
#owner-plugin-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.company-plugin-card { display:flex; flex-direction:row; align-items:start; justify-content:space-between; gap:16px; padding:18px; margin:0; border:1px solid var(--line); border-radius:12px; background:#fafbf9; cursor:pointer; transition:background .15s,border-color .15s; }
.company-plugin-card:hover { border-color:var(--green); }
.company-plugin-card.is-enabled { border-color:#8ab69c; background:#f0f8f2; }
.company-plugin-card:focus-within { outline:2px solid var(--green); outline-offset:3px; }
.company-plugin-copy { display:grid; gap:8px; }
.company-plugin-copy strong { font-size:14px; color:var(--ink); }
.company-plugin-copy small { color:var(--muted); line-height:1.5; font-weight:400; }
.company-plugin-state { color:var(--muted); font-size:11px; font-weight:600; }
.is-enabled .company-plugin-state { color:var(--green); }
.company-plugin-card input[type=checkbox] { appearance:none; flex-shrink:0; width:42px; height:24px; min-height:24px; padding:0; margin:0; border-radius:999px; background:#dae2dc; border:1px solid #b8c9bf; position:relative; cursor:pointer; }
.company-plugin-card input[type=checkbox]::before { content:''; position:absolute; width:16px; height:16px; left:3px; top:3px; background:white; border-radius:50%; box-shadow:0 1px 3px #0002; transition:transform .15s; }
.company-plugin-card input[type=checkbox]:checked { background:var(--green); border-color:var(--green); }
.company-plugin-card input[type=checkbox]:checked::before { transform:translateX(18px); }
.company-plugin-card input[type=checkbox]:disabled { opacity:.5; cursor:wait; }
#cri-membership-list p { padding:12px 0; margin:0; border-top:1px solid var(--line); font-size:13px; overflow-wrap:anywhere; }
#cri-membership-form { display:grid; gap:14px; margin-top:16px; }
#cri-membership-form > button { justify-self:start; }
#owner-plugin-status { min-height:20px; margin:14px 0 0; color:var(--green); font-size:13px; }
@media(max-width:640px) {
  #tenant-detail-dialog .dialog-content { padding:0 14px 16px; }
  #tenant-detail-dialog .dialog-content > section { padding:16px; }
  #owner-plugin-list,#detail-tenant-info { grid-template-columns:1fr; }
  .company-toolbar label { flex:1; min-width:100%; }
}

/* §2 Color tokens — emerald (default) */
:root {
  --ink: #12221b;
  --green: #176247;
  --lime: #c8f66d;
  --bg: #f4f6f2;
  --line: #dfe8e3;
  --muted: #5f6c66;
  --green-dark: #103c2c;
  --danger: #7d1d1d;
  --shadow: 0 22px 60px rgba(18, 34, 27, .1);
}

/* Theme: ocean */
[data-theme="ocean"] {
  --ink: #132238;
  --green: #205fa8;
  --lime: #8ed8ff;
  --bg: #f3f6fa;
  --line: #e1e8f0;
  --muted: #5c6879;
  --green-dark: #164a85;
  --shadow: 0 22px 60px rgba(19, 34, 56, .1);
}

/* Theme: violet */
[data-theme="violet"] {
  --ink: #241b34;
  --green: #6d3eb0;
  --lime: #d7b4ff;
  --bg: #f7f4fa;
  --line: #e9e2ef;
  --muted: #685e75;
  --green-dark: #532d87;
  --shadow: 0 22px 60px rgba(36, 27, 52, .1);
}

/* Theme: amber */
[data-theme="amber"] {
  --ink: #2c2113;
  --green: #a45b13;
  --lime: #ffd47a;
  --bg: #faf7f1;
  --line: #eee5d8;
  --muted: #6e6252;
  --green-dark: #7d450e;
  --shadow: 0 22px 60px rgba(44, 33, 19, .1);
}

/* §3 Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: var(--green);
  margin: 0 0 8px;
}

input, select, button, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

small, .muted {
  color: var(--muted);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

/* §5 Logo */
.mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lime);
  color: #143326;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 800;
  flex: 0 0 auto;
}

/* §5 Card */
.login-card, .owner-card, .demo-dashboard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
}

.login-card {
  max-width: 440px;
  margin: 7vh auto;
  box-shadow: var(--shadow);
}

.owner-card {
  box-shadow: 0 12px 35px rgba(16, 49, 34, .05);
  padding: 26px;
}

.demo-dashboard {
  padding: 28px;
  box-shadow: var(--shadow);
}

/* §5 Inner panel */
.secure-note, .info-box, .result-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.result-box {
  margin-top: 20px;
  border: 1px solid var(--line);
}

.result-box code {
  display: block;
  background: white;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 8px 0;
  overflow: auto;
}

/* §5 Buttons — three variants */
.button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: var(--green);
  color: white;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 44px;
}

.button:hover {
  background: var(--green-dark);
}

.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: white;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 42px;
  cursor: pointer;
}

.confirm-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  color: white;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 44px;
}

.full {
  width: 100%;
}

/* §5 Fields with visible focus */
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 17px 0;
}

label input, label select, label textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

label textarea {
  min-height: auto;
  resize: vertical;
}

label input:focus, label select:focus, label textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

label small {
  display: block;
  margin-top: 4px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 18px 14px;
  margin: 22px 0;
}

legend {
  font-weight: 800;
  font-size: 13px;
  padding: 0 8px;
}

/* §5 Radio options */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  margin: 0;
}

.check-row small {
  margin-left: 4px;
}

/* §5 Status pills */
.online {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--green);
}

.tenant-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tenant-tags span {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
}

.tenant-tags span.active {
  background: var(--bg);
  color: var(--green);
}

.tenant-tags span.invited {
  background: #fff1d6;
  color: #6b4a12;
}

.tenant-tags span.suspended {
  background: #fbeded;
  color: #7d1d1d;
}

.report-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg);
  color: var(--muted);
}

.report-badge.pending {
  background: #fff1d6;
  color: #6b4a12;
}

.report-badge.handled {
  background: var(--bg);
  color: var(--green);
}

/* §5 Tab filters */
.report-search {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #d4dfd9;
  border-radius: 9px;
  font: inherit;
}

.admin-tabs, .report-filters {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.admin-tabs {
  background: var(--bg);
  padding: 4px;
  border-radius: 11px;
}

.admin-tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  padding: 10px;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.admin-tabs button.active {
  background: var(--ink);
  color: white;
}

.filter-btn {
  min-height: 40px;
  border: 0;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* §5 Empty state */
.empty-state {
  background: var(--bg);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  color: var(--muted);
}

/* §5 Form error */
.error {
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.error:not(:empty) {
  padding: 12px 14px;
  margin: 18px 0;
  background: #fbeded;
  border: 1px solid #ebc4c4;
  border-radius: 12px;
  role: alert;
}

/* §5 Text counters */
.char-count {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

/* Layout utilities */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.centered {
  display: block;
  text-align: center;
  margin-top: 18px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 30px;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Login page */
.login-card h1 {
  font-size: 34px;
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.demo-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, #f3faef, #edf7f2);
}

.demo-link span {
  font-size: 12px;
  color: var(--green);
}

/* Owner page */
.owner-app {
  max-width: 1320px;
  margin: auto;
  padding: 34px;
}

.owner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.owner-header h1 {
  margin: 0;
  font-size: 38px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.status-grid article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.status-grid article.ready {
  border-left: 4px solid #26a269;
}

.status-grid article.missing {
  border-left: 4px solid #df9b24;
}

.status-grid span {
  font-size: 12px;
  font-weight: 800;
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(390px, .85fr);
  gap: 20px;
  align-items: start;
}

.owner-card h2 {
  font-size: 29px;
  margin: 5px 0 18px;
}

.owner-tenants {
  display: grid;
  gap: 10px;
}

.tenant-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  display: grid;
  gap: 10px;
}

.tenant-row strong, .tenant-row small {
  display: block;
}

.tenant-row small {
  margin-top: 4px;
}

.tenant-row.has-failures {
  border-color: #c0392b;
}

.tenant-activity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
}

.tenant-activity span.failed {
  color: #c0392b;
  font-weight: 600;
}

/* Dialog */
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  max-width: 800px;
  width: 90vw;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 22px 70px rgba(16, 49, 34, .2);
}

dialog::backdrop {
  background: rgba(19, 39, 31, .4);
}

.dialog-content {
  padding: 26px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.dialog-content section {
  margin-bottom: 24px;
}

.dialog-content h3 {
  font-size: 18px;
  margin: 0 0 12px;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.phone-row:last-child {
  border-bottom: none;
}

/* Activation/setup page */
.activation-shell, .setup-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
}

.activation-brand, .setup-intro {
  background: linear-gradient(145deg, #10271e, #1b6548);
  color: white;
  padding: 8vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activation-brand .kicker, .setup-intro .kicker {
  color: var(--lime);
}

.activation-brand h1, .setup-intro h1 {
  font-size: 45px;
  line-height: 1.05;
  margin: 10px 0 20px;
}

.activation-brand > p, .setup-intro > p {
  color: #bfd0c8;
  line-height: 1.6;
}

.activation-card, .setup-card {
  padding: 6vh 8vw;
  display: grid;
  align-items: center;
  background: white;
}

.activation-card > *, .setup-card form {
  max-width: 650px;
  width: 100%;
  margin: auto;
}

.activation-card h2 {
  font-size: 34px;
  font-family: Georgia, serif;
  font-weight: 500;
}

.success {
  text-align: center;
  max-width: 540px;
  margin: auto;
}

.success > span {
  font-size: 40px;
  color: var(--green);
}

.step {
  display: none;
}

.step.active {
  display: block;
}

/* Tenant admin page */
.admin-body {
  min-height: 100vh;
}

.mobile-admin {
  max-width: 880px;
  margin: auto;
  padding: 26px 20px 95px;
}

.mobile-admin > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-admin header h1 {
  margin: 0;
}

.presence-card {
  margin: 23px 0;
  background: linear-gradient(135deg, #15382a, #20684a);
  color: white;
  border-radius: 17px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.presence-card p {
  font-size: 12px;
  color: #c5d6ce;
  margin: 6px 0;
}

.big-toggle {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.big-toggle input {
  position: absolute;
  opacity: 0;
}

.big-toggle span {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #7f998d;
  position: relative;
}

.big-toggle span:after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: white;
  transition: .2s;
}

.big-toggle input:checked + span {
  background: var(--lime);
}

.big-toggle input:checked + span:after {
  transform: translateX(20px);
}

.admin-panel {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  margin-top: 14px;
}

.admin-panel.active {
  display: block;
}

.outbound-box {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.outbound-box h2 {
  margin: 4px 0;
}

.tenant-calls article {
  display: grid;
  grid-template-columns: 38px 1fr 34px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.tenant-calls article > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.tenant-calls strong, .tenant-calls small {
  display: block;
}

.tenant-calls button {
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.mobile-admin nav {
  display: none;
}

#admin-toast {
  position: fixed;
  z-index: 10;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 11px 15px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

#admin-toast.show {
  opacity: 1;
}

/* Demo page */
.demo-body {
  background: var(--bg);
}

.demo-top {
  max-width: 1160px;
  margin: auto;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-link .mark {
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 12px;
}

.demo-wrap {
  max-width: 1160px;
  margin: auto;
  padding: 30px 22px 80px;
}

.demo-hero {
  max-width: 760px;
  margin: 25px 0 40px;
}

.demo-hero h1 {
  font-size: 52px;
  line-height: 1.02;
  margin: 8px 0 18px;
}

.demo-hero > p {
  color: var(--muted);
  font-size: 17px;
}

.demo-dashboard > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-dashboard h2 {
  margin: 5px 0;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 22px;
}

.demo-stats article {
  background: var(--bg);
  padding: 17px;
  border-radius: 12px;
}

.demo-stats strong, .demo-stats span {
  display: block;
}

.demo-stats strong {
  font-size: 26px;
}

.demo-stats span {
  font-size: 12px;
  color: var(--muted);
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.demo-features article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.demo-features b {
  color: var(--green);
  font-size: 11px;
  letter-spacing: .15em;
}

.demo-features h3 {
  font-size: 23px;
  margin: 14px 0 8px;
}

.demo-features p {
  color: var(--muted);
  line-height: 1.5;
}

/* Knowledge Base */
.kb-document {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.kb-document-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.kb-document-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.kb-document-content {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}

.kb-document-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kb-document-actions {
  display: flex;
  gap: 8px;
}

.kb-document-actions button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.kb-document-actions button:hover {
  text-decoration: underline;
}

.kb-document-actions button.danger {
  color: var(--danger);
}

.kb-document.archived {
  opacity: .6;
}

.kb-document.archived .kb-document-title {
  text-decoration: line-through;
}

/* Call reports */
.call-reports-list {
  margin-bottom: 32px;
}

.report-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color .2s;
}

.report-item:hover {
  border-color: var(--green);
}

.report-item.pending {
  border-left: 4px solid #df9b24;
  background: #fffcf5;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.report-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

button.report-open {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visibile da tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.tenant-sidebar a:focus-visible,
.tenant-sidebar button:focus-visible {
  outline-color: #fff;
}

.report-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.report-summary {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 8px;
}

.report-outcome {
  font-size: 13px;
  color: var(--muted);
}

/* Modal */
.modal {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 22px 60px rgba(16, 49, 34, .3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 22px;
}

.close-btn {
  border: 0;
  background: transparent;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  color: var(--ink);
}

.modal-body {
  padding: 24px;
}

.modal-field {
  margin-bottom: 18px;
}

.modal-field strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.modal-field p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-actions {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.call-detail-head h2 { margin: 12px 0 4px; }
.call-detail-head p { margin: 2px 0; }
.call-detail-block { margin-top: 18px; }
.call-detail-block h3 { margin: 0 0 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.call-detail-block p { margin: 0; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.call-detail-block audio { width: 100%; }
.call-detail-block textarea { width: 100%; padding: 10px; margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; box-sizing: border-box; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); }
.chat-bubble small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.chat-bubble.caller { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.chat-bubble.assistant { align-self: flex-end; background: var(--green); color: white; border-bottom-right-radius: 4px; }
.chat-bubble.assistant small { color: var(--lime); }

/* Responsive */
@media (max-width: 900px) {
  .owner-grid {
    grid-template-columns: 1fr;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .activation-shell, .setup-shell {
    display: block;
  }
  .activation-brand, .setup-intro {
    padding: 35px 24px;
  }
  .activation-brand h1, .setup-intro h1 {
    font-size: 34px;
  }
  .activation-card, .setup-card {
    padding: 30px 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .owner-app {
    padding: 22px 15px;
  }
  .owner-header h1 {
    font-size: 31px;
  }
  .owner-card {
    padding: 20px;
  }
  .presence-card {
    align-items: flex-start;
  }
  .big-toggle {
    flex-direction: column;
  }
  .mobile-admin nav {
    display: flex;
    position: fixed;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    padding: 10px;
  }
  .mobile-admin nav a {
    text-decoration: none;
    color: var(--green);
    text-align: center;
  }
  .mobile-admin nav small {
    display: block;
  }
  .demo-hero h1 {
    font-size: 38px;
  }
  .demo-stats, .demo-features {
    grid-template-columns: 1fr;
  }
  .demo-dashboard {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .login-card {
    margin: 0;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: 28px 22px;
  }
  .admin-tabs button {
    font-size: 12px;
  }
  .mobile-admin > header {
    align-items: flex-start;
  }
}

/* pagina azienda: layout con sidebar */
.tenant-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.tenant-sidebar {
  background: var(--ink);
  color: white;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tenant-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.tenant-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tenant-brand-text strong {
  font-size: 15px;
  font-weight: 800;
  color: white;
}

.tenant-brand-text small {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

.tenant-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tenant-nav-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.nav-badge {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #d63a2a;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.nav-badge[hidden] {
  display: none;
}

.to-handle-list {
  display: grid;
  gap: 8px;
}

.to-handle-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4dfd9;
  border-radius: 10px;
  background: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.to-handle-item:hover {
  background: #f3f7f5;
}

.tenant-nav-item:hover {
  background: rgba(255, 255, 255, .05);
  color: white;
}

.tenant-nav-item.active {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.tenant-content {
  padding: 30px 36px;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

.tenant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 20px;
}

.tenant-header h1 {
  margin: 6px 0 10px;
}

.tenant-card {
  background: var(--company-surface, white);
  color: var(--company-surface-text, var(--ink));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 20px;
}

.admin-body .button { color: var(--company-accent-text, white); }
.admin-body .button:hover { background:var(--green); filter:brightness(.96); }
.tenant-app .admin-panel { background:var(--company-surface, white); color:var(--company-surface-text, var(--ink)); }
.tenant-app .tenant-header h1 { color:var(--company-background-text, var(--ink)); }
.tenant-app .tenant-card .muted { color:color-mix(in srgb, var(--company-surface-text, #12221b) 72%, var(--company-surface, white)); }
.company-brand-logo { width:44px;height:44px;object-fit:contain;border-radius:10px;background:white; }
.tenant-header.has-company-cover { background-position:center;background-size:cover;border-radius:16px;padding:20px; }
.tenant-app .tenant-header.has-company-cover h1,.tenant-header.has-company-cover .kicker { color:white; }

/* pagina azienda: mobile responsive (sotto 760px) */
@media (max-width: 760px) {
  .tenant-app {
    grid-template-columns: 1fr;
  }

  .tenant-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    overflow-x: auto;
  }

  .tenant-nav {
    flex-direction: row;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    padding-left: 16px;
  }

  .tenant-nav-item {
    white-space: nowrap;
    min-height: 40px;
    padding: 10px 16px;
  }

  .tenant-content {
    padding: 20px 16px;
  }

  .tenant-header {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* pagina proprietario: layout con sidebar (riusa tenant-app) */
.owner-app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.owner-sidebar {
  background: var(--ink);
  color: white;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.owner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.owner-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.owner-brand-text strong {
  font-size: 15px;
  font-weight: 800;
  color: white;
}

.owner-brand-text small {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

.owner-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.owner-nav-item {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.owner-nav-item:hover {
  background: rgba(255, 255, 255, .05);
  color: white;
}

.owner-nav-item.active {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.owner-sidebar-footer {
  margin-top: auto;
}

.owner-content {
  padding: 30px 36px;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

.owner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 20px;
}

.owner-header h1 {
  margin: 6px 0 10px;
}

.owner-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 20px;
}

.owner-section h2 {
  font-size: 22px;
  margin: 5px 0 18px;
}

.platform-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.platform-status article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.platform-status article.ready {
  border-left: 4px solid #26a269;
}

.platform-status article.missing {
  border-left: 4px solid #df9b24;
}

.platform-status span {
  font-size: 12px;
  font-weight: 800;
}

/* pagina proprietario: mobile responsive */
@media (max-width: 760px) {
  .owner-app-shell {
    grid-template-columns: 1fr;
  }

  .owner-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    overflow-x: auto;
  }

  .owner-nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-left: 16px;
  }

  .owner-nav-item {
    white-space: nowrap;
    min-height: 40px;
    padding: 10px 16px;
  }

  .owner-sidebar-footer {
    margin-top: 0;
  }

  .owner-content {
    padding: 20px 16px;
  }

  .owner-header {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-status {
    grid-template-columns: 1fr;
  }
}

/* pagina attivazione: card centrata su sfondo */
.activation-body {
  background: var(--bg);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.activation-container {
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.activation-container .mark {
  margin-bottom: 8px;
}

.activation-content {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.activation-content h2 {
  font-size: 28px;
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0 0 12px;
}

.activation-content .kicker {
  margin-bottom: 8px;
}

/* pagina attivazione: mobile responsive */
@media (max-width: 480px) {
  .activation-body {
    padding: 0;
  }

  .activation-container {
    max-width: 100%;
    min-height: 100vh;
    justify-content: center;
  }

  .activation-content {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* pannello: minuti del mese */
.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.usage-controls {
  display: flex;
  gap: 8px;
}

.usage-nav-btn {
  min-height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.usage-nav-btn:hover {
  background: var(--bg);
}

.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.usage-stat {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usage-value {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.usage-label {
  font-size: 13px;
  color: var(--muted);
  display: block;
}

#usage-error:not([hidden]),
#stats-error:not([hidden]) {
  background: #fbeded;
  border: 1px solid #ebc4c4;
  border-radius: 12px;
  padding: 12px 14px;
  color: #7d1d1d;
  font-size: 13px;
  margin-top: 12px;
}

.stats-select { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.stats-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; }
.stats-tile strong { font-size: 22px; color: var(--ink); }
.stats-tile span { font-size: 13px; color: var(--muted); }
.stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); }
.stats-bar { flex: 1; min-height: 2px; height: 2px; background: var(--green); border-radius: 3px 3px 0 0; }
.stats-bar[data-level="1"] { height: 5%; }
.stats-bar[data-level="2"] { height: 10%; }
.stats-bar[data-level="3"] { height: 15%; }
.stats-bar[data-level="4"] { height: 20%; }
.stats-bar[data-level="5"] { height: 25%; }
.stats-bar[data-level="6"] { height: 30%; }
.stats-bar[data-level="7"] { height: 35%; }
.stats-bar[data-level="8"] { height: 40%; }
.stats-bar[data-level="9"] { height: 45%; }
.stats-bar[data-level="10"] { height: 50%; }
.stats-bar[data-level="11"] { height: 55%; }
.stats-bar[data-level="12"] { height: 60%; }
.stats-bar[data-level="13"] { height: 65%; }
.stats-bar[data-level="14"] { height: 70%; }
.stats-bar[data-level="15"] { height: 75%; }
.stats-bar[data-level="16"] { height: 80%; }
.stats-bar[data-level="17"] { height: 85%; }
.stats-bar[data-level="18"] { height: 90%; }
.stats-bar[data-level="19"] { height: 95%; }
.stats-bar[data-level="20"] { height: 100%; }

.calendar-page-head, .calendar-toolbar, .calendar-nav-controls, .calendar-filters, .calendar-export-actions, .day-agenda-head, .dialog-head, .dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-page-head { justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.calendar-page-head h2 { margin: 3px 0 4px; font-size: 28px; text-transform: capitalize; }
.calendar-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.calendar-stats article { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.calendar-stats span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.calendar-stats strong { font: 500 28px Georgia, serif; }
.calendar-card { padding: 0; overflow: hidden; }
.calendar-toolbar { justify-content: space-between; flex-wrap: wrap; padding: 16px; border-bottom: 1px solid var(--line); }
.calendar-filters { flex: 1; justify-content: center; }
.calendar-filters input { width: min(300px, 100%); }
.calendar-export-actions a { text-decoration: none; white-space: nowrap; }
.calendar-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 640px; }
.month-calendar { min-width: 0; border-right: 1px solid var(--line); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); background: #f8faf8; }
.calendar-weekdays span { padding: 10px; color: var(--muted); text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.calendar-day { appearance: none; min-width: 0; min-height: 98px; padding: 8px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #f8fbf9; }
.calendar-day.outside-month { background: #fafbfa; color: #97a19c; }
.calendar-day.selected { background: #eef7f2; box-shadow: inset 0 0 0 2px var(--green); }
.calendar-day-number { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; font-weight: 800; font-size: 12px; }
.calendar-day.today .calendar-day-number { background: var(--green); color: white; }
.calendar-events { display: grid; gap: 3px; }
.calendar-event { overflow: hidden; padding: 3px 5px; border-left: 3px solid var(--green); border-radius: 4px; background: #edf7f1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event.status-completed { border-color: #5f6c66; background: #f0f2f1; }
.calendar-event.status-no_show { border-color: #b46b16; background: #fff5e7; }
.calendar-event.status-cancelled { border-color: #a0a8a4; background: #f4f4f4; text-decoration: line-through; opacity: .7; }
.calendar-more { color: var(--muted); font-size: 10px; padding-left: 5px; }
.day-agenda { padding: 18px; background: #fbfcfb; }
.day-agenda-head { justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day-agenda-head h3 { margin: 3px 0 0; font-size: 18px; text-transform: capitalize; }
.agenda-list { display: grid; gap: 8px; margin-top: 14px; }
.day-appointment { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.day-appointment:hover { box-shadow: 0 8px 22px rgba(18, 34, 27, .08); }
.day-appointment.status-completed { border-left-color: #5f6c66; }
.day-appointment.status-no_show { border-left-color: #b46b16; }
.day-appointment.status-cancelled { border-left-color: #a0a8a4; opacity: .7; }
.day-appointment-time { font-weight: 800; }
.day-appointment-body { min-width: 0; display: grid; gap: 3px; }
.day-appointment-body strong, .day-appointment-body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-appointment-body small { color: var(--muted); }
.appointment-status { grid-column: 2; width: max-content; padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 10px; font-weight: 700; }
.empty-day { padding: 24px 8px; text-align: center; }
.calendar-settings { margin-top: 16px; }
.calendar-settings summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.calendar-settings[open] summary { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.agenda-dialog { max-width: 760px; }
.agenda-dialog form { padding: 24px; }
.dialog-head { justify-content: space-between; margin-bottom: 20px; }
.dialog-head h2 { margin: 2px 0 0; font-size: 24px; }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 24px; cursor: pointer; }
.dialog-actions { display: grid; grid-template-columns: auto 1fr auto auto; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-button { min-height: 44px; padding: 10px 14px; border: 1px solid #ddbcbc; border-radius: 10px; background: #fff5f5; color: var(--danger); font-weight: 700; cursor: pointer; }
.crm-card { display: grid; grid-template-columns: 330px minmax(0, 1fr); padding: 0; min-height: 620px; overflow: hidden; }
.crm-list-pane { padding: 16px; border-right: 1px solid var(--line); background: #fbfcfb; }
.crm-list-pane > input { width: 100%; margin-bottom: 12px; }
.crm-customer-list { display: grid; gap: 6px; }
.crm-customer-row { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.crm-customer-row:hover, .crm-customer-row.active { border-color: var(--line); background: white; }
.crm-customer-row.active { box-shadow: inset 3px 0 var(--green); }
.crm-customer-row > span:last-child { min-width: 0; display: grid; gap: 3px; }
.crm-customer-row strong, .crm-customer-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-customer-row small { color: var(--muted); }
.crm-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e7f3ec; color: var(--green-dark); font-weight: 800; }
.crm-empty-list { padding: 20px 8px; text-align: center; }
.crm-detail { min-width: 0; padding: 22px; }
.crm-empty { min-height: 400px; display: grid; place-content: center; text-align: center; }
.crm-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.crm-detail-head h3 { margin: 3px 0 6px; font-size: 26px; }
.crm-detail-head p { margin: 0; color: var(--muted); }
.crm-detail-actions, .commitment-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; }
.crm-tags span { padding: 4px 9px; border-radius: 999px; background: #e9f4ee; color: var(--green-dark); font-size: 12px; font-weight: 700; }
.crm-note { margin-top: 16px; padding: 14px; border-radius: 10px; background: var(--bg); }
.crm-note p { margin: 6px 0 0; white-space: pre-wrap; }
.crm-detail-section { margin-top: 24px; }
.crm-detail-section h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.commitment-list, .crm-history-list { display: grid; gap: 8px; }
.commitment-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; }
.commitment-item.priority-high { border-left-color: #b34747; }
.commitment-item.priority-low { border-left-color: #8da49a; }
.commitment-item > div:first-child { min-width: 0; display: grid; gap: 4px; }
.commitment-item small { color: var(--muted); }
.crm-history-list article { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crm-history-list span { min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.module-card { display: flex; flex-direction: column; min-height: 250px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 28px rgba(18, 34, 27, .04); }
.module-card.enabled { border-color: #a8cdbb; box-shadow: inset 0 3px var(--green); }
.module-card-head, .module-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e7f3ec; color: var(--green-dark); font: 700 20px Georgia, serif; }
.module-state { padding: 4px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.module-card.enabled .module-state { background: #e7f3ec; color: var(--green-dark); }
.module-card h3 { margin: 18px 0 8px; font-size: 20px; }
.module-card p { flex: 1; margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.module-card-actions { padding-top: 14px; border-top: 1px solid var(--line); }
.module-principles { margin-top: 16px; }
.module-principles h3 { margin-top: 0; }
.module-principles p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 1100px) {
  .calendar-workspace { grid-template-columns: 1fr; }
  .month-calendar { border-right: 0; }
  .day-agenda { border-top: 1px solid var(--line); }
  .crm-card { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .calendar-page-head { align-items: stretch; flex-direction: column; }
  .calendar-stats { grid-template-columns: repeat(2, 1fr); }
  .calendar-toolbar, .calendar-filters, .calendar-export-actions { align-items: stretch; flex-direction: column; }
  .calendar-filters input { width: 100%; }
  .calendar-export-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .calendar-export-actions a { text-align: center; }
  .calendar-weekdays span { padding: 8px 2px; font-size: 10px; }
  .calendar-day { min-height: 64px; padding: 4px; }
  .calendar-event { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--green); font-size: 0; }
  .calendar-event.status-no_show { background: #b46b16; }
  .calendar-event.status-cancelled { background: #a0a8a4; }
  .calendar-events { display: flex; flex-wrap: wrap; gap: 3px; }
  .calendar-more { display: none; }
  .dialog-actions { grid-template-columns: 1fr 1fr; }
  .dialog-actions span { display: none; }
  .dialog-actions .danger-button { grid-column: 1 / -1; }
  .crm-card { grid-template-columns: 1fr; }
  .crm-list-pane { border-right: 0; border-bottom: 1px solid var(--line); max-height: 340px; overflow: auto; }
  .crm-detail-head, .commitment-item { align-items: stretch; flex-direction: column; }
  .crm-detail-actions .button, .crm-detail-actions .secondary-button { flex: 1; }
  .crm-history-list article { grid-template-columns: 1fr; gap: 4px; }
}
.assistant-change-preview { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Dedicated transport agenda. General-calendar mirrors have an unmistakable source color. */
.calendar-event.source-transport{background:#e9e0fb;color:#4c287e;border-left:3px solid #7950b2}
.day-appointment.source-transport{border-left:4px solid #7950b2;background:#f7f3ff}
.transport-calendar-day{min-height:105px;display:flex;flex-direction:column;gap:4px;text-align:left}
.transport-calendar-day .calendar-event{border-radius:5px;padding:4px;font:inherit;font-size:11px;cursor:pointer;text-align:left;overflow-wrap:anywhere}
.transport-service-list{margin:20px 0;display:grid;gap:8px}
.transport-service-row{display:grid;grid-template-columns:1.3fr 1fr auto auto;align-items:center;gap:12px;width:100%;padding:14px;border:1px solid #d8e5dd;border-radius:12px;background:#fff;color:#17392b;text-align:left;cursor:pointer}
.transport-service-row small{display:block;margin-top:5px;color:#536b60}
.transport-status{font-size:12px;background:#edf4ef;padding:5px 8px;border-radius:15px}
.transport-sheet-dialog{width:min(1000px,95vw);max-height:92vh;border:1px solid #cddcd3;border-radius:20px;padding:26px;color:#17392b}
.transport-sheet-dialog::backdrop{background:#10251cb3}
.transport-form-group{margin:14px 0;border:1px solid #dce7df;border-radius:12px;padding:14px}
.transport-form-group summary{font-weight:700;cursor:pointer;margin-bottom:12px}
.transport-form-actions{position:sticky;bottom:-26px;display:flex;flex-wrap:wrap;gap:10px;padding:18px 0;background:#fff;border-top:1px solid #dce7df}
#transport-form-error{color:#9b3030}
#transport-summary-dialog{max-width:520px;border:1px solid #dce7df;border-radius:16px;padding:24px}
@media(max-width:700px){.transport-service-row{grid-template-columns:1fr}.transport-calendar-day{min-height:80px}.transport-sheet-dialog{padding:16px}.transport-calendar-day .calendar-event{font-size:10px}.transport-form-actions{bottom:-16px}}
.cri-theme .tenant-sidebar{background:#8f1e28}.cri-theme .button{background:#b32332;border-color:#b32332;color:#fff}.cri-theme .tenant-nav-item.active{background:#ffffff26}.cri-theme .kicker{color:#a71e2b}.cri-theme .tenant-brand .mark{background:#fff;color:#a71e2b}.cri-has-logo .tenant-brand>.mark{display:none}#cri-brand-logo{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}.cri-identity{border-left:5px solid #b32332}.cri-template-stage{position:relative;max-width:740px;margin:18px auto;border:1px solid #d9c5c8;container-type:inline-size;cursor:crosshair}.cri-template-stage>img{display:block;width:100%;height:auto}.cri-map-marker{position:absolute;pointer-events:none;background:#fff6;color:#9b1320;border:1px dashed #b32332;overflow-wrap:anywhere;line-height:1.1}.cri-grade-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;padding:10px;border-bottom:1px solid #eadcde}@media(max-width:650px){.cri-grade-row{grid-template-columns:1fr}}
.cri-grade-row select{width:100%;padding:11px 12px;border:1px solid #d9c5c8;border-radius:10px;font:inherit;background:#fff;color:#263b31}

/* Guided company creation and shortcuts for everyday tasks. */
.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;list-style:none;margin:24px 0 8px;padding:0}
.wizard-progress li{padding:10px 12px;border-radius:10px;background:#edf2ee;color:#53685d;font-weight:700;font-size:13px}
.wizard-progress li.current{background:#176247;color:#fff}.wizard-progress li.complete{background:#d9eee2;color:#174f37}
.wizard-count{font-size:13px;color:#53685d;margin:12px 0}.wizard-step h3{margin:20px 0 4px}.wizard-step[hidden],.wizard-actions [hidden],.quick-actions-grid [hidden]{display:none!important}
.wizard-step details{margin:16px 0}.wizard-step summary{cursor:pointer;font-weight:700}.wizard-step details .form-grid{margin-top:15px}
.wizard-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.wizard-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#dce7df;border:1px solid #dce7df;border-radius:12px;overflow:hidden}
.wizard-summary div{background:#fff;padding:14px}.wizard-summary dt{font-size:12px;color:#52685c}.wizard-summary dd{margin:5px 0 0;font-weight:700;overflow-wrap:anywhere}
.tenant-nav-heading{margin:16px 12px 4px;font-size:10px;letter-spacing:.1em;font-weight:800;color:#d9e9df}
.tenant-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border-radius:16px;background:#e7f3eb;color:#163f2d;margin-bottom:16px}
.tenant-welcome h2{margin:4px 0}.tenant-welcome p:last-child{margin:8px 0 0;color:#395c4a}.tenant-welcome>span{font-size:36px;color:#176247}
.quick-actions h2{margin:4px 0 16px}.quick-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quick-actions-grid button{position:relative;text-align:left;background:var(--company-surface,#fff);color:var(--company-surface-text,#17392b);border:1px solid #cfdfd5;border-radius:12px;padding:16px 42px 16px 16px;cursor:pointer}
.quick-actions-grid button:hover{border-color:var(--green);box-shadow:0 2px 12px #1232}.quick-actions-grid button:focus-visible{outline:3px solid var(--green);outline-offset:2px}.quick-actions-grid strong,.quick-actions-grid small{display:block}.quick-actions-grid small{margin-top:6px;color:inherit;opacity:.78;line-height:1.4}.quick-actions-grid button span{position:absolute;right:16px;top:18px;font-size:20px}
@media(max-width:760px){.tenant-nav-heading{display:none}.wizard-progress li{font-size:11px;padding:8px 5px;text-align:center}.wizard-progress li span{display:block}.quick-actions-grid{grid-template-columns:1fr}.wizard-summary{grid-template-columns:1fr}.tenant-welcome{padding:20px}}

/* Company workspace: motion and depth are scoped to the authenticated area. */
.tenant-app{grid-template-columns:252px minmax(0,1fr);background:var(--bg);font-feature-settings:'ss01' on}
.tenant-sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;background:linear-gradient(165deg,#112a22 0%,#0c1f1b 65%,#102b24 100%);padding:28px 16px;box-shadow:5px 0 30px #122b1c0d}
.tenant-brand{padding:2px 10px 20px;border-bottom:1px solid #ffffff19}.tenant-brand .mark{box-shadow:0 0 0 5px #c6ef6820}.tenant-brand-text strong{font-size:16px;letter-spacing:-.03em}.tenant-brand-text small{letter-spacing:.02em}
.tenant-nav{gap:3px}.tenant-nav-heading{font-size:10px;letter-spacing:.15em;color:#b8d5c5a8;margin:19px 12px 7px}
.tenant-nav-item{position:relative;border:1px solid transparent;transition:background .22s,color .22s,transform .22s,border-color .22s}.tenant-nav-item:hover{transform:translateX(3px);background:#ffffff0d}.tenant-nav-item.active{background:#d9f79c17;border-color:#c6ef6830;color:#e8ffcd}.tenant-nav-item.active::before{content:'';position:absolute;left:-16px;top:9px;bottom:9px;width:3px;background:#c7f271;border-radius:0 5px 5px 0}
.tenant-content{max-width:1450px;padding:36px clamp(22px,4vw,64px) 70px}.tenant-header{align-items:center;margin-bottom:28px}.tenant-header h1{font-size:clamp(26px,3vw,37px);letter-spacing:-.045em}.tenant-header .kicker{letter-spacing:.14em;font-size:10px}
.tenant-app .admin-panel.active{animation:workspace-enter .38s cubic-bezier(.2,.7,.2,1) both}.tenant-app .admin-panel{background:transparent;color:var(--company-background-text,var(--ink))}
.tenant-app .tenant-card{border-color:color-mix(in srgb,var(--company-surface-text,#193a2b) 12%,var(--company-surface,#fff));box-shadow:0 10px 35px #1236290b;border-radius:20px;transition:box-shadow .22s,border-color .22s}.tenant-app .tenant-card:hover{box-shadow:0 14px 42px #12362913}
.tenant-welcome{position:relative;isolation:isolate;min-height:255px;overflow:hidden;display:flex;align-items:center;padding:clamp(24px,4vw,42px);margin-bottom:22px;border-radius:24px;background:radial-gradient(circle at 82% 30%,#356e50 0,transparent 35%),linear-gradient(115deg,#102f25,#184838 65%,#173c30);color:#fff;box-shadow:0 18px 45px #17453222}
.tenant-welcome:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.2;background-image:radial-gradient(#e9ffec 0.7px,transparent .7px);background-size:16px 16px;mask-image:linear-gradient(90deg,transparent 40%,#000)}
.welcome-copy{position:relative;z-index:2;max-width:600px}.welcome-eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:800;letter-spacing:.16em;color:#c6f19b}.welcome-eyebrow span{width:8px;height:8px;border-radius:50%;background:#c8f788;box-shadow:0 0 0 5px #c8f78820}.tenant-welcome h2{font-size:clamp(30px,4vw,49px);line-height:1.03;letter-spacing:-.055em;margin:18px 0 12px;color:white}.tenant-welcome h2 em{font-style:normal;color:#cff49a}.tenant-welcome .welcome-copy>p:last-of-type{max-width:440px;color:#e1f0e7bf;line-height:1.55;font-size:14px}.welcome-action{margin-top:18px;padding:11px 15px;background:#d1f4a1;color:#133a28;font:inherit;font-size:13px;font-weight:800;border:0;border-radius:10px;cursor:pointer;transition:transform .2s,background .2s}.welcome-action:hover{transform:translateY(-2px);background:#e6ffc2}.welcome-action:focus-visible{outline:3px solid white;outline-offset:3px}.welcome-action span{margin-left:12px}
.welcome-art{position:absolute;width:270px;height:270px;right:7%;top:50%;transform:translateY(-50%);display:grid;place-items:center}.welcome-orbit{position:absolute;border:1px solid #ddffdb3b;border-radius:50%}.orbit-one{width:140px;height:140px}.orbit-two{width:205px;height:205px}.orbit-three{width:265px;height:265px}.welcome-core{width:92px;height:92px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(145deg,#e8ffbf,#9fd786);box-shadow:0 14px 44px #071f15a8,0 0 0 10px #d8ffb811;transform:rotate(-8deg)}.welcome-wave{display:flex;align-items:center;gap:4px;transform:rotate(8deg)}.welcome-wave i{display:block;width:5px;border-radius:8px;background:#1e6040;height:13px;animation:wave-pulse 1.8s ease-in-out infinite}.welcome-wave i:nth-child(2),.welcome-wave i:nth-child(4){height:25px;animation-delay:.2s}.welcome-wave i:nth-child(3){height:35px;animation-delay:.4s}.welcome-spark{position:absolute;color:#d1f4a1;font-size:24px}.spark-one{top:24px;right:34px}.spark-two{bottom:26px;left:34px;font-size:17px}
.quick-actions{padding:25px}.quick-actions h2{letter-spacing:-.035em}.quick-actions-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-actions-grid button{min-height:130px;padding:20px 32px 20px 18px;background:color-mix(in srgb,var(--company-surface,#fff) 94%,var(--green,#176247));border-color:color-mix(in srgb,var(--company-surface-text,#17392b) 12%,var(--company-surface,#fff));transition:transform .2s,box-shadow .2s,border-color .2s}.quick-actions-grid button:hover{transform:translateY(-4px);box-shadow:0 12px 24px #17392b1a}.quick-actions-grid strong{font-size:14px;line-height:1.3}.quick-actions-grid small{font-size:12px;line-height:1.5}.quick-actions-grid button span{right:14px;top:13px;font-size:17px;transition:transform .2s}.quick-actions-grid button:hover span{transform:translate(3px,-3px)}
.presence-card{border-radius:16px}.stats-tiles>div{transition:transform .2s,box-shadow .2s}.stats-tiles>div:hover{transform:translateY(-3px)}
@keyframes workspace-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes wave-pulse{0%,100%{transform:scaleY(.65)}50%{transform:scaleY(1)}}
@media(max-width:1100px){.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-art{right:2%;opacity:.75}.welcome-copy{max-width:65%}}
@media(max-width:760px){.tenant-app{grid-template-columns:1fr}.tenant-sidebar{position:relative;top:auto;height:auto;overflow:visible;padding:12px 16px}.tenant-brand{padding:0;border:0}.tenant-nav{overflow-x:auto}.tenant-nav-item:hover{transform:none}.tenant-nav-item.active::before{display:none}.tenant-content{padding:20px 16px 48px}.tenant-header{align-items:stretch}.tenant-welcome{min-height:220px;padding:24px}.welcome-copy{max-width:100%;padding-right:35px}.welcome-art{right:-100px;opacity:.22;pointer-events:none}.tenant-welcome h2{font-size:34px}.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions-grid button{min-height:120px}}
@media(max-width:430px){.quick-actions-grid{grid-template-columns:1fr}.quick-actions-grid button{min-height:94px}.tenant-welcome h2{font-size:30px}}
@media(prefers-reduced-motion:reduce){.tenant-app *, .tenant-app *::before,.tenant-app *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Compact settings with native keyboard-accessible disclosure controls. */
.settings-intro{margin-bottom:24px}.settings-intro h2{margin:8px 0;font-size:clamp(25px,3vw,34px);letter-spacing:-.04em}.settings-intro p{margin:0;color:inherit;opacity:.72;line-height:1.6}.settings-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;color:inherit;opacity:.7}
.settings-disclosure{margin:10px 0;border:1px solid color-mix(in srgb,var(--company-surface-text,#17392b) 16%,var(--company-surface,#fff));border-radius:16px;background:color-mix(in srgb,var(--company-surface,#fff) 96%,var(--company-surface-text,#17392b));overflow:hidden;transition:border-color .2s,box-shadow .2s}.settings-disclosure:hover,.settings-disclosure[open]{border-color:color-mix(in srgb,var(--company-surface-text,#17392b) 35%,var(--company-surface,#fff));box-shadow:0 8px 24px #17392b10}.settings-disclosure summary{display:flex;align-items:center;gap:16px;padding:17px 20px;cursor:pointer;list-style:none}.settings-disclosure summary::-webkit-details-marker{display:none}.settings-disclosure summary:focus-visible{outline:3px solid var(--green,#176247);outline-offset:-4px}.settings-disclosure summary>span:nth-child(2){min-width:0;flex:1}.settings-disclosure summary strong,.settings-disclosure summary small{display:block}.settings-disclosure summary strong{font-size:15px;letter-spacing:-.01em}.settings-disclosure summary small{margin-top:4px;font-size:12px;opacity:.72;line-height:1.4}.settings-disclosure summary::after{content:'+';display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid currentColor;font-size:21px;line-height:1;opacity:.7;flex:none}.settings-disclosure[open] summary::after{content:'−'}.settings-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--company-surface-text,#17392b) 10%,var(--company-surface,#fff));font-size:11px;font-weight:800;letter-spacing:.05em;flex:none}.settings-content{padding:4px 20px 22px}.settings-content fieldset{margin-top:10px}.settings-save{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px}.settings-save span{font-size:13px;opacity:.72}.settings-security{margin:0}.recording-availability{padding:15px;border-radius:12px;background:color-mix(in srgb,var(--company-surface-text,#17392b) 7%,var(--company-surface,#fff))}.recording-availability p{line-height:1.5}
@media(max-width:600px){.settings-disclosure summary{padding:15px;gap:11px}.settings-content{padding:4px 15px 18px}.settings-save{align-items:stretch;flex-direction:column}.settings-icon{width:36px;height:36px}}

/* The platform owner's workspace shares the same visual language. */
.owner-sidebar{background:linear-gradient(165deg,#112a22,#0c1f1b 68%,#173c30);box-shadow:5px 0 30px #122b1c0d}.owner-brand .mark{box-shadow:0 0 0 5px #c6ef6820}.owner-nav-item{border:1px solid transparent;transition:background .2s,transform .2s,border-color .2s}.owner-nav-item:hover{transform:translateX(3px);background:#ffffff0d}.owner-nav-item.active{background:#d9f79c17;border-color:#c6ef6830}.owner-header h1{font-size:clamp(26px,3vw,37px);letter-spacing:-.045em}.owner-section{border-radius:20px;box-shadow:0 10px 35px #1236290b}.owner-section details summary{cursor:pointer;font-weight:700}.owner-section details summary:focus-visible{outline:3px solid var(--green);outline-offset:4px}
@media(prefers-reduced-motion:reduce){.owner-app-shell *, .owner-app-shell *::before,.owner-app-shell *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.login-company-identity{display:flex;align-items:center;gap:16px;margin-bottom:18px}.login-company-identity .mark,.login-company-logo{width:58px;height:58px;flex:none}.login-company-logo{object-fit:contain;border-radius:14px;background:#fff}.login-company-identity h1{margin:4px 0 0;overflow-wrap:anywhere}.login-company-identity .kicker{margin:0}.login-card #login-company-message{line-height:1.55;margin-bottom:20px}
/* Tenant-scoped rental catalog. */
.property-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin:18px 0}
.property-card{overflow:hidden;padding:0;display:flex;flex-direction:column;min-width:0}
.property-card img{display:block;width:100%;height:180px;object-fit:cover;background:#e8f1eb}
.property-card-body{padding:18px;display:grid;gap:8px;flex:1}.property-card h3{margin:0}.property-card p{margin:0;overflow-wrap:anywhere}
.property-card .actions{margin-top:auto}.property-empty{padding:24px;border:1px dashed var(--line);border-radius:16px}
.property-photos{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.property-photo{position:relative;width:120px}.property-photo img{width:120px;height:85px;object-fit:cover;border-radius:10px}.property-photo button{width:100%;margin-top:5px;font-size:12px}
