:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #162033; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(100% - 32px, 1280px); margin: 48px auto; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 24px 4px; color: #15283f; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #193f60; color: white; font-weight: 800; letter-spacing: .04em; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; }
.brand div span { margin-top: 2px; color: #68788c; font-size: 13px; }
.card { padding: 30px; border: 1px solid #e1e7ee; border-radius: 16px; background: white; box-shadow: 0 12px 36px #1b35530d; }
h1 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.02em; }
h2 { margin: 0 0 6px; font-size: 18px; }
.muted { color: #64748b; line-height: 1.55; }
form { display: grid; gap: 16px; margin-top: 22px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #172033; font: inherit; }
input:focus { outline: 3px solid #c9e4fb; border-color: #3484b9; }
button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 8px; background: #176495; color: white; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #104d75; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { border: 1px solid #cbd5e1; background: #fff; color: #34465b; }
.secondary:hover { background: #f4f7fa; }
.recovery { margin-top: 22px; color: #40536a; font-size: 14px; }
.recovery summary { cursor: pointer; font-weight: 650; }
.error { padding: 11px 12px; border-radius: 8px; background: #fff1f0; color: #a22f2a; font-size: 14px; }
#qr-canvas { display: block; width: 240px; height: 240px; max-width: 100%; margin: 22px auto; border: 8px solid white; box-shadow: 0 0 0 1px #dce4ec; image-rendering: pixelated; }
code, pre { overflow-wrap: anywhere; padding: 10px; border-radius: 7px; background: #f1f5f9; color: #172033; }
pre { white-space: pre-wrap; line-height: 1.7; user-select: all; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dashboard-heading h1 { margin-top: 2px; }
.eyebrow { margin: 0; color: #738398; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.status { display: flex; align-items: center; gap: 8px; color: #286a4c; font-size: 14px; font-weight: 650; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #41a675; }
.offices-section, .office-details { margin-top: 28px; padding: 20px; border: 1px solid #e1e7ee; border-radius: 12px; background: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.section-heading .muted { margin: 5px 0 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th, td { padding: 10px 9px; border-bottom: 1px solid #e7edf3; text-align: left; vertical-align: top; }
th { color: #617287; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.office-name-button { padding: 0; min-height: auto; border: 0; background: transparent; color: #176495; text-align: left; font-weight: 700; }
.office-name-button:hover { background: transparent; text-decoration: underline; }
.state-pill { display: inline-block; padding: 4px 8px; border-radius: 99px; background: #eef3f8; color: #40536a; font-size: 11px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.detail-item { min-width: 0; padding: 12px; border: 1px solid #e7edf3; border-radius: 9px; }
.detail-item strong, .detail-item span { display: block; overflow-wrap: anywhere; }
.detail-item strong { margin-bottom: 5px; color: #66788d; font-size: 11px; text-transform: uppercase; }
.detail-item span { font-size: 14px; }
.detail-subsection { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e7edf3; }
.detail-subsection h3 { margin: 0 0 10px; font-size: 15px; }
.logo-placeholder { display: grid; place-items: center; width: 96px; height: 72px; border: 1px dashed #b8c7d6; border-radius: 8px; color: #60758a; font-size: 12px; }
.office-dialog { width: min(760px, calc(100% - 24px)); max-height: min(92vh, 900px); padding: 0; border: 0; border-radius: 15px; box-shadow: 0 20px 70px #0d22364d; }
.office-dialog::backdrop { background: #10243b88; }
.office-dialog form { display: grid; gap: 18px; margin: 0; padding: 24px; }
.office-dialog input[readonly] { background: #f4f7fa; color: #52657a; }
fieldset { display: grid; gap: 13px; min-width: 0; padding: 16px; border: 1px solid #dce4ec; border-radius: 10px; }
legend { padding: 0 6px; color: #253b53; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
select { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: white; color: #172033; font: inherit; }
pre.plan { max-height: 280px; overflow: auto; direction: ltr; text-align: left; }
.details-grid { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); gap: 9px 16px; margin: 16px 0; }
.details-grid dt { color: #66788d; font-size: 13px; font-weight: 700; }
.details-grid dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.detail-actions button { min-height: 38px; padding: 8px 11px; font-size: 13px; }
.office-logo-placeholder { display: inline-grid; place-items: center; min-width: 88px; min-height: 58px; margin: 8px 0; padding: 10px; border: 1px dashed #b8c7d6; border-radius: 8px; color: #60758a; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 720px) { .details-grid { grid-template-columns: minmax(105px, 140px) minmax(0, 1fr); } }
@media (max-width: 520px) { .shell { margin: 24px auto; } .card { padding: 22px; } .dashboard-heading, .section-heading { align-items: flex-start; } .section-heading { flex-direction: column; } .detail-grid, .form-grid { grid-template-columns: 1fr; } .office-dialog form { padding: 17px; } .form-actions { flex-direction: column; } }

.organization-card{margin-block:1rem;padding:1rem;border:1px solid #cbd5e1;border-radius:8px}.organization-card form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.organization-card label{display:flex;flex-direction:column;gap:6px}.organization-card input,.organization-card select{max-width:100%;padding:8px}.organization-card form p{grid-column:1/-1}@media(max-width:640px){.organization-card form{grid-template-columns:1fr}}

.tenant-logo-editor{border-top:1px solid #dce4ec;margin-top:20px;padding-top:18px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.tenant-logo-editor h3,.tenant-logo-editor>p,.tenant-logo-current,.tenant-logo-pending{width:100%}.tenant-logo-editor img{width:96px;height:80px;object-fit:contain;border:1px solid #dce4ec;border-radius:8px;background:#f5f7fa}.tenant-logo-pending{padding:14px;border:1px dashed #7297b6;border-radius:8px}.tenant-logo-pending p{overflow-wrap:anywhere}.tenant-logo-pending button{margin-inline-end:10px}.tenant-logo-placeholder{display:grid;place-items:center;width:140px;height:80px;background:#f3f6fa;border:1px dashed #b8c7d6;border-radius:8px}.tenant-logo-editor [role=status]{color:#16496b}
