.oko-app {
    width: min(90vw, 1280px);
    margin: 0 auto;
    color: #1f2937;
    font-family: inherit;
}

.oko-coaching-page #main-header,
.oko-coaching-page #top-header,
.oko-coaching-page header#main-header,
.oko-coaching-page .et-l--header {
    display: none !important;
}

.oko-coaching-page #page-container {
    padding-top: 0 !important;
}

.oko-header {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    border-bottom: 1px solid #d8dbe8;
    padding-bottom: 14px;
}

.oko-header p {
    margin: 0;
    color: #c35d5e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.oko-header h2 {
    margin: 0;
    color: #293375;
    font-size: 30px;
    line-height: 1.1;
}

.oko-header span {
    color: #4b5563;
}

.oko-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px;
    border: 1px solid #d8dbe8;
    border-radius: 8px;
    background: #f7f8fc;
}

.oko-nav a,
.oko-nav a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 6px;
    padding: 8px 12px;
    background: #293375;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.oko-nav a:hover,
.oko-nav a:focus,
.oko-nav a.is-active {
    background: #c35d5e;
    color: #ffffff;
}

.oko-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
}

.oko-subnav a,
.oko-subnav a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid #d8dbe8;
    border-radius: 6px;
    padding: 7px 11px;
    background: #ffffff;
    color: #293375;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

.oko-subnav a:hover,
.oko-subnav a:focus,
.oko-subnav a.is-active {
    border-color: #c35d5e;
    background: #c35d5e;
    color: #ffffff;
}

.oko-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.oko-port-panel {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .oko-app,
    .oko-notice {
        width: min(94vw, 1280px);
    }

    .oko-nav a {
        flex: 1 1 140px;
    }
}

.oko-card,
.oko-panel {
    min-width: 0;
    border: 1px solid #d8dbe8;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.oko-card span {
    color: #4b5563;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.oko-card strong {
    display: block;
    margin: 8px 0;
    color: #293375;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1;
    overflow-wrap: anywhere;
}

.oko-card p,
.oko-panel p,
.oko-notice p {
    color: #4b5563;
}

.oko-button,
.oko-button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    padding: 8px 13px;
    background: #293375;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.oko-button:hover,
.oko-button:focus {
    background: #c35d5e;
    color: #ffffff;
}

.oko-button--secondary,
.oko-button--secondary:visited {
    background: #eef0fb;
    color: #293375;
}

.oko-button--secondary:hover,
.oko-button--secondary:focus {
    background: #c35d5e;
    color: #ffffff;
}

.oko-button--small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.oko-record-link,
.oko-record-link:visited {
    color: #293375;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.oko-record-link:hover,
.oko-record-link:focus {
    color: #c35d5e;
}

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

.oko-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.oko-table th,
.oko-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.oko-table th {
    color: #293375;
    font-size: 12px;
    text-transform: uppercase;
}

.oko-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 9px;
    background: #eef0fb;
    color: #293375;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
}

.oko-notice {
    width: min(90vw, 900px);
    margin: 0 auto;
    border-left: 5px solid #293375;
    padding: 12px 14px;
    background: #f7f8fc;
}

.oko-notice--success {
    border-left-color: #293375;
}

.oko-notice--error {
    border-left-color: #c35d5e;
    background: #fff7f7;
}

.oko-warning {
    border-left: 5px solid #c35d5e;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff7f7;
    color: #7f1d1d !important;
    font-weight: 800;
}

.oko-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.oko-profile-summary div {
    min-width: 0;
    flex: 1 1 auto;
}

.oko-profile-summary strong,
.oko-profile-summary span {
    display: block;
}

.oko-profile-summary span {
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.oko-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.oko-profile-photo-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
}

.oko-profile-photo {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    border: 3px solid #eef0fb;
    border-radius: 999px;
    object-fit: cover;
}

.oko-profile-photo--small {
    width: 52px;
    height: 52px;
}

.oko-form {
    display: grid;
    gap: 12px;
}

.oko-form label {
    display: grid;
    gap: 5px;
}

.oko-form span {
    color: #293375;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.oko-form input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cfd4e6;
    border-radius: 6px;
    padding: 8px 10px;
    color: #1f2937;
}

.oko-form select,
.oko-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cfd4e6;
    border-radius: 6px;
    padding: 8px 10px;
    color: #1f2937;
}

.oko-form textarea {
    resize: vertical;
}

.oko-form small {
    color: #6b7280;
    font-size: 12px;
}

.oko-form--compact {
    margin-top: 14px;
}

.oko-create-panel {
    margin: 0 0 16px;
}

.oko-create-panel summary {
    cursor: pointer;
    color: #293375;
    font-weight: 900;
}

.oko-filter-bar {
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 0 0 14px;
}

.oko-filter-bar label {
    display: grid;
    flex: 1 1 360px;
    gap: 5px;
}

.oko-filter-bar span {
    color: #293375;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.oko-filter-bar input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cfd4e6;
    border-radius: 6px;
    padding: 8px 10px;
}

.oko-detail-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
}

.oko-detail-heading p {
    margin: 0 0 4px;
    color: #c35d5e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.oko-detail-heading h3 {
    margin: 0;
    color: #293375;
    font-size: 24px;
    line-height: 1.15;
}

.oko-org-hierarchy {
    margin-top: 16px;
}

.oko-hierarchy-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.oko-hierarchy-section {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcff;
}

.oko-mini-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.oko-mini-heading h4 {
    margin: 0;
    color: #293375;
    font-size: 16px;
}

.oko-mini-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    border-radius: 999px;
    background: #eef0fb;
    color: #293375;
    font-size: 12px;
    font-weight: 900;
}

.oko-table--compact {
    margin-bottom: 10px;
}

.oko-table--compact th,
.oko-table--compact td {
    padding: 8px;
    font-size: 13px;
}

.oko-definition-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.oko-definition-list div {
    display: grid;
    gap: 3px;
}

.oko-definition-list dt {
    color: #293375;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.oko-definition-list dd {
    margin: 0;
    color: #374151;
}

.oko-definition-list--detail {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 720px) {
    .oko-profile-grid {
        grid-template-columns: 1fr;
    }

    .oko-profile-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .oko-filter-bar,
    .oko-detail-heading {
        align-items: stretch;
        flex-direction: column;
    }
}
