/*
 * GuardAIn — theme layer (step 10.1)
 *
 * Loaded AFTER app.css. Same colours as before — deep forest green, the teal
 * of the logo, warm amber for warnings — with softer surfaces, motion and the
 * dashboard components.
 *
 * Plain CSS on purpose: there is no build step on the server, so this file is
 * exactly what is deployed.
 *
 * Every animation is switched off under prefers-reduced-motion (end of file),
 * and every animated element is fully visible without JavaScript.
 */

:root {
    --gd-forest: #0f3d2e;
    --gd-forest-2: #155a43;
    --gd-forest-3: #0a2b20;
    --gd-teal: #14b88a;
    --gd-teal-2: #0b8a69;
    --gd-teal-soft: #e4f6ef;
    --gd-blue: #1f6fd1;
    --gd-blue-soft: #e6effb;
    --gd-amber: #b26a1e;
    --gd-amber-soft: #fbf0e1;
    --gd-red: #b3372e;
    --gd-ink: #16241d;
    --gd-muted: #6b7c75;
    --gd-line: #e3ebe7;
    --gd-bg: #f4f7f5;
    --gd-card: #ffffff;
    --gd-radius: 16px;
    --gd-radius-sm: 10px;
    --gd-shadow: 0 1px 2px rgba(15, 61, 46, .05), 0 6px 20px -8px rgba(15, 61, 46, .12);
    --gd-shadow-lift: 0 2px 4px rgba(15, 61, 46, .06), 0 18px 36px -14px rgba(15, 61, 46, .28);
    --gd-ease: cubic-bezier(.2, .8, .2, 1);
    --gd-grad: linear-gradient(135deg, #0f3d2e 0%, #155a43 55%, #0f7a5c 100%);
}

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */

body.bg-light {
    background-color: var(--gd-bg) !important;
    color: var(--gd-ink);
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(20, 184, 138, .25); }

a { transition: color .15s ease; }

:focus-visible {
    outline: 3px solid rgba(20, 184, 138, .55);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Keyframes                                                            */
/* ------------------------------------------------------------------ */

@keyframes gd-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes gd-grow { from { width: 0; } }

@keyframes gd-ring { from { stroke-dashoffset: 100; } }

@keyframes gd-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-24px, 14px) scale(1.08); }
}

@keyframes gd-float {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(-10px) rotate(-4deg); }
}

@keyframes gd-sheen {
    from { transform: translateX(-120%) skewX(-18deg); }
    to   { transform: translateX(260%) skewX(-18deg); }
}

@keyframes gd-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

@keyframes gd-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(20, 184, 138, .45); }
    70%  { box-shadow: 0 0 0 10px rgba(20, 184, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 184, 138, 0); }
}

@keyframes gd-gradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ------------------------------------------------------------------ */
/* Page entrance — each top-level block rises in, one after another      */
/* ------------------------------------------------------------------ */

.gd-content > * {
    animation: gd-rise .55s var(--gd-ease) both;
}
.gd-content > *:nth-child(2) { animation-delay: .06s; }
.gd-content > *:nth-child(3) { animation-delay: .12s; }
.gd-content > *:nth-child(4) { animation-delay: .18s; }
.gd-content > *:nth-child(5) { animation-delay: .24s; }
.gd-content > *:nth-child(n+6) { animation-delay: .3s; }

/* Cards inside a row stagger too, so a two-column page does not arrive as a slab. */
.gd-content .row > [class*="col"] > .card { animation: gd-rise .55s var(--gd-ease) both; }
.gd-content .row > [class*="col"]:nth-child(2) > .card { animation-delay: .08s; }
.gd-content .row > [class*="col"]:nth-child(3) > .card { animation-delay: .16s; }

/* ------------------------------------------------------------------ */
/* Sidebar                                                              */
/* ------------------------------------------------------------------ */

.gd-sidebar {
    background:
        radial-gradient(120% 60% at 0% 0%, rgba(20, 184, 138, .16) 0%, rgba(20, 184, 138, 0) 60%),
        linear-gradient(180deg, var(--gd-forest) 0%, var(--gd-forest-3) 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .2) transparent;
}

.gd-sidebar__brand { letter-spacing: -.02em; }
.gd-sidebar__mark {
    filter: drop-shadow(0 0 8px rgba(20, 184, 138, .45));
    transition: transform .4s var(--gd-ease);
}
.gd-sidebar__brand:hover .gd-sidebar__mark { transform: rotate(-8deg) scale(1.08); }

.gd-sidebar__link {
    position: relative;
    transition: background-color .18s ease, color .18s ease, padding-left .2s var(--gd-ease);
}
.gd-sidebar__link:hover { padding-left: 1rem; }

.gd-sidebar__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gd-teal);
    transform: scaleY(0);
    transition: transform .25s var(--gd-ease);
}
.gd-sidebar__link.is-active::before { transform: scaleY(1); }
.gd-sidebar__link.is-active {
    background: linear-gradient(90deg, rgba(20, 184, 138, .22), rgba(255, 255, 255, .06));
}

.gd-sidebar__count {
    min-width: 1.6rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    text-align: center;
}
.gd-sidebar__link.is-active .gd-sidebar__count { background: rgba(20, 184, 138, .35); color: #fff; }

.gd-sidebar__group[data-open] .gd-sidebar__nav { animation: gd-fade .25s ease both; }

.gd-sidebar__signout { transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.gd-sidebar__signout:hover { background: #fff; color: var(--gd-forest); }

.gd-topbar { background: var(--gd-grad); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }

/* ------------------------------------------------------------------ */
/* Cards, tables, forms, buttons, alerts — every page                   */
/* ------------------------------------------------------------------ */

.card {
    border-radius: var(--gd-radius) !important;
    border: 1px solid var(--gd-line) !important;
    box-shadow: var(--gd-shadow) !important;
    transition: box-shadow .25s ease, transform .25s var(--gd-ease);
}

.table { --bs-table-hover-bg: rgba(20, 184, 138, .06); }
.table > thead th {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gd-muted);
    border-bottom-width: 1px;
    white-space: nowrap;
}
.table > tbody > tr { transition: background-color .15s ease; }
.table > tbody > tr:hover > * { background-color: rgba(20, 184, 138, .05); }

.form-control, .form-select {
    border-radius: var(--gd-radius-sm);
    border-color: #d6e1dc;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gd-teal);
    box-shadow: 0 0 0 .22rem rgba(20, 184, 138, .18);
}
.form-check-input:checked { background-color: var(--gd-forest); border-color: var(--gd-forest); }

.btn {
    border-radius: var(--gd-radius-sm);
    font-weight: 600;
    transition: transform .15s var(--gd-ease), box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--gd-grad);
    border: 0;
    box-shadow: 0 6px 16px -8px rgba(15, 61, 46, .7);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--gd-grad);
    box-shadow: 0 10px 22px -10px rgba(15, 61, 46, .85);
    transform: translateY(-1px);
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
}
.btn-primary:hover::after { animation: gd-sheen .8s ease; }

.btn-outline-primary:hover { transform: translateY(-1px); }

.alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: var(--gd-radius-sm);
    box-shadow: var(--gd-shadow);
    animation: gd-slide-down .4s var(--gd-ease) both;
}
.alert-success { background: var(--gd-teal-soft); color: #0b5d46; }
.alert-info    { background: var(--gd-blue-soft); color: #1b4f93; }
.alert-warning { background: var(--gd-amber-soft); color: #7a4c11; }

.badge { border-radius: 999px; font-weight: 700; letter-spacing: .02em; padding: .35em .7em; }

code { color: var(--gd-forest-2); }

.gd-footer { color: var(--gd-muted); }

/* ------------------------------------------------------------------ */
/* Dashboard: hero                                                      */
/* ------------------------------------------------------------------ */

.gd-icon { flex-shrink: 0; vertical-align: -3px; }

.gd-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(120deg, #0f3d2e, #155a43, #0f7a5c, #155a43, #0f3d2e);
    background-size: 300% 300%;
    animation: gd-rise .55s var(--gd-ease) both, gd-gradient 18s ease infinite;
    box-shadow: 0 20px 40px -24px rgba(15, 61, 46, .8);
}

.gd-hero__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 138, .55) 0%, rgba(20, 184, 138, 0) 65%);
    animation: gd-drift 12s ease-in-out infinite;
    pointer-events: none;
}

.gd-hero__shield {
    position: absolute;
    right: 4%;
    bottom: -28px;
    width: 170px;
    height: 170px;
    fill: none;
    stroke: rgba(255, 255, 255, .13);
    stroke-width: 1.1;
    animation: gd-float 9s ease-in-out infinite;
    pointer-events: none;
}

.gd-hero__body { position: relative; max-width: 46rem; }

.gd-hero__eyebrow {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.gd-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.gd-hero__sub { margin: .3rem 0 1rem; color: rgba(255, 255, 255, .78); }

.gd-hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.gd-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.gd-chip__dim { font-weight: 500; color: rgba(255, 255, 255, .65); }
.gd-chip--warn { background: rgba(255, 196, 120, .2); border-color: rgba(255, 196, 120, .45); }

/* ------------------------------------------------------------------ */
/* Dashboard: callout                                                   */
/* ------------------------------------------------------------------ */

.gd-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.4rem;
    border-radius: var(--gd-radius);
    background: #fff;
    border: 1px solid #f0dcbb;
    box-shadow: var(--gd-shadow);
    position: relative;
    overflow: hidden;
}
.gd-callout::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e5a04a, var(--gd-amber));
}
.gd-callout__icon {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--gd-amber-soft);
    color: var(--gd-amber);
}
.gd-callout__body { flex: 1 1 260px; min-width: 0; }
.gd-callout__body h2 { font-size: 1rem; font-weight: 700; margin: 0 0 .15rem; }
.gd-callout__body p { margin: 0 0 .35rem; color: var(--gd-muted); font-size: .88rem; }
.gd-callout__body ul { margin: 0; padding-left: 1.1rem; color: var(--gd-muted); font-size: .85rem; }

/* ------------------------------------------------------------------ */
/* Dashboard: stat tiles                                                */
/* ------------------------------------------------------------------ */

.gd-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gd-tile {
    --tone: var(--gd-forest);
    --tone-soft: #e3eee9;
    position: relative;
    display: block;
    padding: 1.15rem 1.2rem 1.1rem;
    border-radius: var(--gd-radius);
    background: var(--gd-card);
    border: 1px solid var(--gd-line);
    box-shadow: var(--gd-shadow);
    color: var(--gd-ink);
    text-decoration: none;
    overflow: hidden;
    animation: gd-rise .55s var(--gd-ease) both;
    transition: transform .25s var(--gd-ease), box-shadow .25s ease, border-color .25s ease;
}
.gd-tile:nth-child(2) { animation-delay: .07s; }
.gd-tile:nth-child(3) { animation-delay: .14s; }
.gd-tile:nth-child(4) { animation-delay: .21s; }

.gd-tile::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--tone-soft);
    opacity: .7;
    transition: transform .5s var(--gd-ease);
}

a.gd-tile:hover {
    color: var(--gd-ink);
    transform: translateY(-4px);
    box-shadow: var(--gd-shadow-lift);
    border-color: color-mix(in srgb, var(--tone) 30%, var(--gd-line));
}
a.gd-tile:hover::after { transform: scale(1.35); }

.gd-tile__top {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .85rem;
}

.gd-tile__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tone-soft);
    color: var(--tone);
    transition: transform .3s var(--gd-ease);
}
a.gd-tile:hover .gd-tile__icon { transform: rotate(-6deg) scale(1.08); }

.gd-tile__go {
    color: var(--gd-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .25s var(--gd-ease);
}
a.gd-tile:hover .gd-tile__go { opacity: 1; transform: none; color: var(--tone); }

.gd-tile__value {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.gd-tile__label { position: relative; z-index: 1; font-size: .86rem; font-weight: 600; margin-top: .2rem; }
.gd-tile__foot  { position: relative; z-index: 1; font-size: .76rem; color: var(--gd-muted); margin-top: .35rem; }

.gd-meter {
    position: relative;
    z-index: 1;
    height: 6px;
    margin-top: .7rem;
    border-radius: 999px;
    background: #edf2ef;
    overflow: hidden;
}
.gd-meter > span {
    display: block;
    height: 100%;
    width: var(--v);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 55%, #fff));
    animation: gd-grow 1.2s var(--gd-ease) .35s both;
}

/* Tones */
.gd-tone-forest { --tone: var(--gd-forest); --tone-soft: #e3eee9; }
.gd-tone-teal   { --tone: var(--gd-teal-2); --tone-soft: var(--gd-teal-soft); }
.gd-tone-blue   { --tone: var(--gd-blue);   --tone-soft: var(--gd-blue-soft); }
.gd-tone-amber  { --tone: var(--gd-amber);  --tone-soft: var(--gd-amber-soft); }

/* ------------------------------------------------------------------ */
/* Dashboard: panels, bars, rings                                       */
/* ------------------------------------------------------------------ */

.gd-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.gd-panel__head h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.gd-panel__head p  { font-size: .8rem; color: var(--gd-muted); margin: .1rem 0 0; }

.gd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.gd-bars li {
    display: grid;
    grid-template-columns: 2.4rem 1fr 3rem;
    align-items: center;
    gap: .75rem;
    animation: gd-rise .5s var(--gd-ease) both;
    animation-delay: calc(var(--i, 0) * 60ms + .15s);
}
.gd-bars__label { font-size: .82rem; font-weight: 700; color: var(--gd-forest); text-decoration: none; }
a.gd-bars__label:hover { color: var(--gd-teal-2); }
.gd-bars__track { height: 12px; border-radius: 999px; background: #edf2ef; overflow: hidden; }
.gd-bars__fill {
    display: block;
    height: 100%;
    width: var(--v);
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gd-forest), var(--gd-teal));
    animation: gd-grow 1.1s var(--gd-ease) both;
    animation-delay: calc(var(--i, 0) * 80ms + .3s);
}
.gd-bars__n { font-size: .85rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.gd-rings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    text-align: center;
}
.gd-ring { --tone: var(--gd-forest); }
.gd-ring__wrap { position: relative; width: 100%; max-width: 116px; aspect-ratio: 1; margin: 0 auto; }
.gd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.gd-ring circle { fill: none; stroke-width: 11; }
.gd-ring__track { stroke: #edf2ef; }
.gd-ring__bar {
    stroke: var(--tone);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--p));
    animation: gd-ring 1.4s var(--gd-ease) .35s both;
}
.gd-ring__centre {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 38%;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 800;
    color: var(--gd-ink);
    font-variant-numeric: tabular-nums;
}
.gd-ring__centre small { font-size: .7rem; font-weight: 700; color: var(--gd-muted); margin-left: 1px; }
.gd-ring__label   { margin-top: .55rem; font-size: .84rem; font-weight: 700; }
.gd-ring__caption { font-size: .74rem; color: var(--gd-muted); }

/* ------------------------------------------------------------------ */
/* Dashboard: quick actions                                             */
/* ------------------------------------------------------------------ */

.gd-section-title {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gd-muted);
    margin: 0 0 .75rem;
}

.gd-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.gd-action {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--gd-line);
    color: var(--gd-ink);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 61, 46, .04);
    transition: transform .22s var(--gd-ease), box-shadow .22s ease, border-color .22s ease;
}
.gd-action:hover {
    color: var(--gd-ink);
    transform: translateY(-3px);
    border-color: rgba(20, 184, 138, .45);
    box-shadow: var(--gd-shadow-lift);
}
.gd-action__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gd-teal-soft);
    color: var(--gd-teal-2);
    transition: background .25s ease, color .25s ease, transform .3s var(--gd-ease);
}
.gd-action:hover .gd-action__icon { background: var(--gd-forest); color: #fff; transform: scale(1.06); }
.gd-action__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gd-action__text strong { font-size: .9rem; }
.gd-action__text small  { font-size: .75rem; color: var(--gd-muted); }
.gd-action__arrow { color: var(--gd-muted); transition: transform .25s var(--gd-ease), color .2s ease; }
.gd-action:hover .gd-action__arrow { transform: translateX(4px); color: var(--gd-teal-2); }

/* ------------------------------------------------------------------ */
/* Dashboard: people list, pills, empty state                           */
/* ------------------------------------------------------------------ */

.gd-people { list-style: none; margin: 0; padding: 0; }
.gd-people li { animation: gd-rise .45s var(--gd-ease) both; animation-delay: calc(var(--i, 0) * 60ms + .15s); }
.gd-people a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem .55rem;
    border-radius: 12px;
    color: var(--gd-ink);
    text-decoration: none;
    transition: background .18s ease, transform .2s var(--gd-ease);
}
.gd-people a:hover { background: rgba(20, 184, 138, .07); transform: translateX(3px); }
.gd-people__name { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; }
.gd-people__name small { font-weight: 500; color: var(--gd-muted); font-size: .75rem; }

.gd-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--gd-forest-2), var(--gd-teal));
    box-shadow: 0 4px 10px -4px rgba(15, 61, 46, .6);
}

.gd-pill {
    flex-shrink: 0;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--gd-muted);
    background: #eef3f0;
}
.gd-pill--ok { color: var(--gd-teal-2); background: var(--gd-teal-soft); }

.gd-empty { text-align: center; padding: 1.5rem .5rem; color: var(--gd-muted); }
.gd-empty .gd-icon { color: var(--gd-teal); margin-bottom: .5rem; }
.gd-empty p { font-size: .88rem; margin: 0 auto; max-width: 26rem; }

.gd-pilot-note {
    display: flex;
    align-items: center;
    gap: .4rem;
    justify-content: center;
    margin: 1rem 0 0;
    font-size: .76rem;
    color: var(--gd-muted);
}

/* ------------------------------------------------------------------ */
/* Sign-in and other plain pages                                        */
/* ------------------------------------------------------------------ */

body.gd-auth {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(60% 50% at 10% 10%, rgba(20, 184, 138, .18) 0%, rgba(20, 184, 138, 0) 70%),
        radial-gradient(50% 45% at 95% 90%, rgba(31, 111, 209, .12) 0%, rgba(31, 111, 209, 0) 70%),
        var(--gd-bg) !important;
}

.gd-auth__blob {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .5;
    pointer-events: none;
    animation: gd-drift 16s ease-in-out infinite;
}
.gd-auth__blob--a { width: 340px; height: 340px; left: -120px; top: -80px; background: #9fe3cc; }
.gd-auth__blob--b { width: 300px; height: 300px; right: -100px; bottom: -80px; background: #b9d3f5; animation-delay: -6s; }

body.gd-auth main { position: relative; z-index: 1; }
body.gd-auth main > div { animation: gd-rise .6s var(--gd-ease) both; }
body.gd-auth .card {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px -30px rgba(15, 61, 46, .45) !important;
}

/* ------------------------------------------------------------------ */
/* Small screens                                                        */
/* ------------------------------------------------------------------ */

@media (max-width: 575.98px) {
    .gd-hero { padding: 1.4rem 1.15rem; border-radius: 16px; }
    .gd-hero__shield { width: 120px; height: 120px; }
    .gd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .gd-tile { padding: 1rem; }
    .gd-tile__value { font-size: 1.6rem; }
    .gd-rings { gap: .4rem; }
    .gd-ring circle { stroke-width: 12; }
    .gd-ring__centre { font-size: 1.05rem; }
}

@media (min-width: 992px) {
    .gd-hero { padding: 2rem 2.25rem; }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: everything still, everything visible                 */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* Step 11 — page heads, context form, profile layers                   */
/* ------------------------------------------------------------------ */

.gd-pagehead { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.gd-pagehead__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--gd-grad); color: #fff;
    box-shadow: 0 10px 20px -10px rgba(15, 61, 46, .7);
}
.gd-pagehead h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .15rem; }
.gd-pagehead p  { margin: 0; color: var(--gd-muted); font-size: .88rem; max-width: 44rem; }

.gd-formsec { padding: 0 0 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px dashed var(--gd-line); }
.gd-formsec:last-of-type { border-bottom: 0; }
.gd-formsec__title {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gd-teal-2); margin: 0 0 .75rem;
}
.gd-formsec__note { font-size: .8rem; color: var(--gd-muted); margin: -.35rem 0 1rem; max-width: 46rem; }

.gd-q { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.gd-q__label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .4rem; float: none; width: auto; padding: 0; }
.gd-q__help  { font-size: .78rem; color: var(--gd-muted); margin: -.2rem 0 .5rem; }

.gd-choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.gd-choice__input { position: absolute; opacity: 0; pointer-events: none; }
.gd-choice {
    display: inline-flex; align-items: center; gap: .35rem;
    min-height: 40px; padding: .45rem .9rem;
    border: 1.5px solid #d6e1dc; border-radius: 999px;
    background: #fff; color: var(--gd-ink);
    font-size: .84rem; font-weight: 600; cursor: pointer; user-select: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s var(--gd-ease), box-shadow .2s ease;
}
.gd-choice:hover { border-color: var(--gd-teal); transform: translateY(-1px); }
.gd-choice__input:focus-visible + .gd-choice { outline: 3px solid rgba(20, 184, 138, .5); outline-offset: 2px; }
.gd-choice__input:checked + .gd-choice {
    background: var(--gd-forest); border-color: var(--gd-forest); color: #fff;
    box-shadow: 0 6px 14px -8px rgba(15, 61, 46, .8);
}
.gd-choice__input[type="checkbox"]:checked + .gd-choice::before { content: "✓"; font-weight: 800; }

.gd-layers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .9rem;
}
.gd-layer {
    --tone: var(--gd-muted);
    --tone-soft: #eef3f0;
    position: relative;
    display: flex; flex-direction: column;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--gd-line);
    background: #fff;
    overflow: hidden;
    animation: gd-rise .5s var(--gd-ease) both;
    animation-delay: calc(var(--i, 0) * 70ms + .1s);
    transition: transform .25s var(--gd-ease), box-shadow .25s ease;
}
.gd-layer::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--tone); opacity: .85; }
.gd-layer:hover { transform: translateY(-3px); box-shadow: var(--gd-shadow-lift); }
.gd-layer--ok   { --tone: var(--gd-teal-2); --tone-soft: var(--gd-teal-soft); }
.gd-layer--part { --tone: var(--gd-blue);   --tone-soft: var(--gd-blue-soft); }
.gd-layer--miss { --tone: var(--gd-amber);  --tone-soft: var(--gd-amber-soft); }
.gd-layer--na   { --tone: #9aa9a2;          --tone-soft: #eef3f0; background: #fbfcfb; }

.gd-layer__head { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .7rem; }
.gd-layer__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--tone-soft); color: var(--tone);
}
.gd-layer__title { flex: 1; min-width: 0; }
.gd-layer__title h3 { font-size: .9rem; font-weight: 800; margin: 0; }
.gd-layer__title small { display: block; font-size: .7rem; color: var(--gd-muted); line-height: 1.3; }
.gd-layer__status {
    flex-shrink: 0; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    padding: .2rem .5rem; border-radius: 999px; background: var(--tone-soft); color: var(--tone);
}
.gd-layer__body { font-size: .82rem; }
.gd-layer__note { color: var(--gd-muted); font-size: .76rem; margin: .4rem 0 0; }
.gd-layer__line { display: flex; gap: .5rem; margin: 0 0 .25rem; }
.gd-layer__line > span:first-child { flex: 0 0 6.5rem; color: var(--gd-muted); }
.gd-layer__quote {
    margin: .5rem 0 0; padding: .45rem .65rem; border-left: 3px solid var(--gd-teal);
    background: var(--gd-teal-soft); border-radius: 0 8px 8px 0; font-style: italic;
}
.gd-layer__code { font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; color: var(--gd-forest); margin: 0 0 .4rem; }
.gd-layer__code small { display: block; font-size: .68rem; letter-spacing: 0; font-weight: 600; color: var(--gd-muted); }

.gd-kv { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }
.gd-kv > div { padding: .5rem .6rem; border-radius: 10px; background: #f6f9f7; }
.gd-kv span   { display: block; font-size: .68rem; color: var(--gd-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.gd-kv strong { font-size: 1.15rem; font-weight: 800; }
.gd-kv small  { display: block; font-size: .7rem; color: var(--gd-muted); }

.gd-trend--up     { color: var(--gd-teal-2); }
.gd-trend--down   { color: var(--gd-red); }
.gd-trend--steady { color: var(--gd-muted); }

.gd-scales { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.gd-scales li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .5rem; }
.gd-scales li > span:first-child { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-scales__bar { height: 8px; border-radius: 999px; background: #edf2ef; overflow: hidden; }
.gd-scales__bar > span {
    display: block; height: 100%; width: var(--v); border-radius: inherit;
    background: linear-gradient(90deg, var(--tone, var(--gd-forest)), var(--gd-teal));
    animation: gd-grow 1s var(--gd-ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + .35s);
}

@media (prefers-reduced-motion: reduce) {
    .gd-layer, .gd-scales__bar > span { animation: none !important; }
}

/* ------------------------------------------------------------------ */
/* Step 12 — reports                                                    */
/* ------------------------------------------------------------------ */

.gd-chip--link { color: #fff; text-decoration: none; transition: background .2s ease; }
.gd-chip--link:hover { color: #fff; background: rgba(255, 255, 255, .24); }

.gd-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gd-options--top { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.gd-option {
    --tone: var(--gd-muted); --tone-soft: #eef3f0;
    position: relative;
    display: flex; flex-direction: column; gap: .85rem;
    padding: 1.15rem 1.2rem;
    border-radius: var(--gd-radius);
    background: #fff;
    border: 1px solid var(--gd-line);
    box-shadow: var(--gd-shadow);
    overflow: hidden;
    animation: gd-rise .5s var(--gd-ease) both;
    animation-delay: calc(var(--i, 0) * 80ms + .1s);
    transition: transform .25s var(--gd-ease), box-shadow .25s ease;
}
.gd-option:hover { transform: translateY(-3px); box-shadow: var(--gd-shadow-lift); }
.gd-option::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone); }
.gd-option.is-featured { border-color: color-mix(in srgb, var(--tone) 35%, var(--gd-line)); }
.gd-option--strong   { --tone: var(--gd-teal-2); --tone-soft: var(--gd-teal-soft); }
.gd-option--possible { --tone: var(--gd-blue);   --tone-soft: var(--gd-blue-soft); }
.gd-option--stretch  { --tone: var(--gd-amber);  --tone-soft: var(--gd-amber-soft); }

.gd-option__head { display: flex; align-items: center; gap: .75rem; }
.gd-option__rank {
    display: grid; place-items: center; flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--tone); color: #fff; font-weight: 800; font-size: .9rem;
}
.gd-option__title { flex: 1; min-width: 0; }
.gd-option__title h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; color: var(--gd-ink); }
.gd-option__title small { display: block; color: var(--gd-muted); font-size: .76rem; }
.gd-option__band {
    flex-shrink: 0; padding: .25rem .6rem; border-radius: 999px;
    background: var(--tone-soft); color: var(--tone);
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}

.gd-option__meters { display: grid; gap: .4rem; }
.gd-option__meter { display: grid; grid-template-columns: 4.5rem 1fr 2.6rem; align-items: center; gap: .5rem; font-size: .76rem; }
.gd-option__meter > span:first-child { color: var(--gd-muted); font-weight: 600; }
.gd-option__meter .gd-meter { margin: 0; height: 7px; --tone: var(--gd-forest); }
.gd-option__meter:last-child .gd-meter { --tone: var(--gd-teal-2); }
.gd-option__meter strong { text-align: right; font-variant-numeric: tabular-nums; }
.gd-option .gd-meter > span { background: linear-gradient(90deg, var(--tone), var(--gd-teal)); }

.gd-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .8rem; }
.gd-reason { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.4; }
.gd-reason > span {
    display: grid; place-items: center; flex-shrink: 0;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: .68rem; font-weight: 800; margin-top: 1px;
    background: #eef3f0; color: var(--gd-muted);
}
.gd-reason--ok > span       { background: var(--gd-teal-soft);  color: var(--gd-teal-2); }
.gd-reason--short > span    { background: var(--gd-amber-soft); color: var(--gd-amber); }
.gd-reason--missing > span  { background: #fdecea;              color: var(--gd-red); }
.gd-reason--interest > span { background: var(--gd-blue-soft);  color: var(--gd-blue); }
.gd-reason--note            { color: var(--gd-muted); }

.gd-opens { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding-top: .6rem; border-top: 1px dashed var(--gd-line); }
.gd-opens > span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-muted); margin-right: .2rem; }
.gd-opens em { font-style: normal; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--tone-soft); color: var(--gd-ink); }

.gd-focus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gd-focus li {
    padding: .8rem .9rem; border-radius: 12px; border: 1px solid #f0dcbb; background: #fffaf3;
    display: flex; flex-direction: column; gap: .15rem;
    animation: gd-rise .45s var(--gd-ease) both; animation-delay: calc(var(--i, 0) * 70ms + .1s);
}
.gd-focus strong { font-size: .92rem; }
.gd-focus span   { font-size: .82rem; color: var(--gd-amber); font-weight: 700; }
.gd-focus small  { font-size: .74rem; color: var(--gd-muted); }

.gd-more > summary {
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--gd-line); background: #fff;
    font-size: .84rem; font-weight: 700; margin-bottom: 1rem;
}
.gd-more > summary::-webkit-details-marker { display: none; }
.gd-more > summary::before { content: "▸"; transition: transform .2s ease; }
.gd-more[open] > summary::before { transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
    .gd-option, .gd-focus li { animation: none !important; }
}

/* ------------------------------------------------------------------ */
/* Step 13 — drafting and review                                        */
/* ------------------------------------------------------------------ */

.gd-sidebar__count--hot { background: var(--gd-amber) !important; color: #fff !important; animation: gd-pulse 2.4s ease-out infinite; }

.gd-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; counter-reset: s; }
.gd-steps li {
    display: flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem .35rem .4rem; border-radius: 999px;
    background: #eef3f0; color: var(--gd-muted); font-size: .8rem; font-weight: 700;
    transition: background .3s ease, color .3s ease;
}
.gd-steps li > span {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; color: var(--gd-muted); font-size: .72rem;
}
.gd-steps li.is-done { background: var(--gd-teal-soft); color: var(--gd-teal-2); }
.gd-steps li.is-done > span { background: var(--gd-teal-2); color: #fff; }
.gd-steps li.is-current { background: var(--gd-forest); color: #fff; box-shadow: 0 6px 14px -8px rgba(15, 61, 46, .8); }
.gd-steps li.is-current > span { background: #fff; color: var(--gd-forest); }

.gd-draftcta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    padding: 1.1rem 1.2rem; border-radius: 14px;
    background: linear-gradient(120deg, var(--gd-teal-soft), #f2f8ff);
    border: 1px dashed rgba(20, 184, 138, .5);
}
.gd-draftcta > div { flex: 1 1 240px; display: flex; flex-direction: column; }
.gd-draftcta strong { font-size: .98rem; }
.gd-draftcta small  { color: var(--gd-muted); font-size: .8rem; }
.gd-draftcta__icon {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--gd-grad); color: #fff; animation: gd-float 6s ease-in-out infinite;
}

.gd-draftmeta { font-size: .8rem; color: var(--gd-muted); margin: 0 0 .75rem; }
.gd-editor { font: 15px/1.7 Georgia, "Times New Roman", serif; padding: 1rem 1.1rem; min-height: 22rem; }

.gd-finaltext {
    font: 15px/1.75 Georgia, "Times New Roman", serif; color: var(--gd-ink);
    padding: 1.2rem 1.4rem; border-radius: 12px; background: #fbfdfc; border: 1px solid var(--gd-line);
    animation: gd-fade .5s ease both;
}
.gd-finaltext--draft { background: #f7f7f5; color: #555; margin-top: .75rem; }

.gd-reject > summary { cursor: pointer; font-size: .82rem; color: var(--gd-red); font-weight: 700; }

.gd-action--report { border-color: rgba(20, 184, 138, .5); background: linear-gradient(120deg, #fff, var(--gd-teal-soft)); }

button.is-busy { pointer-events: none; opacity: .85; }
button.is-busy::before {
    content: ""; display: inline-block; width: 14px; height: 14px; margin-right: .45rem; vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%;
    animation: gd-spin .8s linear infinite;
}
@keyframes gd-spin { to { transform: rotate(360deg); } }

/* ---- Step 14 · parent view --------------------------------------------- */
.gd-avatar--lg { width: 52px; height: 52px; font-size: 1rem; }
.gd-family-stat { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--gd-forest, #0f3d2e); }
.gd-family-card { transition: transform .25s ease, box-shadow .25s ease; }
.gd-family-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 61, 46, .12); }
.gd-consent { border: 1px solid #e3ebe7; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.gd-consent--on { border-color: #bfe6d6; background: #f3fbf7; }
.gd-consent__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.gd-consent__text { font-size: .8rem; color: #4d5f58; margin: 8px 0 0; }
.gd-consent details summary { cursor: pointer; font-size: .78rem; color: #0f6b4f; margin-top: 6px; }
.gd-status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gd-status--sent, .gd-status--on { background: #e2f6ee; color: #0f6b4f; }
.gd-status--failed { background: #fde8e6; color: #a2281c; }
.gd-status--skipped, .gd-status--off { background: #eef1f0; color: #5d6b66; }
@media (prefers-reduced-motion: reduce) { .gd-family-card, .gd-family-card:hover { transition: none; transform: none; } }
.gd-bars--terms li { grid-template-columns: 4.8rem 1fr 3rem; }
.gd-bars--terms .gd-bars__label { white-space: nowrap; }

/* ---- Step 15 · long option titles (pathways, career areas) -------------- */
.gd-option__title--long h3 { font-size: 1.02rem; letter-spacing: 0; line-height: 1.25; margin-bottom: .15rem; }
.gd-option__note { font-size: .72rem; color: var(--gd-muted); margin: -.25rem 0 .5rem; }

/* Step 19 — counselling notes */
.gd-callout--alert { border-color: #f3c3bd; }
.gd-callout--alert::before { background: linear-gradient(180deg, #e0685a, #b3261e); }
.gd-note { border-left: 3px solid var(--gd-teal, #1f8a70) !important; }
.gd-note--concern { border-left-color: #b3261e !important; }
.gd-note__body { font-size: .9rem; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }

/* Step 24 — fees against budget */
.gd-option__note--warn { color: #9a5b12; font-weight: 600; }

/* Step 26 — subject trend small multiples (one hue, text carries the change) */
.gd-trends__title { font-size: .85rem; font-weight: 700; margin: 0 0 .15rem; }
.gd-trends__sub { font-size: .74rem; color: var(--gd-muted, #5d6b66); margin: 0 0 .5rem; }
.gd-trends__table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.gd-trends__table th, .gd-trends__table td { padding: .25rem .4rem; border-bottom: 1px solid #e6ece9; text-align: left; vertical-align: middle; }
.gd-trends__table thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gd-muted, #5d6b66); font-weight: 600; }
.gd-trends__table tbody th { font-weight: 600; }
.gd-trends__num { font-variant-numeric: tabular-nums; white-space: nowrap; color: #1c2b25; }
.gd-spark { display: block; overflow: visible; }
.gd-spark__guide { stroke: #c9d3ce; stroke-width: 1; stroke-dasharray: 3 3; }
.gd-spark__line { fill: none; stroke: #0b8a69; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gd-spark__dot { fill: #0b8a69; stroke: #fff; stroke-width: 1.5; }
.gd-spark__dot--last { fill: #0f3d2e; }
.gd-spark__hit { fill: transparent; }
@media (prefers-color-scheme: dark) { .gd-spark__dot { stroke: transparent; } }

/* ------------------------------------------------------------------ */
/* Step 32 — icons everywhere (added by App\Services\IconDecorator)     */
/* ------------------------------------------------------------------ */

.gd-sidebar__link { justify-content: flex-start; }
.gd-sidebar__link > span:not(.gd-navico):not(.gd-sidebar__count) { flex: 1; }
.gd-navico {
    flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
    background: rgba(255, 255, 255, .07); color: #8fe3c6;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.gd-sidebar__link:hover .gd-navico { background: rgba(20, 184, 138, .25); color: #fff; transform: scale(1.06); }
.gd-sidebar__link.is-active .gd-navico { background: var(--gd-teal); color: #fff; }

.gd-hicon {
    display: inline-grid; place-items: center; vertical-align: -0.45em;
    width: 1.9em; height: 1.9em; margin-right: .55em; border-radius: .6em;
    background: var(--gd-teal-soft); color: var(--gd-teal-2);
}
h3 > .gd-hicon { width: 1.7em; height: 1.7em; vertical-align: -0.4em; }
.gd-hicon--blue   { background: #e6effb; color: #1f6fd1; }
.gd-hicon--green  { background: #e4f6ef; color: #0b8a69; }
.gd-hicon--violet { background: #efeafe; color: #6d4ae6; }
.gd-hicon--red    { background: #fdecec; color: #c2372d; }
.gd-hicon--amber  { background: #fbf0e1; color: #b26a1e; }
.gd-hicon--teal   { background: #e2f6f7; color: #0f7f8a; }
.gd-hicon--slate  { background: #eef2f6; color: #475569; }

.btn .gd-bico { display: inline-flex; vertical-align: -0.15em; margin-right: .38em; }
.btn-sm .gd-bico svg { width: 13px; height: 13px; }
.btn.py-0 .gd-bico { margin-right: .25em; }

.alert > .gd-aico { display: inline-flex; vertical-align: -0.2em; margin-right: .45em; }
.alert-info    > .gd-aico { color: #1f5da0; }
.alert-warning > .gd-aico { color: #a06200; }
.alert-success > .gd-aico { color: #0b8a69; }
.alert-danger  > .gd-aico { color: #c2372d; }
.alert-light   > .gd-aico { color: #6d4ae6; }

/* "Folders": the quick-access grid on the student and family pages. */
.gd-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.gd-folder {
    position: relative; display: grid; justify-items: center; gap: 8px; padding: 18px 10px 14px; text-align: center;
    border-radius: 16px; background: #fff; border: 1px solid var(--gd-line); box-shadow: var(--gd-shadow);
    color: var(--gd-ink); text-decoration: none; font-weight: 600; font-size: .84rem; line-height: 1.25;
    transition: transform .18s var(--gd-ease), box-shadow .18s ease, border-color .18s ease;
}
a.gd-folder:hover { transform: translateY(-3px); box-shadow: var(--gd-shadow-lift); border-color: #cfe9df; color: var(--gd-ink); }
.gd-folder__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.gd-folder small { display: block; font-weight: 500; color: var(--gd-muted); font-size: .72rem; }
.gd-folder__pin { position: absolute; top: 8px; right: 9px; color: #c2372d; }
.gd-folder--soon { opacity: .62; }
.gd-folder__count {
    position: absolute; top: 8px; left: 9px; min-width: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--gd-teal); color: #fff; font-size: .7rem; line-height: 20px;
}
.gd-tone-bg-blue   { background: #e6effb; color: #1f6fd1; }
.gd-tone-bg-green  { background: #e4f6ef; color: #0b8a69; }
.gd-tone-bg-violet { background: #efeafe; color: #6d4ae6; }
.gd-tone-bg-red    { background: #fdecec; color: #c2372d; }
.gd-tone-bg-amber  { background: #fbf0e1; color: #b26a1e; }
.gd-tone-bg-teal   { background: #e2f6f7; color: #0f7f8a; }
.gd-tone-bg-slate  { background: #eef2f6; color: #475569; }

@media print { .gd-hicon, .gd-bico, .gd-aico, .gd-navico { display: none !important; } }
.btn:has(> .gd-bico) { white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Step 33 — Truth AI, study room, registration                          */
/* ------------------------------------------------------------------ */
.gd-prep-fab {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040;
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
    border: 0; border-radius: 999px; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, #6d4ae6, #2563eb); box-shadow: 0 14px 30px -10px rgba(77, 60, 200, .7);
    transition: transform .15s ease;
}
.gd-prep-fab:hover { transform: translateY(-2px); }
.gd-prep-open .gd-prep-fab { display: none; }
.gd-prep {
    position: fixed; right: 20px; bottom: 20px; z-index: 1050; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px));
    display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(13, 27, 62, .45); border: 1px solid #e6e9f5;
}
.gd-prep[hidden] { display: none; }
.gd-prep__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, #6d4ae6, #2563eb); }
.gd-prep__head small { display: block; opacity: .85; font-size: .75rem; }
.gd-prep__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.gd-prep__close { margin-left: auto; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 34px; height: 34px; border-radius: 10px; }
.gd-prep__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f7fc; }
.gd-prep__msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; }
.gd-prep__msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e6e9f5; }
.gd-prep__msg--me { align-self: flex-end; background: #2563eb; color: #fff; }
.gd-prep__msg--wait { color: #64748b; font-style: italic; }
.gd-prep__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.gd-prep__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-prep__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eef0f6; }
.gd-prep__foot { margin: 0; padding: 0 12px 10px; font-size: .68rem; color: #94a3b8; text-align: center; }
@media print { .gd-prep, .gd-prep-fab { display: none !important; } }
@media (max-width: 575px) { .gd-prep-fab span { display: none; } .gd-prep-fab { padding: 12px; } }

.gd-note { display: block; height: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gd-line); background: #fffdf5; color: var(--gd-ink); text-decoration: none; }
.gd-note small { display: block; color: var(--gd-muted); margin-top: 4px; }
.gd-note:hover { border-color: #f0d9a8; box-shadow: var(--gd-shadow); color: var(--gd-ink); }
.gd-notepad { background: repeating-linear-gradient(#fffdf5, #fffdf5 31px, #e8eef8 32px); line-height: 32px; border-radius: 14px; }
.gd-timer__face { font: 800 3.4rem/1 "Jakarta", system-ui, sans-serif; letter-spacing: .02em; color: var(--gd-forest); margin: 6px 0; }
.gd-timer.is-rest .gd-timer__face { color: #2563eb; }
.gd-calc__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gd-calc__keys .btn { height: 46px; font-weight: 700; font-size: 1.05rem; }
/* Links shown as buttons (step 33) */
.btn.gd-linkbtn { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .65rem; border-radius: 999px;
    font-size: .8rem; line-height: 1.35; vertical-align: baseline; margin: .1rem 0; white-space: nowrap; }
td .btn.gd-linkbtn, li .btn.gd-linkbtn { white-space: normal; text-align: left; }
h1 .btn.gd-linkbtn, h2 .btn.gd-linkbtn, h3 .btn.gd-linkbtn, strong .btn.gd-linkbtn { font-size: .85em; }
.flex-none { flex: none; }
/* Step 34 — classwork rows */
.gd-work { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--gd-line);
    background: #fff; color: var(--gd-ink); text-decoration: none; }
a.gd-work:hover { border-color: #cfe9df; box-shadow: var(--gd-shadow); color: var(--gd-ink); }
.gd-work small { display: block; color: var(--gd-muted); }
.gd-work .gd-folder__ico { width: 44px; height: 44px; flex: none; }
.gd-calc__keys--sci { grid-template-columns: repeat(5, 1fr); }
.gd-calc__keys--sci .btn { height: 40px; font-size: .9rem; }
.gd-prep__src { margin-top: 6px; font-size: .7rem; color: #64748b; }

/* ------------------------------------------------------------------ */
/* Step 35 — inbox, conversations, library, groups, bookings, register */
/* ------------------------------------------------------------------ */
.gd-inbox-row { display: flex; align-items: flex-start; gap: .8rem; padding: .75rem .8rem; border-radius: var(--gd-radius-sm);
    color: var(--gd-ink); text-decoration: none; border-bottom: 1px solid var(--gd-line); transition: background .15s var(--gd-ease); }
.gd-inbox-row:hover { background: var(--gd-teal-soft); color: var(--gd-ink); }
.gd-inbox-row.is-new { background: #f2fbf7; }
.gd-inbox-row.is-new strong { color: var(--gd-forest); }
.gd-inbox-row__ico { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--gd-blue-soft); color: var(--gd-blue); }
.gd-inbox-row.is-new .gd-inbox-row__ico { background: var(--gd-teal); color: #fff; }
.gd-inbox-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.gd-inbox-row__text small { color: var(--gd-muted); }
.gd-inbox-row__top { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--gd-muted); }
.gd-inbox-row__kind { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.gd-inbox-row__dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--gd-teal); margin-top: .4rem; }

.gd-thread { display: flex; flex-direction: column; gap: .7rem; }
.gd-bubble { max-width: 88%; background: #f1f5f3; border-radius: 14px 14px 14px 4px; padding: .6rem .85rem; align-self: flex-start; }
.gd-bubble--mine { background: var(--gd-teal-soft); border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.gd-bubble--hidden { opacity: .55; border: 1px dashed var(--gd-red); }
.gd-bubble__who { font-size: .72rem; color: var(--gd-muted); margin-bottom: .2rem; }
.gd-bubble__quote { font-size: .78rem; color: var(--gd-muted); border-left: 3px solid var(--gd-line); padding-left: .5rem; margin-bottom: .3rem; }

.gd-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gd-book { display: flex; gap: .8rem; background: var(--gd-card); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow); padding: .9rem; }
.gd-book__spine { flex: 0 0 44px; min-height: 64px; border-radius: 8px 4px 4px 8px; display: grid; place-items: center; color: #fff;
    box-shadow: inset -4px 0 0 rgba(0, 0, 0, .12); }
.gd-book__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.gd-book__body small { color: var(--gd-muted); }

.gd-slot { position: relative; cursor: pointer; }
.gd-slot input { position: absolute; opacity: 0; }
.gd-slot span { display: inline-flex; flex-direction: column; align-items: center; padding: .45rem .8rem; border: 2px solid var(--gd-line);
    border-radius: 12px; font-weight: 700; min-width: 5.5rem; transition: all .15s var(--gd-ease); }
.gd-slot small { font-weight: 400; font-size: .7rem; color: var(--gd-muted); }
.gd-slot input:checked + span { border-color: var(--gd-teal); background: var(--gd-teal-soft); color: var(--gd-forest); }
.gd-slot input:focus-visible + span { outline: 3px solid var(--gd-blue); }

.gd-att { width: 1.2rem; height: 1.2rem; }
.gd-att--absent:checked { background-color: var(--gd-red); border-color: var(--gd-red); }
.gd-att--late:checked { background-color: var(--gd-amber); border-color: var(--gd-amber); }

.gd-kids { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .2rem; }
.gd-kid { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .4rem; border-radius: 999px; background: var(--gd-card);
    box-shadow: var(--gd-shadow); text-decoration: none; color: var(--gd-ink); white-space: nowrap; border: 2px solid transparent; }
.gd-kid small { display: block; font-size: .7rem; color: var(--gd-muted); }
.gd-kid.is-active { border-color: var(--gd-teal); }

.gd-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gd-line); margin-left: .9rem; }
.gd-timeline li { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0 .35rem 0; margin-left: -.95rem; font-size: .88rem; }
.gd-timeline__ico { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 3px solid var(--gd-card); }
.gd-timeline li small { display: block; color: var(--gd-muted); font-size: .72rem; }

.gd-modal { position: fixed; inset: 0; background: rgba(10, 43, 32, .55); display: grid; place-items: center; z-index: 1080; padding: 16px; }
.gd-modal[hidden] { display: none; }
.gd-modal__box { background: var(--gd-card); border-radius: var(--gd-radius); box-shadow: var(--gd-shadow-lift); padding: 1.6rem; max-width: 30rem; width: 100%; text-align: left; }
.gd-modal__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gd-teal-soft); color: var(--gd-teal-2); margin-bottom: .6rem; }

.gd-migrate { background: #fff4e0; border-bottom: 2px solid var(--gd-amber); color: #6b3d0c; padding: .7rem 1.2rem; font-size: .88rem; }
.gd-topbar__bell { margin-left: auto; position: relative; color: #fff; display: inline-flex; padding: .3rem; }
.gd-topbar__bell span { position: absolute; top: -2px; right: -4px; background: #e8463c; color: #fff; border-radius: 999px; font-size: .65rem; padding: 0 .35rem; font-weight: 700; }
.gd-school-card:hover { box-shadow: var(--gd-shadow-lift); transform: translateY(-1px); }
.gd-ai-card { border-top: 4px solid var(--gd-amber); }

/* ---- Step 42: the bell on wide screens, the "turn on notifications" ask, the new-item toast ---- */
.gd-deskbar { justify-content: flex-end; align-items: center; gap: .75rem; padding: .6rem 1.5rem 0; }
.gd-deskbar__bell { position: relative; display: inline-flex; padding: .45rem; border-radius: 999px; color: var(--gd-ink, #16241d); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.gd-deskbar__bell:hover { background: #eef6f2; }
.gd-deskbar__bell span, .gd-topbar__bell span { position: absolute; top: -3px; right: -5px; min-width: 1.2rem; text-align: center; background: #e8463c; color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 .35rem; font-weight: 700; line-height: 1.2rem; }
.gd-deskbar__push { border: 1px solid #cfe3d9; background: #fff; color: #0f6b4f; border-radius: 999px; font-size: .8rem; padding: .3rem .8rem; display: inline-flex; align-items: center; gap: .35rem; }
.gd-pushask { display: flex; align-items: center; gap: .75rem; margin: .75rem 1.5rem 0; padding: .8rem 1rem; border-radius: 12px; background: #eef6f2; border: 1px solid #cfe3d9; flex-wrap: wrap; }
.gd-pushask__icon { color: #0f6b4f; }
.gd-pushask[hidden], .gd-toast[hidden], [data-gd-count][hidden] { display: none !important; }
.gd-toast { position: fixed; right: 1rem; bottom: 5.5rem; z-index: 1080; max-width: 340px; background: #0f3d2e; color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .9rem; }
.gd-toast a { color: #fff; font-weight: 700; }
@media (max-width: 991.98px) { .gd-pushask { margin: .75rem .75rem 0; } }

/* ---- Step 43: school adverts ("Sponsored") ---- */
.gd-ads__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; font-weight: 700; }
.gd-ads__head small { font-weight: 500; color: #6b7c75; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.gd-ads__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.gd-ad { display: flex; gap: .75rem; background: #fff; border: 1px solid #e3ece7; border-radius: 14px; padding: .65rem; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.gd-ad:hover { border-color: #b7d8c8; box-shadow: 0 4px 14px rgba(15,61,46,.12); }
.gd-ad img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.gd-ad__body { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; min-width: 0; }
.gd-ad__body strong { color: #0f3d2e; }
.gd-ad__body small { color: #6b7c75; }

/* Step 44 — English | Luganda switch */
.gd-lang { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .25rem .2rem .55rem; border: 1px solid #d4e0da; border-radius: 999px; background: #fff; font-size: .78rem; color: #4b5f57; }
.gd-lang svg { width: 14px; height: 14px; }
.gd-lang__opt { padding: .2rem .6rem; border-radius: 999px; color: #0f3d2e; text-decoration: none; font-weight: 600; }
.gd-lang__opt:hover { background: #eef5f1; color: #0f3d2e; }
.gd-lang__opt.is-active { background: #0f3d2e; color: #fff; }
.gd-langbar { display: flex; justify-content: flex-end; margin: 0 0 .75rem; }
.gd-auth .gd-lang { margin-bottom: 1rem; }

/* ------------------------------------------------------------------ */
/* Step 47 — owner & IT dashboards: charts drawn as SVG on the server   */
/* ------------------------------------------------------------------ */
.gd-chartgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.gd-chartcard { background: var(--bs-body-bg, #fff); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 61, 46, .08); padding: 1rem 1.1rem; min-width: 0; }
.gd-chartcard h2 { font-size: .92rem; font-weight: 700; margin: 0 0 .15rem; }
.gd-chartcard p.gd-chartcard__sub { font-size: .76rem; color: var(--gd-muted, #5d6b66); margin: 0 0 .7rem; }
.gd-chartcard .gd-bars li { grid-template-columns: minmax(6rem, 38%) 1fr 3.4rem; gap: .5rem; }
.gd-chartcard .gd-bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-chartbox { margin: 0; }
.gd-chart { display: block; width: 100%; height: 170px; overflow: visible; }
.gd-chart__axis { stroke: #c9d3ce; stroke-width: 1; }
.gd-chart__lbl { font-size: 9px; fill: var(--gd-muted, #5d6b66); text-anchor: middle; }
.gd-chart__legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .74rem; margin-top: .35rem; color: var(--gd-muted, #5d6b66); }
.gd-chart__legend i, .gd-donut__legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.gd-donutbox { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gd-donut { width: 120px; height: 120px; transform: rotate(0deg); flex: none; }
.gd-donut__n { font-size: 7px; font-weight: 700; text-anchor: middle; fill: currentColor; }
.gd-donut__legend { list-style: none; padding: 0; margin: 0; font-size: .8rem; display: grid; gap: .25rem; }
.gd-health { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.gd-health--ok { background: #e3f4ec; color: #0b6b52; }
.gd-health--warn { background: #fdf1dc; color: #8a5a0c; }
.gd-health--fail { background: #fbe3e3; color: #a12a2a; }
.gd-health--off { background: #eceff0; color: #5d6b66; }
.gd-meterline { height: 8px; border-radius: 999px; background: #edf2ef; overflow: hidden; min-width: 80px; }
.gd-meterline span { display: block; height: 100%; border-radius: inherit; background: #0b8a69; }
.gd-meterline--warn span { background: #d98a1c; }
.gd-meterline--fail span { background: #d64545; }
/* Step 47.2: charts always sit on a light card, so they read clearly on a phone in dark mode too. */
.gd-chartcard, [data-bs-theme=dark] .gd-chartcard { background: #ffffff !important; color: #16241d !important; border: 1px solid #e3ebe7; }
.gd-chartcard h2, .gd-chartcard dt, .gd-chartcard dd, .gd-chartcard .gd-bars__n, .gd-chartcard .gd-bars__label { color: #16241d !important; }
.gd-chartcard p.gd-chartcard__sub, .gd-chartcard .gd-chart__legend, .gd-chartcard .text-muted { color: #5d6b66 !important; }
.gd-chartcard .gd-chart__lbl { fill: #5d6b66; }
.gd-chartcard .gd-donut__n { fill: #16241d; }
.gd-chartcard .gd-bars__track, .gd-chartcard .gd-meterline { background: #edf2ef; }
.gd-chartcard a.gd-bars__label, .gd-chartcard span.gd-bars__label { display: block; border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Step 48 — audit calendar */
.gd-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.gd-cal__head { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5d6b66; text-align: center; padding: 2px 0; }
.gd-cal__day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px;
    background: rgba(11, 138, 105, var(--a, 0)); border: 1px solid #e3ebe7; color: #16241d; text-decoration: none; }
.gd-cal__day:hover { outline: 2px solid #0b8a69; }
.gd-cal__day.is-empty { background: #fafcfb; color: #9aa8a2; }
.gd-cal__day.is-today { border-color: #0f3d2e; border-width: 2px; }
.gd-cal__day.is-picked { outline: 3px solid #d98a1c; }
.gd-cal__num { font-size: .8rem; font-weight: 700; }
.gd-cal__n { font-size: .68rem; font-weight: 600; }

/* Step 48 — help desk chat + round buttons beside Sign out */
.gd-chat { display: flex; flex-direction: column; gap: .6rem; }
.gd-chat__msg { max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid #e3ebe7; border-radius: 14px 14px 14px 4px; padding: .6rem .8rem; color: #16241d; }
.gd-chat__msg--me { align-self: flex-end; background: #e3f4ec; border-color: #c4e7d6; border-radius: 14px 14px 4px 14px; }
.gd-chat__who { font-size: .72rem; color: #5d6b66; margin-bottom: .2rem; }
.gd-chat__body { font-size: .9rem; white-space: normal; }
.gd-roundbar { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.gd-round { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    border: 0; color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); cursor: pointer; }
.gd-round--ai { background: linear-gradient(135deg, #7a4fd1, #2f6fdb); }
.gd-round--help { background: linear-gradient(135deg, #0b8a69, #1aa3a3); }
.gd-round:hover { transform: translateY(-2px); color: #fff; }
.gd-round__n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #d64545; color: #fff; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gd-roundbar__label { font-size: .7rem; color: rgba(255, 255, 255, .7); line-height: 1.2; }
/* Step 48.1: Truth AI stays where it always was (the pill at the bottom right). */
.gd-round--it { background: linear-gradient(135deg, #0f3d2e, #1d5c47); border: 2px solid rgba(255, 255, 255, .35); }

/* Step 48 — language drop-down */
.gd-langpick { position: relative; display: inline-block; font-size: .8rem; }
.gd-langpick > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border: 1px solid #d4e0da; border-radius: 999px; background: #fff; color: #0f3d2e; font-weight: 600; }
.gd-langpick > summary::-webkit-details-marker { display: none; }
.gd-langpick > summary svg { width: 14px; height: 14px; }
.gd-langpick__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 1050; min-width: 160px; background: #fff; border: 1px solid #d4e0da; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .3rem; display: grid; gap: 2px; }
.gd-langpick__menu .gd-lang__opt { display: block; border-radius: 6px; }

/* Step 49 — IT assistant conversation */
.gd-itai__log { display: flex; flex-direction: column; gap: .6rem; max-height: 60vh; overflow-y: auto; }
.gd-itai__msg { padding: .6rem .8rem; border-radius: .8rem; max-width: 92%; }
.gd-itai__msg--me { align-self: flex-end; background: #e6f4ef; }
.gd-itai__msg--ai { align-self: flex-start; background: #f3f1fb; }
[data-bs-theme=dark] .gd-itai__msg--me { background: #17352c; }
[data-bs-theme=dark] .gd-itai__msg--ai { background: #2a2540; }
.gd-itai__text { white-space: normal; line-height: 1.5; }
/* Step 49 — "new messages" pill when a live page has news but you are typing */
.gd-live-pill { position: fixed; top: 4.5rem; left: 50%; transform: translateX(-50%); z-index: 1080; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
