:root {
    color: #17211f;
    background: #f5f7f6;
    color-scheme: light;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
}

a {
    color: #0b766e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

button {
    cursor: pointer;
    border: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(340px, 42%) 1fr;
    background: #f5f7f6;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 78px);
    background: #132522;
    color: #ecf8f5;
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(#ffffff 1px, transparent 1px),
        linear-gradient(90deg, #ffffff 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(135deg, #000 0%, transparent 72%);
    pointer-events: none;
}

.brand-lockup,
.brand-copy,
.service-preview,
.brand-meta {
    position: relative;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #ecf8f5;
}

.brand-lockup:hover {
    text-decoration: none;
}

.brand-lockup span:last-child {
    display: grid;
    gap: 1px;
}

.brand-lockup strong {
    font-size: 15px;
    letter-spacing: .02em;
}

.brand-lockup em {
    color: #a8c5c0;
    font-size: 12px;
    font-style: normal;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #0f8f82;
    color: #fff;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: 0;
}

.brand-mark.small {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    font-size: 17px;
}

.brand-copy {
    margin-top: clamp(58px, 9vw, 112px);
}

.brand-kicker,
.eyebrow,
.sidebar-label {
    display: block;
    color: #0b766e;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.brand-kicker {
    color: #91c7c0;
    margin-bottom: 16px;
}

.brand-copy > strong {
    display: block;
    max-width: 640px;
    color: #fff;
    font-size: clamp(38px, 4.6vw, 64px);
    font-weight: 680;
    line-height: 1.06;
    letter-spacing: 0;
}

.brand-copy p {
    max-width: 430px;
    margin: 22px 0 0;
    color: #bdd8d4;
    font-size: 15px;
}

.service-preview {
    width: min(100%, 430px);
    margin-top: clamp(44px, 7vw, 88px);
    border: 1px solid #31504b;
    border-radius: 8px;
    background: #18332f;
    box-shadow: 0 24px 70px #00000026;
}

.preview-toolbar {
    display: flex;
    gap: 7px;
    padding: 14px 16px;
    border-bottom: 1px solid #31504b;
}

.preview-toolbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6fa099;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 58px;
    gap: 10px;
    padding: 16px;
}

.preview-cell {
    border: 1px solid #3f625b;
    border-radius: 5px;
    background: #23413c;
}

.preview-cell.wide {
    grid-column: span 2;
}

.preview-cell.tall {
    grid-row: span 2;
}

.preview-cell.accent {
    background: #b9792f;
    border-color: #d69a53;
}

.brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: auto;
    padding-top: 42px;
}

.brand-meta span {
    border: 1px solid #385a54;
    border-radius: 999px;
    padding: 6px 10px;
    color: #b9d6d1;
    font-size: 12px;
}

.auth-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 6vw, 82px) 24px 28px;
}

.auth-toolbar {
    width: min(100%, 590px);
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.language-switch {
    display: inline-flex;
    min-width: 42px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd6d2;
    border-radius: 5px;
    background: #fff;
    color: #315d59;
    font-size: 12px;
    font-weight: 700;
}

.language-switch:hover {
    border-color: #8fb8b1;
    background: #edf8f5;
    text-decoration: none;
}

.auth-card {
    width: min(100%, 430px);
}

.auth-card.wide {
    width: min(100%, 590px);
}

.login-card {
    padding: 34px;
    border: 1px solid #dfe7e3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 70px #1a2b2714;
}

.page-heading {
    margin-bottom: 28px;
}

.eyebrow {
    margin-bottom: 10px;
}

.page-heading h1 {
    margin: 0;
    color: #102c29;
    font-size: 34px;
    font-weight: 720;
    line-height: 1.18;
    letter-spacing: 0;
}

.page-heading p {
    margin: 10px 0 0;
    color: #66736f;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field {
    display: grid;
    gap: 8px;
}

.form-stack label,
.label-row {
    color: #34433f;
    font-size: 13px;
    font-weight: 680;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.label-row a {
    font-size: 12px;
    font-weight: 600;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
    width: 100%;
    border: 1px solid #cbd6d2;
    border-radius: 6px;
    padding: 12px 13px;
    background: #fff;
    color: #17211f;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.form-stack input::placeholder {
    color: #9aa7a3;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
    border-color: #0b766e;
    box-shadow: 0 0 0 3px #0b766e22;
}

.form-stack small {
    margin-top: -5px;
    color: #71807c;
    font-size: 12px;
}

.primary {
    border-radius: 6px;
    padding: 12px 16px;
    background: #0b766e;
    color: #fff;
    font-weight: 700;
}

.primary:hover {
    background: #075f59;
}

.form-stack .primary {
    margin-top: 4px;
}

.secondary-action,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd6d2;
    border-radius: 6px;
    background: #fff;
    color: #0b766e;
    font-size: 13px;
    font-weight: 680;
}

.secondary-action {
    width: 100%;
    padding: 11px 14px;
}

.secondary-action:hover,
.secondary-button:hover {
    background: #edf8f5;
    text-decoration: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #87938f;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e4ebe8;
}

.trust-list {
    display: grid;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: #65736f;
    font-size: 12px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-list span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b9792f;
}

.notice {
    margin-bottom: 18px;
    border: 1px solid #a8d4cc;
    border-radius: 6px;
    padding: 11px 13px;
    background: #edf8f5;
    color: #185c56;
    font-size: 13px;
}

.notice.error {
    border-color: #e3b8b4;
    background: #fff1f0;
    color: #9d2f27;
}

.auth-footer {
    margin-top: 24px;
    color: #697572;
    font-size: 13px;
    text-align: center;
}

.auth-footer a {
    margin-left: 4px;
    font-weight: 650;
}

.site-footer {
    width: min(100%, 430px);
    margin-top: 28px;
    color: #89948f;
    font-size: 12px;
    text-align: center;
}

.site-footer span {
    margin: 0 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.check-row {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #64716d !important;
    font-weight: 400 !important;
}

.check-row input {
    width: 16px !important;
    height: 16px;
    margin: 0;
}

.check-row a {
    margin-left: 3px;
}

.compact {
    max-width: 300px;
}

.app-topbar {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid #e0e7e4;
    background: #fff;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #17211f;
    font-size: 15px;
    font-weight: 650;
}

.wordmark:hover {
    text-decoration: none;
}

.wordmark b {
    color: #71807c;
    font-weight: 400;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #64716d;
    font-size: 13px;
}

.topbar-user form {
    display: inline;
}

.topbar-user button {
    padding: 0;
    background: none;
    color: #0b766e;
    font-size: 13px;
}

.app-shell {
    min-height: calc(100vh - 62px);
    display: grid;
    grid-template-columns: 220px 1fr;
}

.sidebar {
    padding: 30px 18px;
    border-right: 1px solid #e0e7e4;
    background: #edf1ef;
}

.sidebar-label {
    margin: 0 12px 9px;
    color: #87938f;
}

.sidebar-label:not(:first-child) {
    margin-top: 28px;
}

.sidebar a {
    display: block;
    margin: 2px 0;
    border-radius: 5px;
    padding: 9px 12px;
    color: #566560;
    font-size: 14px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #d9ece8;
    color: #075f59;
    font-weight: 650;
    text-decoration: none;
}

.app-content {
    width: min(100%, 980px);
    padding: 54px clamp(24px, 6vw, 78px);
}

.app-content > .page-heading {
    margin-bottom: 32px;
}

.panel,
.stat-card {
    border: 1px solid #e0e7e4;
    border-radius: 6px;
    background: #fff;
}

.panel {
    padding: 24px;
}

.panel.narrow {
    max-width: 520px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.stat-card {
    padding: 18px;
}

.stat-card .label {
    color: #7b8984;
    font-size: 12px;
}

.stat-card strong {
    display: block;
    margin-top: 5px;
    color: #183d38;
    font-size: 20px;
}

.data-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e8eeeb;
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row dt {
    color: #71807c;
    font-size: 13px;
}

.data-row dd {
    margin: 0;
    color: #263934;
    font-weight: 600;
    text-align: right;
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e3f3ef;
    color: #12675f;
    font-size: 12px;
}

.empty {
    padding: 24px 0;
    color: #71807c;
}

.danger {
    color: #aa443b;
}

.inline-form {
    display: inline;
}

.secondary-button {
    padding: 8px 12px;
}

.app-content form textarea {
    min-height: 150px;
    resize: vertical;
}

.billing-heading {
    max-width: 760px;
}

.license-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    border-left: 3px solid #0b766e;
    padding: 12px 15px;
    background: #eaf4f1;
}

.license-status span {
    color: #57716b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.license-status strong {
    color: #183d38;
    font-size: 14px;
    text-align: right;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.plan-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    border: 1px solid #dce5e1;
    border-radius: 7px;
    padding: 22px;
    background: #fff;
}

.plan-card.featured {
    border-top: 3px solid #b9792f;
    padding-top: 20px;
}

.plan-card.current {
    border-color: #0b766e;
    box-shadow: 0 0 0 1px #0b766e;
}

.plan-card-header {
    display: flex;
    min-height: 58px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.plan-kicker {
    color: #72817c;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.plan-card h2 {
    margin: 5px 0 0;
    color: #173c37;
    font-size: 20px;
    line-height: 1.25;
}

.plan-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 8px;
    background: #dff1ed;
    color: #0b675f;
    font-size: 10px;
    font-weight: 700;
}

.plan-price {
    min-height: 62px;
    display: flex;
    align-items: center;
    margin-top: 14px;
    color: #17211f;
    font-size: 22px;
    font-weight: 750;
}

.plan-features {
    display: grid;
    gap: 11px;
    margin: 7px 0 24px;
    padding: 0;
    color: #52635e;
    font-size: 13px;
    list-style: none;
}

.plan-features li {
    position: relative;
    padding-left: 17px;
}

.plan-features li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #0b766e;
}

.plan-action {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 1px solid #a96a26;
    border-radius: 6px;
    background: #fff8ee;
    color: #8a570f;
    font-size: 13px;
    font-weight: 700;
}

.plan-action.muted {
    border-color: #cbd6d2;
    background: #f6f8f7;
    color: #65736f;
}

.billing-note {
    margin: 18px 0 0;
    color: #71807c;
    font-size: 12px;
}

.business-section {
    margin: 34px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: 25px;
}

.section-heading > p {
    max-width: 480px;
    margin: 0;
    color: #71807c;
    font-size: 13px;
    text-align: right;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.business-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    border: 1px solid #dce6e2;
    border-top: 3px solid #0b766e;
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(150deg, #fff, #f5fbf9);
    color: #17211f;
}

.business-card.violet {
    border-top-color: #7554b8;
    background: linear-gradient(150deg, #fff, #f8f5ff);
}

.business-card.amber {
    border-top-color: #b9792f;
    background: linear-gradient(150deg, #fff, #fff9f0);
}

.business-card.blue {
    border-top-color: #326ea5;
    background: linear-gradient(150deg, #fff, #f3f8fc);
}

.business-card.red {
    border-top-color: #a74b45;
    background: linear-gradient(150deg, #fff, #fff5f4);
}

.business-card:hover {
    border-color: #9fc8c0;
    box-shadow: 0 12px 30px #21413a12;
    text-decoration: none;
    transform: translateY(-2px);
}

.business-card > div,
.business-card footer,
.feedback-item-head,
.feedback-item footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.business-card > div span,
.feedback-item-head > div > span {
    color: #77847f;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.business-card > div strong {
    border-radius: 999px;
    padding: 3px 8px;
    background: #e5f3ef;
    color: #12675f;
    font-size: 11px;
}

.business-card h3 {
    margin: 28px 0 8px;
    font-size: 22px;
}

.business-card p {
    margin: 0;
    color: #64716d;
    font-size: 13px;
}

.business-card footer {
    margin-top: auto;
    padding-top: 24px;
    color: #0b766e;
    font-size: 13px;
    font-weight: 700;
}

.feedback-compose {
    margin-bottom: 38px;
}

.feedback-compose h2 {
    margin-bottom: 22px;
}

.feedback-history {
    margin-top: 34px;
}

.feedback-list {
    display: grid;
    gap: 12px;
}

.feedback-item {
    border: 1px solid #e0e7e4;
    border-radius: 8px;
    padding: 20px 22px;
    background: #fff;
}

.feedback-item h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.feedback-item > p {
    margin: 18px 0;
    color: #53635e;
    white-space: pre-wrap;
}

.feedback-item pre {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    border-radius: 6px;
    padding: 12px;
    background: #f2f6f4;
    color: #53635e;
    font-size: 12px;
}

.feedback-item footer {
    margin-top: 18px;
    color: #83908b;
    font-size: 11px;
}

.feedback-item code {
    font-size: 11px;
}

.admin-filter-panel,
.cdk-compose,
.generated-cdks {
    margin-bottom: 28px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.admin-filter-form .field {
    display: grid;
    gap: 8px;
}

.admin-filter-form .compact {
    width: 110px;
}

.admin-feedback-item footer {
    align-items: center;
}

.admin-feedback-item footer > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-feedback-meta {
    margin: 0 0 16px;
}

.admin-feedback-meta div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
}

.admin-feedback-meta dt {
    color: #7b8984;
    font-size: 12px;
}

.admin-feedback-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.status-form {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.status-form select {
    width: auto;
    min-width: 108px;
}

.generated-cdks {
    border-left: 3px solid #b9792f;
    background: #fff9f0;
}

.generated-cdks h2,
.cdk-compose h2 {
    margin-top: 0;
}

.generated-cdks > p {
    color: #715b3f;
    font-size: 13px;
}

.generated-cdks > div {
    display: grid;
    gap: 8px;
}

.generated-cdks code {
    overflow-wrap: anywhere;
    border: 1px solid #ead7ba;
    border-radius: 5px;
    padding: 10px 12px;
    background: #fff;
    color: #674315;
    font-size: 14px;
}

.feature-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e7e4;
    border-radius: 7px;
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #e8eeeb;
    text-align: left;
    white-space: nowrap;
}

.admin-table th {
    background: #f5f8f6;
    color: #64716d;
    font-size: 11px;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table form {
    margin: 0;
}

.cdk-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.cdk-page-heading .primary {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 7px;
}

.cdk-list,
.appeal-list {
    display: grid;
    gap: 12px;
}

.cdk-item {
    border: 1px solid #dce5e1;
    border-radius: 7px;
    padding: 20px 22px;
    background: #fff;
}

.cdk-item > header,
.account-dialog-heading,
.account-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cdk-item h3,
.account-dialog-heading h2 {
    margin: 0;
    color: #183d38;
}

.cdk-item header p {
    margin: 4px 0 0;
    color: #71807c;
    font-size: 12px;
}

.cdk-item dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #e8eeeb;
}

.cdk-item dt {
    color: #7b8984;
    font-size: 11px;
}

.cdk-item dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: #263934;
    font-size: 13px;
    font-weight: 650;
}

.cdk-item > form {
    margin-top: 18px;
    text-align: right;
}

.secondary-button.danger {
    border-color: #e2c5c2;
    color: #a23e37;
}

.secondary-button.danger:hover {
    background: #fff1f0;
}

.account-dialog {
    width: min(calc(100% - 32px), 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid #cbd6d2;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    color: #17211f;
    box-shadow: 0 24px 80px #102c2940;
}

.account-dialog::backdrop {
    background: #102c2973;
}

.account-dialog-heading {
    padding: 22px 24px;
    border-bottom: 1px solid #e0e7e4;
}

.account-dialog-heading .eyebrow {
    margin-bottom: 6px;
}

.dialog-icon-button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 5px;
    background: #edf2f0;
    color: #53635e;
    font-size: 24px;
    line-height: 1;
}

.account-dialog > .form-stack,
.account-dialog > .generated-cdk-warning,
.account-dialog > textarea,
.account-dialog > .copy-status,
.account-dialog > .account-dialog-actions {
    margin-right: 24px;
    margin-left: 24px;
}

.account-dialog > .form-stack {
    margin-top: 22px;
    margin-bottom: 24px;
}

.account-dialog-actions {
    justify-content: flex-end;
    margin-top: 8px;
}

.generated-cdk-warning {
    margin-top: 22px;
    color: #715b3f;
    font-size: 13px;
}

.generated-cdk-dialog textarea {
    width: calc(100% - 48px);
    min-height: 118px;
    resize: vertical;
    border: 1px solid #dfcba9;
    border-radius: 6px;
    padding: 13px;
    background: #fffaf1;
    color: #674315;
    font-family: ui-monospace, "Cascadia Code", monospace;
}

.generated-cdk-dialog > .account-dialog-actions {
    margin-bottom: 24px;
}

.copy-status {
    min-height: 20px;
    color: #0b766e;
    font-size: 12px;
}

.management-section {
    margin-top: 42px;
}

.management-section:first-of-type {
    margin-top: 0;
}

.management-section .section-heading time,
.management-section .section-heading > span {
    color: #7b8984;
    font-size: 12px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.admin-metrics article {
    min-width: 0;
    border: 1px solid #dce5e1;
    border-top: 3px solid #0b766e;
    border-radius: 7px;
    padding: 17px;
    background: #fff;
}

.admin-metrics span,
.admin-metrics small {
    display: block;
    color: #71807c;
    font-size: 11px;
}

.admin-metrics strong {
    display: block;
    margin: 5px 0;
    color: #183d38;
    font-size: 24px;
}

.admin-account-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-account-search input {
    width: 100%;
    border: 1px solid #cbd6d2;
    border-radius: 6px;
    padding: 11px 13px;
}

.admin-account-search .primary,
.admin-account-search .secondary-button {
    min-height: 44px;
}

.management-table td > strong,
.management-table td > code,
.management-table td > small,
.management-table td > span,
.management-table td > .muted {
    display: block;
}

.management-table td > code,
.management-table td > small {
    margin-top: 4px;
    color: #71807c;
    font-size: 11px;
}

.management-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.management-actions form {
    display: inline-flex;
}

.management-grant-form {
    max-width: 760px;
}

.management-submit {
    align-self: flex-start;
}

.admin-appeal-item h3 {
    overflow-wrap: anywhere;
    font-family: ui-monospace, "Cascadia Code", monospace;
    font-size: 13px;
}

.admin-appeal-item footer {
    justify-content: flex-end;
}

.admin-appeal-item footer form {
    display: flex;
    gap: 8px;
}

.audit-change {
    max-width: 380px;
    overflow-wrap: anywhere;
    white-space: normal !important;
}

@media (max-width: 860px) {
    .auth-shell {
        display: block;
    }

    .brand-panel {
        min-height: auto;
        padding: 28px 24px;
    }

    .brand-copy {
        margin-top: 38px;
    }

    .brand-copy > strong {
        font-size: 32px;
    }

    .brand-copy p {
        margin-top: 12px;
    }

    .service-preview {
        display: none;
    }

    .brand-meta {
        margin-top: 24px;
        padding-top: 0;
    }

    .auth-content {
        justify-content: flex-start;
        padding: 34px 20px 24px;
    }

    .login-card {
        padding: 24px;
    }

    .app-topbar {
        padding: 0 18px;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        display: flex;
        gap: 4px;
        overflow: auto;
        padding: 10px 12px;
        border-right: 0;
        border-bottom: 1px solid #e0e7e4;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar a {
        white-space: nowrap;
    }

    .app-content {
        padding: 32px 20px;
    }

    .summary-grid,
    .form-grid,
    .pricing-grid,
    .business-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading > p {
        text-align: left;
    }

    .plan-card {
        min-height: auto;
    }

    .license-status {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .license-status strong {
        text-align: left;
    }

    .topbar-user {
        gap: 8px;
        font-size: 0;
    }

    .topbar-user button {
        font-size: 13px;
    }

    .admin-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .admin-feedback-item footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cdk-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cdk-item dl {
        grid-template-columns: 1fr 1fr;
    }

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

    .admin-account-search {
        grid-template-columns: 1fr 1fr;
    }

    .admin-account-search .field {
        grid-column: 1 / -1;
    }

    .management-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .cdk-item {
        padding: 17px;
    }

    .cdk-item > header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cdk-item dl,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .account-dialog > .form-stack,
    .account-dialog > .generated-cdk-warning,
    .account-dialog > textarea,
    .account-dialog > .copy-status,
    .account-dialog > .account-dialog-actions {
        margin-right: 16px;
        margin-left: 16px;
    }

    .account-dialog-heading {
        padding-right: 16px;
        padding-left: 16px;
    }

    .generated-cdk-dialog textarea {
        width: calc(100% - 32px);
    }

    .account-dialog-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .account-dialog-actions > button {
        width: 100%;
    }
}
