:root {
    color-scheme: light;
}

* {
    letter-spacing: 0;
}

.nav-link {
    display: inline-flex;
    min-height: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 700;
    color: #475569;
    transition: background-color .16s ease, color .16s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #020617;
}

.nav-link-active {
    background: #eef8f3;
    color: #104c39;
}

.field-label {
    display: block;
    margin-bottom: .375rem;
    font-size: .875rem;
    font-weight: 700;
    color: #334155;
}

.field {
    width: 100%;
    border-radius: .5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: .75rem;
    font-size: .875rem;
    color: #020617;
    box-shadow: 0 1px 2px rgb(15 23 42 / .05);
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.field:focus {
    border-color: #177553;
    box-shadow: 0 0 0 4px #d6f0e5;
}

.field:disabled {
    background: #f8fafc;
}

.tab-button {
    min-height: 2.5rem;
    flex-shrink: 0;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 700;
    color: #475569;
    transition: background-color .16s ease, color .16s ease;
}

.tab-button:hover {
    background: #f1f5f9;
}

.tab-button-active,
.tab-button-active:hover {
    background: #104c39;
    color: #fff;
}

.settings-panel {
    border-radius: .5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / .05);
}

.panel-title {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.data-table {
    min-width: 100%;
    text-align: left;
    font-size: .875rem;
}

.data-table th {
    border-bottom: 1px solid #e2e8f0;
    padding: .5rem .75rem;
    font-weight: 700;
    color: #475569;
}

.data-table td {
    border-bottom: 1px solid #f1f5f9;
    padding: .75rem;
    color: #334155;
}

@media (min-width: 1024px) {
    .nav-link {
        display: flex;
    }
}

.app-notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: grid;
    gap: .75rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.app-notification {
    pointer-events: auto;
    animation: notification-in .2s ease-out both;
}

.app-notification-success {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-left: auto;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    background: #ecfdf5;
    box-shadow: 0 10px 22px rgb(15 23 42 / .14);
}

.success-check {
    width: .95rem;
    height: .52rem;
    border-right: 3px solid #177553;
    border-bottom: 3px solid #177553;
    transform: rotate(45deg) scale(.25);
    animation: check-in .32s .08s cubic-bezier(.2, 1.4, .4, 1) forwards;
}

.app-notification-error {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border: 1px solid #fecaca;
    border-radius: .5rem;
    background: #fef2f2;
    padding: .875rem 1rem;
    color: #991b1b;
    box-shadow: 0 10px 22px rgb(15 23 42 / .14);
}

.app-notification-error p {
    flex: 1;
    margin: 0;
    font-size: .875rem;
    line-height: 1.35;
}

.notification-error-icon {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
}

.notification-dismiss {
    margin: -.25rem -.4rem 0 0;
    color: #991b1b;
    font-size: 1.25rem;
    line-height: 1;
}

@keyframes notification-in {
    from { opacity: 0; transform: translateY(-.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes check-in {
    to { transform: rotate(45deg) scale(1); }
}

.smtp-action-bar {
    position: sticky;
    top: .75rem;
    z-index: 20;
    display: flex !important;
    justify-content: flex-end;
    margin: 0 0 1.5rem;
    padding: .75rem 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.smtp-action-bar-bottom {
    position: static;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 0;
}

.smtp-primary-action {
    display: inline-flex !important;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    border: 1px solid #104c39 !important;
    border-radius: .5rem;
    background: #104c39 !important;
    padding: .625rem 1rem;
    color: #fff !important;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 1px 2px rgb(15 23 42 / .14);
}

.smtp-primary-action:hover {
    background: #145f45 !important;
}

.smtp-primary-action:focus-visible {
    outline: 3px solid #d6f0e5;
    outline-offset: 2px;
}

.smtp-primary-action:disabled {
    cursor: wait;
    opacity: .7 !important;
}

.smtp-status {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    border: 1px solid;
    border-radius: .375rem;
    padding: .25rem .75rem;
    font-size: .75rem;
    font-weight: 700;
}

.smtp-status-configured {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #166534;
}

.smtp-status-pending {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.smtp-status-incomplete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}
