.portal-body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 16%, #f2f7ff 0, #fff 42%, #f8fbff 100%);
    color: #10213a;
    display: flex;
    flex-direction: column;
}
.portal-header {
    height: 88px;
    padding: 0 4.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.portal-logo img {
    width: 145px;
    height: auto;
}
.portal-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #182844;
}
.portal-profile strong,
.portal-profile small {
    display: block;
}
.portal-profile strong {
    font-size: 12px;
}
.portal-profile small {
    font-size: 10px;
    color: #76869b;
}
.portal-main {
    width: min(1380px, 91vw);
    margin: 0 auto;
    flex: 1;
}
.portal-hero {
    text-align: center;
    padding: 30px 0 42px;
}
.portal-hero h1 {
    font-weight: 780;
    font-size: 38px;
    letter-spacing: -0.025em;
}
.portal-hero p {
    font-size: 16px;
    color: #52647d;
    margin: 12px 0 28px;
}
.portal-search {
    height: 48px;
    width: min(560px, 100%);
    margin: auto;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 17px;
    color: #7890ac;
    box-shadow: 0 3px 15px rgba(33, 63, 104, 0.035);
}
.portal-search input {
    border: 0;
    outline: 0;
    padding-left: 12px;
    width: 100%;
    color: #20334e;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.tool-card {
    text-decoration: none;
    color: #12233d;
    border: 1px solid #ceddf4;
    border-radius: 12px;
    padding: 24px;
    background: linear-gradient(145deg, #f6faff, #fff);
    min-height: 270px;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
    box-shadow: 0 7px 28px rgba(31, 64, 112, 0.04);
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31, 64, 112, 0.12);
    color: #12233d;
}
.tool-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
}
.tool-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #e4efff;
    color: #1769ff;
    font-size: 27px;
}
.tool-badge {
    background: #e8f8ef;
    color: #15904a;
    border-radius: 13px;
    padding: 5px 9px;
    font-size: 10px;
}
.tool-card h2 {
    font-size: 20px;
    margin: 20px 0 8px;
}
.tool-card > p {
    color: #52647c;
    line-height: 1.55;
    min-height: 44px;
}
.tool-metrics {
    display: flex;
    gap: 24px;
    border-top: 1px solid #e4eaf3;
    margin-top: 8px;
    padding-top: 14px;
}
.tool-metrics span {
    display: flex;
    flex-direction: column;
}
.tool-metrics strong {
    font-size: 18px;
}
.tool-metrics small {
    font-size: 10px;
    color: #7c8ba0;
}
.tool-access {
    color: #1769ff;
    font-weight: 650;
    margin-top: auto;
    padding-top: 18px;
}
.future-tools {
    margin: 38px auto 45px;
}
.future-tools > h2 {
    text-align: center;
    font-size: 14px;
    margin-bottom: 16px;
}
.future-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}
.future-card {
    height: 150px;
    border: 1px dashed #cbd6e5;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    color: #31445f;
    background: rgba(255, 255, 255, 0.55);
}
.future-card > span {
    font-size: 25px;
}
.future-card small {
    color: #7e8da0;
    max-width: 250px;
}
.future-card.muted {
    opacity: 0.55;
}
.portal-footer {
    text-align: center;
    color: #708198;
    font-size: 11px;
    padding: 20px;
}
@media (max-width: 900px) {
    .tool-grid,
    .future-grid {
        grid-template-columns: 1fr;
    }
    .portal-profile span:nth-child(2) {
        display: none;
    }
    .portal-hero {
        padding-top: 15px;
    }
    .portal-hero h1 {
        font-size: 30px;
    }
    .tool-card {
        min-height: 250px;
    }
}
.tool-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 190px;
    height: 66px;
    border: 0;
    background: transparent;
}
.tool-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}
.tool-redmine .tool-logo img {
    mix-blend-mode: multiply;
}
.tool-dce .tool-logo,
.tool-portfolio .tool-logo,
.tool-administration .tool-logo {
    width: 66px;
    height: 66px;
}
.tool-dce .tool-logo img,
.tool-portfolio .tool-logo img,
.tool-administration .tool-logo img {
    width: 66px;
    height: 66px;
    border-radius: 16px;
}
.portal-hero {
    padding-bottom: 52px;
}
.portal-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.portal-footer .footer-ewill {
    width: 68px;
    height: auto;
}
.tool-cyan {
    border-color: #c8ebf5;
    background: linear-gradient(145deg, #f1fcff, #fff);
}
.tool-navy {
    border-color: #d5deea;
    background: linear-gradient(145deg, #f5f8fc, #fff);
}
.tool-disabled {
    cursor: default;
    opacity: 0.7;
}
.tool-disabled:hover {
    transform: none;
    box-shadow: 0 7px 28px rgba(31, 64, 112, 0.04);
}
.tool-disabled .tool-badge {
    background: #eef1f5;
    color: #718096;
}
.tool-disabled .tool-access {
    color: #8794a5;
}
.clockify-back {
    text-decoration: none;
    color: #1769ff;
    font-weight: 650;
}
.clockify-home {
    width: min(1000px, 90vw);
    margin: 35px auto;
    flex: 1;
}
.clockify-welcome {
    text-align: center;
}
.clockify-welcome > img {
    width: 58px;
    height: 58px;
}
.clockify-welcome > span {
    display: block;
    color: #03a9f4;
    font-weight: 700;
    margin: 10px;
}
.clockify-welcome h1 {
    font-size: 34px;
    font-weight: 780;
}
.clockify-welcome p {
    color: #63748a;
}
.clockify-placeholder {
    margin: 45px auto;
    max-width: 700px;
    min-height: 270px;
    border: 1px dashed #c7d7e8;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.65);
}
.clockify-placeholder > span {
    font-size: 35px;
    color: #03a9f4;
}
.clockify-placeholder h2 {
    font-size: 20px;
    margin-top: 12px;
}
.clockify-placeholder p {
    color: #77869a;
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: min(100%, 430px);
    padding: 38px;
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(3, 31, 63, 0.1);
}
.login-logo {
    width: 155px;
    margin-bottom: 32px;
}
.login-card h1 {
    color: #10213d;
    font-size: 1.8rem;
    font-weight: 750;
}
.login-card > p {
    color: #718096;
    margin-bottom: 24px;
}
.board-login-body {
    margin: 0;
    min-height: 100vh;
    background: #fff;
    color: #10213d;
}
.board-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(480px, 0.92fr);
}
.board-login-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px clamp(30px, 4vw, 68px) 30px;
    color: #fff;
    background: linear-gradient(145deg, #031f3f 0%, #073b70 62%, #0d6e91 100%);
}
.board-login-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.board-login-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 31, 63, 0.12), transparent 28%, transparent 72%, rgba(3, 31, 63, 0.35));
    pointer-events: none;
}
.board-login-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.board-login-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 180px;
    padding: 12px 17px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
}
.board-login-brand img,
.board-login-mobile-logo img {
    display: block;
    width: 100%;
    height: auto;
}
.board-login-message {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.board-login-kicker {
    display: block;
    margin-bottom: 14px;
    color: #15c8c1;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.board-login-message h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.7rem, 5vw, 5.3rem);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.board-login-message > p {
    max-width: 570px;
    margin: 25px 0 38px;
    color: #c7d9ea;
    font-size: 1.12rem;
    line-height: 1.7;
}
.board-login-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.board-login-preview div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
.board-login-preview span,
.board-login-preview strong {
    display: block;
}
.board-login-preview span {
    margin-bottom: 5px;
    color: #a9c3da;
    font-size: 0.7rem;
}
.board-login-preview strong {
    font-size: 0.92rem;
}
.board-login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}
.orb-one {
    width: 420px;
    height: 420px;
    right: -160px;
    top: -130px;
    background: radial-gradient(circle, #12c7c2 0, rgba(18, 199, 194, 0) 70%);
    opacity: 0.52;
}
.orb-two {
    width: 500px;
    height: 500px;
    left: -260px;
    bottom: -300px;
    background: radial-gradient(circle, #1769ff 0, rgba(23, 105, 255, 0) 70%);
    opacity: 0.38;
}
.board-login-form-panel {
    position: relative;
    display: grid;
    place-items: center;
    padding: 55px clamp(35px, 7vw, 110px);
    background: linear-gradient(150deg, #fff, #f6f9fd);
}
.board-login-right-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #708198;
    font-size: 0.78rem;
}
.board-login-right-footer img {
    display: block;
    width: 78px;
    height: auto;
}
.board-login-form {
    width: min(100%, 470px);
}
.board-login-form h2 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 780;
    letter-spacing: -0.035em;
}
.board-login-form > p {
    margin: 12px 0 32px;
    color: #718096;
    font-size: 1rem;
}
.board-login-form .form-label {
    color: #34445d;
    font-weight: 650;
}
.board-login-form .form-control {
    min-height: 55px;
    border-color: #d8e1ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}
.board-login-form .form-control:focus {
    border-color: #1769ff;
    box-shadow: 0 0 0 4px rgba(23, 105, 255, 0.1);
}
.board-login-form .btn {
    min-height: 56px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(23, 105, 255, 0.22);
}
.board-login-help {
    display: block;
    margin-top: 20px;
    color: #8a98aa;
    text-align: center;
}
.board-login-mobile-logo {
    display: none;
}
@media (max-width: 900px) {
    .board-login-layout {
        grid-template-columns: 1fr;
    }
    .board-login-visual {
        min-height: 360px;
        padding: 30px 28px 38px;
    }
    .board-login-brand {
        width: 140px;
    }
    .board-login-art img {
        object-position: center 43%;
    }
    .board-login-form-panel {
        padding: 45px 24px 95px;
    }
    .board-login-form h2 {
        font-size: 1.85rem;
    }
}
@media (max-width: 560px) {
    .board-login-visual {
        display: none;
    }
    .board-login-form-panel {
        min-height: 100vh;
        align-items: center;
    }
    .board-login-right-footer {
        bottom: 22px;
    }
    .board-login-mobile-logo {
        display: block;
        width: 145px;
        margin-bottom: 42px;
    }
}
.client-portal-body {
    background: #f8faff;
}
.client-portal-header {
    height: 72px;
    border-bottom: 1px solid #e3e9f2;
    background: #fff;
}
.client-portal-header .portal-logo img {
    width: 112px;
}
.client-account {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.8rem;
}
.client-portal {
    width: min(1540px, 95vw);
    margin: 0 auto;
    padding: 20px 0 56px;
    flex: 1;
}
.client-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #7285a1;
    font-size: 0.86rem;
}
.client-breadcrumb > :first-child {
    color: #1769ff;
}
.client-overview {
    display: grid;
    grid-template-columns: minmax(310px, 1.1fr) minmax(680px, 2fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 18px;
}
.client-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}
.client-identity-avatar {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 20px;
    background: linear-gradient(145deg, #2775ff, #27c5c6);
    box-shadow: 0 13px 28px rgba(25, 105, 221, 0.16);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}
.client-identity span {
    color: #59708f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.client-identity h1 {
    margin: 4px 0 2px;
    color: #0e2342;
    font-size: clamp(1.6rem, 2.2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.client-identity p {
    margin: 0;
    color: #7285a1;
    font-size: 0.96rem;
}
.client-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.client-kpi {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid #e0e7f1;
    border-radius: 12px;
    background: #fff;
    color: #112746;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(23, 48, 86, 0.04);
}
.client-kpi:hover {
    border-color: #bdd3f8;
    color: #112746;
}
.client-kpi-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 750;
}
.client-kpi-icon.blue { background: #edf4ff; color: #1769ff; }
.client-kpi-icon.green { background: #e9faf5; color: #16a786; }
.client-kpi-icon.purple { background: #f2edff; color: #7255f7; }
.client-kpi small,
.client-kpi strong,
.client-kpi em {
    display: block;
    font-style: normal;
}
.client-kpi small {
    margin-bottom: 1px;
    color: #526986;
    font-size: 0.82rem;
    font-weight: 700;
}
.client-kpi strong {
    font-size: 1.45rem;
}
.client-kpi em {
    margin-top: 6px;
    color: #1769ff;
    font-size: 0.76rem;
    font-weight: 700;
}
.client-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(310px, 0.95fr);
    align-items: start;
    gap: 18px;
}
.client-main-column {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
}
.client-side-column {
    display: grid;
    gap: 18px;
}
.client-panel {
    overflow: hidden;
    border: 1px solid #e0e7f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 7px 26px rgba(28, 52, 90, 0.045);
}
.client-panel-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #e7ecf3;
}
.client-panel-title > span {
    color: #1769ff;
}
.client-panel-title h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 780;
}
.client-project-list {
    padding: 10px 12px;
}
.client-project-row {
    display: block;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
}
.client-project-row + .client-project-row {
    margin-top: 9px;
}
.client-project-row.is-archived {
    background: #fcfcfd;
    opacity: 0.82;
}
.client-project-main {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 18px;
}
.client-project-technology {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.client-project-tech {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    border-radius: 14px;
    background: #edf4ff;
    color: #1769ff;
    font-size: 1rem;
    font-weight: 800;
}
.client-project-tech img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.client-project-tech.drupal { background: #009cde; color: #fff; }
.client-project-tech.symfony { background: #fff0f2; color: #e9354e; }
.client-project-tech.wordpress { background: #edf4ff; color: #2878d2; }
.client-project-tech.typo3 { background: #fff3e8; color: #f1871c; }
.client-project-details {
    min-width: 0;
}
.client-project-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.client-project-heading h3 {
    margin: 0;
    color: #102441;
    font-size: 1.18rem;
    font-weight: 780;
}
.client-status {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}
.client-status.active { background: #e8f8f3; color: #15986f; }
.client-status.soon { background: #fff2e3; color: #e77700; }
.client-status.expired,
.client-status.archived { background: #ffecef; color: #e83850; }
.client-status.neutral { background: #f0f3f7; color: #63748c; }
.client-project-details > p {
    margin: 6px 0 8px;
    color: #71839d;
    font-size: 0.94rem;
}
.client-project-details > p span {
    padding: 0 6px;
}
.client-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.client-project-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dce4ef;
    border-radius: 6px;
    color: #28415f;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 650;
}
.client-project-links a:hover {
    border-color: #1769ff;
    color: #1769ff;
}
.client-recurring-services {
    margin: 14px -14px -12px;
    border-top: 1px solid #e1e8f2;
}
.client-recurring-services summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    color: #142746;
    cursor: pointer;
    list-style: none;
}
.client-recurring-services summary::-webkit-details-marker { display: none; }
.client-recurring-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.98rem;
    font-weight: 780;
}
.client-recurring-summary-title > span { color: #1769ff; font-size: 1.25rem; }
.client-recurring-summary-counts { color: #60728d; font-size: 0.78rem; }
.client-recurring-summary-counts strong { color: #15986f; }
.client-recurring-summary-counts i { padding: 0 5px; color: #9babc0; font-style: normal; }
.client-recurring-chevron {
    display: inline-block;
    margin-left: 8px;
    font-size: 1rem;
    transition: transform 0.18s ease;
}
.client-recurring-services[open] .client-recurring-chevron { transform: rotate(180deg); }
.client-recurring-list {
    overflow-x: auto;
    padding: 0 14px 14px;
}
.client-recurring-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.45fr) minmax(105px, .8fr) minmax(105px, .75fr) minmax(140px, 1fr) minmax(125px, .9fr) minmax(110px, .8fr);
    align-items: stretch;
    min-width: 850px;
    border: 1px solid #dfe7f2;
    border-radius: 9px;
    background: #fff;
}
.client-recurring-row + .client-recurring-row { margin-top: 8px; }
.client-recurring-row > div {
    min-height: 86px;
    padding: 12px 14px;
}
.client-recurring-row > div:not(.client-recurring-identity) { padding-top: 26px; }
.client-recurring-row > div + div { border-left: 1px solid #e5ebf3; }
.client-recurring-row small,
.client-recurring-row strong,
.client-recurring-row span,
.client-recurring-row a { display: block; }
.client-recurring-row small { color: #71839d; font-size: 0.72rem; }
.client-recurring-row strong { margin-top: 3px; color: #132746; font-size: 0.84rem; }
.client-recurring-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.client-recurring-identity-main {
    display: flex;
    align-items: center;
    gap: 11px;
}
.client-recurring-identity small { color: #2257a5; font-weight: 750; text-transform: uppercase; }
.client-recurring-identity-main .client-recurring-state { margin-top: 7px; }
.client-recurring-icon {
    display: grid !important;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 9px;
    background: #eef4ff;
}
.client-recurring-icon img { width: 27px; height: 27px; }
.type-hosting .client-recurring-icon { background: #f4edff; }
.type-support .client-recurring-icon { background: #fff3e7; }
.type-domain_name .client-recurring-icon { background: #eaf8f5; }
.type-ancillary_service .client-recurring-icon { background: #f4f1ec; }
.client-recurring-state {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 750;
}
.client-recurring-invoice .client-recurring-state { margin-top: 8px; }
.client-recurring-state.active { border: 1px solid #bde9d4; background: #eaf9f1; color: #118258; }
.client-recurring-state.future { border: 1px solid #cbd9ed; background: #f2f6fb; color: #526883; }
.client-recurring-state.ended { border: 1px solid #d5dce6; background: #f6f7f9; color: #63748c; }
.client-recurring-amount strong { white-space: nowrap; }
.client-recurring-invoice a { margin: 7px 0; color: #1769ff; font-size: 0.8rem; font-weight: 750; text-decoration: none; }
.client-recurring-invoice > strong { margin: 8px 0; }
.client-contact-ewill {
    padding: 14px 0;
}
.client-contact-ewill .client-contact-avatar {
    background: #1769ff;
    color: #fff;
}
.client-contact-list {
    padding: 4px 14px;
}
.client-contact-group-label {
    display: block;
    margin: 8px 0 -2px;
    padding-top: 14px;
    border-top: 1px solid #e7ecf3;
    color: #58708f;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.client-contact-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
}
.client-contact-row + .client-contact-row {
    border-top: 1px solid #e7ecf3;
}
.client-contact-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #edf4ff;
    color: #1769ff;
    font-size: 0.76rem;
    font-weight: 800;
}
.client-contact-row strong,
.client-contact-row small,
.client-contact-row a {
    display: block;
}
.client-invoice-list {
    padding: 4px 14px;
}
.client-invoice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}
.client-invoice-row + .client-invoice-row {
    border-top: 1px solid #e7ecf3;
}
.client-invoice-row strong,
.client-invoice-row time {
    display: block;
}
.client-invoice-row strong { color: #173153; font-size: 0.9rem; }
.client-invoice-row time { margin-top: 2px; color: #71839d; font-size: 0.78rem; }
.client-invoice-row a { color: #1769ff; font-size: 0.78rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.client-invoice-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.client-invoice-actions .client-invoice-amount {
    color: #173153;
    font-size: 0.82rem;
    white-space: nowrap;
}
.client-invoices-warning { margin: 12px 14px 4px; color: #9a6a12; font-size: 0.8rem; }
.client-panel-more {
    display: block;
    padding: 12px 14px;
    border-top: 1px solid #e7ecf3;
    color: #1769ff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}
.client-invoices-page { width: min(1120px, calc(100% - 40px)); }
.client-invoices-table th { color: #60728d; font-size: 0.78rem; text-transform: uppercase; }
.client-invoices-table td { padding-top: 15px; padding-bottom: 15px; }
.client-invoice-note {
    display: block;
    max-width: 620px;
    margin-top: 4px;
    color: #71839d;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: normal;
}
.client-pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-top: 1px solid #e7ecf3; font-size: 0.86rem; }
.client-pagination a { color: #1769ff; font-weight: 700; text-decoration: none; }
.client-contact-row strong { font-size: 1rem; }
.client-contact-row small { color: #71839d; font-size: 0.85rem; }
.client-contact-row a {
    color: #1769ff;
    text-decoration: none;
    font-size: 0.85rem;
}
.client-access-list {
    padding: 10px 12px;
}
.client-access-row {
    padding: 12px;
    border: 1px solid #e2e9f3;
    border-radius: 9px;
    background: #f8fbff;
}
.client-access-row + .client-access-row {
    margin-top: 8px;
}
.client-access-row h3 {
    margin: 0 0 9px;
    color: #102441;
    font-size: 0.92rem;
    font-weight: 750;
}
.client-contact-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.client-access-row > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}
.client-access-row > div > span {
    color: #71839d;
    font-size: 0.76rem;
}
.client-access-row code {
    overflow: hidden;
    color: #17304f;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.client-access-row button {
    padding: 3px 7px;
    border: 1px solid #cbd9ed;
    border-radius: 5px;
    background: #fff;
    color: #1769ff;
    font-size: 0.68rem;
    font-weight: 700;
}
.client-access-row button:hover {
    border-color: #1769ff;
}
.client-useful-links {
    padding: 8px 10px;
}
.client-useful-links > a {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid #e4eaf2;
    border-radius: 7px;
    color: #17304f;
    text-decoration: none;
}
.client-useful-links > a + a { margin-top: 6px; }
.client-useful-links > a > span { color: #1769ff; text-align: center; }
.client-useful-links strong { font-size: 0.82rem; }
.client-useful-links small { display: block; color: #75869d; font-size: 0.72rem; font-weight: 400; }
.client-useful-links em { color: #60738d; font-style: normal; }
.client-empty {
    padding: 18px;
    color: #75869d;
    font-size: 0.88rem;
    text-align: center;
}
.client-news-panel {
    margin-top: 0;
}
.client-news-list {
    padding: 8px 12px;
}
.client-news-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-bottom: 1px solid #e7ecf3;
}
.client-news-row:last-child {
    border-bottom: 0;
}
.client-news-row > img,
.client-news-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    object-fit: cover;
}
.client-news-placeholder {
    display: grid;
    place-items: center;
    background: #edf4ff;
    color: #1769ff;
    font-size: 1.25rem;
}
.client-news-row h3 {
    margin: 2px 0;
    font-size: 0.95rem;
    font-weight: 750;
}
.client-news-row h3 a,
.client-news-more {
    color: #102441;
    text-decoration: none;
}
.client-news-row h3 a:hover,
.client-news-more:hover {
    color: #1769ff;
}
.client-news-row p {
    margin: 0;
    color: #71839d;
    font-size: 0.82rem;
    line-height: 1.45;
}
.client-news-row time {
    color: #71839d;
    font-size: 0.75rem;
    white-space: nowrap;
}
.client-news-more {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.client-news-tag {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 5px;
    background: #e8f8f3;
    color: #15886a;
    font-size: 0.68rem;
    font-weight: 750;
}
.client-news-detail-page {
    width: min(1080px, calc(100% - 40px));
}
.client-news-article {
    overflow: hidden;
}
.client-news-hero {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.client-news-article-body {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 72px);
}
.client-news-article-body h1 {
    margin: 10px 0 18px;
    color: #102441;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}
.client-news-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}
.client-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: -6px 0 22px;
    color: #7b8ca4;
    font-size: 0.88rem;
}
.client-news-meta strong {
    color: #51657f;
    font-weight: 700;
}
.client-news-lead {
    margin: 0;
    color: #63748c;
    font-size: clamp(1.05rem, 2vw, 1.18rem);
    line-height: 1.7;
}
.client-news-content {
    margin-top: 42px;
    padding: 0;
    color: #243a57;
    font-size: 1.05rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.client-news-content h2 {
    margin: 1em 0 1em;
    color: #102441;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 780;
    line-height: 1.25;
    letter-spacing: -0.025em;
}
.client-news-content h3 {
    margin: 2em 0 0.9em;
    color: #173153;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
    font-weight: 750;
    line-height: 1.35;
}
.client-news-content h2:first-child,
.client-news-content h3:first-child {
    margin-top: 0;
}
.client-news-content p {
    margin: 0 0 1.35em;
}
.client-news-content p:empty {
    display: none;
}
.client-news-content ul,
.client-news-content ol {
    margin: 1em 0 1.4em;
    padding-left: 1.6em;
}
.client-news-content li {
    margin: 0.35em 0;
    padding-left: 0.2em;
}
.client-news-content blockquote {
    margin: 1.4em 0;
    padding: 1em 1.25em;
    border-left: 4px solid #20b8b5;
    border-radius: 0 10px 10px 0;
    background: #f2f8ff;
    color: #294665;
    font-size: 1.04em;
    font-style: italic;
}
.client-news-content a {
    color: #1769ff;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.client-news-content strong {
    color: #16304f;
    font-weight: 750;
}
.client-news-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
    border-radius: 12px;
}
.client-news-content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 2em 0;
    border: 0;
    border-radius: 14px;
    background: #071d3d;
    box-shadow: 0 14px 34px rgba(16, 36, 65, 0.14);
}

@media (max-width: 640px) {
    .client-news-detail-page {
        width: min(100% - 24px, 1080px);
    }
    .client-news-article-body {
        padding: 28px 22px 36px;
    }
    .client-news-content {
        margin-top: 32px;
        font-size: 1rem;
        line-height: 1.72;
    }
}
#newsEditor {
    min-height: 280px;
}
.ql-container.ql-snow {
    min-height: 320px;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
}
#newsToolbar.ql-toolbar.ql-snow {
    border-radius: 8px 8px 0 0;
}
.ql-editor .ql-video {
    width: min(100%, 760px);
    aspect-ratio: 16 / 9;
}
.client-portal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    padding: 0 4.5vw;
    border-top: 1px solid #e2e8f1;
    background: #fff;
    color: #72839c;
    font-size: 0.7rem;
}
.client-portal-footer img {
    width: 70px;
    height: auto;
}
@media (max-width: 1200px) {
    .client-overview {
        grid-template-columns: 1fr;
    }
    .client-content-grid {
        grid-template-columns: 1fr;
    }
    .client-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 800px) {
    .client-portal-header {
        height: 64px;
        padding: 0 20px;
    }
    .client-account strong {
        display: none;
    }
    .client-portal {
        width: min(100% - 28px, 1540px);
    }
    .client-overview {
        gap: 18px;
    }
    .client-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .client-project-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .client-side-column {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 520px) {
    .client-breadcrumb {
        overflow: hidden;
        white-space: nowrap;
    }
    .client-identity-avatar {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }
    .client-kpis {
        grid-template-columns: 1fr;
    }
    .client-kpi {
        min-height: 82px;
    }
    .client-project-main {
        align-items: flex-start;
    }
    .client-project-tech {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    .client-project-tech img {
        width: 30px;
        height: 30px;
    }
    .client-portal-footer {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 14px;
    }
    .client-news-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .client-news-row time,
    .client-news-more {
        grid-column: 2;
    }
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.client-primary-star {
    margin-left: 5px;
    color: #f5b301;
    font-size: 0.95em;
    vertical-align: 0.05em;
}

.client-news-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.client-news-navigation .client-breadcrumb {
    margin-bottom: 0;
}

.client-news-back-link {
    color: #1769ff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.client-news-back-link:hover {
    color: #0b4dcc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .client-news-navigation {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }
}
