:root {
    --brand: #17a9b2;
    --brand-dark: #087781;
    --ink: #172126;
    --muted: #64727a;
    --line: #dfe7ea;
    --soft: #f4f8f9;
    --warm: #f59e0b;
    --coral: #e85d5c;
    --green: #0f9f6e;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(23, 33, 38, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Nirmala UI", "SolaimanLipi", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.notice-bar {
    background: #172126;
    color: var(--white);
    font-size: 14px;
}

.notice-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    text-align: center;
}

.notice-inner span {
    color: #92ecf3;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-shell {
    display: grid;
    grid-template-columns: auto minmax(260px, 620px) auto;
    width: min(1480px, calc(100% - 32px));
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 190px;
}

.brand img {
    width: 210px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-search {
    display: flex;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 10px 11px;
    outline: 0;
}

.header-search button,
.primary-link,
.icon-link,
.btn,
.btn-secondary,
.btn-light,
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
}

.header-search button,
.primary-link,
.btn,
.admin-btn {
    color: var(--white);
    background: var(--brand-dark);
}

.icon-link,
.btn-secondary {
    color: var(--ink);
    background: #f3f7f8;
    border: 1px solid var(--line);
}

.btn-light {
    color: var(--ink);
    background: var(--white);
}

.btn:hover,
.primary-link:hover,
.admin-btn:hover {
    background: #055e66;
}

.btn-secondary:hover,
.icon-link:hover {
    border-color: #9bd9de;
    color: var(--brand-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.book-nav-wrap {
    position: relative;
    border-top: 1px solid #202020;
    border-bottom: 1px solid #0a0a0a;
    background: #050505;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
}

.book-nav-inner,
.book-nav {
    position: relative;
}

.book-nav-inner {
    width: min(1480px, calc(100% - 32px));
    margin-inline: auto;
}

.book-nav > ul {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.book-nav-item {
    position: static;
    flex: 0 0 auto;
}

.book-nav-item > a,
.book-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px clamp(10px, 1.05vw, 18px);
    border: 0;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
}

.book-nav-item > a:hover,
.book-nav-trigger:hover,
.book-nav-item.open > .book-nav-trigger,
.book-nav-item.current > .book-nav-trigger,
.book-nav-item > a.active {
    color: #ffffff;
    background: #262626;
}

.nav-caret {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.book-nav-item.open .nav-caret {
    transform: rotate(225deg) translate(-1px, -1px);
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 80;
    display: none;
    max-height: min(72vh, 720px);
    padding: 0;
    overflow: visible;
    border: 1px solid #8c8c8c;
    border-top: 0;
    border-radius: 0 0 3px 3px;
    background: #cfcfcf;
    box-shadow: 0 9px 16px rgba(0, 0, 0, 0.2);
}

.books-mega-menu {
    max-height: calc(100vh - 126px);
}

.book-nav-item.open > .mega-menu {
    display: block;
}

.mega-menu-head {
    display: none;
}

.books-mega-layout {
    max-height: calc(100vh - 128px);
    padding: 14px 18px 18px;
    overflow: visible;
}

.books-catalog-links {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.books-catalog-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 29px;
    padding: 5px 0;
    color: #181818;
    font-size: 13px;
    font-weight: 700;
}

.books-catalog-links a:hover,
.books-catalog-links a:focus-visible {
    color: #000000;
    background: #bbbbbb;
    box-shadow: none;
}

.books-academic-panel {
    min-width: 0;
}

.books-academic-heading {
    display: none;
}

.mega-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 30px;
    align-items: start;
}

.mega-subject {
    position: relative;
    min-width: 0;
    padding: 0;
    border-left: 0;
}

.mega-subject-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    margin: 0;
    padding: 5px 10px;
    color: #111111;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.mega-subject.has-submenu > .mega-subject-title::after {
    content: ">";
    flex: 0 0 auto;
    margin-left: 10px;
    color: #111111;
    font-size: 10px;
    font-weight: 800;
}

.mega-subject-title:hover,
.mega-subject li a:hover,
.mega-link-grid a:hover {
    color: #000000;
}

.mega-subject ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-subject.has-submenu > ul {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 95;
    display: none;
    width: min(230px, 26vw);
    max-height: 300px;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    border: 1px solid #b9b9b9;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.mega-subject.has-submenu:hover > ul,
.mega-subject.has-submenu:focus-within > ul {
    display: grid;
}

.mega-subject.has-submenu:hover > .mega-subject-title,
.mega-subject.has-submenu:focus-within > .mega-subject-title {
    background: #bcbcbc;
}

.mega-subject li {
    position: relative;
    min-width: 0;
}

.mega-subject li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding: 5px 10px;
    color: #1f1f1f;
    font-size: 12px;
    line-height: 1.35;
}

.mega-subject li.has-submenu > a::after,
.mega-subject li:has(> ul) > a::after {
    content: ">";
    margin-left: 8px;
    color: #111111;
    font-size: 10px;
    font-weight: 800;
}

.mega-subject li:hover > a,
.mega-subject li:focus-within > a {
    background: #bcbcbc;
}

.mega-subject ul ul {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 90;
    display: none;
    width: min(250px, 35vw);
    max-height: 300px;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    border: 1px solid #b9b9b9;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.mega-subject li:hover > ul,
.mega-subject li:focus-within > ul {
    display: grid;
}

.mega-subject ul ul a {
    min-height: 29px;
    padding: 5px 10px;
    color: #111111;
    font-weight: 700;
}

.mega-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px 28px;
}

.mega-link-grid a {
    padding: 8px 0;
    border-bottom: 1px solid #edf1f2;
    color: #4c5960;
    font-weight: 650;
}

@media (min-width: 1181px) {
    .book-nav-item.has-mega:hover > .mega-menu,
    .book-nav-item.has-mega:focus-within > .mega-menu {
        display: block;
    }
}

.hero {
    min-height: clamp(560px, 72vh, 720px);
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 19, 24, 0.86), rgba(7, 19, 24, 0.55) 52%, rgba(7, 19, 24, 0.16));
}

.hero-content {
    width: min(760px, 100%);
    padding: 72px 0 96px;
}

.hero-content-actions-only {
    width: 100%;
    min-height: clamp(560px, 72vh, 720px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 86px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #b9f7fb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero p,
.page-hero p {
    width: min(680px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.2vw, 21px);
}

.hero-actions,
.section-actions,
.card-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.hero-cta-slider {
    width: min(390px, 100%);
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.hero-cta-track {
    display: flex;
    width: 200%;
    animation: heroCtaSlide 5.5s infinite;
}

.hero-cta-slider:hover .hero-cta-track,
.hero-cta-slider:focus-within .hero-cta-track {
    animation-play-state: paused;
}

.hero-cta-slide {
    width: 50%;
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.hero-cta-slide span {
    font-size: 20px;
    font-weight: 850;
    line-height: 1.15;
}

.hero-cta-slide small {
    color: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    opacity: 0.86;
}

.hero-cta-primary {
    color: var(--white);
    background: var(--brand);
}

.hero-cta-primary:hover {
    background: var(--brand-dark);
}

.hero-cta-light {
    color: var(--brand-dark);
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-cta-light:hover {
    color: var(--ink);
    background: #f4fbfb;
}

.hero-cta-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}

.hero-cta-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-cta-dots span.active {
    width: 24px;
    background: var(--white);
}

@keyframes heroCtaSlide {
    0%,
    42% {
        transform: translateX(0);
    }
    50%,
    92% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    transform: translateY(-50%);
}

.metric {
    min-height: 112px;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.metric strong {
    display: block;
    color: var(--brand-dark);
    font-size: 30px;
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 650;
}

.section {
    padding: 78px 0;
}

.section.alt {
    background: var(--soft);
}

.section.tight {
    padding-top: 34px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-head h2,
.panel-title,
.admin-title h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: 0;
}

.section-head p {
    margin: 10px 0 0;
    max-width: 660px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
}

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

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

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.resource-card,
.course-card,
.book-card,
.plan-card,
.banner-card,
.admin-panel,
.form-panel,
.dashboard-panel,
.faq-item,
.review-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 33, 38, 0.06);
}

.book-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: #b9dce2;
    box-shadow: 0 18px 36px rgba(23, 67, 78, 0.12);
}

.course-card,
.resource-card,
.book-card,
.banner-card {
    overflow: hidden;
}

.card,
.plan-card,
.admin-panel,
.form-panel,
.dashboard-panel,
.faq-item,
.review-card {
    padding: 24px;
}

.course-card img,
.resource-card img,
.book-card img,
.banner-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #edf3f4;
}

.book-cover-link {
    display: block;
    padding: 12px 12px 0;
    background: linear-gradient(180deg, #f4f9fa, #ffffff);
}

.book-cover-frame {
    display: grid;
    max-width: 180px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    overflow: hidden;
    place-items: center;
    border-radius: 7px;
    background: #e9f2f3;
    box-shadow: 0 12px 25px rgba(25, 54, 62, 0.14);
}

.book-cover-frame img,
.book-card .book-cover-frame img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.book-card .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px 12px 12px;
}

.book-card .badge-row {
    gap: 6px;
    margin-bottom: 8px;
}

.book-card .badge {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 10px;
}

.book-card h3 {
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.32;
}

.book-card h3 a {
    color: inherit;
}

.book-card h3 a:hover {
    color: var(--brand-dark);
}

.book-card .book-author,
.book-card .book-publisher {
    font-size: 12px;
    line-height: 1.4;
}

.book-card .book-author {
    color: #33434c;
    font-weight: 750;
}

.book-card .book-publisher {
    margin-top: 2px;
}

.book-commerce-row {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
}

.book-stock {
    font-weight: 800;
}

.book-stock.available {
    color: #08724d;
}

.book-stock.unavailable {
    color: #b53736;
}

.book-sales {
    color: var(--muted);
}

.book-card .price {
    margin: 7px 0 10px;
    font-size: 20px;
}

.book-card .card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.book-card .card-actions > a,
.book-card .card-actions > span {
    min-height: 38px;
    padding: 8px 10px;
}

.btn-disabled {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #d7dfe1;
    border-radius: 6px;
    color: #7a858a;
    background: #edf1f2;
    font-weight: 800;
    cursor: not-allowed;
}

.card-body {
    padding: 20px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #e9fbfc;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.badge.warm {
    background: #fff5d8;
    color: #8a5600;
}

.badge.green {
    background: #e8fbf2;
    color: #08724d;
}

.badge.coral {
    background: #fff0f0;
    color: #b53736;
}

.card h3,
.course-card h3,
.resource-card h3,
.book-card h3,
.plan-card h3,
.banner-card h3,
.dashboard-panel h3,
.faq-item h3,
.review-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
}

.card p,
.course-card p,
.resource-card p,
.book-card p,
.plan-card p,
.banner-card p,
.dashboard-panel p,
.faq-item p,
.review-card p {
    margin: 0;
    color: var(--muted);
}

.price {
    margin: 16px 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 850;
}

.feature-list,
.clean-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.feature-list li,
.clean-list li {
    position: relative;
    padding-left: 22px;
    color: #34434a;
}

.feature-list li::before,
.clean-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.plan-card.featured {
    border-color: #80dfe5;
    box-shadow: 0 20px 45px rgba(23, 169, 178, 0.18);
}

.portal-tabs,
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.portal-tabs a,
.filter-tabs a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #34434a;
    background: var(--white);
    font-weight: 750;
}

.portal-tabs a.active,
.filter-tabs a.active {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: #e9fbfc;
}

.page-hero {
    padding: 72px 0;
    color: var(--white);
    background: #172126;
    background-position: center;
    background-size: cover;
    position: relative;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(7, 19, 24, 0.72);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.form-actions.full {
    grid-column: 1 / -1;
}

.field label {
    color: #34434a;
    font-size: 14px;
    font-weight: 750;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cdd9dd;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    outline: 0;
}

.field textarea {
    min-height: 116px;
    resize: vertical;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #cdd9dd;
    border-radius: 8px;
    background: var(--white);
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 169, 178, 0.14);
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #b7e4c7;
    background: #edfdf4;
    color: #08724d;
    font-weight: 700;
}

.alert.error {
    border-color: #f4b4b4;
    background: #fff1f1;
    color: #a12121;
}

.calculator-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-radius: 8px;
    background: #172126;
    color: var(--white);
}

.calculator-total strong {
    font-size: 28px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.contact-list a,
.contact-list span {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    overflow-wrap: anywhere;
}

.site-footer {
    padding: 54px 0 24px;
    color: #dce7ea;
    background: #172126;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1.1fr;
    gap: 28px;
}

.footer-logo {
    width: 220px;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(1.2);
    background: var(--white);
    padding: 7px;
    border-radius: 8px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 14px 0 0;
    color: #b9c8cd;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #dce7ea;
}

.site-footer a:hover {
    color: #92ecf3;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #b9c8cd;
    font-size: 14px;
}

.admin-body {
    background: #eef4f5;
}

.admin-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px;
    overflow-y: auto;
    background: #172126;
    color: var(--white);
}

.admin-brand {
    display: block;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-brand img {
    width: 210px;
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
    background: var(--white);
    border-radius: 8px;
    padding: 6px;
}

.admin-nav {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.admin-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #dce7ea;
    font-weight: 700;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(23, 169, 178, 0.22);
    color: #92ecf3;
}

.admin-main {
    padding: 26px;
}

.admin-topbar,
.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.admin-stat strong {
    display: block;
    color: var(--brand-dark);
    font-size: 28px;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.admin-table th {
    color: #34434a;
    background: #f7fbfb;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.admin-preview {
    width: min(240px, 100%);
    max-height: 120px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    padding: 6px;
}

.table-thumb {
    width: 74px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.danger {
    background: var(--coral);
}

.danger:hover {
    background: #c83d3c;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #eef4f5;
}

.admin-login-card {
    width: min(430px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-login-card img {
    width: 230px;
    max-height: 74px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 22px;
}

.status-active,
.status-approved,
.status-completed,
.status-delivered,
.status-ready {
    color: #08724d;
    font-weight: 800;
}

.status-pending,
.status-processing,
.status-printing,
.status-binding,
.status-shipped,
.status-new {
    color: #8a5600;
    font-weight: 800;
}

.status-inactive,
.status-suspended,
.status-failed,
.status-refunded {
    color: #a12121;
    font-weight: 800;
}

.empty-state {
    padding: 28px;
    border: 1px dashed #b9c8cd;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    background: var(--white);
}

.book-access-summary {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.book-access-cover {
    overflow: hidden;
    border-radius: 16px;
    background: #edf3f4;
    box-shadow: var(--shadow);
}

.book-access-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.book-access-meta h1 {
    margin: 12px 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
}

.book-access-meta > p {
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

.book-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 20px 0;
    color: #405058;
    font-weight: 650;
}

.book-description-section {
    scroll-margin-top: 130px;
}

.book-description-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 33, 38, 0.06);
}

.book-description-panel h2 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
}

.book-description-panel p {
    max-width: 900px;
    margin: 0;
    color: #405058;
    font-size: 17px;
}

.access-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 18px;
}

.access-option-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 33, 38, 0.06);
}

.access-option-card .access-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 13px;
    background: #e9fbfc;
    font-size: 24px;
}

.access-option-card h2 {
    margin: 0 0 10px;
    font-size: 23px;
}

.access-option-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.access-option-card .card-actions {
    margin-top: auto;
}

.access-state {
    margin: 12px 0 18px;
    padding: 11px 13px;
    border-radius: 9px;
    color: #6f4e05;
    background: #fff7dc;
    font-size: 13px;
    font-weight: 750;
}

.access-state.ready {
    color: #12623e;
    background: #e8f8ef;
}

.security-panel {
    margin-top: 22px;
    border: 1px solid #d9e5e7;
    border-radius: 14px;
    background: #f9fcfc;
}

.security-panel summary {
    padding: 16px 18px;
    color: #203137;
    font-weight: 850;
    cursor: pointer;
}

.security-panel .security-content {
    padding: 0 18px 18px;
}

.security-content ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 21px;
    color: var(--muted);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.flow-steps li {
    position: relative;
    min-height: 96px;
    padding: 18px 14px 14px 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: #34444b;
    font-weight: 750;
    counter-increment: flow;
}

.flow-steps li::before {
    position: absolute;
    top: 15px;
    left: 14px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--brand-dark);
    content: counter(flow);
    font-size: 12px;
}

.secure-reader {
    overflow: hidden;
    border: 1px solid #cfdcdf;
    border-radius: 16px;
    background: #233037;
    box-shadow: var(--shadow);
    user-select: none;
    -webkit-user-select: none;
}

.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    color: var(--white);
    background: #172126;
}

.reader-toolbar strong {
    font-size: 14px;
}

.reader-frame {
    position: relative;
    min-height: 76vh;
    background: #46535a;
}

.reader-frame object {
    display: block;
    width: 100%;
    min-height: 76vh;
    border: 0;
}

.reader-fallback {
    display: grid;
    min-height: 58vh;
    padding: 28px;
    place-items: center;
    color: var(--white);
    text-align: center;
}

.security-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 200;
    display: none;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--white);
    background: #172126;
    box-shadow: var(--shadow);
}

.security-toast.show {
    display: block;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #34444b;
    font-size: 14px;
    line-height: 1.45;
}

.terms-check input {
    width: auto;
    margin-top: 3px;
}

.compact-form {
    margin-top: 16px;
}

.category-explorer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.category-chip {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: #35454d;
    background: var(--white);
    font-weight: 750;
    line-height: 1.45;
}

.category-chip:hover,
.category-chip.active {
    border-color: #8ed4da;
    color: var(--brand-dark);
    background: #effcfd;
}

.catalog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #7a8991;
    font-size: 14px;
}

.catalog-breadcrumb a {
    color: #45606c;
    font-weight: 700;
}

.catalog-breadcrumb a:hover {
    color: var(--brand-dark);
}

.catalog-view-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 34px;
}

.catalog-view-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid #d8e4ed;
    border-radius: 9px;
    color: #3a4b54;
    background: var(--white);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 7px 16px rgba(28, 57, 71, 0.05);
}

.catalog-view-tabs a:hover,
.catalog-view-tabs a.active {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: #eafafb;
}

.catalog-section-head {
    margin-bottom: 20px;
}

.subcategory-tabs {
    margin: 20px 0 0;
}

.catalog-search {
    margin-top: 28px;
}

.catalog-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}

.catalog-search-row .btn,
.catalog-search-row .btn-secondary {
    min-height: 46px;
}

.catalog-results-head {
    margin-top: 36px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    margin-top: 32px;
}

.catalog-filter-panel {
    position: sticky;
    top: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(23, 33, 38, 0.06);
}

.catalog-filter-panel form {
    display: grid;
    gap: 14px;
}

.catalog-filter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.catalog-filter-head h2 {
    margin: 3px 0 0;
    font-size: 20px;
}

.catalog-filter-head > a {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.catalog-filter-panel .field {
    gap: 6px;
}

.catalog-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.catalog-filter-submit {
    width: 100%;
}

.catalog-results {
    min-width: 0;
}

.catalog-results .catalog-results-head {
    margin-top: 0;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-form [data-admin-field][hidden] {
    display: none !important;
}

.book-card .card-actions > a {
    flex: 1 1 130px;
    text-align: center;
}

@media (max-width: 1180px) {
    .header-shell {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 10px 0;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .header-actions {
        display: none;
        grid-column: 1 / -1;
    }

    .header-actions.open {
        display: flex;
        justify-content: flex-start;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .book-nav-wrap {
        display: none;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        border-top: 1px solid #1d1d1d;
        background: #050505;
    }

    .book-nav-wrap.open {
        display: block;
    }

    .book-nav > ul {
        display: block;
        padding: 6px 0 14px;
        overflow-x: visible;
    }

    .book-nav-item > a,
    .book-nav-trigger {
        justify-content: space-between;
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        border-bottom: 1px solid #202020;
        color: #ffffff;
    }

    .mega-menu {
        position: static;
        max-height: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #cfcfcf;
        box-shadow: none;
    }

    .mega-subject-grid,
    .mega-link-grid,
    .category-explorer,
    .catalog-view-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .books-mega-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        max-height: none;
        padding: 14px 12px 18px;
        overflow: visible;
    }

    .books-catalog-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .books-catalog-links a {
        padding-right: 8px;
        padding-left: 8px;
        background: #dddddd;
    }

    .mega-subject-grid {
        gap: 9px 14px;
    }

    .mega-subject {
        padding: 10px;
        background: #dddddd;
    }

    .mega-subject-title {
        margin-top: 0;
        font-size: 13px;
    }

    .mega-subject li a {
        padding-right: 0;
    }

    .mega-subject.has-submenu > ul {
        position: static;
        display: grid;
        width: auto;
        max-height: none;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .mega-subject ul ul {
        position: static;
        display: grid;
        width: auto;
        max-height: none;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 1px solid #adadad;
        background: transparent;
        box-shadow: none;
    }

    .access-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-layout {
        grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
    }

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

    .hero-metrics,
    .grid.cols-4,
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        transform: none;
        margin-top: 18px;
    }

    .section.tight {
        padding-top: 56px;
    }

    .grid.cols-3,
    .footer-grid,
    .split-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .notice-inner {
        display: grid;
        gap: 2px;
    }

    .header-shell {
        min-height: 68px;
        gap: 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: min(210px, 62vw);
        height: 52px;
    }

    .header-actions.open {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .header-actions > * {
        width: 100%;
    }

    .book-nav-inner {
        width: min(100% - 20px, 1180px);
    }

    .mega-menu-head h2 {
        font-size: 21px;
    }

    .mega-menu-head {
        align-items: start;
        flex-direction: column;
    }

    .mega-subject-grid,
    .mega-link-grid,
    .category-explorer,
    .catalog-view-tabs,
    .access-option-grid,
    .flow-steps {
        grid-template-columns: 1fr;
    }

    .catalog-search-row {
        grid-template-columns: 1fr;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-filter-panel {
        position: static;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .books-catalog-links {
        grid-template-columns: 1fr;
    }

    .book-access-summary {
        grid-template-columns: 1fr;
    }

    .book-access-cover {
        max-width: 340px;
    }

    .reader-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .reader-frame,
    .reader-frame object {
        min-height: 68vh;
    }

    .hero {
        min-height: 620px;
        align-items: end;
    }

    .hero::before {
        background: rgba(7, 19, 24, 0.74);
    }

    .hero-content {
        padding: 58px 0 80px;
    }

    .hero-content-actions-only {
        min-height: 620px;
        padding: 0 0 42px;
        align-items: flex-end;
    }

    .hero-cta-slider {
        width: 100%;
        padding: 10px;
    }

    .hero-cta-slide {
        min-height: 82px;
        padding: 15px 14px;
    }

    .hero-cta-slide span {
        font-size: 18px;
    }

    .hero-cta-slide small {
        font-size: 12px;
    }

    .hero-metrics,
    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4,
    .footer-grid,
    .split-layout,
    .form-grid,
    .admin-form,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

    .section-head,
    .admin-topbar,
    .admin-title,
    .footer-bottom {
        display: grid;
        align-items: start;
    }

    .card,
    .plan-card,
    .admin-panel,
    .form-panel,
    .dashboard-panel,
    .faq-item,
    .review-card {
        padding: 18px;
    }

    .admin-main {
        padding: 16px;
    }

    .footer-logo,
    .admin-brand img {
        width: min(220px, 100%);
    }
}

/* Role-aware user dashboard */
.role-dashboard-section {
    background:
        radial-gradient(circle at 92% 8%, rgba(19, 174, 186, 0.11), transparent 28%),
        linear-gradient(180deg, #f8fbfc 0%, #ffffff 78%);
}

.role-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 24px 28px;
    border: 1px solid #dce9ec;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(23, 33, 38, 0.07);
}

.role-dashboard-head h2 {
    margin: 10px 0 4px;
    font-size: clamp(25px, 3vw, 36px);
}

.role-dashboard-head p {
    margin: 0;
    color: var(--muted);
}

.role-dashboard-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e3f8fa;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 850;
}

.role-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.role-metric {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid #dce9ec;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 14px 30px rgba(23, 33, 38, 0.06);
}

.role-metric::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(19, 174, 186, 0.1);
}

.role-metric span,
.role-metric small {
    display: block;
    color: var(--muted);
}

.role-metric span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-metric strong {
    display: block;
    margin: 13px 0 8px;
    color: var(--ink);
    font-size: clamp(23px, 2.6vw, 32px);
    line-height: 1.1;
}

.role-metric small {
    font-size: 13px;
}

.dashboard-section-head {
    margin-top: 42px;
}

.role-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.role-action-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 122px;
    padding: 20px;
    border: 1px solid #dce9ec;
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(23, 33, 38, 0.055);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.role-action-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 18px 36px rgba(19, 174, 186, 0.13);
}

.role-action-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 11px;
    background: #e8f8fa;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.role-action-card strong,
.role-action-card small {
    display: block;
}

.role-action-card strong {
    margin-bottom: 7px;
    font-size: 17px;
}

.role-action-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.role-action-arrow {
    color: var(--brand);
    font-size: 22px;
    font-weight: 800;
}

.partner-workspace,
.partner-report-grid,
.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.partner-workspace > *,
.partner-report-grid > *,
.account-settings-grid > * {
    min-width: 0;
}

.partner-report-grid .admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.partner-workspace .form-panel {
    height: 100%;
}

#partner-upload,
#partner-withdraw,
#partner-income,
#partner-uploads,
#partner-withdrawals,
#account-settings {
    scroll-margin-top: 32px;
}

.dashboard-card-actions,
.account-password-form {
    margin-top: 22px;
}

.profile-summary {
    display: grid;
    gap: 0;
    margin: 20px 0 0;
}

.profile-summary div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.profile-summary dt {
    color: var(--muted);
    font-weight: 750;
}

.profile-summary dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 750;
}

.notification-title {
    margin-top: 12px !important;
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

@media (max-width: 1180px) {
    .role-metric-grid,
    .role-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .role-dashboard-head {
        display: grid;
        padding: 20px;
    }

    .role-dashboard-head-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .role-dashboard-head-actions > * {
        width: 100%;
    }

    .role-metric-grid,
    .role-action-grid,
    .partner-workspace,
    .partner-report-grid,
    .account-settings-grid {
        grid-template-columns: 1fr;
    }

    .role-metric {
        min-height: 132px;
    }

    .role-action-card {
        min-height: 108px;
        padding: 17px;
    }

    .profile-summary div {
        grid-template-columns: 86px minmax(0, 1fr);
    }
}
