@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
    --navy-950: #021743;
    --navy-900: #07235b;
    --navy-700: #1b3f87;
    --navy-500: #4765a1;
    --ink: #112654;
    --ink-muted: #4f6594;
    --line: #d7e3f6;
    --line-strong: #bdcfee;
    --surface: #ffffff;
    --surface-soft: #f6f9ff;
    --surface-accent: #eef4ff;
    --orange: #ea7b17;
    --orange-deep: #cf6306;
    --success-bg: #e7f6eb;
    --success-text: #13603c;
    --danger-bg: #feeaea;
    --danger-text: #9b2f2a;
    --shadow-soft: 0 10px 26px rgba(12, 35, 84, 0.08);
    --shadow-card: 0 18px 40px rgba(12, 35, 84, 0.1);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
}

h1,
h2,
h3 {
    font-family: "DM Sans", "Manrope", sans-serif;
    letter-spacing: -0.015em;
    color: var(--navy-900);
}

a,
.btn-link {
    color: inherit;
}

.auth-shell-login {
    background: var(--kivi-100, #e9ecf0);
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    color: #0f172a;
}

.auth-shell-login .auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.saku-auth {
    width: min(1160px, 100%);
}

.saku-auth-frame {
    width: 100%;
    border-radius: 1.6rem;
    background: #e9ecf0;
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(360px, 1fr);
    gap: 0;
    overflow: hidden;
}

.saku-auth-logo {
    display: block;
    width: 136px;
    height: auto;
}

.saku-auth-mobile-head,
.saku-auth-mobile-foot {
    display: none;
}

.saku-auth-left {
    padding: 2.25rem 2.3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 640px;
}

.saku-auth-left-content {
    display: grid;
    gap: 0.9rem;
}

.saku-auth-left h1 {
    margin: 1.3rem 0 0;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    color: #0f172a;
}

.saku-auth-left p {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 400;
    line-height: 1.5;
    color: #475569;
}

.saku-auth-left ul,
.saku-auth-mobile-foot ul,
.passkey-benefits-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.72rem;
}

.saku-auth-left li,
.saku-auth-mobile-foot li,
.passkey-benefits-list li {
    position: relative;
    padding-left: 1rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.48;
}

.saku-auth-left li::before,
.saku-auth-mobile-foot li::before,
.passkey-benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 999px;
    background: #64748b;
}

.saku-auth-left-footer {
    margin-top: auto;
    display: grid;
    gap: 0.42rem;
}

.saku-auth-left-footer p {
    font-size: 0.94rem;
}

.saku-auth-card {
    margin: 0.8rem;
    margin-left: 0;
    border-radius: 1.15rem;
    background: #ffffff;
    padding: 1.7rem 1.65rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.saku-auth-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.34rem, 2.6vw, 1.62rem);
    font-weight: 500;
    line-height: 1.25;
}

.saku-auth-intro {
    margin: 0.4rem 0 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.45;
}

.saku-auth-highlight {
    margin-top: 0.9rem;
    border-radius: 0.95rem;
    background: #f3f4f6;
    padding: 0.95rem 1rem;
}

.saku-auth-actions {
    margin-top: 1rem;
    display: grid;
    gap: 0.68rem;
}

.saku-auth-btn {
    min-height: 48px;
    border-radius: 0.78rem;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.saku-auth-btn-primary {
    color: #ffffff;
    background: #0f172a;
}

.saku-auth-btn-primary:hover {
    background: #020617;
}

.saku-auth-btn-outline {
    color: #0f172a;
    background: #ffffff;
    border-color: #d1d5db;
}

.saku-auth-btn-outline:hover {
    background: #f1f5f9;
}

.saku-auth-btn-compact {
    min-height: 46px;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
}

.saku-auth-form {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.44rem;
}

.saku-auth-form label {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
}

.saku-auth-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.62rem;
}

.saku-auth-input-wrap {
    display: grid;
    gap: 0.62rem;
}

.saku-auth-input {
    width: 100%;
    min-height: 46px;
    border-radius: 0.78rem;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #0f172a;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1rem;
    padding: 0.6rem 0.82rem;
}

.saku-auth-input::placeholder {
    color: #94a3b8;
}

.saku-auth-input:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
}

.saku-auth-back {
    margin: 0;
    padding: 0;
    width: fit-content;
    border: 0;
    background: transparent;
    color: #475569;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.saku-auth-back:hover {
    color: #0f172a;
}

.saku-auth .divider {
    margin: 1.1rem 0;
    text-align: center;
    position: relative;
    color: #64748b;
    font-size: 0.9rem;
}

.saku-auth .divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid #e5e7eb;
}

.saku-auth .divider span {
    position: relative;
    z-index: 1;
    background: #ffffff;
    padding: 0 0.7rem;
}

.saku-auth .oauth-grid {
    display: grid;
    gap: 0.62rem;
}

.saku-auth .oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.78rem;
    min-height: 48px;
    padding: 0.72rem 0.95rem;
    text-decoration: none;
    color: #0f172a;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: #ffffff;
}

.saku-auth .oauth-btn:hover {
    background: #f1f5f9;
}

.saku-auth .oauth-btn svg {
    width: 1.08rem;
    height: 1.08rem;
}

.saku-auth .disclaimer {
    margin: 1rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.saku-auth .disclaimer a,
.saku-auth-manage-link a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.saku-auth-manage-link {
    margin: 0.82rem 0 0;
    color: #475569;
    font-size: 0.9rem;
    text-align: right;
}

.saku-passkey-wrap {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.52rem;
}

.saku-passkey-card {
    width: 100%;
    border: 0;
    border-radius: 1rem;
    background: #f3f4f6;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.78rem 0.88rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.saku-passkey-card:hover {
    background: #e9edf2;
}

.saku-passkey-card:disabled {
    opacity: 0.72;
    cursor: wait;
}

.saku-passkey-card-main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
}

.saku-passkey-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    background: #dfe5eb;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.saku-passkey-avatar svg {
    width: 1.4rem;
    height: 1.4rem;
}

.saku-passkey-email {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saku-passkey-chevron {
    width: 1.15rem;
    height: 1.15rem;
    color: #475569;
    flex-shrink: 0;
}

.saku-passkey-chevron svg {
    width: 100%;
    height: 100%;
}

.saku-passkey-card .btn-spinner {
    border-color: rgba(71, 85, 105, 0.3);
    border-top-color: #0f172a;
    flex-shrink: 0;
}

.passkey-email {
    margin: 0.72rem 0 0;
    border-radius: 0.78rem;
    background: #f3f4f6;
    padding: 0.6rem 0.72rem;
    font-size: 0.92rem;
    color: #475569;
}

.company-validation-row {
    grid-template-columns: 1fr;
}

.full-width-action {
    width: 100%;
}

.auth-shell-login .form-error,
.auth-shell-login .form-success {
    margin: 0.7rem 0 0;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.62rem;
}

.auth-shell-login .form-error {
    border: 1px solid #f7c9c9;
    background: #feeaea;
    color: #9b2f2a;
}

.auth-shell-login .form-success {
    border: 1px solid #c9ebd6;
    background: #e7f6eb;
    color: #13603c;
}

.auth-shell-login .btn-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

.auth-shell-login .saku-auth-btn-outline .btn-spinner {
    border-color: rgba(71, 85, 105, 0.28);
    border-top-color: #0f172a;
}

.auth-shell-login .saku-auth-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.saku-methods-card {
    gap: 0.9rem;
}

.saku-methods .saku-auth-back {
    margin-bottom: 0.2rem;
}

.saku-methods-empty {
    margin-top: 0.7rem;
    border-radius: 1rem;
    background: #f3f4f6;
    padding: 1.35rem 1rem;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.48rem;
}

.saku-methods-fingerprint {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 0.9rem;
    background: #d8dee5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.saku-methods-fingerprint svg,
.saku-methods-item-icon svg,
.saku-methods-delete svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.saku-methods-empty-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
}

.saku-methods-empty-text {
    margin: 0;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.45;
    max-width: 42ch;
}

.saku-methods-list {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.7rem;
}

.saku-methods-item {
    border-radius: 1rem;
    background: #f3f4f6;
    padding: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.material-symbols-outlined,
.material-symbols-rounded {
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "opsz" 24, "wght" 400, "FILL" 0, "GRAD" 0;
}

.saku-methods-activate {
    border: 0;
    background: transparent;
    color: inherit;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    text-align: left;
    border-radius: 0.8rem;
    padding: 0;
    transition: background-color 0.16s ease;
}

.saku-methods-activate:hover {
    background: rgba(255, 255, 255, 0.45);
}

.saku-methods-activate:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

.saku-methods-activate:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.saku-methods-item-main {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.saku-methods-activate-hint {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.saku-methods-item-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.8rem;
    background: #d8dee5;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.saku-methods-item-text {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.saku-methods-item-text span:first-child {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.saku-methods-item-text span:last-child {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.4;
}

.saku-methods-current {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #d8f0e5;
    color: #12603d;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

.saku-methods-delete {
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 0.74rem;
    background: #fde8ec;
    color: #a01030;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.saku-methods-delete:hover {
    background: #f7d4dd;
    color: #8c0e2a;
}

.saku-methods-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.saku-methods-add {
    margin-top: auto;
    width: 100%;
}

.saku-methods-continue {
    margin-top: 0.55rem;
    width: 100%;
}

@media (max-width: 560px) {
    .saku-methods-item {
        align-items: flex-start;
    }

    .saku-methods-item-text span:last-child {
        font-size: 0.82rem;
    }
}

@media (max-width: 980px) {
    .saku-auth-frame {
        grid-template-columns: 1fr;
        border-radius: 1.2rem;
        background: #e9ecf0;
    }

    .saku-auth-left {
        display: none;
    }

    .saku-auth-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.2rem 1.25rem 0.95rem;
    }

    .saku-auth-mobile-head h1 {
        margin: 0;
        font-size: clamp(2rem, 8vw, 2.6rem);
        font-weight: 500;
        line-height: 1.04;
        color: #0f172a;
    }

    .saku-auth-card {
        margin: 0 0.6rem;
        padding: 1.2rem 1.05rem;
    }

    .saku-auth-mobile-foot {
        display: grid;
        gap: 0.68rem;
        padding: 1rem 1.25rem 1.5rem;
        color: #475569;
        font-size: 0.98rem;
    }

    .saku-auth-mobile-foot p {
        margin: 0;
        line-height: 1.46;
    }

    .saku-auth-mobile-divider {
        height: 1px;
        background: #bdc7d3;
        margin: 0.22rem 0;
    }
}

@media (max-width: 560px) {
    .auth-shell-login .auth-main {
        padding: 0;
    }

    .saku-auth-frame {
        border-radius: 0;
        min-height: 100vh;
    }

    .saku-auth-input-row {
        grid-template-columns: 1fr;
    }

    .saku-auth-btn-compact {
        width: 100%;
    }
}

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

.auth-main {
    min-height: 100vh;
    display: grid;
    align-content: start;
    justify-items: center;
    padding: clamp(1rem, 2.4vw, 2rem);
}

.auth-shell-login .auth-main {
    align-content: center;
}

.auth-panel,
.portal-shell,
.permission-shell {
    width: min(1280px, 100%);
}

.login-panel {
    margin-top: auto;
    margin-bottom: auto;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(300px, 0.95fr);
    gap: clamp(1rem, 2.6vw, 2.4rem);
    align-items: stretch;
}

.auth-copy {
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
    padding: clamp(1rem, 2.2vw, 2rem);
    box-shadow: var(--shadow-soft);
}

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

.auth-brand-logo {
    display: block;
    width: clamp(150px, 34%, 230px);
    height: auto;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--navy-500);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.auth-copy h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 3.7vw, 2.7rem);
}

.subtitle {
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.02rem;
    line-height: 1.58;
    max-width: 56ch;
}

.auth-points {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--ink-muted);
    display: grid;
    gap: 0.44rem;
}

.auth-card-wrap {
    display: flex;
}

.auth-card {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
    padding: clamp(1rem, 2.2vw, 1.7rem);
    box-shadow: var(--shadow-card);
}

.auth-card h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.34rem, 2.3vw, 1.95rem);
}

.card-intro {
    margin: 0 0 0.95rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

.auth-form label,
.permission-form-row label {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.email-row {
    margin-top: 0.34rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.62rem;
}

.email-row input,
.permission-form-row input[type="email"],
.permission-form-row input[type="date"] {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 0.82rem;
    min-height: 46px;
    padding: 0.64rem 0.88rem;
    font-size: 0.97rem;
    color: var(--ink);
    background: #fff;
}

.email-row input:focus,
.permission-form-row input:focus {
    outline: 2px solid rgba(27, 63, 135, 0.2);
    border-color: var(--navy-700);
}

.email-row button {
    border: 0;
    border-radius: 0.82rem;
    min-height: 46px;
    padding: 0 1.15rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
    box-shadow: 0 8px 20px rgba(7, 35, 91, 0.26);
}

.action-btn,
.primary-action,
.ghost-action,
.oauth-btn,
.portal-store-link {
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.action-btn:hover,
.primary-action:hover,
.oauth-btn:hover,
.portal-store-link:hover {
    transform: translateY(-1px);
}

.primary-action,
.ghost-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.82rem;
    font-weight: 700;
    min-height: 46px;
    padding: 0.72rem 1.18rem;
}

.primary-action {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
    box-shadow: 0 8px 20px rgba(7, 35, 91, 0.24);
}

.primary-action:hover {
    box-shadow: 0 12px 24px rgba(7, 35, 91, 0.28);
}

.ghost-action {
    border: 1px solid var(--line-strong);
    color: var(--navy-900);
    background: #fff;
}

.ghost-action:hover {
    border-color: #9fb6de;
    background: var(--surface-soft);
}

.danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 0.82rem;
    padding: 0.72rem 1.18rem;
    border: 1px solid #c83a35;
    background: #d9413b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.danger-action:hover {
    background: #be342f;
    border-color: #a82d29;
    transform: translateY(-1px);
}

.auth-actions,
.notfound-actions {
    margin-top: 1rem;
    display: grid;
    gap: 0.66rem;
}

.passkey-benefits {
    margin: 0.75rem 0 0.9rem;
    border: 1px solid #d8e6fb;
    border-radius: 0.86rem;
    background: var(--surface-soft);
    padding: 0.84rem 0.9rem;
}

.passkey-benefit-title {
    margin: 0;
    font-weight: 700;
    color: var(--navy-900);
}

.passkey-benefits ul {
    margin: 0.45rem 0 0;
    padding-left: 1.12rem;
    color: var(--ink-muted);
    display: grid;
    gap: 0.3rem;
}

.passkey-email {
    margin: 0 0 0.48rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.72rem;
    font-size: 0.92rem;
    background: #edf4ff;
    color: var(--ink-muted);
}

.company-validation-form {
    margin-top: 0.95rem;
}

.company-validation-row {
    grid-template-columns: 1fr;
}

.full-width-action {
    width: 100%;
    margin-top: 0.72rem;
}

.divider {
    margin: 1.22rem 0 0.95rem;
    text-align: center;
    position: relative;
    color: var(--ink-muted);
    font-size: 0.84rem;
}

.divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--line);
}

.divider span {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 0.55rem;
}

.oauth-grid {
    display: grid;
    gap: 0.62rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 0.82rem;
    padding: 0.68rem 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
}

.oauth-google:hover,
.oauth-facebook:hover {
    border-color: #9fb6de;
    background: var(--surface-soft);
}

.oauth-btn svg {
    width: 1.06rem;
    height: 1.06rem;
}

.disclaimer {
    margin: 0.95rem 0 0;
    color: var(--ink-muted);
    font-size: 0.79rem;
    line-height: 1.5;
}

.form-error {
    margin: 0.62rem 0 0;
    border: 1px solid #f7c9c9;
    border-radius: 0.7rem;
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.48rem 0.6rem;
}

.form-success {
    margin: 0.62rem 0 0;
    border: 1px solid #c9ebd6;
    border-radius: 0.7rem;
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.48rem 0.6rem;
}

.portal-shell,
.permission-shell {
    display: grid;
    gap: clamp(1rem, 2vw, 1.7rem);
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(1rem, 2.1vw, 1.7rem);
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.portal-logout {
    min-width: 160px;
}

.portal-section {
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(0.95rem, 2vw, 1.4rem);
}

.portal-section h2,
.permission-section h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.portal-lead,
.permission-lead {
    margin: 0 0 1rem;
    color: var(--ink-muted);
    line-height: 1.55;
    max-width: 68ch;
}

.portal-grid,
.permission-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.permission-grid {
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}

.portal-card,
.permission-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(10, 31, 75, 0.08);
    padding: 1rem;
    text-decoration: none;
}

.portal-card {
    display: grid;
    gap: 0.64rem;
}

.portal-card:hover,
.permission-card:hover {
    border-color: #a7c0e6;
}

.portal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--ink-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.portal-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #c8daf6;
    background: var(--surface-accent);
    color: var(--navy-900);
    padding: 0.23rem 0.56rem;
}

.portal-arrow {
    color: var(--navy-700);
    font-size: 1.05rem;
}

.portal-card h3,
.permission-card-head h3 {
    margin: 0;
    font-size: 1.12rem;
}

.portal-card p,
.permission-card p,
.permission-card dd {
    margin: 0;
    color: var(--ink-muted);
    line-height: 1.53;
}

.portal-cta {
    color: var(--navy-900);
    font-weight: 800;
}

.portal-store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portal-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.62rem;
    border-radius: 0.66rem;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.portal-store-link svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.portal-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
}

.portal-callout p {
    margin: 0.38rem 0 0;
    color: var(--ink-muted);
    line-height: 1.58;
}

.permission-header {
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(1rem, 2.1vw, 1.7rem);
}

.permission-header h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.6rem, 3.1vw, 2.4rem);
}

.permission-section {
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(0.95rem, 2vw, 1.4rem);
}

.permission-feedback {
    border: 1px solid #b7e3cb;
    border-radius: 0.86rem;
    background: var(--success-bg);
    color: var(--success-text);
    font-weight: 700;
    padding: 0.72rem 0.88rem;
}

.permission-feedback-error {
    border-color: #f3b7b7;
    background: var(--danger-bg);
    color: var(--danger-text);
}

.permission-empty {
    margin: 0;
    border: 1px dashed var(--line-strong);
    border-radius: 0.85rem;
    color: var(--ink-muted);
    background: var(--surface-soft);
    padding: 0.85rem 0.95rem;
}

.permission-card {
    display: grid;
    gap: 0.65rem;
}

.permission-card-head {
    display: grid;
    gap: 0.28rem;
}

.permission-subtle {
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0.28rem 0.56rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.permission-badge-off {
    color: #7f5b1b;
    background: #ffefc8;
}

.permission-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.32rem 0.56rem;
}

.permission-card dt {
    color: var(--ink-muted);
    font-size: 0.84rem;
}

.permission-action {
    margin-top: 0.2rem;
    justify-self: start;
}

.permission-share-form {
    margin-top: 0.64rem;
    display: grid;
    gap: 0.6rem;
}

.permission-form-row {
    display: grid;
    gap: 0.34rem;
}

.permission-checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
}

.permission-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.permission-dialog {
    width: min(520px, calc(100vw - 2rem));
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 22px 44px rgba(10, 31, 75, 0.24);
    padding: 1.1rem 1.2rem;
}

.permission-dialog::backdrop {
    background: rgba(4, 19, 50, 0.45);
}

.account-delete-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
    color: var(--ink-muted);
}

.account-delete-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.account-delete-confirmation {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--ink);
    font-weight: 600;
}

.account-delete-confirmation input {
    margin-top: 0.2rem;
}

.account-delete-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.action-btn:disabled,
.primary-action:disabled,
.ghost-action:disabled {
    cursor: wait;
    opacity: 0.85;
}

#blazor-error-ui {
    color: #262700;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.hidden-block {
    display: none !important;
}

.hidden-inline {
    display: none !important;
}

.saku-portal-body .auth-main {
    display: block;
    padding: 0;
}

.saku-portal {
    width: 100%;
    background: #ffffff;
    color: #131313;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
}

.saku-portal h1,
.saku-portal h2,
.saku-portal h3 {
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}

.saku-content-wrap {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 3rem);
    padding-right: clamp(1rem, 3vw, 3rem);
}

.saku-topbar {
    width: min(1260px, 100%);
    margin: 0 auto;
    padding: 1.4rem clamp(1rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.saku-brand img {
    width: clamp(110px, 16vw, 190px);
    height: auto;
    display: block;
}

.saku-top-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.saku-top-actions form {
    margin: 0;
}

.saku-user-display {
    font-weight: 700;
    color: #1c1d23;
}

.saku-pill {
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.72rem 1.75rem;
    line-height: 1;
    color: #212121;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.saku-pill:hover {
    transform: translateY(-1px);
}

.saku-pill-muted {
    background: #d7dfea;
}

.saku-pill-primary {
    background: #e9b300;
}

.saku-hero {
    position: relative;
    min-height: min(70vh, 560px);
    overflow: hidden;
}

.saku-hero-image {
    width: 100%;
    height: 100%;
    min-height: min(70vh, 560px);
    object-fit: cover;
    display: block;
}

.saku-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.saku-hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1260px, 100%);
    padding-left: clamp(1rem, 3vw, 3rem);
    padding-right: clamp(1rem, 3vw, 3rem);
    color: #ffffff;
}

.saku-hero h1 {
    margin: 0;
    max-width: 14ch;
    color: #ffffff;
    font-size: clamp(2rem, 5.1vw, 4rem);
    line-height: 1.05;
    font-weight: 500;
}

.saku-hero h1 span {
    color: #ea7b17;
}

.saku-hero p {
    margin: 1.2rem 0 0;
    max-width: 42ch;
    font-size: clamp(1rem, 1.5vw, 1.7rem);
    line-height: 1.5;
}

.saku-store-row {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.saku-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    text-decoration: none;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.saku-store-button:hover {
    transform: translateY(-1px);
}

.saku-store-badge {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
}

.saku-hero-link {
    margin-top: 1.1rem;
    display: inline-block;
    color: #ea7b17;
    font-weight: 700;
    font-size: 1.02rem;
}

.saku-features,
.saku-steps {
    padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.saku-features h2,
.saku-steps h2,
.saku-footer h2 {
    margin: 0 0 1.4rem;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    color: #1c1d23;
}

.saku-features h2 span,
.saku-steps h2 span {
    color: #ea7b17;
}

.saku-features-grid,
.saku-steps-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 2rem);
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.saku-feature-list {
    display: grid;
    gap: 1rem;
}

.saku-feature-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.saku-feature-item img {
    width: 48px;
    height: 48px;
}

.saku-feature-item h3,
.saku-step-item h3,
.saku-support-item h3 {
    margin: 0;
    color: #1c1d23;
    font-size: clamp(1.04rem, 1.35vw, 1.5rem);
    line-height: 1.28;
}

.saku-feature-item p,
.saku-step-item p,
.saku-support-item p {
    margin: 0.35rem 0 0;
    font-size: clamp(0.94rem, 1vw, 1.14rem);
    line-height: 1.45;
    color: #35383f;
}

.saku-feature-visual img,
.saku-steps-image img {
    width: 100%;
    height: auto;
    display: block;
}

.saku-steps {
    background: #f3f4f5;
}

.saku-steps-content {
    display: grid;
    gap: 1rem;
}

.saku-step-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 1rem;
    align-items: start;
}

.saku-step-item > span {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d8dde4;
    color: #1c1d23;
    font-size: 1.45rem;
    font-weight: 800;
}

.saku-step-link {
    margin-top: 0.85rem;
    display: inline-block;
    font-weight: 700;
    color: #ea7b17;
}

.saku-footer {
    background: #4f453f;
    color: #ffffff;
    padding: clamp(2.6rem, 4vw, 3.5rem) 0;
}

.saku-footer h2 {
    color: #ffffff;
    margin: 0 auto 2.2rem;
    text-align: center;
    max-width: 780px;
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    font-weight: 300;
}

.saku-support-grid {
    display: grid;
    width: min(900px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(320px, 420px));
    justify-content: center;
    column-gap: clamp(1.8rem, 4vw, 3.6rem);
    row-gap: 1.8rem;
}

.saku-support-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
}

.saku-support-logo {
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.saku-support-logo img {
    width: auto;
    max-width: min(220px, 72%);
    max-height: 72px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.saku-support-item h3,
.saku-support-item p {
    color: #ffffff;
    margin: 0;
}

.saku-support-item h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.saku-support-item p {
    margin-top: 0.12rem;
    font-size: 1rem;
    font-weight: 300;
}

.saku-support-topline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.saku-support-topline p {
    margin-top: 0;
}

.saku-support-phone {
    color: #ea7b17;
}

.saku-footer-links {
    width: min(900px, 100%);
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 4vw, 4.2rem);
}

.saku-account-links {
    display: grid;
    gap: 0.5rem;
    justify-items: center;
}

.saku-account-status {
    margin: 0;
    font-size: 1rem;
    font-weight: 300;
}

.saku-account-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 4vw, 4.2rem);
    flex-wrap: wrap;
}

.saku-account-link-row a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.saku-footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.6rem, 4vw, 4.2rem);
    flex-wrap: wrap;
}

.saku-footer-links a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.saku-footer form {
    margin: 0;
}

@media (max-width: 980px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-copy {
        order: 2;
    }

    .auth-card-wrap {
        order: 1;
    }

    .auth-brand-logo {
        width: clamp(150px, 40vw, 220px);
    }

    .portal-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .saku-features-grid,
    .saku-steps-grid,
    .saku-support-grid {
        grid-template-columns: 1fr;
    }

    .saku-support-logo img {
        max-width: min(220px, 100%);
    }

    .saku-support-topline {
        flex-direction: column;
        align-items: center;
        gap: 0.12rem;
        white-space: normal;
    }

    .saku-footer-links {
        align-items: flex-start;
        gap: 1.5rem;
    }

    .saku-account-links {
        justify-items: start;
    }

    .saku-account-link-row {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .portal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-actions {
        width: 100%;
    }

    .portal-logout {
        width: 100%;
    }

    .saku-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .saku-hero-content {
        top: auto;
        bottom: 1.2rem;
        transform: translateX(-50%);
    }
}

@media (max-width: 560px) {
    .auth-main {
        padding: 0.8rem;
    }

    .email-row {
        grid-template-columns: 1fr;
    }

    .email-row button {
        padding: 0.75rem 1rem;
    }

    .permission-modal-actions {
        justify-content: stretch;
    }

    .permission-modal-actions .ghost-action,
    .permission-modal-actions .primary-action,
    .account-delete-actions .ghost-action,
    .account-delete-actions .danger-action {
        width: 100%;
    }

    .saku-step-item {
        grid-template-columns: 40px 1fr;
    }

    .saku-step-item > span {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .saku-store-button {
        width: auto;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.saku-permissions {
    width: min(1200px, 100%);
    display: grid;
    gap: 1.2rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    color: #0f172a;
}

.saku-permissions-hero {
    border-radius: 1.5rem;
    background: #dbd5cd;
    padding: clamp(1.1rem, 2.6vw, 1.9rem);
    display: grid;
    gap: 0.5rem;
}

.saku-permissions-hero h1 {
    margin: 0;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 2.9vw, 2.2rem);
    font-weight: 500;
    color: #0f172a;
}

.saku-permissions-hero p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #334155;
}

.saku-feedback {
    border-radius: 0.95rem;
    border: 1px solid transparent;
    padding: 0.72rem 0.9rem;
    font-weight: 500;
}

.saku-feedback-success {
    border-color: #badfca;
    background: #e8f8ee;
    color: #13603c;
}

.saku-feedback-error {
    border-color: #f0bdbd;
    background: #fceaea;
    color: #9b2f2a;
}

.saku-permissions-section {
    display: grid;
    gap: 0.9rem;
}

.saku-section-head {
    padding: 0 0.1rem;
}

.saku-section-head h2 {
    margin: 0;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
}

.saku-section-head p {
    margin: 0.35rem 0 0;
    color: #475569;
    font-size: 0.96rem;
}

.saku-empty {
    margin: 0;
    border: 1px dashed #cbd5e1;
    border-radius: 0.95rem;
    background: #f8fafc;
    color: #64748b;
    padding: 0.85rem 1rem;
}

.saku-customer-groups {
    display: grid;
    gap: 0.9rem;
}

.saku-customer-card {
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: clamp(0.95rem, 2vw, 1.6rem);
    display: grid;
    gap: 1rem;
}

.saku-customer-card-received {
    background: #fbfbfb;
}

.saku-company-validation-request {
    gap: 0.8rem;
}

.saku-company-validation-request-head h3 {
    margin: 0.24rem 0 0;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #0f172a;
}

.saku-company-validation-request-head p {
    margin: 0.3rem 0 0;
    color: #475569;
    font-size: 0.93rem;
}

.saku-company-validation-request-form {
    display: grid;
    gap: 0.45rem;
}

.saku-company-validation-request-form label {
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 500;
}

.saku-company-validation-request-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}

.saku-company-validation-request-row input[type="text"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.72rem;
    min-height: 42px;
    padding: 0.55rem 0.72rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    color: #0f172a;
    background: #ffffff;
}

.saku-company-validation-request-row input[type="text"]:focus {
    outline: 2px solid rgba(15, 23, 42, 0.18);
    border-color: #0f172a;
}

.saku-customer-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.saku-kicker {
    display: inline-block;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 500;
}

.saku-customer-header h3 {
    margin: 0.2rem 0 0.15rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #0f172a;
}

.saku-customer-header p {
    margin: 0;
    color: #475569;
}

.saku-customer-ident {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.saku-customer-title-row {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.saku-company-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

.saku-agreement-list {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.9rem;
    display: grid;
    gap: 0.6rem;
}

.saku-agreement-header h4,
.saku-share-table-wrap h4 {
    margin: 0;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #0f172a;
}

.saku-agreement-header p,
.saku-share-table-wrap p {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.saku-agreement-row {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    border-top: 1px solid #edf1f4;
    padding-top: 0.65rem;
}

.saku-agreement-main {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.saku-agreement-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.saku-agreement-main strong {
    color: #0f172a;
    font-weight: 600;
}

.saku-agreement-main span {
    color: #64748b;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.saku-type-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: #efede9;
    color: #4f453f;
}

.saku-type-tag-heat {
    background: #ffedd5;
    color: #9a3412;
}

.saku-type-tag-electric {
    background: #fef9c3;
    color: #854d0e;
}

.saku-share-table-wrap {
    display: grid;
    gap: 0.4rem;
}

.saku-share-table {
    width: 100%;
    border-collapse: collapse;
}

.saku-share-table th,
.saku-share-table td {
    padding: 0.5rem 0.2rem;
    text-align: left;
    border-top: 1px solid #edf1f4;
    vertical-align: middle;
}

.saku-share-table th {
    border-top: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.saku-share-table td {
    color: #0f172a;
    font-size: 0.94rem;
}

.saku-share-recipient {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    overflow-wrap: break-word;
    word-break: normal;
}

.saku-share-actions {
    text-align: right !important;
}

.saku-share-table-indented {
    margin-left: 1.35rem;
    width: calc(100% - 1.35rem);
}

.saku-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    border-radius: 0.74rem;
    border: 1px solid transparent;
    padding: 0.52rem 0.9rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.saku-btn .material-symbols-rounded {
    font-size: 1.08rem;
    line-height: 1;
    font-variation-settings: "opsz" 24, "wght" 450, "FILL" 0, "GRAD" 0;
}

.saku-btn-small {
    min-height: 34px;
    padding: 0.35rem 0.62rem;
    font-size: 0.86rem;
}

.saku-btn-primary {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.saku-btn-primary:hover {
    background: #020617;
    border-color: #020617;
}

.saku-btn-outline {
    background: #ffffff;
    border-color: #d1d5db;
    color: #0f172a;
}

.saku-btn-outline:hover {
    background: #f8fafc;
}

.saku-btn-tonal {
    background: #d8dee5;
    border-color: #d8dee5;
    color: #0f172a;
}

.saku-btn-tonal:hover {
    background: #c7d0da;
    border-color: #c7d0da;
}

.saku-btn-tonal-danger {
    background: #fde8ec;
    border-color: #f5d3da;
    color: #a01030;
}

.saku-btn-tonal-danger:hover {
    background: #f8dbe2;
}

.saku-icon-pill {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 0.68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.saku-icon-pill .material-symbols-rounded {
    font-size: 1.08rem;
    line-height: 1;
}

.saku-icon-pill-kivi {
    background: #d8dee5;
    color: #1e293b;
}

.saku-icon-pill-pellava {
    background: #dbd5cd;
    color: #1e293b;
}

.saku-dialog {
    width: min(560px, calc(100vw - 2rem));
    border: 0;
    border-radius: 1.2rem;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.saku-dialog::backdrop {
    background: rgba(15, 23, 42, 0.46);
}

.saku-dialog-form {
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem 1.2rem;
}

.saku-dialog-form header h2 {
    margin: 0;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.saku-dialog-form header p {
    margin: 0.28rem 0 0;
    color: #64748b;
    line-height: 1.45;
}

.saku-dialog-field {
    display: grid;
    gap: 0.3rem;
}

.saku-dialog-field label {
    color: #0f172a;
    font-size: 0.93rem;
    font-weight: 500;
}

.saku-dialog-field input[type="email"],
.saku-dialog-field input[type="date"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.7rem;
    min-height: 42px;
    padding: 0.55rem 0.72rem;
    font-family: "Funnel Display", "Manrope", "Segoe UI", sans-serif;
    color: #0f172a;
    background: #ffffff;
}

.saku-dialog-field input:focus {
    outline: 2px solid rgba(15, 23, 42, 0.18);
    border-color: #0f172a;
}

.saku-dialog-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.93rem;
}

.saku-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .saku-agreement-row {
        grid-template-columns: 1fr;
    }

    .saku-share-table-indented {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .saku-company-validation-request-row {
        grid-template-columns: 1fr;
    }

    .saku-company-validation-request-row .saku-btn {
        width: 100%;
    }

    .saku-customer-header {
        flex-direction: column;
    }

    .saku-customer-header .saku-btn {
        width: 100%;
    }

    .saku-share-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .saku-share-table thead {
        display: none;
    }

    .saku-share-table tbody {
        display: grid;
        gap: 0.62rem;
    }

    .saku-share-table tbody tr {
        display: grid;
        gap: 0.36rem 0.62rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.8rem;
        padding: 0.62rem;
        background: #ffffff;
    }

    .saku-share-table tbody td {
        border-top: 0;
        padding: 0;
        min-width: 0;
    }

    .saku-share-table .saku-col-recipient {
        grid-column: 1 / -1;
    }

    .saku-share-table .saku-col-start {
        grid-column: 1;
    }

    .saku-share-table .saku-col-end {
        grid-column: 2;
    }

    .saku-share-table .saku-col-actions {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .saku-share-table .saku-col-start::before {
        content: "Alkaen";
        display: block;
        color: #64748b;
        font-size: 0.76rem;
        margin-bottom: 0.08rem;
    }

    .saku-share-table .saku-col-end::before {
        content: "Päättyy";
        display: block;
        color: #64748b;
        font-size: 0.76rem;
        margin-bottom: 0.08rem;
    }

    .saku-share-table .saku-col-giver {
        grid-column: 1 / -1;
    }

    .saku-share-table .saku-col-range {
        grid-column: 1 / -1;
    }

    .saku-share-table .saku-col-range::before {
        content: "Voimassa";
        display: block;
        color: #64748b;
        font-size: 0.76rem;
        margin-bottom: 0.08rem;
    }

    .saku-share-table .saku-col-giver::before {
        content: "Antaja";
        display: block;
        color: #64748b;
        font-size: 0.76rem;
        margin-bottom: 0.08rem;
    }

    .saku-dialog-actions .saku-btn {
        width: 100%;
    }
}
