.wbc-portal {
    --wbc-ink: #17201b;
    --wbc-muted: #66746d;
    --wbc-line: #d9e2dc;
    --wbc-panel: #ffffff;
    --wbc-bg: #f5f8f6;
    --wbc-primary: #13795b;
    --wbc-primary-dark: #0f5f49;
    --wbc-warn: #9a6700;
    --wbc-error: #b42318;
    color: var(--wbc-ink);
    background: var(--wbc-bg);
    border: 1px solid var(--wbc-line);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 24px auto;
    max-width: 1180px;
    overflow: hidden;
    width: min(100%, 1180px);
}

.wbc-portal * {
    box-sizing: border-box;
}

.wbc-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--wbc-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px;
}

.wbc-header h1 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.wbc-eyebrow,
.wbc-small {
    color: var(--wbc-muted);
    font-size: 13px;
    margin: 0;
}

.wbc-header-actions,
.wbc-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wbc-tabs {
    background: #eef5f1;
    border-bottom: 1px solid var(--wbc-line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
}

.wbc-tab {
    border-radius: 6px;
    color: var(--wbc-ink);
    display: inline-flex;
    font-size: 14px;
    font-weight: 650;
    padding: 9px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.wbc-tab.is-active {
    background: var(--wbc-primary);
    color: #ffffff;
}

.wbc-main {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.wbc-grid {
    display: grid;
    gap: 16px;
}

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

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

.wbc-panel,
.wbc-stat {
    background: var(--wbc-panel);
    border: 1px solid var(--wbc-line);
    border-radius: 8px;
    padding: 16px;
}

.wbc-stat span {
    color: var(--wbc-muted);
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.wbc-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
}

.wbc-section-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wbc-section-heading h2 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0;
}

.wbc-form,
.wbc-search,
.wbc-task-form {
    display: grid;
    gap: 14px;
}

.wbc-field {
    display: grid;
    gap: 6px;
}

.wbc-field label,
.wbc-task-form label {
    color: var(--wbc-ink);
    font-size: 13px;
    font-weight: 650;
}

.wbc-field input,
.wbc-field select,
.wbc-field textarea,
.wbc-search input,
.wbc-search button,
.wbc-task-form input,
.wbc-task-form select,
.wbc-task-form button {
    border: 1px solid #c8d5ce;
    border-radius: 6px;
    color: var(--wbc-ink);
    font: inherit;
    min-height: 42px;
    padding: 9px 10px;
    width: 100%;
}

.wbc-field textarea {
    resize: vertical;
}

.wbc-portal button,
.wbc-portal a,
.wbc-portal input,
.wbc-portal select,
.wbc-portal textarea {
    touch-action: manipulation;
}

.wbc-segmented {
    background: #edf4f0;
    border: 1px solid var(--wbc-line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
}

.wbc-segmented label {
    cursor: pointer;
}

.wbc-segmented input {
    opacity: 0;
    position: absolute;
}

.wbc-segmented span {
    align-items: center;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    min-height: 38px;
    padding: 8px;
    text-align: center;
}

.wbc-segmented input:checked + span {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(20, 34, 27, 0.16);
}

.wbc-primary,
.wbc-button-link,
.wbc-link-button,
.wbc-search button,
.wbc-task-form button {
    align-items: center;
    background: var(--wbc-primary);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    text-decoration: none;
}

.wbc-primary:hover,
.wbc-button-link:hover,
.wbc-search button:hover,
.wbc-task-form button:hover {
    background: var(--wbc-primary-dark);
    color: #ffffff;
}

.wbc-link-button {
    background: #e8f4ef;
    color: var(--wbc-primary-dark);
}

.wbc-list {
    border: 1px solid var(--wbc-line);
    border-radius: 8px;
    overflow: hidden;
}

.wbc-row {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--wbc-line);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.8fr);
    min-width: 0;
    padding: 12px;
}

.wbc-row:last-child {
    border-bottom: 0;
}

.wbc-row strong,
.wbc-row span {
    display: block;
    overflow-wrap: anywhere;
}

.wbc-row span {
    color: var(--wbc-muted);
    font-size: 13px;
    margin-top: 3px;
}

.wbc-task-list {
    display: grid;
    gap: 12px;
}

.wbc-task {
    border: 1px solid var(--wbc-line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    padding: 14px;
}

.wbc-task h3 {
    font-size: 17px;
    margin: 0 0 5px;
}

.wbc-task p {
    margin: 0 0 7px;
}

.wbc-alert {
    border-radius: 6px;
    font-weight: 650;
    margin: 16px 16px 0;
    padding: 12px 14px;
}

.wbc-alert.is-success {
    background: #e9f7ef;
    color: #116149;
}

.wbc-alert.is-error {
    background: #fff1f0;
    color: var(--wbc-error);
}

.wbc-alert.is-warning {
    background: #fff8e6;
    color: var(--wbc-warn);
}

.wbc-empty {
    color: var(--wbc-muted);
    margin: 0;
}

.wbc-brand-footer {
    background: #ffffff;
    border-top: 1px solid var(--wbc-line);
    color: var(--wbc-muted);
    font-size: 12px;
    padding: 12px 16px;
    text-align: center;
}

.wbc-brand-footer a {
    color: var(--wbc-primary-dark);
    font-weight: 650;
    text-decoration: none;
}

.wbc-login {
    max-width: 460px;
}

.wbc-login-panel {
    margin: 0;
}

.wbc-login-panel h2 {
    margin-top: 0;
}

.wbc-login-panel input[type="text"],
.wbc-login-panel input[type="password"] {
    border: 1px solid #c8d5ce;
    border-radius: 6px;
    min-height: 42px;
    padding: 9px 10px;
    width: 100%;
}

.wbc-login-panel input[type="submit"] {
    background: var(--wbc-primary);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    min-height: 42px;
    padding: 9px 13px;
}

@media (max-width: 760px) {
    .wbc-portal {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin: 0;
        max-width: none;
        overflow-x: hidden;
        width: 100%;
    }

    .wbc-main {
        gap: 12px;
        padding: 12px;
    }

    .wbc-header,
    .wbc-task {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .wbc-header {
        display: grid;
        padding: 14px;
    }

    .wbc-header h1 {
        font-size: 21px;
    }

    .wbc-header-actions {
        align-items: stretch;
        display: grid;
    }

    .wbc-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wbc-tab {
        justify-content: center;
        min-height: 46px;
        text-align: center;
    }

    .wbc-two,
    .wbc-stat-grid,
    .wbc-row {
        grid-template-columns: 1fr;
    }

    .wbc-panel,
    .wbc-stat,
    .wbc-task {
        padding: 14px;
    }

    .wbc-section-heading {
        align-items: flex-start;
        display: grid;
    }

    .wbc-field input,
    .wbc-field select,
    .wbc-field textarea,
    .wbc-search input,
    .wbc-search button,
    .wbc-task-form input,
    .wbc-task-form select,
    .wbc-task-form button,
    .wbc-primary,
    .wbc-button-link,
    .wbc-link-button {
        min-height: 48px;
    }

    .wbc-stat strong {
        font-size: 21px;
    }
}

@media (max-width: 420px) {
    .wbc-tabs {
        grid-template-columns: 1fr;
    }

    .wbc-segmented {
        grid-template-columns: 1fr;
    }
}
