:root {
    color-scheme: light;

    --color-primary: #17324d;
    --color-primary-strong: #0e263b;
    --color-accent: #147d78;
    --color-accent-soft: #e8f6f4;
    --color-background: #f3f6f9;
    --color-surface: #ffffff;
    --color-surface-muted: #f8fafc;
    --color-text: #172431;
    --color-text-muted: #5a6977;
    --color-border: #dbe3ea;
    --color-border-strong: #c6d1db;
    --color-success: #18754f;
    --color-success-soft: #e8f6ef;
    --color-water: #1f6fa9;
    --color-water-soft: #eaf4fb;
    --color-message: #7656b3;
    --color-message-soft: #f1edfa;
    --color-payment: #a4611a;
    --color-payment-soft: #fff3e5;
    --color-sidebar: #142c42;
    --color-sidebar-text: #f5f9fc;
    --color-sidebar-muted: #b9c7d3;
    --color-sidebar-hover: #1d3a54;
    --color-focus: #f4a62a;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;
    --shadow-card: 0 10px 32px rgb(23 50 77 / 0.07);
    --shadow-menu: 0 18px 50px rgb(14 38 59 / 0.2);

    --sidebar-width: 264px;
    --content-width: 1440px;
    --page-gutter: clamp(24px, 4vw, 56px);
    --focus-ring: 0 0 0 3px rgb(244 166 42 / 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--color-background);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--color-text);
    background: var(--color-background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--color-primary-strong);
    background: var(--color-surface);
    border: 2px solid var(--color-focus);
    border-radius: var(--radius-small);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
}

:where(a, button, summary):focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: var(--sidebar-width);
    min-height: 100vh;
    padding: 28px 18px 20px;
    overflow-y: auto;
    color: var(--color-sidebar-text);
    background: var(--color-sidebar);
}

.sidebar,
.sidebar-nav,
.sidebar-footer {
    flex-direction: column;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

.sidebar > .brand {
    margin: 0 10px 34px;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--color-primary);
    background: var(--color-accent-soft);
    border-radius: 11px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.brand-text {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.sidebar-nav,
.sidebar-footer {
    display: flex;
    gap: 5px;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-footer {
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

.nav-item {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 13px;
    padding: 10px 13px;
    color: var(--color-sidebar-muted);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 570;
    text-decoration: none;
}

a.nav-item {
    transition: color 150ms ease, background-color 150ms ease;
}

a.nav-item:hover {
    color: var(--color-sidebar-text);
    background: var(--color-sidebar-hover);
}

.nav-logout-form,
.mobile-logout-form {
    margin: 0;
}

.nav-logout {
    width: 100%;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: color 150ms ease, background-color 150ms ease;
}

.nav-logout:hover {
    color: var(--color-sidebar-text);
    background: var(--color-sidebar-hover);
}

.nav-item.is-active {
    color: var(--color-sidebar-text);
    background: rgb(255 255 255 / 0.11);
    box-shadow: inset 3px 0 0 var(--color-accent-soft);
}

.nav-item.is-disabled {
    cursor: default;
}

.nav-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.nav-icon path,
.nav-icon rect,
.nav-icon circle,
.address svg path,
.address svg circle,
.icon-box svg path,
.icon-box svg rect,
.status svg path,
.quick-action-icon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workspace {
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.mobile-header {
    display: none;
}

.main-content {
    width: 100%;
    max-width: var(--content-width);
    min-width: 0;
    margin: 0 auto;
    padding: 40px var(--page-gutter) 56px;
}

.main-content:focus {
    outline: none;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.address {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0 0;
    color: var(--color-text-muted);
    font-size: 15px;
}

.address svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--color-accent);
}

.user-summary {
    display: flex;
    min-width: 212px;
    align-items: center;
    gap: 11px;
    padding: 9px 13px 9px 9px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: 0 5px 18px rgb(23 50 77 / 0.05);
}

.avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--color-surface);
    background: var(--color-accent);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 750;
}

.user-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.3;
}

.user-copy strong {
    font-size: 14px;
}

.user-copy span {
    color: var(--color-text-muted);
    font-size: 12px;
}

.portal-messages {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
}

.portal-message {
    padding: 12px 14px;
    color: var(--color-primary-strong);
    background: var(--color-accent-soft);
    border: 1px solid #b8ddd9;
    border-radius: var(--radius-small);
    font-weight: 650;
}

.portal-message-success {
    color: var(--color-success);
    background: var(--color-success-soft);
    border-color: #b9dec9;
}

.owner-dashboard {
    max-width: 820px;
}

.property-card,
.empty-state {
    padding: clamp(22px, 4vw, 32px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.property-card-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.property-card-heading strong {
    color: var(--color-text);
    font-size: clamp(27px, 4vw, 36px);
    line-height: 1.15;
}

.property-type {
    color: var(--color-accent);
    font-size: 15px;
    font-weight: 750;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.property-details div {
    padding: 16px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-small);
}

.property-details dt {
    margin-bottom: 5px;
    font-size: 13px;
}

.property-details dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
}

.property-count-note {
    margin: 20px 0 0;
    font-size: 14px;
}

.property-switcher {
    margin: 12px 0 22px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}

.property-current-heading {
    margin-bottom: 14px;
}

.property-switcher-title {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 700;
}

.property-switcher-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.property-switcher-link {
    display: grid;
    min-width: 0;
    min-height: 72px;
    align-content: center;
    gap: 3px;
    padding: 12px 14px;
    color: var(--color-primary);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    font-size: 14px;
    text-decoration: none;
}

.property-switcher-link span,
.property-switcher-link strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.property-switcher-link span {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.property-switcher-link strong {
    font-size: 16px;
}

.property-switcher-link:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.property-switcher-link.is-current {
    color: var(--color-primary-strong);
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.empty-state {
    color: var(--color-text);
}

.page-intro {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--color-text-muted);
}

.owner-requests,
.owner-request-detail,
.owner-request-create {
    max-width: 980px;
}

.owner-page-actions,
.property-actions,
.owner-request-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.owner-primary-action,
.owner-secondary-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border-radius: var(--radius-small);
    font-weight: 750;
    text-decoration: none;
}

.owner-primary-action {
    color: var(--color-surface);
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.owner-primary-action:hover {
    background: var(--color-primary-strong);
}

.owner-secondary-action {
    color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
}

.property-actions {
    margin-top: 16px;
}

.owner-request-form-card {
    max-width: 720px;
    padding: clamp(22px, 4vw, 32px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.owner-request-scoped-property {
    display: grid;
    gap: 4px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-small);
}

.owner-request-scoped-property span {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.owner-request-form {
    display: grid;
    gap: 20px;
}

.owner-request-form-field {
    display: grid;
    gap: 7px;
}

.owner-request-form-field label {
    font-weight: 750;
}

.owner-request-form-field select,
.owner-request-form-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    font: inherit;
}

.owner-request-form-field select {
    min-height: 48px;
}

.owner-request-form-field textarea {
    min-height: 170px;
    resize: vertical;
}

.owner-request-form-field select:focus-visible,
.owner-request-form-field textarea:focus-visible {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: var(--focus-ring);
}

.owner-request-form-field.has-error {
    padding: 12px;
    background: #fff7f6;
    border-left: 5px solid #b42318;
    border-radius: var(--radius-small);
}

.owner-request-form-field.has-error select,
.owner-request-form-field.has-error textarea {
    border: 2px solid #b42318;
}

.owner-request-form-actions {
    margin-top: 2px;
}

.owner-request-form-actions button {
    cursor: pointer;
    font: inherit;
}

.owner-request-list {
    display: grid;
    gap: 16px;
}

.owner-request-card {
    min-width: 0;
    padding: clamp(20px, 3vw, 26px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.owner-request-card-heading,
.owner-history-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.owner-request-number {
    margin: 0 0 4px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.owner-request-card h3,
.owner-history-item h3,
.owner-request-body h3 {
    margin: 0;
}

.owner-request-card h3 {
    font-size: 20px;
}

.owner-notification-card h3 {
    overflow-wrap: anywhere;
}

.owner-notification-card.is-unread {
    border-color: #a9d7d3;
    box-shadow: inset 5px 0 0 var(--color-accent), var(--shadow-card);
}

.owner-notification-card.is-read {
    background: var(--color-surface-muted);
    box-shadow: none;
}

.owner-notification-unread-total {
    margin: 0 0 16px;
    color: var(--color-primary);
}

.owner-notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.owner-notification-meta .owner-request-number {
    margin: 0;
}

.owner-notification-state {
    display: inline-flex;
    min-height: 28px;
    flex: 0 0 auto;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.owner-notification-state.is-unread {
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border-color: #a9d7d3;
}

.owner-notification-state.is-read {
    color: var(--color-text-muted);
    background: var(--color-surface);
}

.owner-notification-body {
    margin: 14px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.owner-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.owner-notification-actions form {
    margin: 0;
}

.owner-notification-actions button {
    cursor: pointer;
}

.owner-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    color: var(--color-text-muted);
}

.owner-pagination a {
    color: var(--color-water);
    font-weight: 750;
}

.owner-status {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    padding: 5px 10px;
    color: var(--color-primary);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.owner-status-working,
.owner-status-waiting {
    color: var(--color-water);
    background: var(--color-water-soft);
    border-color: #b9d8ec;
}

.owner-status-accepted,
.owner-status-closed {
    color: var(--color-success);
    background: var(--color-success-soft);
    border-color: #b9dec9;
}

.owner-status-cancelled {
    color: #7b3940;
    background: #fff1f2;
    border-color: #efc3c7;
}

.owner-status-large {
    min-height: 38px;
    padding: 7px 13px;
    font-size: 14px;
}

.owner-request-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
}

.owner-request-facts-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-request-facts div {
    min-width: 0;
    padding: 13px 14px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-small);
}

.owner-request-facts dt {
    margin: 0 0 4px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.owner-request-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 680;
}

.owner-request-facts a,
.owner-back-link a,
.owner-request-open {
    color: var(--color-accent);
    font-weight: 720;
    text-underline-offset: 3px;
}

.owner-request-description {
    margin: 18px 0;
    color: var(--color-text-muted);
    overflow-wrap: anywhere;
}

.owner-request-open {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
}

.owner-request-detail {
    display: grid;
    gap: 18px;
}

.owner-request-detail-header {
    max-width: 980px;
}

.owner-back-link {
    margin: -8px 0 0;
}

.owner-request-body {
    margin-top: 24px;
}

.owner-request-body h3 {
    font-size: 15px;
}

.owner-request-body p,
.owner-history-item p,
.owner-response-note {
    overflow-wrap: anywhere;
    white-space: normal;
}

.owner-request-body p {
    margin: 8px 0 0;
}

.owner-request-reopen-action p {
    margin: 8px 0 18px;
    color: var(--color-text-muted);
}

.owner-response-note {
    margin: 20px 0 0;
    padding: 13px 14px;
    color: var(--color-primary-strong);
    background: var(--color-accent-soft);
    border: 1px solid #b8ddd9;
    border-radius: var(--radius-small);
}

.owner-history-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.owner-history-item {
    padding: 17px 0;
    border-bottom: 1px solid var(--color-border);
}

.owner-history-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.owner-history-item h3 {
    font-size: 16px;
}

.owner-history-item time {
    flex: 0 0 auto;
    color: var(--color-text-muted);
    font-size: 12px;
}

.owner-history-item p {
    margin: 8px 0 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.summary-card,
.panel {
    min-width: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.summary-card {
    display: flex;
    min-height: 224px;
    flex-direction: column;
    padding: 22px;
}

.summary-card-debt {
    border-color: #cce7da;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.card-heading h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 680;
}

.icon-box {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border-radius: 11px;
}

.icon-box svg {
    width: 21px;
    height: 21px;
}

.icon-box-success {
    color: var(--color-success);
    background: var(--color-success-soft);
}

.icon-box-water {
    color: var(--color-water);
    background: var(--color-water-soft);
}

.icon-box-message {
    color: var(--color-message);
    background: var(--color-message-soft);
}

.icon-box-payment {
    color: var(--color-payment);
    background: var(--color-payment-soft);
}

.metric {
    margin: auto 0 4px;
    font-size: 30px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.metric span {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 7px 0 0;
    font-size: 13px;
    font-weight: 650;
}

.status svg {
    width: 17px;
    height: 17px;
}

.status-success {
    color: var(--color-success);
}

.muted-copy {
    margin: 7px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.readings-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 20px 0 14px;
}

.readings-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    background: var(--color-surface-muted);
    border-radius: var(--radius-small);
}

.readings-list dt {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.readings-list dd {
    margin: 0;
    font-size: 17px;
    font-weight: 720;
}

.text-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: auto 0 0;
    padding: 5px 0 0;
    color: var(--color-accent);
    background: transparent;
    border: 0;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.text-action:disabled,
.quick-action:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
    gap: 18px;
    margin-top: 18px;
}

.panel {
    padding: 26px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.demo-label {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 9px;
    color: var(--color-text-muted);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.announcement-list {
    margin-top: 12px;
}

.announcement-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 20px;
    padding: 19px 0;
    border-bottom: 1px solid var(--color-border);
}

.announcement-item:last-child {
    padding-bottom: 2px;
    border-bottom: 0;
}

.announcement-item time {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 650;
}

.announcement-item h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
}

.announcement-item p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.quick-action-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 21px;
}

.quick-action {
    display: grid;
    width: 100%;
    min-height: 54px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    color: var(--color-text);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
}

.quick-action-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border-radius: 9px;
}

.quick-action-icon svg {
    width: 19px;
    height: 19px;
}

.quick-action-arrow {
    color: var(--color-text-muted);
    font-size: 17px;
}

.demo-note {
    margin: 14px 2px 0;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.mobile-menu summary svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (max-width: 1180px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-card {
        min-height: 205px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --page-gutter: clamp(18px, 5vw, 36px);
    }

    .sidebar {
        display: none;
    }

    .workspace {
        margin-left: 0;
    }

    .mobile-header {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 10px var(--page-gutter);
        color: var(--color-primary);
        background: rgb(255 255 255 / 0.96);
        border-bottom: 1px solid var(--color-border);
        backdrop-filter: blur(12px);
    }

    .brand-mobile .brand-mark {
        color: var(--color-surface);
        background: var(--color-primary);
    }

    .mobile-menu {
        position: relative;
    }

    .mobile-menu summary {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        gap: 7px;
        padding: 8px 12px;
        color: var(--color-primary);
        background: var(--color-surface-muted);
        border: 1px solid var(--color-border-strong);
        border-radius: 10px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 700;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu summary svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-panel {
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        display: grid;
        width: min(290px, calc(100vw - 36px));
        max-height: calc(100vh - 92px);
        padding: 8px;
        overflow-y: auto;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-menu);
    }

    .mobile-menu-panel a,
    .mobile-menu-panel span,
    .mobile-menu-panel button {
        display: flex;
        min-height: 45px;
        align-items: center;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-menu-panel a {
        color: var(--color-primary);
        background: var(--color-accent-soft);
    }

    .mobile-menu-panel span {
        color: var(--color-text-muted);
    }

    .mobile-menu-panel button {
        width: 100%;
        color: var(--color-primary);
        background: transparent;
        border: 0;
        cursor: pointer;
        text-align: left;
    }

    .main-content {
        padding-top: 32px;
    }
}

@media (max-width: 680px) {
    .main-content {
        padding-top: 26px;
        padding-bottom: 38px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
    }

    .user-summary {
        width: 100%;
        min-width: 0;
        border-radius: var(--radius-medium);
    }

    .owner-page-actions,
    .property-actions,
    .owner-request-form-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .owner-primary-action,
    .owner-secondary-action {
        width: 100%;
    }

    .property-details {
        grid-template-columns: 1fr;
    }

    .owner-request-card-heading,
    .owner-request-detail-header,
    .owner-history-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .owner-request-facts,
    .owner-request-facts-compact {
        grid-template-columns: 1fr;
    }

    .owner-pagination {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .owner-status {
        align-self: flex-start;
    }

    .property-switcher {
        margin: 12px 0 18px;
        padding: 14px;
    }

    .property-switcher-list {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary-card {
        min-height: 195px;
        padding: 20px;
    }

    .panel {
        padding: 21px;
    }

    .announcement-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 420px) {
    .brand-mobile .brand-text {
        font-size: 17px;
    }

    .mobile-menu summary span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .mobile-menu summary {
        width: 44px;
        justify-content: center;
        padding: 8px;
    }

    .section-heading {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.activation-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px 18px;
    background:
        radial-gradient(circle at top left, var(--color-accent-soft), transparent 42%),
        var(--color-background);
}

.activation-layout {
    width: min(100%, 560px);
}

.activation-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 20px;
    color: var(--color-primary);
    text-decoration: none;
}

.activation-brand .brand-mark {
    color: var(--color-surface);
    background: var(--color-primary);
}

.activation-card {
    padding: clamp(24px, 6vw, 42px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.activation-card h1 {
    font-size: clamp(27px, 6vw, 38px);
}

.activation-intro,
.activation-note {
    color: var(--color-text-muted);
}

.activation-intro {
    margin: 14px 0 26px;
}

.activation-note {
    margin: 22px 0 0;
    font-size: 13px;
}

.activation-form {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
}

.form-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    font-size: 18px;
}

.form-field input:focus-visible {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: var(--focus-ring);
}

.form-field.has-error {
    padding: 12px;
    background: #fff7f6;
    border-left: 5px solid #b42318;
    border-radius: var(--radius-small);
}

.form-field.has-error input {
    border: 2px solid #b42318;
}

.field-help,
.field-errors,
.form-alert {
    font-size: 15px;
}

.field-help {
    color: var(--color-text-muted);
}

.field-help ul,
.field-errors ul,
.form-alert ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.field-errors,
.form-alert {
    color: #8f1d16;
}

.field-errors {
    font-weight: 700;
}

.form-alert {
    padding: 12px 14px;
    background: #fff1f0;
    border: 1px solid #f2c2bf;
    border-radius: var(--radius-small);
}

.password-toggle-row {
    display: flex;
    margin-top: -2px;
}

.password-toggle {
    min-height: 36px;
    padding: 4px 0;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.password-toggle:hover {
    color: var(--color-primary-strong);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.activation-submit {
    min-height: 50px;
    padding: 11px 18px;
    color: var(--color-surface);
    background: var(--color-primary);
    border: 0;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 750;
}

.activation-submit:hover {
    background: var(--color-primary-strong);
}

.activation-submit:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.activation-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 600px) {
    /* Retain the former wordmark slot and login form position on narrow screens. */
    #login-heading .login-portal-name {
        display: inline-block;
        min-inline-size: 5.413em;
    }

    .form-field input {
        font-size: 16px;
    }

    .password-toggle {
        min-height: 44px;
    }
}

.activation-success {
    text-align: center;
}

/* Staff second factor reuses the public authentication shell, never Workspace pre-auth. */
.mfa-qr { display: block; max-width: 100%; height: auto; margin: 16px auto; }
.mfa-manual-key, .mfa-codes { overflow-wrap: anywhere; font-family: monospace; }
.mfa-codes { padding-left: 24px; line-height: 2; }
.mfa-continue { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 8px; text-align: center; text-decoration: none; }
.mfa-sensitive summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.mfa-sensitive summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.activation-success-mark {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--color-surface);
    background: var(--color-success);
    border-radius: 50%;
    font-size: 30px;
    font-weight: 800;
}
