:root {
    --ew-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ew-ink-950: #17131f;
    --ew-ink-800: #30283d;
    --ew-ink-600: #61586d;
    --ew-surface: #ffffff;
    --ew-surface-subtle: #f7f5fa;
    --ew-border: #e4deeb;
    --ew-brand-700: #4e137c;
    --ew-brand-600: #6422a0;
    --ew-brand-100: #f1e8f8;
    --ew-accent: #20a77a;
    --ew-danger: #b42318;
    --ew-shadow-sm: 0 1px 2px rgba(31, 22, 43, 0.06);
    --ew-shadow-lg: 0 24px 70px rgba(31, 22, 43, 0.18);
    --ew-radius-sm: 0.55rem;
    --ew-radius-md: 0.85rem;
    --ew-radius-lg: 1.35rem;
}

html {
    color-scheme: light;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--ew-surface);
    color: var(--ew-ink-950);
    font-family: var(--ew-font-sans);
    line-height: 1.5;
    margin: 0;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin-top: 0;
}

img,
svg {
    vertical-align: middle;
}

table {
    border-collapse: collapse;
    caption-side: bottom;
}

label {
    display: inline-block;
}

fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

legend {
    float: left;
    line-height: inherit;
    margin-bottom: 0.5rem;
    padding: 0;
    width: 100%;
}

legend + * {
    clear: left;
}

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

button {
    color: inherit;
    text-transform: none;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

[hidden] {
    display: none !important;
}

a {
    color: var(--ew-brand-700);
}

a:hover {
    color: var(--ew-brand-600);
}

:focus-visible {
    outline: 3px solid #762a91;
    outline-offset: 3px;
}

.ew-shell :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #762a91 !important;
    outline-offset: 3px;
}

.ew-shell .page-sidebar :where(a, button, [tabindex]):focus-visible {
    outline-color: #ffffff !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.skip-link {
    background: var(--ew-surface);
    border-radius: 0 0 var(--ew-radius-sm) 0;
    box-shadow: var(--ew-shadow-sm);
    color: var(--ew-brand-700);
    font-weight: 700;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    transform: translateY(-130%);
    transition: transform 150ms ease;
    z-index: 2000;
}

.skip-link:focus {
    transform: translateY(0);
}

.ew-sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.ew-button {
    align-items: center;
    background: var(--ew-surface);
    border: 1px solid #cfc7d5;
    border-radius: var(--ew-radius-sm);
    cursor: pointer;
    display: inline-flex;
    font-weight: 680;
    gap: 0.45rem;
    justify-content: center;
    line-height: 1.25;
    min-height: 2.65rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.ew-button:hover {
    background: var(--ew-surface-subtle);
    border-color: #bcb1c4;
    color: var(--ew-ink-950);
}

.ew-button:focus-visible {
    outline-offset: 2px;
}

.ew-button:disabled,
.ew-button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
}

.ew-button--primary {
    background: var(--ew-brand-700);
    border-color: var(--ew-brand-700);
    color: #fff;
}

.ew-button--primary:hover {
    background: var(--ew-brand-600);
    border-color: var(--ew-brand-600);
    color: #fff;
}

.ew-button--danger {
    background: var(--ew-danger);
    border-color: var(--ew-danger);
    color: #fff;
}

.ew-button--danger:hover {
    background: #912018;
    border-color: #912018;
    color: #fff;
}

.ew-button--link {
    background: transparent;
    border: 0;
    color: var(--ew-brand-700);
    min-height: 0;
    padding: 0;
}

.ew-button--link:hover {
    background: transparent;
    color: var(--ew-brand-600);
}

.ew-button--large {
    min-height: 3.1rem;
    padding: 0.8rem 1.2rem;
}

.ew-button--compact {
    font-size: 0.82rem;
    min-height: 2.15rem;
    padding: 0.42rem 0.7rem;
}

.ew-button--block {
    width: 100%;
}

.ew-label {
    color: var(--ew-ink-800);
    display: block;
    font-size: 0.9rem;
    font-weight: 650;
    margin-bottom: 0.45rem;
}

.ew-control {
    background: var(--ew-surface);
    border: 1px solid var(--ew-border);
    border-radius: var(--ew-radius-sm);
    color: var(--ew-ink-950);
    display: block;
    border-color: var(--ew-border);
    min-height: 2.8rem;
    padding: 0.65rem 0.8rem;
    width: 100%;
}

.ew-control:focus {
    border-color: var(--ew-brand-600);
    box-shadow: 0 0 0 0.25rem rgba(100, 34, 160, 0.13);
    outline: 0;
}

.ew-control:disabled,
.ew-control[readonly] {
    background: #f1eef3;
    color: var(--ew-ink-600);
}

.ew-validation-message {
    color: var(--ew-danger);
    display: none;
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

.ew-control.is-invalid,
.was-validated .ew-control:invalid {
    border-color: var(--ew-danger);
}

.ew-control.is-invalid + .ew-validation-message,
.was-validated .ew-control:invalid + .ew-validation-message {
    display: block;
}

.ew-layout-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

[class*="ew-grid-span-"] {
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .ew-grid-span-1 { width: 8.33333333%; }
    .ew-grid-span-2 { width: 16.66666667%; }
    .ew-grid-span-3 { width: 25%; }
    .ew-grid-span-4 { width: 33.33333333%; }
    .ew-grid-span-5 { width: 41.66666667%; }
    .ew-grid-span-6 { width: 50%; }
    .ew-grid-span-12 { width: 100%; }
    .ew-grid-offset-2 { margin-left: 16.66666667%; }
    .ew-grid-offset-8 { margin-left: 66.66666667%; }
    .ew-grid-offset-9 { margin-left: 75%; }
}

@media (min-width: 1200px) {
    .ew-grid-offset-lg-9 { margin-left: 75%; }
}

.ew-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
}

.ew-table {
    background: var(--ew-surface);
    border-collapse: collapse;
    border-spacing: 0;
    color: var(--ew-ink-900);
    margin: 0 0 1rem;
    max-width: 100%;
    width: 100%;
}

.ew-table th,
.ew-table td {
    border-bottom: 1px solid var(--ew-border);
    padding: 0.72rem 0.8rem;
    text-align: left;
    vertical-align: middle;
}

.ew-table th {
    background: #f5f2f7;
    color: var(--ew-ink-800);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.ew-table--bordered th,
.ew-table--bordered td {
    border: 1px solid var(--ew-border);
}

.ew-table--striped tbody tr:nth-child(even) {
    background: #faf8fb;
}

.ew-table--hover tbody tr:hover {
    background: #f3eef7;
}

.ew-item-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ew-item-list__item {
    background: var(--ew-surface);
    border: 1px solid var(--ew-border);
    border-radius: var(--ew-radius-sm);
    color: var(--ew-ink-800);
    padding: 0.65rem 0.75rem;
}

.ew-notice {
    background: #f5f2f7;
    border: 1px solid #d8d0dd;
    border-left: 3px solid var(--ew-brand-700);
    border-radius: var(--ew-radius-sm);
    color: var(--ew-ink-800);
    line-height: 1.45;
    padding: 0.8rem 1rem;
}

.ew-notice--success {
    background: #ecf8f3;
    border-color: #bfe4d5;
    border-left-color: var(--ew-accent);
    color: #145c45;
}

.ew-notice--danger {
    background: #fff1f0;
    border-color: #f0c5c1;
    border-left-color: var(--ew-danger);
    color: #842018;
}

.ew-live-notice {
    left: 50%;
    max-width: min(92vw, 34rem);
    position: fixed;
    top: 1rem;
    transform: translateX(-50%);
    width: max-content;
    z-index: 2100;
}
