.svc {
    --svc-ink: #173548;
    --svc-accent: #086b65;
    --svc-line: #d6e4e8;
    --svc-muted: #4b6473;
    max-width: 1280px;
    color: var(--svc-ink);
}

.svc-portal {
    max-width: 980px;
    margin-inline: auto;
    font: 16px/1.55 system-ui, sans-serif;
}

.svc .svc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1.15rem 1.35rem;
    border-radius: 12px;
    color: white;
    background: linear-gradient(120deg, #123047, #075d60);
}

.svc .svc-head h1, .svc .svc-head h2 {
    margin: 0;
    padding: 0;
    color: white;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}

.svc .svc-head p {
    margin: 0 0 .3rem;
    color: #ccefea;
    font-weight: 600;
}

.svc section {
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border: 1px solid var(--svc-line);
    border-radius: 10px;
    background: #fff;
}

.svc section h2, .svc section h3, .svc article h4 { margin: 0 0 .5rem; color: inherit; }
.svc section h2:not(:first-child) { margin-top: 1.2rem; }
.svc .svc-metrics, .svc .svc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
    gap: .75rem;
    margin: .7rem 0 1rem;
}

.svc .svc-metrics > div {
    min-width: 0;
    padding: .75rem;
    background: #eef8f7;
    border: 1px solid #d2e8e4;
    border-radius: 9px;
    overflow-wrap: anywhere;
}

.svc .svc-metrics span { display: block; color: var(--svc-muted); }
.svc .svc-metrics strong { display: block; font-size: 1.14em; }
.svc .svc-actions, .svc .svc-inline { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; }
.svc .svc-pager { margin: .8rem 0; align-items: center; }
.svc .svc-form { margin: .5rem 0 .75rem; }
.svc label { display: grid; gap: .25rem; font-weight: 600; overflow-wrap: anywhere; }
.svc .svc-form input:not([type="hidden"]), .svc .svc-form select, .svc .svc-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.svc .svc-form .svc-confirm { display: flex; align-items: baseline; gap: .5rem; }
.svc .svc-form .svc-confirm input { width: auto; flex-shrink: 0; }
.svc .svc-form textarea { display: block; margin-bottom: .65rem; resize: vertical; }
.svc .svc-table { width: 100%; overflow-x: auto; margin: .75rem 0; }
.svc table { width: 100%; border-collapse: collapse; }
.svc th, .svc td { padding: .55rem .6rem; text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.svc th { font-weight: 700; }
.svc-portal th, .svc-portal td { border-bottom: 1px solid var(--svc-line); }
.svc details { margin: .45rem 0; }
.svc summary { cursor: pointer; font-weight: 600; }
.svc .svc-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.svc .svc-small, .svc small { color: var(--svc-muted); }
.svc .svc-error { color: #a62223; font-weight: 600; }
.svc article { padding: .8rem 0; border-top: 1px solid var(--svc-line); }
.svc-portal button {
    background: var(--svc-accent);
    border: 1px solid var(--svc-accent);
    border-radius: 6px;
    color: white;
    padding: .55rem .8rem;
    font: inherit;
    cursor: pointer;
}

.svc-portal button:disabled { opacity: .65; cursor: default; }
.svc-portal input, .svc-portal select, .svc-portal textarea {
    border: 1px solid #829ca5;
    border-radius: 6px;
    padding: .55rem;
    font: inherit;
    color: var(--svc-ink);
    background: white;
}

.svc-portal [data-svc-choices] { margin-top: .65rem; }
.svc-portal [data-svc-clear] { margin-top: .65rem; }
.svc-portal [hidden] { display: none !important; }

.svc .svc-fee-notice {
    margin: .65rem 0;
    padding: .65rem .8rem;
    background: #eef8f7;
    border-inline-start: 4px solid var(--svc-accent);
    border-radius: 6px;
}

.svc .svc-fee-notice p { margin: .2rem 0 0; }
.svc .svc-fee-due { background: #fff5e1; border-color: #a15800; }
