* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, Arial, sans-serif;
    background: #e8ebe4;
    color: #1a2218;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a2416 0%, #121a10 100%);
    color: #eef4e6;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(107, 142, 78, 0.35);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.logo-wrap img {
    width: 40px;
    height: 40px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar a,
.logout-form button {
    display: block;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.sidebar a.active {
    background: rgba(107, 142, 78, 0.28);
    border-color: rgba(199, 228, 162, 0.55);
}

.logout-form {
    margin-top: 14px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #dde3ea;
    background: #fff;
}

.content-area {
    flex: 1;
    padding: 22px;
}

.footer {
    border-top: 1px solid #dde3ea;
    background: #fff;
    padding: 12px 22px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    padding: 16px;
}

.kpi h3 {
    margin: 0;
    font-size: 14px;
    color: #6a7480;
}

.kpi p {
    margin: 8px 0 0;
    font-size: 26px;
    font-weight: 700;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #d9f2e6;
    color: #0f6d3a;
}

.form-grid {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

label {
    font-size: 13px;
    color: #4d5763;
}

input,
select,
button {
    font: inherit;
    padding: 10px;
    border: 1px solid #c6d0db;
    border-radius: 8px;
}

button,
.btn {
    background: #3d5a2e;
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #5a7d3a, #3d5a2e);
}

.btn-secondary {
    background: #2a4a5c;
}

.btn-ghost {
    background: #f1f4ed;
    color: #2a331f;
    border: 1px solid #c5ceb8;
}

.btn-small {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.alert {
    background: #fff4d4;
    border: 1px solid #f5d983;
    padding: 10px;
    border-radius: 8px;
    color: #765f16;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid #e7edf4;
    padding: 10px 8px;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.inline-form {
    display: inline-block;
    margin-left: 8px;
}

.role-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.role-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-line,
.role-picker-line {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.small-select {
    padding: 6px 8px;
    min-width: 140px;
}

.inline-link {
    color: #2d4a24;
}

.user-name-link {
    color: #2a4a22;
    font-weight: 600;
    text-decoration: none;
}

.user-name-link:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.row-gap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.guest-body {
    margin: 0;
    min-height: 100vh;
    background: #12190f;
}

.guest-main {
    min-height: 100vh;
}

.landing-hero {
    position: relative;
    min-height: 48vh;
    background:
        linear-gradient(120deg, rgba(18, 33, 18, 0.86), rgba(12, 22, 13, 0.88)),
        radial-gradient(circle at 20% 20%, #3f5a34 0, #2d4126 35%, #172112 100%);
    color: #e8efdb;
    padding: 56px 42px;
}

.landing-hero .overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0,
        rgba(255, 255, 255, 0.03) 8px,
        transparent 8px,
        transparent 16px
    );
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.landing-content h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: 0.8px;
}

.landing-content p {
    margin: 0;
    max-width: 680px;
    line-height: 1.5;
    color: #d9e4ce;
}

.landing-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.landing-tags span {
    border: 1px solid rgba(199, 216, 178, 0.42);
    background: rgba(106, 139, 79, 0.25);
    color: #ecf3e2;
    padding: 8px 12px;
    border-radius: 999px;
}

.landing-actions {
    margin-top: 24px;
}

.btn-cta {
    background: #6f8d47;
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
}

.btn-cta:hover {
    background: #5e7a3c;
}

.landing-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px;
    padding: 22px 22px 8px;
    background: #1a2416;
}

.gallery-card {
    border: 1px solid #3a4d2e;
    border-radius: 10px;
    padding: 16px;
    color: #f0f6e8;
}

.gallery-a {
    background: linear-gradient(135deg, #2c3e22, #1b2916);
}

.gallery-b {
    background: linear-gradient(135deg, #3a4926, #232f18);
}

.gallery-c {
    background: linear-gradient(135deg, #4f5c2f, #2f3a1f);
}

.landing-logins {
    background: #131b11;
    padding: 24px 22px 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.mini-cards {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin: 0;
}

.split-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.one-login {
    grid-template-columns: minmax(280px, 760px);
    justify-content: center;
}

.login-box {
    background: #e8eee2;
    border-color: #bcc7af;
}

.unified-login-box {
    border-top: 5px solid #3c6e3c;
}

.login-box h2 {
    margin-top: 0;
}

.login-note {
    margin-top: 0;
    color: #48573d;
}

.login-hero {
    min-height: 32vh;
}

.light-link {
    color: #d5e7c7;
    font-weight: 700;
}

.user-body {
    margin: 0;
    background: #e8ecf1;
}

.user-shell {
    min-height: 100vh;
}

.user-topbar {
    background: #233522;
    color: #f2f7ec;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-topbar p {
    margin: 6px 0 0;
    color: #ccdbbd;
}

.user-content {
    padding: 22px;
}

.setup-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.setup-nav-btn {
    display: block;
    text-align: center;
    padding: 16px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
}

.nav-site {
    background: linear-gradient(135deg, #5a7d3a, #385326);
}

.nav-smtp {
    background: linear-gradient(135deg, #2a5e8e, #1f4466);
}

.nav-users {
    background: linear-gradient(135deg, #6f5a2e, #4f3f1f);
}

.nav-payments {
    background: linear-gradient(135deg, #7a2d2d, #561f1f);
}

.setup-card {
    margin-bottom: 16px;
    border-width: 2px;
}

.site-card {
    border-color: #799d5a;
}

.smtp-card {
    border-color: #4f7fa7;
}

.users-card {
    border-color: #9f864a;
}

.payments-card {
    border-color: #a65b5b;
}

.role-card h3,
.role-card p {
    margin: 0;
}

.role-operativo {
    border-left: 6px solid #2f6f3e;
}

.role-staff {
    border-left: 6px solid #2f4f7f;
}

.role-consultazione {
    border-left: 6px solid #6a5b2f;
}

.clean-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clean-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #d8dee6;
}

.stack-forms {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.soft-card {
    background: #f8fafc;
    border: 1px solid #d6e0ea;
}

.in-title {
    color: #1f6a37;
}

.out-title {
    color: #8a2a2a;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.muted {
    color: #5a6454;
    font-size: 14px;
}

.no-margin {
    margin: 0;
}

.eur {
    font-size: 0.72em;
    font-weight: 600;
    color: #5a6454;
}

.kpi-in h3 {
    color: #1f6a37;
}

.kpi-out h3 {
    color: #8a2a2a;
}

.kpi-balance h3 {
    color: #2a4a5c;
}

.payment-macro-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-macro-tab {
    display: block;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #c9d4c0;
    background: #f6f8f3;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.payment-macro-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 34, 24, 0.08);
}

.payment-macro-tab--in {
    border-color: rgba(31, 106, 55, 0.45);
}

.payment-macro-tab--out {
    border-color: rgba(138, 42, 42, 0.45);
}

.payment-macro-tab.is-active {
    border-width: 3px;
    box-shadow: 0 8px 22px rgba(26, 34, 24, 0.12);
}

.payment-macro-tab--in.is-active {
    background: linear-gradient(135deg, #e8f4e8, #f6faf4);
    border-color: #1f6a37;
}

.payment-macro-tab--out.is-active {
    background: linear-gradient(135deg, #f8eaea, #faf6f4);
    border-color: #8a2a2a;
}

.payment-macro-tab-title {
    display: block;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.02em;
}

.payment-macro-tab-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #5a6454;
    line-height: 1.35;
}

.payment-panel--in {
    border-left: 5px solid #1f6a37;
}

.payment-panel--out {
    border-left: 5px solid #8a2a2a;
}

.form-grid--user-detail {
    max-width: 720px;
}

.form-grid--wide {
    max-width: 720px;
}

.card-muted {
    background: #f3f5ef;
    border-style: dashed;
}

.row-2fields {
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

.table-scroll {
    overflow-x: auto;
}

.table-payments .num {
    text-align: right;
    white-space: nowrap;
}

.pay-row--in {
    background: color-mix(in srgb, #1f6a37 6%, transparent);
}

.pay-row--out {
    background: color-mix(in srgb, #8a2a2a 7%, transparent);
}

.pill-in {
    background: #e4f2e6;
    color: #14532d;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.users-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.users-toolbar-text {
    flex: 1 1 280px;
    min-width: 0;
}

.users-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.card--toolbar {
    border-left: 5px solid #5a7d3a;
}

.users-toolbar-title {
    margin: 0 0 4px;
}

.btn-add-user {
    white-space: nowrap;
}

.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.users-table th,
.users-table td {
    vertical-align: middle;
}

.users-table tbody tr.user-table-row td:first-child {
    border-left: 5px solid var(--cat-color, #4a5d3c);
}

.user-id-badge {
    font-weight: 700;
    color: #3a4a32;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 2px solid #c5ceb8;
    font-size: 13px;
    font-weight: 600;
}

.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-pill--on {
    background: #e0f3e4;
    color: #14532d;
}

.status-pill--off {
    background: #f0e8e8;
    color: #742a2a;
}

.th-sort {
    color: #1e3a1e;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(30, 58, 30, 0.45);
}

.th-sort:hover {
    color: #0f3460;
    border-bottom-color: #0f3460;
}

.th-sort-indicator {
    font-size: 11px;
    color: #5a6454;
    font-weight: 700;
}

.col-docs {
    min-width: 158px;
    max-width: 220px;
    vertical-align: top;
    font-size: 12px;
    line-height: 1.35;
}

.th-docs-title {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #1a2218;
    margin-bottom: 2px;
}

.th-docs-hint {
    display: block;
    font-size: 11px;
    color: #6a7480;
    margin-bottom: 4px;
}

.th-docs-sorts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.th-docs-sep {
    color: #9aa3ad;
    user-select: none;
}

.doc-cell {
    font-size: 12px;
    line-height: 1.5;
    vertical-align: top;
}

.doc-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    margin-bottom: 2px;
}

.doc-label {
    color: #5a6454;
    min-width: 5.2em;
}

.doc-yes {
    color: #14532d;
    font-weight: 700;
}

.doc-no {
    color: #8a2a2a;
    font-weight: 600;
}

.doc-partial {
    color: #6a5b2f;
    font-weight: 700;
}

.doc-expiry {
    font-weight: 600;
    color: #1a2218;
}

.col-invite {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.btn-invite-single {
    background: #2a4a5c;
    color: #fff;
    font-weight: 700;
    border: 1px solid #1e3542;
}

.btn-invite-single:hover {
    filter: brightness(1.06);
}

.form-invite-row {
    margin: 0;
}

.form-invite-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
}

.checkbox-label--compact {
    font-size: 12px;
    margin: 0;
    color: #4d5763;
}

.smtp-send-block {
    max-width: 100%;
    border-top: 1px solid #e2e8dc;
    padding-top: 12px;
    margin-top: 4px;
}

.col-actions {
    text-align: right;
    width: 1%;
    white-space: nowrap;
}

.action-stack {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.inline-form-no-margin {
    display: inline-block;
    margin: 0;
}

.app-dialog {
    border: none;
    border-radius: 14px;
    padding: 0;
    max-width: min(560px, 94vw);
    box-shadow: 0 22px 60px rgba(15, 22, 12, 0.35);
}

.app-dialog::backdrop {
    background: rgba(18, 26, 14, 0.55);
}

.dialog-form {
    padding: 22px;
}

.dialog-title {
    margin: 0 0 12px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.setup-dialog--wide {
    max-width: min(920px, 96vw);
}

.setup-launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.setup-launch-btn {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 16px 14px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    text-align: center;
    min-height: 72px;
}

.setup-launch--site {
    background: linear-gradient(135deg, #5a7d3a, #385326);
}

.setup-launch--smtp {
    background: linear-gradient(135deg, #2a5e8e, #1f4466);
}

.setup-launch--users {
    background: linear-gradient(135deg, #6f5a2e, #4f3f1f);
}

.setup-launch--payments {
    background: linear-gradient(135deg, #7a2d2d, #561f1f);
}

.setup-launch--fees {
    background: linear-gradient(135deg, #2f5c4a, #1d3d30);
}

.setup-launch--assoc {
    background: linear-gradient(135deg, #4a3d7a, #2e264d);
}

.user-category-banner {
    border-radius: 12px;
    margin-bottom: 18px;
    padding: 0;
    background: #fff;
    border: 1px solid #d5dcd4;
    border-left: 8px solid var(--user-cat-color, #2f6f3e);
    box-shadow: 0 4px 14px rgba(26, 34, 24, 0.06);
}

.user-category-banner__inner {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-category-banner__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a6b55;
}

.user-category-banner__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #142210;
}

.user-category-banner__key code {
    font-size: 13px;
    background: #eef2eb;
    padding: 3px 8px;
    border-radius: 6px;
}

.user-doc-preview-card {
    margin-bottom: 18px;
}

.user-doc-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.user-doc-thumb {
    margin: 0;
    padding: 0;
    background: #f4f6f2;
    border-radius: 10px;
    border: 1px solid #dce3d8;
    overflow: hidden;
}

.user-doc-thumb figcaption {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    background: #e8ece4;
    color: #2a3324;
}

.user-doc-thumb__link {
    display: block;
    aspect-ratio: 4/3;
    background: #dfe6d8;
}

.user-doc-thumb__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-doc-thumb__pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 12px;
    font-weight: 700;
    color: #2a4a6e;
    text-decoration: underline;
}

.user-doc-thumb__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 12px;
    font-size: 13px;
    color: #6b7565;
    font-style: italic;
}

.user-quota-quick-card {
    margin-bottom: 18px;
}

.user-annual-contrib-card {
    margin-bottom: 18px;
}

.quota-progress {
    height: 10px;
    background: #e0e4db;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
    max-width: 440px;
}

.quota-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #5a8f4a, #2d5a27);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.user-payment-history-card {
    margin-bottom: 18px;
}

.user-history-table {
    font-size: 13px;
}

.doc-upload-intro {
    grid-column: 1 / -1;
    max-width: 640px;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.upload-row-with-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 640px;
}

.upload-row-with-preview__field {
    flex: 1 1 200px;
    min-width: 0;
}

.upload-row-with-preview__field input[type="file"] {
    width: 100%;
    max-width: 100%;
}

.upload-inline-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid #c5ceb8;
    background: #eef1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1a3a5c;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    padding: 4px;
}

.upload-inline-thumb--img {
    padding: 0;
}

.upload-inline-thumb--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-inline-thumb--pdf:hover {
    background: #e3eaf5;
}

.upload-inline-thumb--empty {
    cursor: default;
    color: #8a9384;
    font-weight: 600;
    border-style: dashed;
}

.upload-inline-thumb__dash {
    font-size: 18px;
    line-height: 1;
    opacity: 0.55;
}

.users-legend-payments {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
}

.col-entrata {
    white-space: nowrap;
    font-size: 12px;
}

.quota-light-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.quota-light {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.quota-light--inline {
    vertical-align: middle;
    margin: 0 2px;
}

.quota-light--red {
    background: #c62828;
}

.quota-light--orange {
    background: #ef6c00;
}

.quota-light--yellow {
    background: #f9a825;
}

.quota-light--green {
    background: #2e7d32;
}

.quota-light--na {
    background: #9e9e9e;
}

.quota-light-text {
    font-weight: 600;
    color: #2a3324;
}

.setup-user-cards {
    margin: 12px 0;
}

.setup-pay-lists {
    margin-bottom: 12px;
}

.setup-user-edit-stack {
    max-height: min(48vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
}

.dialog-actions--footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #e2e8dc;
}

textarea {
    font: inherit;
    padding: 10px;
    border: 1px solid #c6d0db;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
}

.calendar-tools .calendar-tool-row {
    margin: 12px 0 18px;
}

/* Pagina invito pubblica: più larga e griglia a due colonne su desktop */
.invite-page.landing-logins {
    grid-template-columns: minmax(300px, 1120px);
    justify-content: center;
    padding: 28px 20px 48px;
    box-sizing: border-box;
}

.invite-box {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 24px 28px 28px;
}

.invite-form-grid {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 12px 24px;
    align-items: start;
}

.invite-form-actions {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.invite-form-actions .btn-cta {
    border: none;
    cursor: pointer;
    font: inherit;
}

.invite-batch-meta {
    margin: 0 0 12px;
}

.invite-batch-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(60, 110, 60, 0.2);
    border: 1px solid rgba(60, 110, 60, 0.45);
    color: #1e3a1e;
    font-weight: 700;
    font-size: 14px;
}

.alert-success-batch {
    background: #e0f3e4;
    border: 1px solid #9bc4a6;
    color: #14532d;
    padding: 12px 14px;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .invite-form-grid {
        grid-template-columns: 1fr;
    }

    .invite-box {
        padding: 18px 16px 22px;
    }
}

.file-input-hint {
    grid-column: 1 / -1;
    display: block;
    font-size: 12px;
    color: #5a6454;
    line-height: 1.35;
    margin: -6px 0 4px;
}

.input-readonly {
    background: #eef1ea;
    color: #3a4534;
}

.copy-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.copy-row input {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .setup-nav {
        grid-template-columns: 1fr 1fr;
    }

    .landing-gallery,
    .landing-logins,
    .split-2,
    .mini-cards {
        grid-template-columns: 1fr;
    }

    .payment-macro-tabs {
        grid-template-columns: 1fr;
    }

    .row-2fields {
        grid-template-columns: 1fr;
    }
}
