:root {
    --portal-ink: #34412f;
    --portal-muted: #667060;
    --portal-olive: #6f805e;
    --portal-olive-dark: #526248;
    --portal-sage: #dfe8d5;
    --portal-cream: #fbfaf4;
    --portal-rose: #f4ded8;
    --portal-coral: #d98d77;
    --portal-border: #dfe5d8;
    --portal-shadow: 0 18px 48px rgba(61, 75, 54, 0.11);
    --portal-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f7f7f1;
}

body.g4y-portal-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 3% 7%, rgba(211, 225, 199, 0.55), transparent 25rem),
        radial-gradient(circle at 96% 9%, rgba(244, 222, 216, 0.6), transparent 26rem),
        linear-gradient(180deg, #fbfaf5 0%, #f3f6ee 100%);
    color: var(--portal-ink);
    font-family: Verdana, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.g4y-portal-body :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(82, 98, 72, 0.35);
    outline-offset: 3px;
}

.g4y-portal-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(111, 128, 94, 0.14);
    background: rgba(252, 251, 246, 0.94);
    backdrop-filter: blur(16px);
}

.g4y-portal-header-inner {
    display: grid;
    width: min(1320px, calc(100% - 32px));
    grid-template-areas:
        "brand toggle"
        "navigation navigation";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: center;
    margin: 0 auto;
    padding: 12px 0 10px;
}

.g4y-portal-brand {
    grid-area: brand;
    display: flex;
    min-width: 0;
    gap: 13px;
    align-items: center;
    color: var(--portal-ink);
    text-decoration: none;
}

.g4y-portal-brand-logo {
    display: grid;
    width: clamp(190px, 18vw, 240px);
    height: auto;
    aspect-ratio: 2.8 / 1;
    place-items: center;
    overflow: visible;
    padding: 9px 13px;
    border-radius: 15px;
    background: linear-gradient(135deg, #607152, #7f906d);
    box-shadow: 0 8px 22px rgba(61, 75, 54, 0.14);
}

.g4y-portal-brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.g4y-portal-brand-copy {
    display: grid;
    line-height: 1.3;
}

.g4y-portal-brand-copy strong {
    font-size: 15px;
}

.g4y-portal-brand-copy span {
    color: var(--portal-muted);
    font-size: 12px;
}

.g4y-portal-nav {
    grid-area: navigation;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: center;
    padding-top: 9px;
    border-top: 1px solid rgba(111, 128, 94, 0.14);
}

.g4y-portal-nav > a,
.g4y-portal-nav-group > summary {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #edf2e8;
    color: #45533e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.g4y-portal-nav > a:hover,
.g4y-portal-nav > a[aria-current="page"],
.g4y-portal-nav-group > summary:hover,
.g4y-portal-nav-group > summary[aria-current="page"],
.g4y-portal-nav-group[open] > summary {
    border-color: #cbd7bf;
    background: #dfe9d7;
}

.g4y-portal-nav .logout {
    background: #f7e7e3;
    color: #814a3e;
}

.g4y-portal-nav > .is-locked {
    opacity: 0.72;
}

.g4y-portal-nav > .is-locked::before,
.g4y-portal-nav-submenu a.is-locked strong::before {
    margin-right: 5px;
    content: "🔒";
    font-size: 10px;
}

.g4y-portal-nav-group {
    position: relative;
}

.g4y-portal-nav-group > summary {
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}

.g4y-portal-nav-group > summary::-webkit-details-marker {
    display: none;
}

.g4y-portal-nav-group > summary::after {
    margin-left: 7px;
    content: "▾";
    font-size: 10px;
    transition: transform 150ms ease;
}

.g4y-portal-nav-group[open] > summary::after {
    transform: rotate(180deg);
}

.g4y-portal-nav-submenu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: 310px;
    padding: 8px;
    border: 1px solid rgba(70, 84, 63, 0.18);
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 18px 42px rgba(48, 61, 45, 0.18);
}

.g4y-portal-nav-group:last-of-type .g4y-portal-nav-submenu {
    right: 0;
    left: auto;
}

.g4y-portal-nav-submenu a {
    display: grid;
    gap: 1px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #46543f;
    text-decoration: none;
}

.g4y-portal-nav-submenu a:hover {
    border-color: #d6dfcd;
    background: #edf2e8;
}

.g4y-portal-nav-submenu a.is-locked {
    background: #f7f4ed;
    color: #74766e;
}

.g4y-portal-nav-submenu strong {
    font-size: 13px;
    line-height: 1.35;
}

.g4y-portal-nav-submenu span {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.g4y-portal-menu-toggle {
    grid-area: toggle;
    display: none;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid #cbd7bf;
    border-radius: 999px;
    background: #edf2e8;
    color: #45533e;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.g4y-portal-menu-icon,
.g4y-portal-menu-icon::before,
.g4y-portal-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.g4y-portal-menu-icon {
    position: relative;
}

.g4y-portal-menu-icon::before,
.g4y-portal-menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.g4y-portal-menu-icon::before {
    top: -6px;
}

.g4y-portal-menu-icon::after {
    top: 6px;
}

.g4y-portal-main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.g4y-portal-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #dacb9d;
    border-radius: 15px;
    background: #fff9df;
    color: #645524;
    font-size: 13px;
}

.g4y-portal-preview a {
    color: inherit;
    font-weight: 700;
}

.g4y-preview-mode .g4y-portal-main form :disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.g4y-portal-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(111, 128, 94, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 93% 18%, rgba(217, 141, 119, 0.26), transparent 17rem),
        linear-gradient(132deg, #eaf0e2 0%, #f4f4e9 54%, #f6e3de 100%);
    box-shadow: var(--portal-shadow);
}

.g4y-portal-hero::after {
    position: absolute;
    right: -70px;
    bottom: -125px;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(82, 98, 72, 0.16);
    border-radius: 50%;
    content: "";
}

.g4y-portal-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--portal-olive-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.g4y-portal-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 10px;
    color: #34422f;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: 0;
    line-height: 1.2;
}

.g4y-portal-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: #596554;
    font-size: clamp(15px, 2vw, 17px);
}

.g4y-portal-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.g4y-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid var(--portal-olive);
    border-radius: 999px;
    background: linear-gradient(135deg, #7f906d, #5e704f);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.g4y-button:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.g4y-button.secondary {
    border-color: #ccd5c2;
    background: rgba(255, 254, 250, 0.82);
    color: var(--portal-olive-dark);
}

.g4y-button.danger {
    border-color: #d9a99b;
    background: #fff0ec;
    color: #8d4b3c;
}

.g4y-portal-notice {
    margin-bottom: 18px;
    padding: 14px 17px;
    border: 1px solid #bcd7bf;
    border-radius: 16px;
    background: #ecf7ed;
    color: #356242;
}

.g4y-portal-notice.error {
    border-color: #e1b6ad;
    background: #fff0ed;
    color: #8d493d;
}

.g4y-pending-profile {
    margin-top: 10px;
}

.g4y-pending-profile summary {
    width: max-content;
    font-weight: 700;
    cursor: pointer;
}

.g4y-pending-profile dl {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
}

.g4y-pending-profile dl > div {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid rgba(53, 98, 66, 0.13);
}

.g4y-pending-profile dt {
    font-size: 12px;
    font-weight: 700;
}

.g4y-pending-profile dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.g4y-portal-section-head {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
    margin: 32px 2px 15px;
}

.g4y-portal-section-head h2 {
    margin: 0;
    color: var(--portal-ink);
    font-size: 24px;
    line-height: 1.3;
}

.g4y-portal-section-head p {
    max-width: 690px;
    margin: 5px 0 0;
    color: var(--portal-muted);
}

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

.g4y-module-sections {
    display: grid;
    gap: 24px;
}

.g4y-module-section {
    padding: 18px;
    border: 1px solid rgba(111, 128, 94, 0.14);
    border-radius: 24px;
    background: rgba(255, 254, 249, 0.54);
}

.g4y-module-section > h3 {
    margin: 0 0 13px;
    color: var(--portal-olive-dark);
    font-size: 15px;
}

.g4y-module-grid.is-grouped {
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.g4y-module-card {
    position: relative;
    display: flex;
    min-height: 184px;
    overflow: hidden;
    flex-direction: column;
    padding: 17px;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: rgba(255, 255, 252, 0.92);
    box-shadow: 0 12px 34px rgba(66, 80, 57, 0.08);
    color: var(--portal-ink);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.g4y-module-card:not(.is-locked):hover {
    border-color: #b9c9ac;
    box-shadow: 0 18px 45px rgba(66, 80, 57, 0.13);
    transform: translateY(-3px);
}

.g4y-module-card::before {
    position: absolute;
    right: -40px;
    top: -44px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--module-tint, #e8eee1);
    content: "";
    opacity: 0.85;
}

.g4y-module-card[data-tone="sage"] { --module-tint: #dce8d2; }
.g4y-module-card[data-tone="peach"] { --module-tint: #f6dfd3; }
.g4y-module-card[data-tone="cream"] { --module-tint: #f3ebce; }
.g4y-module-card[data-tone="rose"] { --module-tint: #f0d7db; }
.g4y-module-card[data-tone="blue"] { --module-tint: #dbe8e8; }
.g4y-module-card[data-tone="lime"] { --module-tint: #e1e9ca; }
.g4y-module-card[data-tone="sand"] { --module-tint: #ebe2d1; }
.g4y-module-card[data-tone="coral"] { --module-tint: #f1d0c5; }

.g4y-module-icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    margin-bottom: 16px;
    border: 1px solid rgba(82, 98, 72, 0.12);
    border-radius: 17px;
    background: rgba(255, 255, 252, 0.76);
    color: var(--portal-olive-dark);
}

.g4y-module-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.g4y-module-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.35;
}

.g4y-module-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
    line-height: 1.5;
}

.g4y-module-status {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: max-content;
    margin-top: auto;
    padding-top: 11px;
    color: var(--portal-olive-dark);
    font-size: 12px;
    font-weight: 700;
}

.g4y-module-card.is-locked {
    cursor: pointer;
    filter: saturate(0.82);
}

.g4y-module-card.is-locked:hover {
    border-color: #d8b9ad;
    box-shadow: 0 18px 45px rgba(86, 67, 59, 0.13);
    transform: translateY(-2px);
}

.g4y-module-card.is-locked::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 253, 249, 0.16), rgba(241, 233, 225, 0.38));
    content: "";
}

.g4y-lock {
    position: absolute;
    z-index: 4;
    right: 16px;
    top: 16px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #d9c6bc;
    border-radius: 13px;
    background: #fff8f5;
    color: #915a4b;
    box-shadow: 0 10px 25px rgba(86, 67, 59, 0.12);
}

.g4y-lock svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.g4y-access-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    margin-top: 13px;
    padding: 6px 9px;
    border: 1px solid #cbd8c4;
    border-radius: 999px;
    background: #edf4e8;
    color: #405b3d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.g4y-access-badge.is-package {
    border-color: #b9d1d3;
    background: #e8f3f3;
    color: #2d5c60;
}

.g4y-access-badge.is-gift {
    border-color: #dfc7af;
    background: #fff2e3;
    color: #80552e;
}

.g4y-access-badge.is-blocked {
    border-color: #dfc5bb;
    background: #fff5f1;
    color: #855144;
}

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

.g4y-panel {
    padding: 23px;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: rgba(255, 255, 252, 0.9);
    box-shadow: 0 10px 28px rgba(66, 80, 57, 0.07);
}

.g4y-panel h2,
.g4y-panel h3 {
    margin-top: 0;
    line-height: 1.35;
}

.g4y-panel p:last-child {
    margin-bottom: 0;
}

.g4y-stat {
    display: block;
    margin-bottom: 5px;
    color: var(--portal-olive-dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

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

.g4y-field label,
.g4y-field > span {
    font-size: 13px;
    font-weight: 700;
}

.g4y-field label small {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 400;
}

.g4y-field input,
.g4y-field select,
.g4y-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5c2;
    border-radius: 13px;
    background: #fffefa;
    color: var(--portal-ink);
    font: inherit;
    font-size: 15px;
}

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

.g4y-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.g4y-check input {
    width: 19px;
    height: 19px;
    margin-top: 3px;
}

.g4y-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background: #fffefa;
}

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

.g4y-table th,
.g4y-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e8ece3;
    text-align: left;
    vertical-align: top;
}

.g4y-table th {
    background: #f1f5ed;
    color: #4a5843;
    font-size: 12px;
}

.g4y-table tr:last-child td {
    border-bottom: 0;
}

.g4y-empty {
    padding: 28px;
    border: 1px dashed #cad4c0;
    border-radius: 18px;
    background: rgba(255, 254, 250, 0.66);
    color: var(--portal-muted);
    text-align: center;
}

.g4y-chart {
    display: grid;
    grid-template-columns: repeat(var(--chart-count, 1), minmax(24px, 1fr));
    height: 230px;
    gap: 8px;
    align-items: end;
    padding: 22px 16px 36px;
    border: 1px solid var(--portal-border);
    border-radius: 20px;
    background:
        repeating-linear-gradient(to top, transparent 0, transparent 45px, rgba(111, 128, 94, 0.10) 46px),
        #fffefa;
}

.g4y-chart-bar {
    position: relative;
    min-height: 4px;
    border-radius: 9px 9px 3px 3px;
    background: linear-gradient(180deg, #8fa078, #66795a);
}

.g4y-chart-bar span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    color: var(--portal-ink);
    font-size: 10px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.g4y-chart-bar small {
    position: absolute;
    left: 50%;
    top: calc(100% + 7px);
    color: var(--portal-muted);
    font-size: 9px;
    transform: translateX(-50%) rotate(-35deg);
    transform-origin: center;
    white-space: nowrap;
}

.g4y-document-list,
.g4y-training-list {
    display: grid;
    gap: 12px;
}

.g4y-training-hero-progress {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(82, 98, 72, 0.16);
    border-radius: 15px;
    background: rgba(255, 254, 249, 0.68);
}

.g4y-training-hero-progress > div:first-child {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--portal-olive-dark);
    font-size: 12px;
}

.g4y-training-hero-progress span {
    color: var(--portal-muted);
}

.g4y-training-step-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.g4y-training-step-nav a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dce4d5;
    border-radius: 13px;
    background: #fffefa;
    color: var(--portal-ink);
    text-decoration: none;
}

.g4y-training-step-nav a > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #edf2e8;
    color: var(--portal-olive-dark);
    font-size: 12px;
    font-weight: 700;
}

.g4y-training-step-nav strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g4y-training-step-nav a.is-complete {
    border-color: #bed0b3;
    background: #eef5e9;
}

.g4y-training-step {
    scroll-margin-top: 155px;
}

.g4y-training-step.is-complete {
    border-color: #bdd0b2;
    background: linear-gradient(145deg, #f6faf2, #fffefa);
}

.g4y-training-video {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
    padding-top: 56.25%;
    border-radius: 14px;
    background: #253022;
}

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

.g4y-document-row,
.g4y-training-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--portal-border);
    border-radius: 17px;
    background: #fffefa;
}

.g4y-document-row h3,
.g4y-training-row h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.g4y-document-row p,
.g4y-training-row p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
}

.g4y-progress {
    height: 9px;
    overflow: hidden;
    margin-top: 10px;
    border-radius: 999px;
    background: #e5ebdf;
}

.g4y-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #90a179, #6a7d5b);
}

.g4y-workbook-list {
    display: grid;
    gap: 18px;
}

.g4y-workbook-card {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: rgba(255, 254, 249, 0.94);
    box-shadow: 0 12px 34px rgba(66, 80, 57, 0.08);
}

.g4y-workbook-head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.g4y-workbook-head h2 {
    margin: 0 0 4px;
    line-height: 1.3;
}

.g4y-workbook-head p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 13px;
}

.g4y-workbook-progress-copy {
    display: grid;
    flex: 0 0 auto;
    text-align: right;
}

.g4y-workbook-progress-copy strong {
    color: var(--portal-olive-dark);
    font-size: 25px;
    line-height: 1.1;
}

.g4y-workbook-progress-copy span {
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-workbook-weeks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 21px;
}

.g4y-workbook-week {
    display: grid;
    min-height: 112px;
    align-content: start;
    gap: 4px;
    padding: 13px;
    border: 1px solid #dce4d5;
    border-radius: 15px;
    background: #fffefa;
    color: var(--portal-ink);
    text-decoration: none;
}

.g4y-workbook-week > span,
.g4y-workbook-week small {
    color: var(--portal-muted);
    font-size: 10px;
}

.g4y-workbook-week strong {
    font-size: 12px;
    line-height: 1.4;
}

.g4y-workbook-week small {
    margin-top: auto;
}

.g4y-workbook-week.is-complete {
    border-color: #bdd0b2;
    background: #eef5e9;
}

.g4y-workbook-week.is-available {
    border-color: #d5b9ae;
    background: #fff2ed;
}

.g4y-workbook-week.is-locked {
    opacity: 0.7;
    background: #f4f3ee;
}

.g4y-workbook-week:is(a):hover {
    border-color: #9fb18f;
    box-shadow: 0 8px 18px rgba(66, 80, 57, 0.1);
    transform: translateY(-1px);
}

.cp-form-card {
    display: grid;
    gap: 22px;
}

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

.cp-field > label {
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 700;
}

.cp-field :where(input[type="text"], input[type="number"], input[type="date"], select, textarea),
.cp-list-row input,
.cp-table :where(input, select, textarea) {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd5c2;
    border-radius: 12px;
    background: #fffefa;
    color: var(--portal-ink);
    font: inherit;
    font-size: 14px;
}

.cp-field textarea,
.cp-table textarea {
    min-height: 100px;
    resize: vertical;
}

.cp-help {
    color: var(--portal-muted);
    font-size: 12px;
}

.cp-list {
    display: grid;
    gap: 8px;
}

.cp-list-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.cp-list-index {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e5ede0;
    color: var(--portal-olive-dark);
    font-size: 12px;
    font-weight: 700;
}

.cp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--portal-border);
    border-radius: 15px;
}

.cp-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fffefa;
}

.cp-table th,
.cp-table td {
    min-width: 150px;
    padding: 10px;
    border-right: 1px solid #e4e9de;
    border-bottom: 1px solid #e4e9de;
    text-align: left;
    vertical-align: top;
}

.cp-table th {
    background: #eff4ea;
    font-size: 12px;
}

.cp-final-question {
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #d9c5bb;
    border-radius: 17px;
    background: #fff3ee;
}

.cp-final-question h3 {
    margin: 0 0 5px;
}

.cp-final-question p {
    margin: 0 0 12px;
    color: var(--portal-muted);
}

.cp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-radio {
    display: inline-flex;
    min-height: 42px;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #d8d9cf;
    border-radius: 12px;
    background: #fffefa;
    cursor: pointer;
}

.cp-radio input {
    width: 18px;
    height: 18px;
}

.g4y-schedule-list {
    display: grid;
    gap: 16px;
}

.g4y-schedule-card {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    background: linear-gradient(145deg, rgba(255, 255, 252, 0.96), rgba(241, 246, 235, 0.94));
    box-shadow: 0 12px 34px rgba(66, 80, 57, 0.08);
}

.g4y-schedule-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.g4y-schedule-head h2 {
    margin: 4px 0 0;
    color: var(--portal-ink);
    font-size: clamp(20px, 3vw, 27px);
    line-height: 1.3;
}

.g4y-schedule-label,
.g4y-schedule-period {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e1ead9;
    color: var(--portal-olive-dark);
    font-size: 11px;
    font-weight: 700;
}

.g4y-schedule-period {
    flex: 0 0 auto;
    background: #f6e5df;
    color: #7f5146;
}

.g4y-schedule-goal {
    margin: 18px 0 0;
    color: #526248;
}

.g4y-schedule-content {
    margin-top: 17px;
    padding: 18px;
    border: 1px solid #dce5d4;
    border-radius: 17px;
    background: #fffefa;
    color: #3d4937;
    line-height: 1.75;
}

.g4y-schedule-note {
    margin-top: 14px;
    padding: 15px 17px;
    border-left: 4px solid #d69580;
    border-radius: 0 15px 15px 0;
    background: #fff1ed;
    color: #714b42;
}

.g4y-schedule-note p {
    margin: 4px 0 0;
}

.g4y-monitor-method {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.g4y-monitor-method article {
    display: grid;
    gap: 6px;
    padding: 17px 18px;
    border: 1px solid #dbe4d4;
    border-radius: 17px;
    background: rgba(255, 254, 250, 0.84);
}

.g4y-monitor-method strong {
    color: var(--portal-olive-dark);
    font-size: 13px;
}

.g4y-monitor-method span {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.55;
}

.g4y-monitor-current-goal {
    display: grid;
    gap: 7px;
    margin: 18px 0;
    padding: 20px 22px;
    border: 1px solid #cad9be;
    border-left: 5px solid var(--portal-olive);
    border-radius: 18px;
    background:
        radial-gradient(circle at 96% 5%, rgba(244, 222, 216, 0.55), transparent 12rem),
        #f3f7ee;
    color: var(--portal-ink);
}

.g4y-monitor-current-goal span {
    color: var(--portal-olive-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.g4y-monitor-current-goal strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.35;
}

.g4y-monitor-current-goal p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
}

.g4y-monitor-form-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(226, 239, 217, 0.55), transparent 18rem),
        rgba(255, 255, 252, 0.95);
}

.g4y-monitor-form-heading {
    display: grid;
    gap: 3px;
    margin-top: 8px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #f1f5ed;
}

.g4y-monitor-form-heading:first-child {
    margin-top: 0;
}

.g4y-monitor-form-heading strong {
    color: var(--portal-olive-dark);
    font-size: 14px;
}

.g4y-monitor-form-heading span {
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-monitor-chart-panel {
    overflow: hidden;
}

.g4y-monitor-chart-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.g4y-monitor-chart-toolbar label {
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 700;
}

.g4y-monitor-chart-toolbar select {
    min-width: 190px;
    padding: 10px 36px 10px 13px;
    border: 1px solid #cbd6c2;
    border-radius: 12px;
    background: #fffefa;
    color: var(--portal-ink);
    font: inherit;
}

.g4y-monitor-canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(247, 249, 244, 0.74), rgba(255, 254, 250, 0.98));
}

.g4y-monitor-canvas-wrap canvas {
    display: block;
    max-width: 100%;
}

.g4y-monitor-trend-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    align-items: baseline;
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #eef4e8;
    color: var(--portal-olive-dark);
}

.g4y-monitor-trend-summary strong {
    font-size: 14px;
}

.g4y-monitor-trend-summary span {
    color: var(--portal-muted);
    font-size: 12px;
}

.g4y-monitor-chart-note {
    margin: 14px 0 0;
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.65;
}

.g4y-monitor-history-list {
    display: grid;
    gap: 11px;
}

.g4y-monitor-history-item {
    overflow: hidden;
    border: 1px solid #dbe3d5;
    border-radius: 17px;
    background: rgba(255, 254, 250, 0.9);
}

.g4y-monitor-history-item > summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    color: var(--portal-ink);
    cursor: pointer;
    list-style: none;
}

.g4y-monitor-history-item > summary::-webkit-details-marker {
    display: none;
}

.g4y-monitor-history-item > summary::after {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #edf3e8;
    color: var(--portal-olive-dark);
    content: "+";
    font-size: 18px;
    font-weight: 700;
}

.g4y-monitor-history-item[open] > summary::after {
    content: "−";
}

.g4y-monitor-history-item > summary span {
    margin-left: auto;
    color: var(--portal-muted);
    font-size: 12px;
}

.g4y-monitor-history-body {
    display: grid;
    gap: 11px;
    padding: 0 18px 18px;
    border-top: 1px solid #e5e9df;
}

.g4y-monitor-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
}

.g4y-monitor-values > span {
    display: inline-flex;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f4ed;
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-monitor-values strong {
    color: var(--portal-ink);
}

.g4y-monitor-reflection {
    padding: 12px 14px;
    border-left: 4px solid #a7b39d;
    border-radius: 0 13px 13px 0;
    background: #f5f7f2;
}

.g4y-monitor-reflection.is-success {
    border-left-color: #738965;
    background: #eff5ea;
}

.g4y-monitor-reflection.is-goal {
    border-left-color: #d1846d;
    background: #fff1ed;
}

.g4y-monitor-reflection span {
    color: var(--portal-olive-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.g4y-monitor-reflection p {
    margin: 5px 0 0;
    color: var(--portal-ink);
    font-size: 12px;
    line-height: 1.6;
}

.g4y-cycle-section {
    margin: 20px 0 26px;
    border: 1px solid #d5dfce;
    border-radius: 20px;
    background: rgba(255, 254, 250, 0.88);
}

.g4y-cycle-section > summary {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: var(--portal-ink);
    cursor: pointer;
    list-style: none;
}

.g4y-cycle-section > summary::-webkit-details-marker {
    display: none;
}

.g4y-cycle-summary-copy {
    display: grid;
    gap: 3px;
}

.g4y-cycle-summary-copy strong {
    color: var(--portal-olive-dark);
    font-size: 16px;
}

.g4y-cycle-summary-copy small {
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-cycle-summary-action {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--portal-olive-dark);
    font-size: 11px;
    font-weight: 800;
}

.g4y-cycle-summary-action::after {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #edf3e8;
    content: "+";
    font-size: 18px;
}

.g4y-cycle-section[open] .g4y-cycle-summary-action::before {
    content: "Sluiten";
}

.g4y-cycle-section[open] .g4y-cycle-summary-action {
    font-size: 0;
}

.g4y-cycle-section[open] .g4y-cycle-summary-action::before {
    font-size: 11px;
}

.g4y-cycle-section[open] .g4y-cycle-summary-action::after {
    content: "−";
    font-size: 18px;
}

.g4y-cycle-section-body {
    padding: 0 20px 20px;
    border-top: 1px solid #e4e9df;
}

.g4y-cycle-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.g4y-cycle-calendar-panel {
    background:
        radial-gradient(circle at 96% 4%, rgba(244, 222, 216, 0.58), transparent 17rem),
        rgba(255, 255, 252, 0.94);
}

.g4y-cycle-calendar-head {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.g4y-cycle-calendar-head h3 {
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.g4y-cycle-month-button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #ccd7c2;
    border-radius: 50%;
    background: #f8faf4;
    color: var(--portal-olive-dark);
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
}

.g4y-cycle-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(38px, 1fr));
    gap: 8px;
}

.g4y-cycle-weekday {
    padding: 3px 0 7px;
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.g4y-cycle-day {
    position: relative;
    display: grid;
    min-height: 54px;
    place-items: center;
    border: 1px solid #e3e8de;
    border-radius: 15px;
    background: #fffefa;
    color: var(--portal-ink);
    font-size: 13px;
}

.g4y-cycle-day.is-empty {
    border-color: transparent;
    background: transparent;
}

.g4y-cycle-day.is-period {
    border-color: #e1b9b3;
    background: #f5dcd8;
    color: #7b453d;
}

.g4y-cycle-day.is-fertile {
    border-color: #b8cfaa;
    background: #e2efd9;
    color: #405d37;
}

.g4y-cycle-day.is-period.is-fertile {
    background: linear-gradient(135deg, #f5dcd8 0 49%, #e2efd9 51% 100%);
}

.g4y-cycle-day.is-ovulation {
    box-shadow: inset 0 0 0 2px #6d805d;
    font-weight: 700;
}

.g4y-cycle-day.is-ovulation i {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5e704f;
    transform: translateX(-50%);
}

.g4y-cycle-day.is-prediction {
    border-style: dashed;
}

.g4y-cycle-day.is-today::after {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--portal-coral);
    content: "";
}

.g4y-cycle-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-cycle-legend span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.g4y-cycle-legend i {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.g4y-cycle-legend i.period {
    border-color: #e1b9b3;
    background: #f5dcd8;
}

.g4y-cycle-legend i.fertile {
    border-color: #b8cfaa;
    background: #e2efd9;
}

.g4y-cycle-legend i.ovulation {
    border: 3px solid #6d805d;
    background: #fffefa;
}

.g4y-cycle-legend i.prediction {
    border-color: #9ba795;
    border-style: dashed;
    background: #f8faf4;
}

.g4y-cycle-disclaimer {
    margin: 15px 0 0;
    padding-top: 13px;
    border-top: 1px solid #e5e9df;
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-cycle-preview {
    min-height: 46px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #cad9be;
    border-radius: 14px;
    background: #f0f6ea;
    color: #4d6045;
    font-size: 12px;
}

.g4y-cycle-history {
    margin-top: 18px;
}

.g4y-cycle-history summary {
    color: var(--portal-olive-dark);
    font-weight: 700;
    cursor: pointer;
}

.g4y-cycle-history[open] summary {
    margin-bottom: 16px;
}

.g4y-order-status {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid #cbd8c0;
    border-radius: 999px;
    background: #edf4e7;
    color: #526248;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.g4y-portal-footer {
    padding: 24px 16px 38px;
    color: var(--portal-muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1000px) {
    .g4y-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .g4y-panel-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .g4y-portal-header-inner {
        width: min(100% - 24px, 980px);
    }
}

@media (max-width: 760px) {
    .g4y-portal-header {
        position: sticky;
    }

    .g4y-portal-header-inner {
        width: min(100% - 22px, 620px);
        grid-template-areas:
            "brand toggle"
            "navigation navigation";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 9px 12px;
        padding: 9px 0;
    }

    .g4y-portal-brand {
        display: flex;
        width: auto;
        gap: 9px;
    }

    .g4y-portal-brand-logo {
        width: clamp(145px, 48vw, 195px);
        height: auto;
        aspect-ratio: 2.8 / 1;
        padding: 8px 10px;
        border-radius: 13px;
    }

    .g4y-portal-brand-logo img {
        width: 100%;
        height: auto;
        max-height: 100%;
    }

    .g4y-portal-brand-copy {
        display: none;
    }

    .g4y-portal-menu-toggle {
        display: inline-flex;
    }

    .g4y-portal-nav {
        display: none;
        overflow: visible;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px 0 2px;
    }

    .g4y-portal-nav.is-open {
        display: grid;
    }

    .g4y-portal-nav > a,
    .g4y-portal-nav-group > summary {
        width: 100%;
        min-height: 43px;
        justify-content: space-between;
        padding: 9px 13px;
        border-radius: 12px;
        font-size: 13px;
    }

    .g4y-portal-nav-group {
        position: static;
    }

    .g4y-portal-nav-submenu,
    .g4y-portal-nav-group:last-of-type .g4y-portal-nav-submenu {
        position: static;
        width: auto;
        margin-top: 5px;
        padding: 6px;
        border-radius: 12px;
        box-shadow: none;
    }

    .g4y-portal-nav-submenu a {
        padding: 9px 10px;
    }

    .g4y-portal-main {
        width: min(100% - 22px, 620px);
        padding-top: 20px;
    }

    .g4y-portal-hero {
        padding: 27px 22px;
        border-radius: 24px;
    }

    .g4y-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .g4y-module-card {
        min-height: 122px;
        padding: 9px;
        border-radius: 14px;
    }

    .g4y-module-card::before {
        right: -46px;
        top: -50px;
        width: 105px;
        height: 105px;
    }

    .g4y-module-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
        border-radius: 11px;
    }

    .g4y-module-icon svg {
        width: 19px;
        height: 19px;
    }

    .g4y-module-card h3 {
        overflow-wrap: anywhere;
        font-size: 11px;
        line-height: 1.25;
    }

    .g4y-module-card p {
        display: none;
    }

    .g4y-access-badge {
        display: none;
    }

    .g4y-module-status {
        width: 100%;
        padding-top: 6px;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
    }

    .g4y-lock {
        right: 7px;
        top: 7px;
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    .g4y-lock svg {
        width: 15px;
        height: 15px;
    }

    .g4y-panel-grid,
    .g4y-form-grid {
        grid-template-columns: 1fr;
    }

    .g4y-module-section {
        padding: 10px;
        border-radius: 17px;
    }

    .g4y-module-grid.is-grouped {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .g4y-field.full {
        grid-column: auto;
    }

    .g4y-document-row,
    .g4y-training-row {
        grid-template-columns: 1fr;
    }

    .g4y-document-row .g4y-button,
    .g4y-training-row .g4y-button {
        width: 100%;
    }

    .g4y-workbook-head {
        display: grid;
    }

    .g4y-workbook-progress-copy {
        text-align: left;
    }

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

    .g4y-schedule-head {
        display: grid;
    }

    .g4y-schedule-period {
        width: max-content;
    }

    .g4y-monitor-method {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .g4y-monitor-method article {
        padding: 13px 15px;
    }

    .g4y-monitor-current-goal {
        padding: 17px 18px;
    }

    .g4y-monitor-chart-toolbar {
        display: grid;
        gap: 7px;
    }

    .g4y-monitor-chart-toolbar select {
        width: 100%;
        min-width: 0;
    }

    .g4y-monitor-canvas-wrap {
        margin: 0 -4px;
        width: calc(100% + 8px);
    }

    .g4y-monitor-trend-summary {
        display: grid;
    }

    .g4y-monitor-history-item > summary {
        padding: 14px;
    }

    .g4y-monitor-history-item > summary span {
        display: none;
    }

    .g4y-monitor-history-body {
        padding: 0 14px 14px;
    }

    .g4y-cycle-section > summary {
        padding: 15px;
    }

    .g4y-cycle-summary-action {
        font-size: 0;
    }

    .g4y-cycle-summary-action::after {
        font-size: 18px;
    }

    .g4y-cycle-section[open] .g4y-cycle-summary-action::before {
        display: none;
    }

    .g4y-cycle-section-body {
        padding: 0 12px 14px;
    }

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

    .g4y-cycle-calendar-panel {
        padding: 16px;
    }

    .g4y-cycle-calendar-grid {
        gap: 4px;
    }

    .g4y-cycle-day {
        min-height: 38px;
        border-radius: 10px;
    }
}

@media (min-width: 540px) and (max-width: 760px) {
    .g4y-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 340px) {
    .g4y-module-grid,
    .g4y-module-grid.is-grouped {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .g4y-workbook-weeks {
        grid-template-columns: 1fr;
    }

    .g4y-module-section {
        padding: 7px;
    }

    .g4y-module-card {
        min-height: 116px;
        padding: 7px;
    }

    .g4y-module-card h3 {
        font-size: 10px;
    }
}

@media print {
    .g4y-portal-header,
    .g4y-portal-preview,
    .g4y-portal-footer,
    .g4y-portal-actions,
    .g4y-portal-hero,
    .g4y-portal-section-head {
        display: none !important;
    }

    .g4y-portal-main {
        width: 100%;
        padding: 0;
    }

    .g4y-schedule-card {
        break-inside: avoid;
        border: 0;
        box-shadow: none;
    }
}

/*
 * Deel 11 — persoonlijke klantomgeving.
 * Warme Gezond4You-kleuren maken deze omgeving direct herkenbaar als klantdeel.
 */

body.g4y-client-environment {
    background:
        radial-gradient(circle at 3% 7%, rgba(200, 218, 184, 0.68), transparent 25rem),
        radial-gradient(circle at 97% 8%, rgba(244, 215, 207, 0.76), transparent 27rem),
        radial-gradient(circle at 76% 72%, rgba(239, 228, 196, 0.30), transparent 28rem),
        linear-gradient(180deg, #fffdf7 0%, #f1f5ea 100%);
}

.g4y-client-environment .g4y-portal-header {
    border-bottom-color: rgba(100, 119, 81, 0.22);
    background: rgba(250, 250, 241, 0.96);
}

.g4y-client-environment .g4y-portal-brand-copy strong {
    color: #34422f;
}

.g4y-client-environment .g4y-portal-brand-copy span {
    width: max-content;
    margin-top: 5px;
    padding: 4px 8px;
    border: 1px solid #d4ddc9;
    border-radius: 999px;
    background: #edf3e7;
    color: #526248;
    font-size: 10px;
    font-weight: 700;
}

.g4y-client-environment .g4y-portal-main::before {
    display: inline-flex;
    margin: 0 0 13px 2px;
    padding: 6px 10px;
    border: 1px solid #d5dfca;
    border-radius: 999px;
    background: rgba(255, 254, 249, 0.82);
    color: #5a6b4f;
    content: "Persoonlijke klantomgeving";
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.g4y-client-environment .g4y-portal-hero {
    border-color: rgba(104, 124, 86, 0.22);
    background:
        radial-gradient(circle at 93% 18%, rgba(217, 141, 119, 0.31), transparent 17rem),
        linear-gradient(132deg, #e5eee0 0%, #f7f5e9 54%, #f7dfda 100%);
}

.g4y-client-environment .g4y-module-card,
.g4y-client-environment .g4y-panel,
.g4y-client-environment .g4y-document-row,
.g4y-client-environment .g4y-training-row,
.g4y-client-environment .g4y-table-wrap {
    background: rgba(255, 254, 249, 0.94);
}

.g4y-client-environment .g4y-button {
    background: linear-gradient(135deg, #7f906d, #596c4c);
}

.g4y-client-environment .g4y-button.secondary {
    background: rgba(255, 254, 249, 0.88);
}

@media (max-width: 760px) {
    .g4y-client-environment .g4y-portal-main::before,
    .g4y-dashboard-intro,
    .g4y-dashboard-heading,
    .g4y-module-section > h3,
    .g4y-client-environment .g4y-portal-footer {
        display: none;
    }

    .g4y-module-sections {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .g4y-module-section,
    .g4y-module-grid.is-grouped {
        display: contents;
    }

    .g4y-dashboard-notices {
        margin-top: 18px;
    }

    .g4y-dashboard-notices .g4y-portal-notice {
        margin-bottom: 8px;
        padding: 11px 12px;
        border-radius: 13px;
        font-size: 12px;
    }

    .g4y-client-environment .g4y-portal-brand-copy span {
        font-size: 11px;
    }
}

/*
 * Deel 13 — compacte klantafspraken en de nieuwe openbare webshop.
 */
.g4y-next-appointments {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 13px;
    margin: 0 0 14px;
    border: 1px solid rgba(111, 128, 94, 0.18);
    border-radius: 18px;
    background: rgba(255, 254, 249, 0.9);
    box-shadow: 0 8px 24px rgba(66, 80, 57, 0.06);
}

.g4y-next-appointments-head {
    display: flex;
    width: 190px;
    gap: 9px;
    align-items: center;
}

.g4y-next-appointments-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: #e7eee0;
    color: var(--portal-olive-dark);
}

.g4y-next-appointments-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.g4y-next-appointments-head h2 {
    margin: 0;
    color: var(--portal-ink);
    font-size: 14px;
    line-height: 1.25;
}

.g4y-next-appointments-head span:not(.g4y-next-appointments-icon) {
    display: block;
    margin-top: 2px;
    color: var(--portal-muted);
    font-size: 10px;
    line-height: 1.25;
}

.g4y-next-appointments-list {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.g4y-next-appointment {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid rgba(111, 128, 94, 0.14);
    border-radius: 13px;
    background: #fbfcf8;
}

.g4y-next-appointment-date {
    display: grid;
    min-height: 43px;
    align-content: center;
    border-radius: 10px;
    background: #edf2e8;
    color: var(--portal-olive-dark);
    text-align: center;
}

.g4y-next-appointment-date span {
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.g4y-next-appointment-date strong {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1;
}

.g4y-next-appointment-copy {
    min-width: 0;
}

.g4y-next-appointment-copy strong,
.g4y-next-appointment-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g4y-next-appointment-copy strong {
    color: var(--portal-ink);
    font-size: 12px;
    line-height: 1.25;
}

.g4y-next-appointment-copy span {
    margin-top: 4px;
    color: var(--portal-muted);
    font-size: 10px;
    line-height: 1.2;
}

.g4y-next-appointments-empty {
    margin: 0;
    color: var(--portal-muted);
    font-size: 12px;
}

@media (max-width: 1050px) {
    .g4y-next-appointments {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .g4y-next-appointments-head {
        width: auto;
    }
}

@media (max-width: 760px) {
    .g4y-next-appointments {
        gap: 7px;
        padding: 8px;
        margin-bottom: 9px;
        border-radius: 15px;
    }

    .g4y-next-appointments-head {
        padding: 0 2px;
    }

    .g4y-next-appointments-icon {
        width: 29px;
        height: 29px;
        border-radius: 9px;
    }

    .g4y-next-appointments-icon svg {
        width: 16px;
        height: 16px;
    }

    .g4y-next-appointments-head h2 {
        font-size: 13px;
    }

    .g4y-next-appointments-head span:not(.g4y-next-appointments-icon) {
        display: none;
    }

    .g4y-next-appointments-list {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .g4y-next-appointment {
        width: 190px;
        flex: 0 0 190px;
        padding: 6px 7px;
        scroll-snap-align: start;
    }

    .g4y-next-appointments-empty {
        padding: 2px 3px 3px;
        font-size: 11px;
    }
}

/*
 * Deel 12 — vrouwenmonitor, gedeeltelijke metingen en volledige merkweergave.
 */
.g4y-portal-nav-group > summary.is-locked::before {
    margin-right: 6px;
    content: "🔒";
    font-size: 10px;
}

.g4y-field-last {
    display: block;
    margin-top: 6px;
    color: #687362;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.45;
}

.g4y-women-monitor-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 18px 0;
    padding: 17px 19px;
    border: 1px solid #e2cbc8;
    border-radius: 19px;
    background:
        radial-gradient(circle at 96% 0, rgba(244, 222, 216, 0.72), transparent 13rem),
        rgba(255, 254, 250, 0.93);
}

.g4y-women-monitor-link > span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.g4y-women-monitor-link strong {
    color: #654c4a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.g4y-women-monitor-link small {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.5;
}

.g4y-women-hero {
    background:
        radial-gradient(circle at 92% 10%, rgba(229, 171, 161, 0.38), transparent 18rem),
        linear-gradient(135deg, #edf3e8, #fbf5ed 55%, #f7e0dc);
}

.g4y-women-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.g4y-women-status article {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid #dedfd2;
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.88);
}

.g4y-women-status span {
    color: #876d68;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.g4y-women-status strong {
    overflow-wrap: anywhere;
    color: var(--portal-ink);
    font-size: 14px;
}

.g4y-women-form-panel {
    background:
        radial-gradient(circle at 100% 0, rgba(246, 222, 217, 0.58), transparent 19rem),
        rgba(255, 255, 252, 0.96);
}

.g4y-monitor-form-group {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #dde3d7;
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.86);
}

.g4y-monitor-form-group > summary {
    padding: 14px 16px;
    cursor: pointer;
    color: var(--portal-olive-dark);
    font-size: 14px;
    font-weight: 800;
    list-style-position: inside;
}

.g4y-monitor-form-group > summary small {
    margin-left: 5px;
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 400;
}

.g4y-monitor-form-group[open] > summary {
    border-bottom: 1px solid #e2e6dd;
    background: #f1f5ed;
}

.g4y-monitor-form-group > .g4y-form-grid {
    padding: 16px;
}

.g4y-women-disclaimer {
    margin-top: 20px;
    padding: 15px 17px;
    border-left: 4px solid #b98076;
    border-radius: 0 15px 15px 0;
    background: #fff2ef;
    color: #71504a;
    font-size: 11px;
    line-height: 1.65;
}

@media (max-width: 760px) {
    .g4y-women-monitor-link {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .g4y-women-monitor-link .g4y-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .g4y-women-status {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .g4y-women-status article {
        grid-template-columns: minmax(105px, 0.7fr) 1fr;
        align-items: center;
        padding: 12px 13px;
    }

    .g4y-monitor-form-group > summary {
        padding: 13px;
    }

    .g4y-monitor-form-group > .g4y-form-grid {
        padding: 12px;
    }
}

/*
 * Deel 14 — webshop binnen de persoonlijke klantenomgeving.
 * De openbare shop blijft zelfstandig werken, maar wordt vanuit het
 * cliëntenportaal in een rustige, herkenbare omkadering geopend.
 */
.g4y-webshop-page .g4y-portal-main {
    width: min(1380px, calc(100% - 28px));
    padding-top: 18px;
}

.g4y-webshop-toolbar {
    display: grid;
    position: relative;
    z-index: 2;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(100, 119, 81, 0.24);
    border-radius: 16px;
    background: rgba(255, 254, 249, 0.96);
    box-shadow: 0 8px 22px rgba(61, 75, 54, 0.08);
}

.g4y-webshop-back,
.g4y-webshop-external {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.g4y-webshop-back {
    background: var(--portal-olive-dark);
    color: #fff;
}

.g4y-webshop-back:hover {
    background: #43533b;
}

.g4y-webshop-external {
    border: 1px solid #d4ddc9;
    background: #f1f5ec;
    color: var(--portal-olive-dark);
}

.g4y-webshop-toolbar-copy {
    display: grid;
    min-width: 0;
    line-height: 1.35;
}

.g4y-webshop-toolbar-copy strong {
    color: var(--portal-ink);
    font-size: 14px;
}

.g4y-webshop-toolbar-copy span {
    color: var(--portal-muted);
    font-size: 11px;
}

.g4y-webshop-frame-shell {
    overflow: hidden;
    border: 1px solid rgba(100, 119, 81, 0.20);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(61, 75, 54, 0.09);
}

.g4y-webshop-frame {
    display: block;
    width: 100%;
    height: max(720px, 78vh);
    min-height: 720px;
    border: 0;
    background: #fff;
}

@media (max-width: 760px) {
    .g4y-webshop-page .g4y-portal-main {
        width: min(100% - 14px, 720px);
        padding-top: 8px;
    }

    .g4y-webshop-toolbar {
        grid-template-columns: 1fr auto;
        gap: 7px;
        margin-bottom: 7px;
        padding: 7px;
        border-radius: 13px;
    }

    .g4y-webshop-back {
        min-height: 38px;
        justify-content: flex-start;
        padding: 7px 10px;
        font-size: 12px;
    }

    .g4y-webshop-external {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 0;
    }

    .g4y-webshop-external::after {
        content: "Nieuw venster";
        font-size: 10px;
    }

    .g4y-webshop-toolbar-copy {
        display: none;
    }

    .g4y-webshop-frame-shell {
        border-radius: 13px;
    }

    .g4y-webshop-frame {
        height: max(680px, 76vh);
        min-height: 680px;
    }
}
