:root {
    --blue-deep: #075cb3;
    --blue: #1cb2f8;
    --teal: #199d9a;
    --green: #63ba1a;
    --lime: #b8ea11;
    --dark: #0f172a;
    --text: #16314d;
    --muted: #5d758e;
    --light: #f5fbff;
    --white: #ffffff;
    --border: rgba(7, 92, 179, 0.16);
    --border-strong: rgba(7, 92, 179, 0.28);
    --shadow: 0 22px 60px rgba(15, 64, 118, 0.16);
    --shadow-soft: 0 14px 38px rgba(15, 64, 118, 0.10);
    --danger: #dc2626;
    --warning: #d97706;
    --success: #15803d;
    --radius: 24px;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(28, 178, 248, 0.20), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(99, 186, 26, 0.18), transparent 30rem),
        linear-gradient(135deg, #edf7ff, #f8fff0);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--blue-deep);
    text-decoration: none;
    font-weight: 800;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.35rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 34px rgba(15, 64, 118, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 230px;
    color: var(--dark);
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    box-shadow: 0 14px 30px rgba(7, 92, 179, 0.24);
    color: white;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.brand strong {
    display: block;
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.topnav {
    display: flex;
    flex: 1;
    gap: 0.3rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.topnav a {
    padding: 0.62rem 0.82rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-size: 0.86rem;
    white-space: nowrap;
}

.topnav a.active,
.topnav a:hover {
    border-color: rgba(7, 92, 179, 0.14);
    background: rgba(7, 92, 179, 0.10);
    color: var(--blue-deep);
}

.app-launch-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-grid-icon {
    display: grid;
    width: 18px;
    height: 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.app-grid-icon i {
    display: block;
    border-radius: 4px;
    background: currentColor;
}

.app-grid-icon.large {
    width: 42px;
    height: 42px;
    gap: 6px;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
    font-weight: 900;
}

.page {
    width: min(1420px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 1.45rem 0 3.4rem;
}

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.45rem 0 1.2rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    color: var(--dark);
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

h3 {
    color: var(--dark);
    font-size: 1rem;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--blue-deep);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 900;
}

.muted {
    color: var(--muted);
}

.hero {
    min-height: 72vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 0;
}

.hero p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.landing-hero {
    min-height: 78vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(3rem, 7vw, 5.6rem) 0 2.4rem;
}

.landing-hero-revamp {
    position: relative;
    min-height: 82vh;
}

.landing-hero-revamp::before {
    content: "";
    position: absolute;
    inset: 1.2rem -1.5rem auto auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(184, 234, 17, 0.34), transparent 68%);
    pointer-events: none;
}

.landing-copy h1 {
    max-width: 920px;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.landing-copy > p {
    max-width: 780px;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.75;
}

.trust-strip {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.trust-strip span {
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(7, 92, 179, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.product-preview {
    overflow: hidden;
    border: 1px solid rgba(7, 92, 179, 0.18);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 255, 0.9));
    box-shadow: var(--shadow);
}

.qb-style-preview {
    transform: rotate(1deg);
}

.qb-style-preview .preview-grid {
    background:
        radial-gradient(circle at 18% 12%, rgba(184, 234, 17, 0.12), transparent 30%),
        radial-gradient(circle at 88% 88%, rgba(28, 178, 248, 0.12), transparent 34%);
}

.preview-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(7, 92, 179, 0.12);
    color: var(--dark);
}

.preview-dot {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: var(--blue);
}

.preview-dot:nth-child(2) {
    background: var(--green);
}

.preview-dot:nth-child(3) {
    background: var(--lime);
}

.preview-top strong {
    margin-left: auto;
}

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

.preview-card {
    min-height: 116px;
    padding: 0.9rem;
    border: 1px solid rgba(7, 92, 179, 0.14);
    border-radius: 18px;
    background: white;
    box-shadow: 0 10px 26px rgba(15, 64, 118, 0.08);
}

.preview-card.wide {
    grid-column: 1 / -1;
}

.preview-card span,
.feature-card span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 900;
}

.preview-card strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--dark);
    font-size: 1.35rem;
}

.bar-line {
    height: 12px;
    margin-top: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-deep), var(--blue));
}

.bar-line.two {
    width: 68%;
    background: linear-gradient(90deg, var(--green), var(--lime));
}

.mini-chart {
    display: flex;
    align-items: end;
    gap: 0.45rem;
    height: 58px;
    margin-top: 0.75rem;
}

.mini-chart i {
    width: 22%;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--blue), var(--green));
}

.mini-chart i:nth-child(1) { height: 35%; }
.mini-chart i:nth-child(2) { height: 72%; }
.mini-chart i:nth-child(3) { height: 52%; }
.mini-chart i:nth-child(4) { height: 90%; }

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

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.4rem;
}

.proof-strip article,
.pricing-card,
.integrations-band,
.faq-grid details,
.advisor-panel > div {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.proof-strip article {
    padding: 1rem;
}

.proof-strip strong,
.proof-strip span {
    display: block;
}

.proof-strip strong {
    color: var(--dark);
    font-size: 1.02rem;
}

.proof-strip span {
    margin-top: 0.35rem;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 700;
}

.section-title-block {
    max-width: 820px;
    margin-bottom: 1.1rem;
}

.section-title-block h2,
.split-band h2,
.final-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.section-title-block p {
    font-size: 1rem;
    line-height: 1.65;
}

.feature-suite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card,
.app-plan,
.benefit-grid > div {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    padding: 1.1rem;
}

.feature-card h3,
.app-plan h3 {
    margin: 0.8rem 0 0.45rem;
}

.feature-card p,
.app-plan p,
.benefit-grid p,
.workflow-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.feature-suite-grid-upgraded .feature-card {
    min-height: 210px;
}

.feature-suite-grid-upgraded .feature-card:nth-child(1),
.feature-suite-grid-upgraded .feature-card:nth-child(5),
.feature-suite-grid-upgraded .feature-card:nth-child(9) {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238, 249, 255, 0.86)),
        radial-gradient(circle at top right, rgba(28, 178, 248, 0.14), transparent 40%);
}

.automation-band {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 247, 255, 0.92)),
        radial-gradient(circle at 100% 0%, rgba(99, 186, 26, 0.16), transparent 32%);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 1.25rem;
    overflow: hidden;
}

.pricing-card::before {
    content: "";
    position: absolute;
    right: -4.5rem;
    top: -4.5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    opacity: 0.1;
}

.pricing-card.featured {
    border-color: rgba(7, 92, 179, 0.38);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.95), rgba(232, 245, 255, 0.95)),
        radial-gradient(circle at 90% 0%, rgba(28, 178, 248, 0.18), transparent 36%);
    transform: translateY(-8px);
}

.plan-tag {
    align-self: flex-start;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: rgba(7, 92, 179, 0.1);
    color: var(--blue-deep);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.45rem;
}

.pricing-card p {
    color: var(--muted);
    line-height: 1.65;
}

.pricing-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 1.2rem;
    padding-left: 1.15rem;
    color: var(--text);
    line-height: 1.55;
    font-weight: 800;
}

.pricing-card .button {
    margin-top: auto;
}

.integrations-band {
    padding: clamp(1.2rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(7, 92, 179, 0.9)),
        radial-gradient(circle at 100% 0%, rgba(184, 234, 17, 0.24), transparent 34%);
}

.integrations-band .eyebrow,
.integrations-band h2 {
    color: #ffffff;
}

.integrations-band .muted {
    color: rgba(255, 255, 255, 0.76);
}

.integration-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.integration-grid span {
    padding: 0.62rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 900;
}

.advisor-panel {
    display: grid;
    gap: 0.85rem;
}

.advisor-panel > div {
    padding: 1rem;
}

.advisor-panel strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.advisor-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.faq-grid details {
    padding: 1rem;
}

.faq-grid summary {
    cursor: pointer;
    color: var(--dark);
    font-weight: 900;
}

.faq-grid p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.split-band,
.final-cta {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1.2rem;
    align-items: start;
    margin: 1.2rem 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.workflow-list,
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.workflow-list > div {
    padding: 1rem;
    border: 1px solid rgba(7, 92, 179, 0.12);
    border-radius: 18px;
    background: rgba(245, 251, 255, 0.88);
}

.app-band .app-plan {
    min-height: 210px;
    display: flex;
    flex-direction: column;
}

.app-plan a {
    margin-top: auto;
}

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

.final-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.hero-card,
.card,
.auth-card,
.metric {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.hero-card::before,
.card::before,
.metric::before {
    content: "";
    position: absolute;
    width: 10rem;
    height: 10rem;
    top: -5.5rem;
    right: -5.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    opacity: 0.10;
    pointer-events: none;
}

.hero-card {
    padding: 2rem;
}

.card {
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.auth-card {
    max-width: 480px;
    margin: 7vh auto;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.auth-actions {
    margin: 1rem 0;
}

.app-square-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.85rem;
    align-items: center;
    padding: 0.95rem;
    border: 1px solid rgba(7, 92, 179, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(232,240,254,0.82));
    box-shadow: var(--shadow-soft);
    color: var(--blue-deep);
}

.app-square-cta strong,
.app-square-cta small {
    display: block;
}

.app-square-cta small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.grid {
    display: grid;
    gap: 1rem;
}

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

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

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

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

.app-card {
    display: flex;
    min-height: 310px;
    flex-direction: column;
}

.app-card .button {
    margin-top: auto;
}

.app-count {
    display: grid;
    gap: 0.25rem;
    margin: 0.75rem 0 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(7, 92, 179, 0.14);
    border-radius: 18px;
    background: rgba(7, 92, 179, 0.07);
}

.app-count span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 900;
}

.app-count strong {
    color: var(--dark);
    font-size: 2rem;
    line-height: 1;
}

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

.flow-grid > div {
    min-height: 122px;
    padding: 0.9rem;
    border: 1px solid rgba(7, 92, 179, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.flow-grid strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark);
}

.flow-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.app-select-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.95rem;
    border: 1px solid rgba(7, 92, 179, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
}

.app-select-card input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

.app-select-card strong,
.app-select-card small,
.app-select-card em {
    display: block;
}

.app-select-card small {
    margin: 0.35rem 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.app-select-card em {
    color: var(--blue-deep);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
}

.align-start {
    align-items: start;
}

.stack {
    display: grid;
    gap: 1rem;
}

.new-transactions-page {
    --new-bg: #f6f7fb;
    --new-card: #ffffff;
    --new-text: #1f2937;
    --new-muted: #6b7280;
    --new-border: #e5e7eb;
    --new-primary: #2563eb;
    --new-primary-dark: #1d4ed8;
    --new-secondary: #0f766e;
    --new-danger: #dc2626;
    --new-success: #16a34a;
    color: var(--new-text);
}

.new-transaction-tabs {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.module-tabs {
    position: sticky;
    top: 82px;
    z-index: 20;
    display: flex;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
}

.module-tabs a {
    flex: 0 0 auto;
    padding: 0.58rem 0.75rem;
    border-radius: 999px;
    background: rgba(7, 92, 179, 0.08);
    color: var(--blue-deep);
    font-size: 0.78rem;
    white-space: nowrap;
}

.module-tabs a:hover {
    background: rgba(7, 92, 179, 0.16);
}

.entry-guide {
    margin-bottom: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(7, 92, 179, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.entry-guide p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.tab-button {
    border: 1px solid var(--new-border);
    background: #ffffff;
    color: var(--new-text);
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.tab-button.active {
    background: var(--new-primary);
    color: #ffffff;
    border-color: var(--new-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.transaction-card {
    border-color: var(--new-border);
    border-radius: 14px;
    background: var(--new-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.transaction-card::before {
    display: none;
}

.new-transactions-page label {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    color: var(--new-text);
    font-size: 0.9rem;
    font-weight: 800;
}

.new-transactions-page input,
.new-transactions-page select,
.new-transactions-page textarea {
    width: 100%;
    border: 1px solid var(--new-border);
    border-radius: 10px;
    padding: 0.62rem 0.75rem;
    background: #ffffff;
    color: var(--new-text);
    font: inherit;
    font-weight: 500;
}

.new-transactions-page input:focus,
.new-transactions-page select:focus,
.new-transactions-page textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: var(--new-primary);
}

.new-entry-table-wrap {
    border: 1px solid var(--new-border);
    border-radius: 12px;
}

.new-entry-table-wrap table {
    min-width: 900px;
}

.new-entry-table-wrap th {
    background: #f9fafb;
    color: var(--new-muted);
}

.button-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.journal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.summary-box {
    background: #f9fafb;
    border: 1px solid var(--new-border);
    border-radius: 12px;
    padding: 0.75rem;
}

.summary-box span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--new-muted);
    font-size: 0.76rem;
}

.summary-box strong {
    color: var(--new-text);
    font-size: 1.12rem;
}

.alert {
    display: none;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
}

.alert.show {
    display: block;
}

.alert.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.hint {
    color: var(--new-muted);
    font-size: 0.76rem;
    font-weight: 500;
}

.button.danger {
    background: var(--new-danger);
    color: #ffffff;
}

.remove-line {
    white-space: nowrap;
}

.metric {
    min-height: 142px;
    padding: 1.05rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.metric span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    font-weight: 900;
}

.metric strong {
    display: block;
    margin: 0.48rem 0;
    color: var(--dark);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.metric small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.4;
}

.metric.warning {
    border-color: rgba(217, 119, 6, 0.36);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), #fff8ed);
}

.metric.warning strong {
    color: var(--warning);
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.76rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: white;
    color: var(--text);
    box-shadow: 0 6px 16px rgba(15, 64, 118, 0.06);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 64, 118, 0.12);
}

.button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: white;
    box-shadow: 0 14px 30px rgba(7, 92, 179, 0.24);
}

.button.secondary {
    border-color: rgba(7, 92, 179, 0.20);
    background: rgba(7, 92, 179, 0.10);
    color: var(--blue-deep);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.78);
}

.button.danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: #fff7f7;
    color: var(--danger);
}

.button.small {
    min-height: 34px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.actions,
.toolbar,
.section-head,
.inline-form {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.form-stack {
    display: grid;
    gap: 0.9rem;
}

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

label {
    display: grid;
    gap: 0.35rem;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(7, 92, 179, 0.28);
    border-radius: 14px;
    padding: 0.74rem 0.78rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-deep);
    outline: 3px solid rgba(28, 178, 248, 0.18);
}

.inline-check {
    display: inline-flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.4rem;
}

.inline-check input {
    width: 16px;
    height: 16px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

th,
td {
    padding: 0.78rem 0.82rem;
    border-bottom: 1px solid rgba(7, 92, 179, 0.12);
    text-align: left;
    vertical-align: top;
    font-size: 0.88rem;
}

th {
    background: #eaf5ff;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.56);
}

tbody tr:hover {
    background: #f7fff0;
}

.amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.entry-table input,
.entry-table select {
    min-width: 150px;
}

.status,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    border: 1px solid rgba(7, 92, 179, 0.14);
    background: rgba(7, 92, 179, 0.10);
    color: var(--blue-deep);
    font-size: 0.75rem;
    font-weight: 900;
}

.flash-stack {
    display: grid;
    gap: 0.55rem;
    margin: 0.5rem 0 1rem;
}

.flash {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.82rem 1rem;
    background: rgba(255, 255, 255, 0.90);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.flash.success {
    border-color: rgba(21, 128, 61, 0.30);
    background: #effcf4;
    color: #166534;
}

.flash.danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: #fff1f2;
    color: #991b1b;
}

.flash.warning {
    border-color: rgba(217, 119, 6, 0.35);
    background: #fff8ed;
    color: #92400e;
}

.clean-list {
    padding-left: 1.1rem;
    color: var(--text);
    line-height: 1.9;
}

.link-danger {
    border: 0;
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    font-weight: 900;
}

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

    .landing-hero,
    .split-band,
    .final-cta,
    .grid.two,
    .grid.four,
    .flow-grid,
    .hero {
        grid-template-columns: 1fr;
    }

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

    .pricing-card.featured {
        transform: none;
    }

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

    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .userbox {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .page {
        width: min(100vw - 16px, 100%);
    }

    .feature-suite-grid,
    .benefit-grid,
    .workflow-list,
    .proof-strip,
    .plan-grid,
    .faq-grid,
    .grid.three,
    .app-selection-grid,
    .grid.five,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        padding-top: 2rem;
    }

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

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

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    h1 {
        font-size: 2.15rem;
    }
}

/* Compact module workspace refresh inspired by the customer module benchmark. */
body {
    background:
        radial-gradient(circle at top left, rgba(7, 92, 179, 0.10), transparent 28rem),
        linear-gradient(135deg, #f8fafc, #eef6ff);
}

.topbar {
    padding: 0.85rem 1.5rem;
    background: rgba(255, 255, 255, 0.90);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.brand {
    min-width: 205px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    box-shadow: none;
    background: var(--blue-deep);
}

.topnav a {
    padding: 0.56rem 0.76rem;
    color: #64748b;
}

.topnav a.active,
.topnav a:hover {
    background: #eef6ff;
    color: var(--blue-deep);
}

.page {
    width: min(1180px, calc(100vw - 32px));
    padding-top: 1.5rem;
}

.page-head,
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.page-head h1,
.page-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.card,
.metric,
.auth-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.card::before,
.metric::before {
    display: none;
}

.card:hover,
.metric:hover {
    transform: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.metric {
    min-height: auto;
    padding: 1rem;
}

.metric span,
.metric-card span {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.metric strong,
.metric-card strong {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 1.35rem;
}

.button,
button {
    min-height: 40px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 0.88rem;
}

.button.primary,
button.primary {
    background: var(--blue-deep);
    color: #ffffff;
}

.button.secondary,
button.secondary {
    background: #eef6ff;
    color: var(--blue-deep);
}

.button.ghost,
button.ghost {
    background: #f1f5f9;
    color: #0f172a;
}

input,
select,
textarea {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(7, 92, 179, 0.15);
    border-color: var(--blue-deep);
}

.table-toolbar,
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.toolbar-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.row-actions a,
.row-actions button {
    min-height: 34px;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--blue-deep);
    font-size: 0.82rem;
    font-weight: 800;
}

.table-scroll,
.table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

th {
    color: #64748b;
    background: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    border-bottom: 1px solid #f1f5f9;
}

td small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
}

.pill {
    border-radius: 999px;
    background: #eef6ff;
    color: var(--blue-deep);
    font-size: 0.75rem;
    font-weight: 800;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.42);
}

.modal-backdrop:target {
    display: grid;
}

.modal {
    width: min(720px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.modal-body {
    padding: 1rem;
}

.close {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .page-head,
    .page-header,
    .table-toolbar,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-actions {
        align-items: stretch;
    }
}

/* AllBooks production workspace UI - replicated from the customer module benchmark. */
:root {
    --primary: #075CB3;
    --primary-hover: #05468a;
    --surface: #ffffff;
    --background: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
}

body {
    background: var(--background);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    height: 64px;
    padding: 0 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.brand {
    gap: 0.75rem;
    min-width: auto;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
}

.brand strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.brand small {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.topnav {
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.topnav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.topnav a:hover,
.topnav a.active {
    background: #eff6ff;
    color: var(--primary);
}

.userbox {
    gap: 1rem;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
}

.page {
    width: min(1280px, 100%);
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem 3rem;
}

.page-head,
.page-header {
    align-items: center;
    margin-bottom: 2rem;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

h1 {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

h2 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.muted,
.section-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.module-tabs,
.customer-tabs {
    position: sticky;
    top: 72px;
    z-index: 25;
    display: flex;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    backdrop-filter: blur(18px);
}

.module-tabs a,
.module-tabs button,
.customer-tabs a,
.tab-btn,
.module-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.module-tabs a:hover,
.module-tabs button:hover,
.customer-tabs a:hover,
.tab-btn:hover,
.module-action:hover {
    border-color: rgba(37, 99, 235, 0.32);
    background: #eff6ff;
    color: var(--primary);
}

.module-tabs a.active,
.module-tabs button.active,
.customer-tabs a.active,
.tab-btn.active,
.module-action.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), #14a6e8);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.module-tabs a.active::after,
.customer-tabs a.active::after,
.tab-btn.active::after {
    display: none;
}

.module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 900;
}

.module-action.active .module-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.module-panel {
    display: none;
}

.module-panel.active {
    display: grid;
    animation: fadeIn 0.2s ease-in-out;
}

.card.module-panel.active {
    display: block;
}

.tab-content {
    display: none;
}

.tab-content.active-content {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

.grid.four,
.KPI-container {
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.card,
.metric,
.metric-card,
.auth-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.metric,
.metric-card {
    display: flex;
    min-height: auto;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

.metric span,
.metric-label,
.metric-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric strong,
.metric-value,
.metric-card strong {
    margin-top: 0.5rem;
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.primary-metric {
    border-left: 4px solid var(--primary);
}

.section-head,
.table-toolbar {
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card > .section-head:first-child {
    margin: -1.2rem -1.2rem 1.2rem;
}

.pill,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
}

.pill.informational,
.pill.configuration,
.pill.accounting {
    background: #eff6ff;
    color: var(--primary);
}

.table-scroll,
.table-wrap {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.responsive-table,
table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    text-align: left;
}

.responsive-table th,
th {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.responsive-table td,
td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.row-actions {
    gap: 0.5rem;
}

.row-actions a,
.row-actions button,
.btn-action {
    min-height: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.row-actions a:hover,
.row-actions button:hover,
.btn-action:hover {
    background: #eff6ff;
}

.btn-action.secondary {
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    gap: 1.25rem 1rem;
    padding: 1.5rem;
}

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

.col-span-2 {
    grid-column: span 2;
}

.col-span-full,
.full {
    grid-column: 1 / -1;
}

.form-group,
label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group label,
label {
    color: #334155;
    font-weight: 500;
}

.required::after,
label.required::after,
.form-group label.required::after {
    content: " *";
    color: #ef4444;
}

input,
select,
textarea {
    min-height: 40px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 92, 179, 0.15);
    outline: none;
}

.checkbox-group,
.check-line {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.checkbox-group input,
.check-line input,
.inline-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.button,
button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.6rem 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.button.primary,
button.primary {
    background: var(--primary);
    color: #ffffff;
}

.button.primary:hover,
button.primary:hover {
    background: var(--primary-hover);
}

.button.secondary,
button.secondary {
    border-color: var(--border-color);
    background: #ffffff;
    color: var(--text-main);
}

.button.secondary:hover,
button.secondary:hover {
    border-color: var(--border-hover);
    background: #f8fafc;
}

.button.ghost,
button.ghost {
    background: #f1f5f9;
    color: var(--text-main);
}

.form-actions,
.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form-actions.split-buttons {
    justify-content: space-between;
}

.text-right,
.amount {
    text-align: right;
}

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

.text-primary {
    color: var(--primary);
}

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

.bold-text {
    font-weight: 600;
}

.pad-box {
    padding: 3rem;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .topbar {
        height: auto;
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .topnav {
        order: 3;
        width: 100%;
        height: auto;
    }

    .page-head,
    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid.four,
    .grid.five,
    .layout-3-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .page {
        margin-top: 1rem;
        padding-inline: 1rem;
    }

    .grid.four,
    .grid.five,
    .layout-3-col,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .col-span-2,
    .col-span-full,
    .full {
        grid-column: 1;
    }
}

.admin-card {
    margin-bottom: 1.2rem;
}

.admin-org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1rem;
}

.admin-mini-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.record-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.record-card-head h3 {
    margin-bottom: 0.2rem;
}

.form-stack.compact {
    gap: 0.85rem;
}

.trust-strip.compact {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    background: rgba(7, 92, 179, 0.10);
    color: var(--blue-deep);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill.pending {
    background: #fffbeb;
    color: #b45309;
}

.status-pill.approved,
.status-pill.confirmed {
    background: #ecfdf3;
    color: #047857;
}

.status-pill.rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-table {
    min-width: 1120px;
}

.admin-table td,
.admin-table th {
    vertical-align: top;
}

.action-cell,
.inline-actions,
.button-row,
.danger-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.inline-actions input {
    min-width: 180px;
}

.admin-user-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.1fr) minmax(150px, 0.9fr) minmax(120px, 0.7fr) auto auto;
    gap: 0.55rem;
    align-items: center;
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.empty-state {
    padding: 1.2rem;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.button.danger,
button.danger {
    border-color: rgba(220, 38, 38, 0.22);
    background: #fef2f2;
    color: #b91c1c;
}

.button.danger:hover,
button.danger:hover {
    background: #fee2e2;
}

@media (max-width: 980px) {
    .admin-user-form {
        grid-template-columns: 1fr;
    }
}
