html {
    scrollbar-gutter: stable;
}

body {
    background: #f6f6f6;
}

/* Keep application pages comfortably readable on extra-wide screens. */
@media (min-width: 1400px) {
    .app-shell {
        max-width: 1140px;
    }
}

/* Public feedback is intentionally compact, including its visible navbar. */
.feedback-page > .navbar,
.feedback-page .app-shell {
    max-width: 760px;
}

.feedback-page > .navbar {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.backnote-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0;
}

.backnote-brand-logo {
    display: block;
    width: auto;
    height: 2.4rem;
    max-width: min(12rem, 48vw);
    object-fit: contain;
}

.site-navigation-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.language-selector-trigger {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    padding: 0.5rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1f2725;
    transition: color 140ms ease, opacity 140ms ease;
}

.language-selector-trigger:hover {
    color: #007e83;
    opacity: 0.78;
}

.language-selector-trigger:focus-visible {
    outline: 2px solid #007e83;
    outline-offset: 2px;
}

.language-selector-icon {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.language-selector-menu {
    min-width: 7.75rem;
    margin-top: 0.35rem !important;
    padding: 0.3rem;
    border: 1px solid rgba(19, 24, 23, 0.14);
    border-radius: 0.45rem;
    box-shadow: 0 10px 28px rgba(20, 30, 27, 0.14);
}

.language-selector-option {
    padding: 0.48rem 0.62rem;
    border-radius: 0.25rem;
    color: #1f2725;
    font-size: 0.9rem;
}

.language-selector-option:hover,
.language-selector-option:focus,
.language-selector-option:active {
    background: #e7f4f3;
    color: #075f62;
}

.language-selector-option.active {
    background: transparent;
    color: #1f2725;
    font-weight: 700;
}

.language-selector-option.active:hover,
.language-selector-option.active:focus {
    background: #e7f4f3;
    color: #075f62;
}

.feedback-shell {
    max-width: 760px;
    margin: 0 auto;
}

.feedback-card {
    background: linear-gradient(160deg, #fff7ed 0%, #ffffff 70%);
    border: 1px solid #fed7aa;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 14px 38px rgba(120, 53, 15, 0.08);
}

.headline {
    margin-bottom: 1rem;
    text-align: center;
}

.headline h1 {
    margin-bottom: 0.25rem;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
}

.headline p {
    margin: 0;
    color: #57534e;
}

.feedback-logo {
    max-height: 72px;
}

.step-block {
    margin-bottom: 0.9rem;
    padding: 1rem;
    border: 1px solid #fde68a;
    border-radius: 14px;
    background: #fff;
}

.step-label {
    margin-bottom: 0.35rem;
    color: #a16207;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.step-title {
    margin: 0 0 0.75rem;
    color: #292524;
    font-size: 1.05rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.5rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #fafaf9;
    color: #44403c;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.category-btn:hover {
    transform: translateY(-1px);
    border-color: #f59e0b;
}

.category-btn.is-selected {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
    background: #fffbeb;
    color: #9a3412;
}

.category-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.product-icon-fallback {
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.category-icon.product-icon-fallback {
    color: #9a3412;
    font-size: 1.45rem;
    font-weight: 900;
}

.catalog-picker-menu {
    min-width: 16rem;
}

.catalog-option,
.catalog-picker-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.catalog-thumb {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 0.2rem;
}

.dashboard-filter-card {
    border: 1px solid #e7e5e4;
    background: #fff;
    color: inherit;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.dashboard-filter-card:hover,
.dashboard-filter-card:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    transform: translateY(-1px);
}

.dashboard-filter-card.is-selected {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18), 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
    background: #f0fdfa;
}

.admin-period-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-period-metrics > div + div {
    border-left: 1px solid #e7e5e4;
    padding-left: 0.85rem;
}

.admin-icon-feedback-list {
    max-height: 19rem;
    overflow-y: auto;
    padding-right: 0.3rem;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.admin-icon-feedback-row {
    padding: 0.7rem 0;
}

.admin-icon-feedback-row + .admin-icon-feedback-row {
    border-top: 1px solid #e7e5e4;
}

.admin-icon-feedback-row .catalog-picker-label {
    min-width: 0;
}

.admin-icon-feedback-count {
    flex: 0 0 auto;
    min-width: 2.25rem;
    border-radius: 999px;
    background: #f0fdfa;
    color: #115e59;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    text-align: center;
}

.admin-icon-feedback-track {
    display: block;
    height: 0.25rem;
    margin: 0.55rem 0 0 2.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e5e4;
}

.admin-icon-feedback-track span {
    display: block;
    height: 100%;
    min-width: 0.25rem;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.admin-monitor-table {
    min-width: 1160px;
}

.admin-monitor-owner-col {
    min-width: 210px;
    width: 210px;
}

.admin-monitor-owner-col {
    min-width: 165px;
    width: 165px;
    max-width: 185px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-monitor-actions-col {
    min-width: 195px;
    width: 195px;
}

.admin-mobile-monitor-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.admin-mobile-monitor-details div {
    min-width: 0;
}

.admin-mobile-monitor-details dt {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-mobile-monitor-details dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
}

.admin-mobile-monitor-details small {
    display: block;
    color: var(--bs-secondary-color);
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.rating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 3.9rem;
    padding: 0.5rem 0.25rem;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    background: #fafaf9;
    color: #44403c;
    text-align: center;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.rating-btn:hover {
    transform: translateY(-1px);
    border-color: #f59e0b;
}

.rating-btn .emoji {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
}

.rating-btn .rating-label {
    display: block;
    font-size: 0.74rem;
    line-height: 1.15;
}

.rating-btn .rating-score {
    display: block;
    color: #78716c;
    font-size: 0.68rem;
    line-height: 1;
}

.rating-btn.is-selected {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
    background: #fffbeb;
    color: #9a3412;
}

.comment-input {
    border-color: #d6d3d1;
    border-radius: 10px;
}

.feedback-optional-fields {
    display: grid;
    gap: 0.85rem;
}

.feedback-field-label {
    display: block;
    margin-bottom: 0.32rem;
    color: #44403c;
    font-size: 0.78rem;
    font-weight: 700;
}

.contact-email-input {
    border-color: #d6d3d1;
    border-radius: 10px;
}

.feedback-contact-help {
    margin-top: 0.38rem;
    color: #78716c;
    font-size: 0.74rem;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 600;
    transition: filter 0.12s ease;
}

.submit-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35) brightness(0.92);
}

.submit-btn:not(:disabled):hover {
    filter: brightness(1.05);
}

.is-cooldown-blocked .category-btn,
.is-cooldown-blocked .rating-btn,
.is-cooldown-blocked .comment-input,
.is-cooldown-blocked .contact-email-input {
    opacity: 0.62;
}

.feedback-cooldown-modal {
    border: 1px solid #fed7aa;
    border-radius: 12px;
}

.owner-dashboard {
    --owner-ink: #17211d;
    --owner-muted: #5f6863;
    --owner-line: #e5ded2;
    --owner-paper: #fffdf8;
    --owner-warm: #f7efe4;
    --owner-amber: #b7791f;
    --owner-teal: #0f766e;
    --owner-green: #2f7d4f;
    --owner-red: #b42318;
    --owner-neutral: #64748b;
    color: var(--owner-ink);
}

.owner-nav-card {
    border-color: #e5ded2;
    border-radius: 8px;
}

.owner-nav-body {
    padding: 0.85rem 1rem;
}

.owner-nav-links .btn {
    font-weight: 700;
}

.owner-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.owner-dashboard-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3.4rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.owner-dashboard-subtitle {
    margin: 0.55rem 0 0;
    color: var(--owner-muted);
    font-size: 1.03rem;
    font-weight: 650;
}

.owner-dashboard-actions {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
}

.owner-feedback-page-link {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 0.65rem;
    min-width: 14.5rem;
    padding: 0.48rem 0.65rem;
    border: 1px solid #c9ddd7;
    border-radius: 8px;
    color: var(--owner-ink);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(255, 253, 248, 0.92)),
        var(--owner-paper);
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.08);
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.owner-feedback-page-link:hover {
    border-color: rgba(15, 118, 110, 0.55);
    color: var(--owner-ink);
    box-shadow: 0 11px 28px rgba(15, 118, 110, 0.14);
    transform: translateY(-1px);
}

.owner-feedback-page-link:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.22);
    outline-offset: 3px;
}

.owner-feedback-page-link-icon {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border-radius: 50%;
    color: #fffdf8;
    background: var(--owner-teal);
}

.owner-feedback-page-link-icon svg {
    width: 1.16rem;
    height: 1.16rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.owner-feedback-page-link-copy {
    display: grid;
    gap: 0.04rem;
    line-height: 1.15;
}

.owner-feedback-page-link-copy small {
    color: var(--owner-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-feedback-page-link-copy strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.owner-feedback-page-link-arrow {
    color: var(--owner-teal);
    font-size: 1.15rem;
    transition: transform 150ms ease;
}

.owner-feedback-page-link:hover .owner-feedback-page-link-arrow {
    transform: translateX(2px);
}

.owner-quiet-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: var(--owner-line);
    color: var(--owner-ink);
    font-weight: 700;
}

.owner-service-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(140px, 0.45fr) minmax(230px, 0.65fr);
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.15rem;
    border: 1px solid #dccdbb;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(183, 121, 31, 0.1)),
        var(--owner-paper);
    box-shadow: 0 18px 48px rgba(31, 41, 51, 0.08);
}

.owner-service-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.owner-service-copy h2 {
    margin: 0.6rem 0 0;
    font-size: 2.1rem;
    line-height: 1.02;
}

.owner-service-copy p {
    max-width: 620px;
    margin: 0.7rem 0 0;
    color: var(--owner-muted);
    font-size: 1.03rem;
    line-height: 1.55;
}

.owner-status-pill,
.owner-rating-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.owner-status-pill-positive,
.owner-rating-badge-positive {
    background: #e7f5ed;
    color: var(--owner-green);
}

.owner-status-pill-negative,
.owner-rating-badge-negative {
    background: #fdecea;
    color: var(--owner-red);
}

.owner-status-pill-mixed {
    background: #fff4d6;
    color: #8a5a21;
}

.owner-status-pill-empty {
    background: #eef2f7;
    color: var(--owner-neutral);
}

.owner-service-number,
.owner-service-score,
.owner-panel {
    min-width: 0;
    border: 1px solid var(--owner-line);
    border-radius: 8px;
    background: #fff;
}

.owner-service-number {
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
}

.owner-service-number span {
    font-size: 5.6rem;
    font-weight: 900;
    line-height: 0.85;
}

.owner-service-number small,
.owner-service-score small {
    color: var(--owner-muted);
    font-weight: 700;
}

.owner-service-score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
}

.owner-service-score strong {
    font-size: 1.25rem;
}

.owner-action-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #efd5b8;
    border-radius: 8px;
    background: #fff9ef;
}

.owner-action-negative {
    border-color: #f2c7c2;
    background: #fff7f5;
}

.owner-action-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--owner-line);
}

.owner-action-icon img {
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
}

.owner-action-icon span {
    color: var(--owner-red);
    font-size: 1.7rem;
    font-weight: 900;
}

.owner-action-panel h2 {
    margin: 0;
    font-size: 1.3rem;
}

.owner-action-panel p {
    margin: 0.35rem 0 0;
    color: var(--owner-ink);
}

.owner-action-panel small {
    display: block;
    margin-top: 0.35rem;
    color: var(--owner-muted);
    font-weight: 700;
}

.owner-slack-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1rem;
    background:
        linear-gradient(135deg, rgba(74, 21, 75, 0.06), rgba(18, 100, 163, 0.08)),
        #fff;
}

.owner-slack-copy {
    min-width: 0;
}

.owner-slack-copy h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.owner-slack-copy p {
    margin: 0.55rem 0 0;
    color: var(--owner-muted);
    line-height: 1.5;
}

.owner-slack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.9rem;
}

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

.owner-slack-setup {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 0.9rem;
    min-width: 0;
}

.owner-slack-qr {
    display: grid;
    grid-template-rows: 128px auto;
    gap: 0.45rem;
    justify-items: center;
    min-width: 0;
}

.owner-slack-qr img {
    width: 128px;
    height: 128px;
    padding: 0.35rem;
    border: 1px solid #d8cde0;
    border-radius: 8px;
    background: #fff;
}

.owner-slack-qr span {
    color: var(--owner-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.owner-slack-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.owner-slack-steps li {
    min-width: 0;
    color: var(--owner-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.owner-slack-screen {
    display: grid;
    min-height: 5.4rem;
    margin-bottom: 0.45rem;
    padding: 0.65rem;
    border: 1px solid #d8cde0;
    border-radius: 8px;
    background: #2f1732;
    color: #fff;
    box-shadow: inset 0 -22px 0 rgba(255, 255, 255, 0.08);
}

.owner-slack-screen strong {
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: #36c5f0;
    color: #111827;
    font-size: 0.82rem;
}

.owner-slack-screen span {
    align-self: end;
    font-weight: 850;
}

.owner-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.owner-panel {
    height: 100%;
    padding: 1rem;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.05);
}

.owner-panel-muted {
    background: var(--owner-paper);
}

.owner-panel-kicker {
    margin-bottom: 0.35rem;
    color: #8a5a21;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.owner-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.owner-section-heading h2,
.owner-cost-panel h2 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.25;
}

.owner-heading-with-help,
.owner-kicker-with-help {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.owner-service-copy .owner-heading-with-help {
    align-items: flex-end;
    margin-top: 0.6rem;
}

.owner-service-copy .owner-heading-with-help h2 {
    margin: 0;
}

.owner-kicker-with-help .owner-panel-kicker {
    margin-bottom: 0;
}

.owner-help-trigger {
    display: inline-grid;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    padding: 0;
    border: 1px solid #cfc7bb;
    border-radius: 50%;
    background: #fff;
    color: var(--owner-muted);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    cursor: help;
    transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.owner-help-trigger:hover,
.owner-help-trigger:focus-visible {
    border-color: var(--owner-teal);
    background: #eff8f6;
    color: var(--owner-teal);
    outline: 0;
}

.owner-help-trigger:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.owner-feedback-metric {
    width: 100%;
}

.owner-trend-chart {
    position: relative;
    width: 100%;
    min-height: 178px;
    margin: 0.1rem 0 0.4rem;
}

.owner-trend-loading {
    display: grid;
    min-height: 178px;
    place-items: center;
    color: var(--owner-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.owner-trend-svg {
    display: block;
    width: 100%;
    height: 178px;
    overflow: visible;
}

.owner-trend-axis-line {
    stroke: rgba(138, 90, 33, 0.16);
    stroke-width: 1;
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
}

.owner-trend-baseline {
    stroke: rgba(138, 90, 33, 0.2);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.owner-trend-line {
    fill: none;
    stroke: var(--owner-teal);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.owner-trend-point {
    stroke: #fff;
    stroke-width: 3;
    box-shadow: 0 0 0 1px rgba(31, 41, 51, 0.08), 0 5px 12px rgba(31, 41, 51, 0.12);
    cursor: help;
    outline: none;
}

.owner-trend-point:focus-visible {
    stroke: #2e62e7;
    stroke-width: 4;
}

.owner-trend-point-positive {
    fill: var(--owner-green);
}

.owner-trend-point-negative {
    fill: var(--owner-red);
}

.owner-trend-point-mixed {
    fill: var(--owner-amber);
}

.owner-trend-point-empty {
    fill: var(--owner-neutral);
}

.owner-trend-axis-label {
    fill: var(--owner-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.owner-trend-count-label {
    fill: var(--owner-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.owner-trend-tooltip {
    position: absolute;
    z-index: 5;
    display: grid;
    width: max-content;
    max-width: 14rem;
    min-width: 11.5rem;
    gap: 0.18rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #18201e;
    color: #fff;
    font-size: 0.76rem;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.22);
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 0.8rem));
}

.owner-trend-tooltip[data-align="start"] {
    transform: translate(0, calc(-100% - 0.8rem));
}

.owner-trend-tooltip[data-align="end"] {
    transform: translate(-100%, calc(-100% - 0.8rem));
}

.owner-trend-tooltip strong,
.owner-trend-tooltip span,
.owner-trend-tooltip small {
    display: block;
}

.owner-trend-tooltip small {
    color: #cfd8d4;
    font-weight: 700;
}

.owner-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    color: var(--owner-amber);
    font-size: 1.8rem;
    line-height: 1;
    white-space: nowrap;
}

.owner-stars-compact {
    gap: 0.06rem;
    font-size: 0.95rem;
}

.owner-star-empty {
    color: #d7cec4;
}

.owner-panel-note {
    margin: 0;
    color: var(--owner-muted);
    font-size: 0.9rem;
}

.owner-rank-number {
    margin: 0.1rem 0 0.15rem;
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1;
}

.owner-compare-row,
.owner-cost-list div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--owner-line);
}

.owner-compare-row:first-of-type {
    margin-top: 0.8rem;
}

.owner-compare-row span,
.owner-cost-list dt {
    color: var(--owner-muted);
    font-weight: 650;
}

.owner-compare-row strong,
.owner-cost-list dd {
    margin: 0;
    font-weight: 850;
}

.owner-score-mix {
    display: grid;
    gap: 0.7rem;
}

.owner-score-mix-row {
    display: grid;
    grid-template-columns: minmax(96px, 0.9fr) minmax(110px, 1.4fr) 56px;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.4rem;
}

.owner-score-mix-label {
    min-width: 0;
}

.owner-score-mix-label strong,
.owner-score-mix-label span {
    display: block;
}

.owner-score-mix-label span {
    color: var(--owner-muted);
    font-size: 0.86rem;
}

.owner-score-bar {
    height: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: #f1ece5;
}

.owner-score-bar span {
    display: block;
    min-width: 0.35rem;
    height: 100%;
    border-radius: inherit;
    background: var(--owner-neutral);
}

.owner-score-mix-row-positive .owner-score-bar span {
    background: var(--owner-green);
}

.owner-score-mix-row-negative .owner-score-bar span {
    background: var(--owner-red);
}

.owner-delta,
.owner-category-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    border: 0;
    background: #f1f5f9;
    color: var(--owner-neutral);
    font: inherit;
    font-weight: 850;
    cursor: help;
}

.owner-delta:focus-visible,
.owner-category-delta:focus-visible {
    outline: 2px solid var(--owner-teal);
    outline-offset: 2px;
}

.owner-delta-good {
    background: #e7f5ed;
    color: var(--owner-green);
}

.owner-delta-bad {
    background: #fdecea;
    color: var(--owner-red);
}

.owner-category-list {
    display: grid;
    gap: 0.45rem;
}

.owner-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fbfaf7;
}

.owner-category-row-negative {
    border-color: #f2c7c2;
    background: #fff7f5;
}

.owner-category-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
}

.owner-product-icon,
.owner-feedback-icon {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    border: 1px solid var(--owner-line);
    border-radius: 8px;
    background: #fff;
    padding: 0.25rem;
}

.owner-product-icon-fallback {
    display: grid;
    place-items: center;
    color: var(--owner-teal);
    font-weight: 900;
}

.owner-product-icon.product-icon-fallback,
.owner-feedback-icon.product-icon-fallback {
    color: var(--owner-teal);
    font-weight: 900;
}

.owner-products-heading,
.owner-icon-picker-card {
    --owner-ink: #17211d;
    --owner-muted: #5f6863;
    --owner-line: #e5ded2;
    --owner-teal: #0f766e;
}

.owner-products-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.owner-products-eyebrow {
    margin-bottom: 0.35rem;
    color: var(--owner-teal);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.owner-products-limit {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--owner-line);
    border-radius: 10px;
    background: #fbfaf7;
    color: var(--owner-muted);
    font-size: 0.78rem;
    line-height: 1.05;
}

.owner-products-limit strong {
    color: var(--owner-teal);
    font-size: 1.65rem;
    line-height: 1;
}

.owner-products-limit span {
    max-width: 4.6rem;
}

.owner-icon-picker-card {
    overflow: hidden;
    border-color: var(--owner-line);
}

.owner-icon-picker-intro,
.owner-icon-picker-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
}

.owner-icon-picker-intro {
    border-bottom: 1px solid var(--owner-line);
    background: #fbfaf7;
}

.owner-icon-selection-status {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: #e7f2f1;
    color: var(--owner-teal);
    font-size: 0.78rem;
    font-weight: 800;
}

.owner-icon-slots {
    display: grid;
    gap: 0.65rem;
    padding: 1.15rem 1.4rem;
}

.owner-icon-slot {
    display: grid;
    grid-template-columns: 2rem 3rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem;
    border: 1px solid #e8e3dc;
    border-radius: 10px;
    background: #fff;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.owner-icon-slot.is-selected {
    border-color: #afd2cf;
    background: #f7fbfa;
}

.owner-icon-slot-number {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: #f1ece5;
    color: var(--owner-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.owner-icon-slot.is-selected .owner-icon-slot-number {
    background: var(--owner-teal);
    color: #fff;
}

.owner-icon-slot-preview {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
}

.owner-icon-slot-preview[hidden] {
    display: grid !important;
    visibility: hidden;
}

.owner-icon-slot-preview .owner-product-icon {
    width: 2.75rem;
    height: 2.75rem;
}

.owner-icon-slot-control {
    min-width: 0;
}

.owner-icon-slot-control .form-label {
    margin-bottom: 0.3rem;
    color: var(--owner-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.owner-icon-select {
    min-height: 2.75rem;
    border-color: #d9d4cc;
    font-weight: 750;
}

.owner-icon-select:focus {
    border-color: var(--owner-teal);
    box-shadow: 0 0 0 0.2rem rgba(20, 110, 105, 0.14);
}

.owner-icon-slot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: var(--owner-muted);
    font-size: 0.78rem;
}

.owner-icon-slot-meta[hidden] {
    display: none;
}

.owner-icon-slot-meta span:first-child,
.owner-icon-slot-meta strong {
    color: var(--owner-ink);
    font-weight: 850;
}

.owner-icon-slot-locked {
    border-style: dashed;
    border-color: #d7cfc5;
    background: repeating-linear-gradient(-45deg, #fbfaf7, #fbfaf7 8px, #f7f4ef 8px, #f7f4ef 16px);
}

.owner-icon-slot-locked .owner-icon-slot-number {
    background: #e9e4dc;
    color: var(--owner-teal);
    font-size: 1.1rem;
}

.owner-icon-slot-locked .owner-icon-select {
    color: var(--owner-ink);
    opacity: 1;
}

.owner-icon-lock-badge {
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #e9e4dc;
    color: var(--owner-muted);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.owner-icon-picker-actions {
    border-top: 1px solid var(--owner-line);
    background: #fbfaf7;
}

.owner-icon-history-note {
    display: flex;
    max-width: 38rem;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--owner-muted);
    font-size: 0.82rem;
}

.owner-icon-history-note span {
    color: var(--owner-teal);
    font-size: 1rem;
    font-weight: 900;
}

.owner-category-name {
    font-weight: 850;
}

.owner-category-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.owner-category-count strong {
    font-size: 1.25rem;
}

.owner-category-count span {
    color: var(--owner-muted);
    font-size: 0.75rem;
}

.owner-feedback-panel {
    --owner-feedback-row-height: 4.6rem;
    --owner-feedback-header-height: 2.65rem;
}

.owner-feedback-toolbar {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) auto;
    align-items: end;
    gap: 0.7rem 1rem;
    margin-bottom: 0.85rem;
}

.owner-feedback-search label {
    display: block;
    margin-bottom: 0.32rem;
    color: var(--owner-muted);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.owner-feedback-search-control {
    position: relative;
}

.owner-feedback-search-control > span {
    position: absolute;
    top: 50%;
    left: 0.72rem;
    z-index: 1;
    color: var(--owner-teal);
    font-size: 1.1rem;
    font-weight: 900;
    pointer-events: none;
    transform: translateY(-54%);
}

.owner-feedback-search-control .form-control {
    min-height: 2.6rem;
    padding-left: 2.25rem;
    border-color: #d9d2c8;
    border-radius: 999px;
    background: #fffdf9;
    color: var(--owner-ink);
    font-size: 0.9rem;
}

.owner-feedback-search-control .form-control:focus {
    border-color: var(--owner-teal);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.13);
}

.owner-feedback-filter-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.owner-feedback-filter {
    min-height: 2.35rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid #d9d2c8;
    border-radius: 999px;
    background: #fff;
    color: var(--owner-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.owner-feedback-filter:hover,
.owner-feedback-filter:focus-visible {
    border-color: #87b7b2;
    color: var(--owner-teal);
}

.owner-feedback-filter:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.owner-feedback-filter.is-active {
    border-color: var(--owner-teal);
    background: var(--owner-teal);
    color: #fff;
}

.owner-feedback-result-status {
    grid-column: 1 / -1;
    color: var(--owner-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.owner-feedback-table-scroll {
    overflow: auto;
    max-height: calc(var(--owner-feedback-header-height) + (7 * var(--owner-feedback-row-height)) + 2px);
    border: 1px solid var(--owner-line);
    border-radius: 10px;
    background: #fff;
    scrollbar-color: #a7b9b5 #f3efe8;
    scrollbar-width: thin;
}

.owner-feedback-table-scroll:focus-visible {
    border-color: var(--owner-teal);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.13);
}

.owner-feedback-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.owner-feedback-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: var(--owner-feedback-header-height);
    padding: 0.65rem 0.72rem;
    border-bottom: 1px solid #d9d2c8;
    background: #f7f2ea;
    color: #6d6358;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-align: left;
    text-transform: uppercase;
}

.owner-feedback-table th:nth-child(1) {
    width: 23%;
}

.owner-feedback-table th:nth-child(2) {
    width: 17%;
}

.owner-feedback-table th:nth-child(3) {
    width: 43%;
}

.owner-feedback-table th:nth-child(4) {
    width: 17%;
    text-align: right;
}

.owner-feedback-row {
    height: var(--owner-feedback-row-height);
}

.owner-feedback-row[hidden] {
    display: none;
}

.owner-feedback-row td {
    height: var(--owner-feedback-row-height);
    padding: 0.62rem 0.72rem;
    border-bottom: 1px solid #eee9e1;
    background: #fff;
    color: #2d3531;
    vertical-align: middle;
}

.owner-feedback-row:last-child td {
    border-bottom: 0;
}

.owner-feedback-row-negative td:first-child {
    box-shadow: inset 3px 0 0 #d35b51;
}

.owner-feedback-row-negative td {
    background: #fffafa;
}

.owner-feedback-aspect {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
}

.owner-feedback-aspect strong {
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-feedback-icon {
    width: 2rem;
    height: 2rem;
}

.owner-feedback-comment {
    display: -webkit-box;
    overflow: hidden;
    color: #2d3531;
    font-size: 0.86rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.owner-feedback-comment-empty {
    color: #8a8f8c;
    font-style: italic;
}

.owner-feedback-contact {
    display: block;
    overflow: hidden;
    margin-top: 0.28rem;
    color: var(--owner-teal);
    font-size: 0.76rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-feedback-contact span {
    color: var(--owner-muted);
    font-weight: 650;
}

.owner-feedback-time {
    display: block;
    color: var(--owner-muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-align: right;
    white-space: nowrap;
}

.owner-feedback-no-match {
    margin-top: 0.75rem;
}

.owner-cost-list {
    margin: 0.75rem 0 0;
}

.owner-empty-state {
    padding: 1rem;
    border: 1px dashed #d7cec4;
    border-radius: 8px;
    background: var(--owner-paper);
    color: var(--owner-muted);
}

.owner-live-alert {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    display: grid;
    max-width: min(22rem, calc(100vw - 2rem));
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid #f2c7c2;
    border-radius: 8px;
    background: #fff7f5;
    color: #17211d;
    box-shadow: 0 16px 36px rgba(31, 41, 51, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.6rem);
    transition: opacity 160ms ease, transform 160ms ease;
}

.owner-live-alert.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.owner-live-alert strong {
    color: #b42318;
    font-size: 0.92rem;
}

.owner-live-alert span {
    color: #5f6863;
    font-size: 0.84rem;
    font-weight: 650;
}

@media (max-width: 991.98px) {
    .owner-service-hero,
    .owner-slack-panel,
    .owner-top-grid {
        grid-template-columns: 1fr;
    }

    .owner-slack-setup {
        grid-template-columns: 128px minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .owner-nav-card {
        margin-bottom: 1rem !important;
    }

    .owner-nav-body {
        display: grid !important;
        gap: 0.7rem !important;
        padding: 0.75rem;
    }

    .owner-nav-identity {
        line-height: 1.15;
    }

    .owner-nav-links {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        flex-wrap: initial !important;
        gap: 0.4rem !important;
    }

    .owner-nav-links .btn {
        width: 100%;
        min-height: 2rem;
        padding: 0.28rem 0.55rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .owner-nav-logout {
        display: contents !important;
    }

    .owner-dashboard-header {
        flex-direction: column;
    }

    .owner-dashboard-header {
        gap: 0.7rem;
        margin-bottom: 0.8rem;
    }

    .owner-dashboard-header h1 {
        font-size: 2rem;
        line-height: 1;
    }

    .owner-dashboard-subtitle {
        margin-top: 0.4rem;
        font-size: 0.92rem;
    }

    .owner-dashboard-actions {
        display: grid;
        width: 100%;
    }

    .owner-feedback-page-link {
        width: 100%;
        min-width: 0;
    }

    .owner-dashboard-header .btn {
        width: 100%;
    }

    .owner-service-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0.65rem;
        margin-bottom: 0.75rem;
        padding: 0.85rem;
    }

    .owner-service-copy {
        grid-column: 1 / -1;
    }

    .owner-service-copy h2 {
        margin-top: 0.45rem;
        font-size: 1.35rem;
    }

    .owner-service-copy p {
        margin-top: 0.45rem;
        font-size: 0.92rem;
        line-height: 1.42;
    }

    .owner-action-panel,
    .owner-score-mix-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .owner-action-panel {
        gap: 0.65rem;
        margin-bottom: 0.75rem;
        padding: 0.8rem;
    }

    .owner-action-icon {
        width: 2.7rem;
        height: 2.7rem;
    }

    .owner-action-icon img {
        width: 1.9rem;
        height: 1.9rem;
    }

    .owner-action-panel h2 {
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .owner-action-panel p,
    .owner-action-panel small {
        font-size: 0.88rem;
    }

    .owner-slack-panel {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        padding: 0.8rem;
    }

    .owner-slack-copy h2 {
        font-size: 1.15rem;
    }

    .owner-slack-copy p,
    .owner-slack-steps li {
        font-size: 0.86rem;
    }

    .owner-slack-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .owner-slack-actions .btn,
    .owner-slack-actions form,
    .owner-slack-actions button {
        width: 100%;
    }

    .owner-slack-setup,
    .owner-slack-steps {
        grid-template-columns: 1fr;
    }

    .owner-slack-qr {
        justify-items: start;
    }

    .owner-slack-screen {
        min-height: 4.4rem;
    }

    .owner-service-number {
        place-items: start;
        min-height: 7.7rem;
        padding: 0.85rem;
        text-align: left;
    }

    .owner-service-number span {
        font-size: 3.6rem;
    }

    .owner-service-score {
        min-height: 7.7rem;
        gap: 0.25rem;
        padding: 0.85rem;
    }

    .owner-service-score strong {
        font-size: 1rem;
    }

    .owner-service-score small,
    .owner-service-number small {
        font-size: 0.76rem;
    }

    .owner-stars {
        font-size: 1.35rem;
    }

    .owner-top-grid {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .owner-panel {
        padding: 0.85rem;
    }

    .owner-section-heading {
        margin-bottom: 0.75rem;
    }

    .owner-section-heading h2,
    .owner-cost-panel h2 {
        font-size: 1.02rem;
    }

    .owner-trend-chart,
    .owner-trend-loading {
        min-height: 142px;
    }

    .owner-trend-svg {
        height: 142px;
    }

    .owner-category-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.55rem;
        padding: 0.7rem;
    }

    .owner-category-main {
        gap: 0.6rem;
    }

    .owner-category-delta {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .owner-product-icon {
        width: 2.25rem;
        height: 2.25rem;
    }

    .owner-products-heading,
    .owner-icon-picker-intro,
    .owner-icon-picker-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .owner-products-limit {
        align-self: flex-start;
    }

    .owner-icon-picker-intro,
    .owner-icon-picker-actions,
    .owner-icon-slots {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

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

    .owner-icon-slot {
        grid-template-columns: 1.8rem 2.5rem minmax(0, 1fr);
        gap: 0.55rem;
        padding: 0.7rem;
    }

    .owner-icon-slot-number {
        width: 1.8rem;
        height: 1.8rem;
    }

    .owner-icon-slot-preview,
    .owner-icon-slot-preview .owner-product-icon {
        width: 2.35rem;
        height: 2.35rem;
    }

    .owner-icon-picker-actions .btn {
        width: 100%;
    }

    .owner-score-mix-row {
        gap: 0.45rem;
        min-height: 0;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid var(--owner-line);
    }

    .owner-score-mix-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .owner-delta,
    .owner-category-delta {
        justify-content: flex-start;
        width: fit-content;
    }

    .owner-category-count,
    .owner-feedback-time {
        align-items: flex-start;
        text-align: left;
    }

    .owner-heading-with-help {
        align-items: flex-start;
    }

    .owner-feedback-panel {
        --owner-feedback-row-height: 7.15rem;
        --owner-feedback-header-height: 0rem;
    }

    .owner-feedback-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.65rem;
    }

    .owner-feedback-filter-group {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .owner-feedback-filter {
        padding-right: 0.45rem;
        padding-left: 0.45rem;
        font-size: 0.71rem;
    }

    .owner-feedback-result-status {
        grid-column: auto;
    }

    .owner-feedback-table-scroll {
        max-height: calc(7 * var(--owner-feedback-row-height));
    }

    .owner-feedback-table,
    .owner-feedback-table tbody {
        display: block;
        width: 100%;
    }

    .owner-feedback-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .owner-feedback-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: var(--owner-feedback-row-height);
        padding: 0.75rem;
        border-bottom: 1px solid #e9e3da;
        background: #fff;
    }

    .owner-feedback-row-negative {
        background: #fffafa;
        box-shadow: inset 3px 0 0 #d35b51;
    }

    .owner-feedback-row td {
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .owner-feedback-row-negative td:first-child,
    .owner-feedback-row-negative td {
        background: transparent;
        box-shadow: none;
    }

    .owner-feedback-row td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        padding-right: 0.5rem;
    }

    .owner-feedback-row td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .owner-feedback-row td:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        padding-top: 0.55rem;
        padding-right: 0.75rem;
    }

    .owner-feedback-row td:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        align-self: end;
        padding-top: 0.55rem;
    }

    .owner-feedback-aspect strong {
        font-size: 0.82rem;
    }

    .owner-feedback-comment {
        font-size: 0.8rem;
    }

    .owner-feedback-time {
        font-size: 0.72rem;
        text-align: right;
    }

    .owner-live-alert {
        right: 0.75rem;
        bottom: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }
}

.landing-page {
    --ink: #171717;
    --muted: #59605f;
    --line: #d9dfdc;
    --paper: #ffffff;
    --teal: #006d77;
    --coral: #c43f4d;
    --green: #2f7d4f;
    --yellow: #c28b19;
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.landing-page a {
    color: var(--teal);
}

.landing-hero {
    position: relative;
    display: grid;
    align-items: center;
    gap: 2rem;
    min-height: 42vh;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
}

.landing-eyebrow {
    margin-bottom: 1rem;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-language-control {
    position: absolute;
    top: 0.3rem;
    right: 0;
    z-index: 3;
}

.landing-language-control .language-selector-trigger {
    color: var(--ink);
}

.landing-language-control .language-selector-trigger:hover {
    color: var(--teal);
}

.landing-brand-link {
    display: inline-flex;
    margin: 0 0 0.85rem;
    border-radius: 10px;
    text-decoration: none;
}

.landing-brand-link:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 5px;
}

.landing-brand-logo {
    display: block;
    width: min(19rem, 82vw);
    height: auto;
    margin: 0;
}

.landing-hero h1 {
    max-width: 780px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.landing-lead {
    max-width: 650px;
    margin: 0.95rem 0 0;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.landing-button,
.landing-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.landing-button {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #ffffff !important;
}

.landing-link-button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink) !important;
}

.landing-showcase {
    width: 100%;
    max-width: 440px;
    margin: 0;
}

.landing-showcase-caption {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.landing-icon-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-icon {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto;
    place-items: center;
    min-height: 154px;
    padding: 1.2rem 0.8rem 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(23, 23, 23, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.landing-icon::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--coral);
    content: "";
}

.landing-icon:nth-child(2)::before {
    background: var(--yellow);
}

.landing-icon:nth-child(3)::before {
    background: var(--green);
}

.landing-icon:nth-child(4)::before {
    background: var(--coral);
}

.landing-icon:nth-child(5)::before {
    background: var(--teal);
}

.landing-icon:nth-child(6)::before {
    background: var(--yellow);
}

.landing-card-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 0.65rem;
    object-fit: contain;
}

.landing-card-type {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.landing-card-aspect {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.25;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
    .landing-icon:hover {
        transform: translateY(-3px);
        border-color: #c6cfcb;
        box-shadow: 0 14px 30px rgba(23, 23, 23, 0.08);
    }
}

.landing-section {
    padding: 3.3rem 0;
    border-bottom: 1px solid var(--line);
}

.landing-section:last-child {
    border-bottom: 0;
}

.section-kicker {
    margin: 0 0 0.55rem;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-title {
    max-width: 720px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-copy {
    max-width: 720px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.concept-grid,
.benefits-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.concept-item,
.benefit-panel {
    padding: 1.25rem;
    border-top: 3px solid var(--coral);
    background: var(--paper);
}

.concept-item:nth-child(2) {
    border-top-color: var(--teal);
}

.concept-item:nth-child(3) {
    border-top-color: var(--green);
}

.concept-item h3,
.benefit-panel h3 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.concept-item p,
.benefit-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.steps-list {
    display: grid;
    gap: 0;
    margin: 2rem 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    display: grid;
    gap: 1rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step, decimal-leading-zero);
    color: var(--yellow);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;
}

.steps-list h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.steps-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.benefit-panel {
    border-top-color: var(--ink);
}

.benefit-list {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    display: grid;
    grid-template-columns: 0.7rem 1fr;
    gap: 0.65rem;
    color: var(--muted);
    line-height: 1.55;
}

.benefit-list li::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--coral);
}

.benefit-panel:nth-child(2) .benefit-list li::before {
    background: var(--green);
}

.contact-section {
    display: grid;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(0, 109, 119, 0.08), rgba(47, 125, 79, 0.08)),
        var(--paper);
}

.contact-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    letter-spacing: 0;
}

.contact-section p {
    margin: 0.6rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-email {
    justify-self: start;
    border: 1px solid var(--teal);
    background: var(--teal);
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .feedback-card {
        padding: 1.6rem;
    }

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

    .step-title {
        font-size: 1.15rem;
    }

    .landing-hero {
        grid-template-columns: minmax(0, 1fr) 440px;
    }

    .landing-icon-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-hero h1 {
        font-size: 4.4rem;
    }

    .section-title {
        font-size: 2.65rem;
    }

    .contact-section h2 {
        font-size: 2.25rem;
    }

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

    .steps-list li {
        grid-template-columns: 92px minmax(0, 1fr);
    }

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

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

@media (max-width: 575.98px) {
    .landing-hero {
        min-height: auto;
        padding-top: 1.5rem;
    }

    .landing-section {
        padding: 2.4rem 0;
    }

    .landing-actions {
        flex-direction: column;
    }

    .landing-button,
    .landing-link-button {
        width: 100%;
    }

    .landing-showcase {
        max-width: none;
    }

    .landing-showcase-caption {
        margin-bottom: 0.7rem;
    }

    .landing-icon-strip {
        gap: 0.65rem;
    }

    .landing-icon {
        min-height: 132px;
        padding: 1rem 0.55rem 0.8rem;
    }

    .landing-card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 0.5rem;
    }

    .contact-section {
        padding: 1.3rem;
    }
}
/* Administrator authentication: restrained, security-led editorial layout. */
.admin-auth-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(209, 226, 216, .7), transparent 28rem),
        linear-gradient(145deg, #f4f1e9 0%, #f8f7f2 54%, #e9eee9 100%);
    color: #17211d;
}

.admin-auth-page .navbar {
    background: transparent !important;
}

.admin-auth-login-page > .container.app-shell {
    display: flex;
    flex: 1 0 auto !important;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.admin-auth-login-page > footer {
    margin-top: auto;
}

.admin-auth-shell {
    display: grid;
    flex: 1 0 auto;
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .65fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: center;
    min-height: 66vh;
    padding: clamp(1.5rem, 5vw, 4rem) 0;
}

.admin-auth-kicker {
    margin-bottom: 1rem;
    color: #38604e;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.admin-auth-intro h1,
.admin-setup-header h1 {
    max-width: 12ch;
    margin-bottom: 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.2rem);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.055em;
}

.admin-auth-intro > p,
.admin-setup-header > p {
    max-width: 38rem;
    color: #526059;
    font-size: 1.1rem;
}

.admin-auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 2rem;
}

.admin-auth-trust span {
    padding: .42rem .75rem;
    border: 1px solid rgba(23, 33, 29, .18);
    border-radius: 999px;
    font-size: .78rem;
}

.admin-auth-card,
.admin-setup-step {
    border: 1px solid rgba(23, 33, 29, .12);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 1.8rem 5rem rgba(30, 49, 40, .12);
    backdrop-filter: blur(18px);
}

.admin-auth-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.admin-auth-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-auth-card-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.admin-auth-card-header p,
.admin-auth-support {
    margin: .2rem 0 0;
    color: #68736e;
    font-size: .86rem;
}

.admin-auth-mark {
    display: grid;
    flex: 0 0 auto;
    width: 4.85rem;
    height: 5rem;
    place-items: center;
    padding: 0.3rem;
    border: 1px solid rgba(23, 33, 29, .1);
    border-radius: .6rem;
    background: #f8f7f2;
    color: #17211d;
}

.admin-auth-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-auth-form {
    display: grid;
    gap: 1.2rem;
}

.admin-code-input {
    max-width: 15rem;
    letter-spacing: .22em;
    font-variant-numeric: tabular-nums;
}

.admin-auth-support {
    margin-top: 1.5rem;
    text-align: center;
}

.admin-session-nav {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.admin-session-identity {
    color: #59645f;
    font-size: .82rem;
}

.admin-session-nav form {
    margin: 0;
}

.admin-setup-shell {
    padding: clamp(1.5rem, 5vw, 4rem) 0;
}

.admin-setup-header {
    margin-bottom: 3rem;
}

.admin-setup-header h1 {
    max-width: 14ch;
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.admin-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.admin-setup-step {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
}

.admin-step-number {
    position: absolute;
    top: .3rem;
    right: 1rem;
    color: rgba(56, 96, 78, .12);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
}

.admin-setup-step h2 {
    position: relative;
    max-width: 14rem;
    margin-bottom: .8rem;
}

.admin-setup-step > p {
    max-width: 25rem;
    margin-bottom: 2rem;
    color: #68736e;
}

.admin-qr-panel {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.admin-qr-panel img {
    border: 8px solid #fff;
    border-radius: .75rem;
    background: #fff;
}

.admin-secret {
    display: block;
    max-width: 15rem;
    overflow-wrap: anywhere;
    color: #244f3b;
}

.admin-setup-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .admin-auth-shell,
    .admin-setup-grid {
        grid-template-columns: 1fr;
    }

    .admin-auth-shell {
        gap: 2.5rem;
        padding-top: 1rem;
    }

    .admin-auth-intro h1 {
        font-size: clamp(2.8rem, 16vw, 4.4rem);
    }

    .admin-auth-card {
        padding: 1.35rem;
    }

    .admin-qr-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-setup-submit {
        grid-column: auto;
    }

    .admin-setup-submit .btn {
        width: 100%;
    }

    .admin-session-identity {
        display: none;
    }
}

/* Billing: a compact operational ledger with live-service states. */
.billing-page {
    --billing-ink: #14251f;
    --billing-muted: #66736e;
    --billing-line: #d8dfdb;
    --billing-paper: #fffefb;
    --billing-mint: #e8f6f0;
    --billing-green: #167b5b;
    --billing-amber: #a76708;
    background:
        linear-gradient(120deg, rgba(231, 245, 238, .42), transparent 32rem),
        #f7f8f6;
    color: var(--billing-ink);
}

.billing-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.billing-heading h1 {
    color: var(--billing-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 4.8rem);
    letter-spacing: -.055em;
    line-height: .95;
}

.billing-eyebrow,
.billing-label {
    color: var(--billing-green);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.billing-live-pill,
.billing-monitor-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--billing-line);
    border-radius: 999px;
    background: var(--billing-paper);
    color: var(--billing-muted);
    font-size: .78rem;
    font-weight: 700;
    padding: .45rem .75rem;
    white-space: nowrap;
}

.billing-live-pill span {
    width: .52rem;
    height: .52rem;
    border-radius: 50%;
    background: #9aa49f;
}

.billing-live-pill.is-online span {
    background: #18a476;
    box-shadow: 0 0 0 .22rem rgba(24, 164, 118, .13);
}

.billing-hero {
    display: grid;
    grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.45fr);
    overflow: hidden;
    border: 1px solid #1b3b30;
    border-radius: 1rem;
    background: var(--billing-paper);
    box-shadow: 0 1.2rem 3rem rgba(30, 54, 45, .08);
}

.billing-hero-total {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--billing-ink);
    color: #fff;
}

.billing-hero-total .billing-label {
    color: #8dd6bb;
}

.billing-hero-total h2 {
    margin: .65rem 0 .35rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    letter-spacing: -.055em;
    line-height: 1;
}

.billing-hero-total h2 span {
    color: #8dd6bb;
    font-family: inherit;
    font-size: .33em;
    letter-spacing: .04em;
}

.billing-hero-total p {
    margin: 0;
    color: #c3d0cb;
}

.billing-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.billing-metric-grid > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 10rem;
    padding: 1.5rem;
    border-left: 1px solid var(--billing-line);
}

.billing-metric-grid dt,
.admin-billing-owner-metrics dt {
    color: var(--billing-muted);
    font-size: .78rem;
    font-weight: 500;
}

.billing-metric-grid dd {
    margin: .25rem 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

.billing-metric-grid small {
    color: var(--billing-muted);
    line-height: 1.35;
}

.billing-content-grid {
    display: grid;
    grid-template-columns: minmax(16rem, .68fr) minmax(0, 1.32fr);
    gap: 1.5rem;
}

.billing-section,
.admin-billing-ledger {
    border: 1px solid var(--billing-line);
    border-radius: .9rem;
    background: var(--billing-paper);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 .5rem 1.5rem rgba(31, 50, 42, .045);
}

.billing-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.billing-section-heading h2 {
    margin: .15rem 0 0;
    color: var(--billing-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -.025em;
}

.billing-section-count {
    color: var(--billing-muted);
    font-size: .82rem;
    white-space: nowrap;
}

.billing-event-list,
.billing-invoice-list {
    border-top: 1px solid var(--billing-line);
}

.billing-event-row,
.billing-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem .15rem;
    border-bottom: 1px solid var(--billing-line);
}

.billing-event-row strong {
    min-width: 2.4rem;
    border-radius: 999px;
    background: var(--billing-mint);
    color: var(--billing-green);
    padding: .2rem .55rem;
    text-align: center;
}

.billing-invoice-row > div:first-child,
.billing-invoice-amount {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.billing-invoice-row span {
    color: var(--billing-muted);
    font-size: .82rem;
}

.billing-invoice-amount {
    align-items: flex-end;
    text-align: right;
}

.billing-status-tag {
    color: var(--billing-amber) !important;
    font-weight: 700;
}

.billing-empty-state {
    border: 1px dashed #c8d1cc;
    border-radius: .7rem;
    background: #fafbf9;
    color: var(--billing-muted);
    padding: 1.5rem;
    text-align: center;
}

.billing-unavailable {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    border: 1px solid #e6c58c;
    border-radius: 1rem;
    background: #fff9ec;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.billing-unavailable h2 {
    margin: .25rem 0 .5rem;
    font-family: Georgia, "Times New Roman", serif;
}

.billing-unavailable-mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #f2bd55;
    color: #5f3b00;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-billing-summary {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 1rem;
}

.admin-billing-total {
    display: flex;
    min-height: 9.5rem;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--billing-line);
    border-radius: .85rem;
    background: var(--billing-paper);
    padding: 1.25rem;
}

.admin-billing-total.is-primary {
    border-color: var(--billing-ink);
    background: var(--billing-ink);
    color: #fff;
}

.admin-billing-total span,
.admin-billing-total small {
    color: var(--billing-muted);
}

.admin-billing-total.is-primary span,
.admin-billing-total.is-primary small {
    color: #a9c6bb;
}

.admin-billing-total strong {
    margin: .25rem 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 500;
    line-height: 1;
}

.billing-coverage {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    border-radius: .65rem;
    padding: .85rem 1rem;
    font-size: .88rem;
}

.billing-coverage.is-complete {
    border: 1px solid #a9d8c6;
    background: #edf9f4;
    color: #185d47;
}

.billing-coverage.is-partial {
    border: 1px solid #ead19e;
    background: #fff7e6;
    color: #73500e;
}

.admin-billing-owner-list {
    border-top: 1px solid var(--billing-line);
}

.admin-billing-owner {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--billing-line);
}

.admin-billing-owner:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-billing-owner > header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-billing-owner h3 {
    margin: 0;
    color: var(--billing-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.billing-monitor-badge.is-ok {
    border-color: #a9d8c6;
    background: #edf9f4;
    color: #17634a;
}

.billing-monitor-badge.is-missing-config,
.billing-monitor-badge.is-invalid-response {
    border-color: #ead19e;
    background: #fff7e6;
    color: #73500e;
}

.billing-monitor-badge.is-unavailable {
    border-color: #edb9b3;
    background: #fff0ef;
    color: #8b3027;
}

.admin-billing-owner-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 1.15rem 0;
    border: 1px solid var(--billing-line);
    border-radius: .7rem;
    overflow: hidden;
}

.admin-billing-owner-metrics > div {
    padding: .85rem 1rem;
    border-right: 1px solid var(--billing-line);
}

.admin-billing-owner-metrics > div:last-child {
    border-right: 0;
}

.admin-billing-owner-metrics dd {
    margin: .18rem 0 0;
    font-weight: 700;
}

.admin-billing-owner-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.billing-event-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.billing-event-chips span {
    border-radius: 999px;
    background: var(--billing-mint);
    color: #245f4b;
    font-size: .78rem;
    padding: .3rem .6rem;
}

.billing-invoice-disclosure {
    border: 1px solid var(--billing-line);
    border-radius: .65rem;
    background: #fafbf9;
    padding: .75rem 1rem;
}

.billing-invoice-disclosure summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.billing-invoice-disclosure summary::-webkit-details-marker {
    display: none;
}

.billing-invoice-disclosure[open] summary span {
    transform: rotate(45deg);
}

.admin-billing-owner-error {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-top: 1rem;
    border-left: .25rem solid #d69b39;
    background: #fff9ec;
    color: #73500e;
    padding: .85rem 1rem;
}

.admin-billing-owner-error span {
    color: #8a7753;
    font-size: .78rem;
}

@media (max-width: 991.98px) {
    .billing-hero,
    .billing-content-grid {
        grid-template-columns: 1fr;
    }

    .billing-metric-grid > div:first-child {
        border-left: 0;
    }

    .admin-billing-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-billing-owner-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-billing-owner-metrics > div {
        border-right: 1px solid var(--billing-line);
        border-bottom: 1px solid var(--billing-line);
    }

    .admin-billing-owner-metrics > div:nth-child(2n) {
        border-right: 0;
    }

    .admin-billing-owner-metrics > div:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .billing-heading,
    .billing-coverage,
    .admin-billing-owner > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .billing-live-pill {
        align-self: flex-start;
    }

    .billing-metric-grid,
    .admin-billing-summary,
    .admin-billing-owner-meta {
        grid-template-columns: 1fr;
    }

    .billing-metric-grid > div {
        min-height: auto;
        border-top: 1px solid var(--billing-line);
        border-left: 0;
    }

    .billing-invoice-row {
        align-items: flex-start;
    }

    .billing-invoice-amount {
        min-width: 7.5rem;
    }

    .admin-billing-total {
        min-height: 7.5rem;
    }

    .billing-monitor-badge {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .billing-invoice-row {
        align-items: stretch;
        flex-direction: column;
    }

    .billing-invoice-amount {
        align-items: flex-start;
        text-align: left;
    }
}
