/* Register --hub-side so collapse/expand can animate track width safely. */
@property --hub-side {
    syntax: "<length>";
    inherits: true;
    initial-value: 240px;
}

main.gc-app.platform-hub {
    --hub-side: 240px;
    --hub-side-collapsed: 72px;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: var(--hub-side) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    background: #FAF7F2;
    color: #352521;
    font-family: "M PLUS Rounded 1c", sans-serif;
    overflow-x: clip;
    overflow-y: hidden;
    transition: --hub-side 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shell children must include padding inside their track width.
   content-box + width:100% + horizontal padding was overflowing the viewport by ~56px. */
main.gc-app.platform-hub > .gc-side,
main.gc-app.platform-hub > .gc-main,
main.gc-app.platform-hub .gc-top,
main.gc-app.platform-hub .gc-workspace {
    box-sizing: border-box;
}

main.gc-app.platform-hub.is-side-collapsed {
    --hub-side: var(--hub-side-collapsed);
}

/* Full-focus homework play: hide sidebar + top header */
main.gc-app.platform-hub.is-hw-focus {
    grid-template-columns: minmax(0, 1fr);
}

main.gc-app.platform-hub.is-hw-focus > .gc-side,
main.gc-app.platform-hub.is-hw-focus .gc-top {
    display: none !important;
}

main.gc-app.platform-hub.is-hw-focus .gc-main {
    min-height: 100dvh;
}

main.gc-app.platform-hub.is-hw-focus .gc-workspace {
    flex: 1;
    min-height: 100dvh;
    padding: 0;
}

/* Homework studio: keep the desktop grid shell; collapse to icon rail only. */
main.gc-app.platform-hub.is-hw-studio-focus .gc-workspace {
    box-sizing: border-box;
    padding-top: clamp(0.45rem, 1vw, 0.75rem);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/*
 * Quest-clear / play results must full-bleed the workspace.
 * Beat .gc-workspace padding and the studio-focus padding-top above.
 * No nested :has() — nested forms can invalidate the entire rule list.
 */
main.gc-app.platform-hub .gc-workspace:has(.hw-done),
main.gc-app.platform-hub .gc-workspace:has(.hw-play),
main.gc-app.platform-hub .gc-workspace:has(.gc-learn-hub.is-playing),
main.gc-app.platform-hub.is-hw-studio-focus .gc-workspace:has(.hw-done),
main.gc-app.platform-hub.is-hw-studio-focus .gc-workspace:has(.hw-play),
main.gc-app.platform-hub.is-hw-studio-focus .gc-workspace:has(.gc-learn-hub.is-playing) {
    padding: 0 !important;
    overflow: hidden;
}

main.gc-app.platform-hub.is-hw-studio-focus .gc-workspace > *,
main.gc-app.platform-hub.is-hw-studio-focus #hub-panel,
main.gc-app.platform-hub.is-hw-studio-focus #hub-panel-platform,
main.gc-app.platform-hub.is-hw-studio-focus .hw-studio,
main.gc-app.platform-hub.is-hw-studio-focus .hw-studio.hw-switch-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.gc-nav-scrim,
.gc-hw-chrome-scrim,
.gc-hw-chrome-toggle {
    display: none !important;
}

.gc-side-user-slot {
    display: none !important;
}

main.gc-app.platform-hub[hidden],
main.gc-app [hidden] {
    display: none !important;
}

body.hub-open {
    overflow: hidden;
}

body.hub-open #fixed-corner-logo {
    display: none;
}

.gc-side {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 1rem 1rem 0.85rem;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid #E9E1D8;
    transition: padding 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex: none;
}

.gc-brand-block {
    min-width: 0;
    max-width: 11rem;
    margin: 0.1rem 0.15rem 0.15rem;
    overflow: hidden;
    opacity: 1;
    transition: opacity 140ms ease, max-width 240ms cubic-bezier(0.4, 0, 0.2, 1), margin 240ms ease;
}

.gc-brand {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #E64618;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gc-brand-sub {
    display: none;
    margin: 0.2rem 0 0;
}

.gc-side-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0.05rem;
    padding: 0;
    border: 1px solid #E9E1D8;
    border-radius: 10px;
    background: #fff;
    color: #5C4B45;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 180ms ease;
}

.gc-side-toggle:active {
    transform: scale(0.94);
}

.gc-side-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
}

.gc-side-label {
    display: none;
    margin: 0.35rem 0.35rem 0.1rem;
    color: #9A7B68;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.gc-nav-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 0.1rem;
}

.gc-nav-list,
.gc-nav-list div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gc-nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #5C4B45;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.gc-nav svg {
    width: 1.2rem;
    height: 1.2rem;
    flex: none;
}

.gc-nav > span {
    min-width: 0;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 140ms ease, max-width 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-nav:hover {
    background: #FFF8F2;
    color: #E64618;
}

.gc-nav.is-current {
    background: #FFF5EA;
    color: #E64618;
    font-weight: 700;
}

.gc-side-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: none;
    margin-top: auto;
    padding-top: 0.55rem;
}

.gc-side-foot {
    display: none;
}

.gc-side-account {
    display: grid;
    gap: 0.45rem;
}

.gc-side-account .gc-user {
    margin-left: 0;
    gap: 0.55rem;
}

.gc-side-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    min-height: 2rem;
    padding: 0.2rem 0.35rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #786962;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.gc-side-logout svg {
    width: 1rem;
    height: 1rem;
}

.gc-side-logout:hover {
    color: #E64618;
    background: #FFF5EA;
}

.gc-top-utils {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex: none;
}

main.gc-app.platform-hub :focus-visible {
    outline: 2px solid #E64618;
    outline-offset: 2px;
}

.gc-main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-width: 100%;
    overflow-x: clip;
    container-type: inline-size;
    container-name: hub-main;
}

header.gc-top {
    box-sizing: border-box;
    position: relative;
    z-index: 200;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #352521 !important;
    border-bottom: 1px solid #E9E1D8;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
}

header.gc-top h1 {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #352521;
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
    font-weight: 800;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-nav svg,
.gc-card svg {
    width: 20px;
    height: 20px;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.gc-user-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #F7C3B4, #F28B74);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(242, 139, 116, 0.28);
    overflow: hidden;
}

.gc-user-meta {
    display: grid;
    gap: 0.05rem;
    min-width: 0;
}

.gc-app[data-role="student"] .gc-user-meta #hub-role-label {
    display: inline-flex;
    width: fit-content;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: #FFF0E7;
    color: #C5674F;
    font-size: 0.68rem;
    font-weight: 800;
}

.gc-bell-wrap {
    position: relative;
    z-index: 210;
}

.gc-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    cursor: pointer;
}

.gc-bell svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-user .gc-bell-count {
    position: absolute;
    top: -0.15rem;
    right: -0.15rem;
    display: inline-block;
    width: 0.72rem;
    height: 0.72rem;
    min-width: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #F5B89A;
    box-shadow: 0 0 0 2px rgba(245, 184, 154, 0.35);
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-indent: -999px;
    overflow: hidden;
}

.gc-bell-panel {
    --bell-text: #382F2B;
    --bell-muted: #817571;
    --bell-border: #EDE4DC;
    position: absolute;
    z-index: 220;
    top: calc(100% + 0.45rem);
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 1.5rem));
    max-height: min(520px, calc(100dvh - 5.5rem));
    overflow: hidden;
    padding: 0;
    border: 1px solid #F0E6DC;
    border-radius: 22px;
    background: #FFFCFA;
    box-shadow:
        0 18px 40px rgba(86, 58, 42, 0.12),
        0 4px 12px rgba(86, 58, 42, 0.05);
    color: var(--bell-text);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.gc-bell-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gc-bell-panel[hidden] {
    display: none !important;
}

.gc-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex: 0 0 auto;
    padding: 0.7rem 0.85rem 0.65rem;
    border-bottom: 1px solid #F0E6DC;
}

.gc-bell-head-left {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.gc-bell-head-ico {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #FFE8DC, #FFD9C8);
    color: #D9754A;
}

.gc-bell-head-ico svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-bell-head strong {
    font-size: 0.95rem;
    font-weight: 850;
}

.gc-bell-head-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #FFD4C8;
    color: #C24E2E;
    font-size: 0.68rem;
    font-weight: 850;
}

.gc-bell-mark-all {
    border: none;
    background: transparent;
    color: #C87555;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
    padding: 0.25rem 0.2rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.gc-bell-mark-all:hover {
    background: #FFF0E7;
    color: #A85230;
}

.gc-bell-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.55rem 0.55rem 0.45rem;
    overscroll-behavior: contain;
}

.gc-bell-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: start;
    width: 100%;
    padding: 0.65rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.gc-bell-item:hover {
    background: #FFF8F2;
    border-color: #F0E0D4;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(86, 58, 42, 0.06);
}

.gc-bell-item:focus-visible {
    outline: 2px solid #F2A78A;
    outline-offset: 2px;
}

.gc-bell-item.is-new {
    background: linear-gradient(180deg, #FFF9F4, #FFF1E8);
    border-color: #F3D7C8;
}

.gc-bell-item.tone-lavender.is-new {
    background: linear-gradient(180deg, #FCFAFF, #F3EEFF);
    border-color: #DDD4F5;
}

.gc-bell-item.tone-mint.is-new,
.gc-bell-item.tone-yellow.is-new {
    background: linear-gradient(180deg, #F8FCF9, #EAF7EF);
    border-color: #CDE6D6;
}

.gc-bell-item.tone-pink.is-new {
    background: linear-gradient(180deg, #FFF8FA, #FFE8EE);
    border-color: #F3C8D4;
}

.gc-bell-item-ico {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    background: #FFF0E7;
    color: #D9754A;
    flex-shrink: 0;
}

.gc-bell-item-ico svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-bell-item.tone-lavender .gc-bell-item-ico {
    background: #EFEAFF;
    color: #6B5BD6;
}
.gc-bell-item.tone-mint .gc-bell-item-ico {
    background: #E3F5EA;
    color: #2F9A5B;
}
.gc-bell-item.tone-yellow .gc-bell-item-ico {
    background: #FFF3D6;
    color: #C28A1A;
}
.gc-bell-item.tone-pink .gc-bell-item-ico {
    background: #FFE4EC;
    color: #D45A7A;
}
.gc-bell-item.tone-peach .gc-bell-item-ico {
    background: #FFF0E7;
    color: #D9754A;
}

.gc-bell-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.gc-bell-item-title {
    font-size: 0.86rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--bell-text);
}

.gc-bell-item.is-new .gc-bell-item-title {
    font-weight: 850;
}

.gc-bell-item-preview {
    color: var(--bell-muted);
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc-bell-item-tag {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.2rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: #F4EEE8;
    color: #786962;
    font-size: 0.64rem;
    font-weight: 800;
}

.gc-bell-item.tone-peach .gc-bell-item-tag { background: #FFE4D4; color: #C24E2E; }
.gc-bell-item.tone-lavender .gc-bell-item-tag { background: #E4DCFF; color: #5B4CC0; }
.gc-bell-item.tone-mint .gc-bell-item-tag { background: #D7F0E0; color: #24824C; }
.gc-bell-item.tone-yellow .gc-bell-item-tag { background: #FFE9B8; color: #A67C12; }
.gc-bell-item.tone-pink .gc-bell-item-tag { background: #FFD6E2; color: #C24768; }

.gc-bell-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    padding-top: 0.1rem;
}

.gc-bell-item-meta small {
    color: var(--bell-muted);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.gc-bell-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #F2A78A;
    box-shadow: 0 0 0 3px rgba(242, 167, 138, 0.22);
}

.gc-bell-empty {
    display: grid;
    place-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0;
    padding: 1.35rem 0.85rem;
    text-align: center;
    color: var(--bell-muted);
}

.gc-bell-empty-ico {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.15rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #FFF0E7, #FFE4D4);
    color: #D9754A;
}

.gc-bell-empty-ico svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-bell-empty strong {
    color: var(--bell-text);
    font-size: 0.92rem;
    font-weight: 850;
}

.gc-bell-empty p {
    margin: 0;
    max-width: 16rem;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.45;
}

.gc-bell-foot {
    flex: 0 0 auto;
    padding: 0.55rem 0.65rem 0.7rem;
    border-top: 1px solid #F0E6DC;
    background: linear-gradient(180deg, #FFFCF9, #FFF5EE);
}

.gc-bell-inbox-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 2.45rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid #F0D0BF;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFF3EA, #FFE4D4);
    color: #C88768;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.gc-bell-inbox-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 6px 14px rgba(184, 115, 85, 0.12);
}

.gc-bell-inbox-link:active {
    transform: translateY(0) scale(0.99);
}

.gc-note-list { display: flex; flex-direction: column; gap: 0.45rem; }
.gc-note-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    text-align: left;
}
button.gc-note-card { cursor: pointer; }
button.gc-note-card:hover { background: #FFF5EA; }
.gc-note-card.is-new { background: #FFF5EA; }
.gc-note-card small { color: #786962; font-size: 0.75rem; font-weight: 700; }
.gc-note-card h3,
.gc-note-card strong { font-size: 0.95rem; }
.gc-note-card p { margin: 0.2rem 0 0; white-space: pre-wrap; line-height: 1.5; }
.gc-note-card ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }

/* —— Student Inbox (受信箱) —— */
#hub-panel:has(.gc-inbox),
#hub-panel-platform:has(.gc-inbox) {
    width: min(1180px, 100%);
    max-width: none;
}

.gc-inbox {
    --inbox-text: #382F2B;
    --inbox-muted: #817571;
    --inbox-border: #EDE4DC;
    --inbox-shadow: 0 10px 26px rgba(86, 58, 42, 0.07);
    --inbox-peach: #FFF0E7;
    --inbox-lavender: #EFEAFF;
    --inbox-mint: #E3F5EA;
    --inbox-yellow: #FFF3D6;
    --inbox-coral: #F28B74;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0.05rem 0.1rem 1.1rem;
    color: var(--inbox-text);
}

.gc-inbox-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(237, 228, 220, 0.9);
    border-radius: 22px;
    /* Beat legacy style.css header red gradient (header:not(.app-header)). */
    background:
        radial-gradient(circle at 10% 30%, rgba(255, 220, 205, 0.42), transparent 46%),
        radial-gradient(circle at 92% 18%, rgba(214, 204, 248, 0.34), transparent 42%),
        linear-gradient(118deg, #FFF9F5, #F6F2FF 58%, #FFF8F3) !important;
    box-shadow: var(--inbox-shadow) !important;
    color: var(--inbox-text) !important;
}

.gc-inbox-hero-copy h2 {
    margin: 0;
    color: var(--inbox-text) !important;
    font-size: clamp(1.5rem, 2.6vw, 1.75rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.gc-inbox-hero-copy p {
    margin: 0.28rem 0 0;
    color: var(--inbox-muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}

.gc-inbox-mascot {
    flex: 0 0 auto;
    width: 58px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(86, 58, 42, 0.12));
}

.gc-inbox-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    margin-bottom: 0.8rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 252, 249, 0.88);
    border: 1px solid #EFE6DE;
    box-shadow: 0 4px 14px rgba(86, 58, 42, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gc-inbox-filters::-webkit-scrollbar { display: none; }

.gc-inbox-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 auto;
    min-height: 2.2rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--inbox-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

.gc-inbox-filter em {
    font-style: normal;
    font-weight: 850;
    opacity: 0.75;
}

.gc-inbox-filter:hover {
    background: #FFF5EE;
    color: var(--inbox-text);
}

.gc-inbox-filter.is-active {
    background: linear-gradient(135deg, #FFE8DC, #F3E9FF);
    color: #9A5A42;
    box-shadow: 0 4px 12px rgba(184, 115, 85, 0.12);
}

.gc-inbox-filter.is-active em { opacity: 1; }

.gc-inbox-stage {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 1.1rem;
    align-items: start;
}

.gc-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    max-height: min(68vh, 40rem);
    overflow-y: auto;
    padding-right: 0.15rem;
}

.gc-inbox-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
    width: 100%;
    padding: 0.78rem 0.85rem;
    border: 1px solid #EDE4DC;
    border-radius: 18px;
    background: #FFFCFA;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(86, 58, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.gc-inbox-item-accent {
    position: absolute;
    left: 0;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.gc-inbox-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(86, 58, 42, 0.08);
}

.gc-inbox-item:active { transform: translateY(0) scale(0.995); }

.gc-inbox-item.is-active {
    background: linear-gradient(180deg, #FFF8F3, #FFEFE6);
    border-color: #EFC4B0;
    box-shadow: 0 8px 20px rgba(184, 115, 85, 0.1);
}

.gc-inbox-item.is-active .gc-inbox-item-accent {
    background: #F2A78A;
}

.gc-inbox-item.tone-lavender.is-active {
    background: linear-gradient(180deg, #FBFAFF, #F1ECFF);
    border-color: #D2C7F2;
}

.gc-inbox-item.tone-lavender.is-active .gc-inbox-item-accent {
    background: #A895E8;
}

.gc-inbox-item.tone-mint.is-active {
    background: linear-gradient(180deg, #F7FCF8, #EAF7EF);
    border-color: #BFE0CC;
}

.gc-inbox-item.tone-mint.is-active .gc-inbox-item-accent {
    background: #6FBF90;
}

.gc-inbox-item.is-unread {
    background: linear-gradient(180deg, #FFF9F5, #FFF1E9);
    border-color: #F0D0BF;
}

.gc-inbox-item.tone-lavender.is-unread {
    background: linear-gradient(180deg, #FCFAFF, #F3EEFF);
    border-color: #DED5F5;
}

.gc-inbox-item.tone-mint.is-unread {
    background: linear-gradient(180deg, #F8FCF9, #ECF7F0);
    border-color: #C8E6D4;
}

.gc-inbox-item-ico {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 14px;
    background: #FFF4EC;
    color: #D9754A;
    flex-shrink: 0;
}

.gc-inbox-item-ico svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-inbox-item.tone-lavender .gc-inbox-item-ico {
    background: var(--inbox-lavender);
    color: #6B5BD6;
}
.gc-inbox-item.tone-mint .gc-inbox-item-ico {
    background: var(--inbox-mint);
    color: #2F9A5B;
}
.gc-inbox-item.tone-peach .gc-inbox-item-ico {
    background: var(--inbox-peach);
    color: #D9754A;
}

.gc-inbox-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    min-width: 0;
}

.gc-inbox-item-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.gc-inbox-item-top small {
    margin-left: auto;
    color: var(--inbox-muted);
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gc-inbox-item strong {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.gc-inbox-item.is-unread strong { font-weight: 900; }

.gc-inbox-item-preview {
    color: var(--inbox-muted);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gc-inbox-item-side {
    display: grid;
    place-items: start center;
    padding-top: 0.15rem;
    min-width: 0.7rem;
}

.gc-inbox-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.3rem;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    background: #F4EEE8;
    color: #786962;
}

.gc-inbox-badge.tone-peach { background: #FFEFE4; color: #C88768; }
.gc-inbox-badge.tone-lavender { background: #EFEAFF; color: #7A6CCF; }
.gc-inbox-badge.tone-mint { background: #E3F5EA; color: #3A9E66; }
.gc-inbox-badge.is-unread { background: #FFE4D8; color: #C88768; }
.gc-inbox-badge.is-read { background: #EDE8E2; color: #8A7C74; }

.gc-inbox-dot {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: #F28B74;
    box-shadow: 0 0 0 3px rgba(242, 139, 116, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gc-inbox-detail {
    position: sticky;
    top: 0.75rem;
    min-width: 0;
}

.gc-inbox-detail.is-fade .gc-inbox-detail-card,
.gc-inbox-detail.is-fade .gc-inbox-empty {
    animation: gc-inbox-fade 0.22s ease;
}

@keyframes gc-inbox-fade {
    from { opacity: 0.35; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.gc-inbox-detail-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 22px;
    border: 1px solid #E8DFD6;
    background: linear-gradient(165deg, #fff 0%, #FFFCF9 100%);
    box-shadow: var(--inbox-shadow);
}

.gc-inbox-detail-card.tone-peach {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 224, 208, 0.45), transparent 42%),
        linear-gradient(180deg, #fff, #FFF6F0);
    border-color: #EFD2C2;
}
.gc-inbox-detail-card.tone-lavender {
    background:
        radial-gradient(circle at 100% 0%, rgba(226, 216, 255, 0.45), transparent 42%),
        linear-gradient(180deg, #fff, #F8F5FF);
    border-color: #D9D0F5;
}
.gc-inbox-detail-card.tone-mint {
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 236, 214, 0.4), transparent 42%),
        linear-gradient(180deg, #fff, #F4FBF6);
    border-color: #C5E4D0;
}

.gc-inbox-back {
    display: none;
    align-items: center;
    gap: 0.3rem;
    align-self: flex-start;
    min-height: 2.2rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid #E8DFD6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--inbox-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.gc-inbox-detail-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    /* Reset legacy page-header styles from style.css (red banner). */
    background: transparent;
    color: inherit;
    padding: 0;
    box-shadow: none;
    flex-wrap: nowrap;
    justify-content: initial;
}

.gc-inbox-detail-ico {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 16px;
    background: #FFF4EC;
    color: #D9754A;
}

.gc-inbox-detail-card.tone-lavender .gc-inbox-detail-ico {
    background: var(--inbox-lavender);
    color: #6B5BD6;
}
.gc-inbox-detail-card.tone-mint .gc-inbox-detail-ico {
    background: var(--inbox-mint);
    color: #2F9A5B;
}

.gc-inbox-detail-ico svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-inbox-detail-head-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.gc-inbox-detail-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.gc-inbox-detail-top small {
    margin-left: auto;
    color: var(--inbox-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.gc-inbox-detail-card h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.28;
}

.gc-inbox-detail-panel {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(237, 228, 220, 0.85);
}

.gc-inbox-detail-related {
    margin: 0;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #FFEFE4;
    color: #B87355;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.gc-inbox-detail-card.tone-lavender .gc-inbox-detail-related {
    background: #EFEAFF;
    color: #6B5BD6;
}

.gc-inbox-detail-body {
    margin: 0;
    color: #5A504B;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.gc-inbox-detail-body.is-muted {
    color: var(--inbox-muted);
    font-weight: 700;
}

.gc-inbox-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    align-self: flex-start;
    min-height: 2.55rem;
    margin-top: 0.1rem;
    padding: 0.5rem 1.05rem;
    border: 1px solid #F0D0BF;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFF3EA, #FFE4D4);
    color: #C88768;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(184, 115, 85, 0.1);
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gc-inbox-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #FFE8DC, #FFD9C8);
    box-shadow: 0 8px 16px rgba(184, 115, 85, 0.12);
}

.gc-inbox-cta:active { transform: translateY(0) scale(0.98); }

.gc-inbox-cta svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-inbox-detail-card.tone-lavender .gc-inbox-cta {
    border-color: #D9D0F5;
    background: linear-gradient(135deg, #F7F4FF, #EFEAFF);
    color: #7A6CCF;
    box-shadow: 0 6px 14px rgba(107, 91, 214, 0.1);
}

.gc-inbox-detail-card.tone-mint .gc-inbox-cta {
    border-color: #C5E4D0;
    background: linear-gradient(135deg, #F4FBF6, #E3F5EA);
    color: #3A9E66;
    box-shadow: 0 6px 14px rgba(47, 154, 91, 0.1);
}

.gc-inbox-empty {
    display: grid;
    place-items: center;
    gap: 0.55rem;
    min-height: 10rem;
    padding: 1.15rem;
    border-radius: 22px;
    border: 1px dashed #E2D7CD;
    background: linear-gradient(180deg, #FFFCF9, #F8F4EF);
    color: var(--inbox-muted);
    text-align: center;
}

.gc-inbox-empty img {
    width: 56px;
    height: auto;
    opacity: 0.9;
}

.gc-inbox-empty p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 750;
}

.gc-inbox-empty.is-list {
    min-height: 7rem;
    background: transparent;
    border-style: solid;
}

@media (max-width: 900px) {
    .gc-inbox-stage {
        grid-template-columns: 1fr;
    }

    .gc-inbox-list {
        max-height: none;
    }

    .gc-inbox-detail {
        position: static;
        display: none;
    }

    .gc-inbox-stage.is-detail-open .gc-inbox-list {
        display: none;
    }

    .gc-inbox-stage.is-detail-open .gc-inbox-detail {
        display: block;
    }

    .gc-inbox-back {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .gc-inbox-hero {
        padding: 0.7rem 0.85rem;
    }

    .gc-inbox-mascot {
        width: 50px;
    }

    .gc-inbox-filters {
        border-radius: 18px;
    }

    .gc-inbox-filter {
        min-height: 2.4rem;
        padding: 0.35rem 0.8rem;
    }

    .gc-inbox-item {
        padding: 0.75rem;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-inbox-filter,
    .gc-inbox-item,
    .gc-inbox-cta,
    .gc-inbox-dot {
        transition: none;
    }

    .gc-inbox-item:hover,
    .gc-inbox-cta:hover {
        transform: none;
    }

    .gc-inbox-detail.is-fade .gc-inbox-detail-card,
    .gc-inbox-detail.is-fade .gc-inbox-empty {
        animation: none;
    }
}

/* —— Student Learning Hub (宿題とレポート) —— */
#hub-panel:has(.gc-learn-hub),
#hub-panel-platform:has(.gc-learn-hub) {
    width: min(1240px, 100%);
    max-width: none;
}

.gc-learn-hub {
    --learn-bg: #FAF8F5;
    --learn-coral: #F28B74;
    --learn-peach: #FFF0E7;
    --learn-blue: #EAF4FF;
    --learn-mint: #E3F5EA;
    --learn-lavender: #EFEAFF;
    --learn-yellow: #FFF3D6;
    --learn-text: #382F2B;
    --learn-muted: #817571;
    --learn-border: #EDE4DC;
    --learn-shadow: 0 10px 28px rgba(86, 58, 42, 0.07);
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 0.15rem 0.15rem 1.25rem;
    color: var(--learn-text);
}

.gc-learn-hub.is-wheel {
    --learn-bg: #FFF9F4;
    width: 100%;
    max-width: none;
    padding: 0;
    min-height: calc(100dvh - 7.5rem);
}

#hub-panel:has(.gc-learn-hub.is-wheel),
#hub-panel-platform:has(.gc-learn-hub.is-wheel) {
    width: 100%;
    max-width: none;
}

.gc-workspace:has(.gc-learn-hub.is-wheel) {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.gc-learn-home {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 8rem);
}

.gc-wheel-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, clamp(280px, 40vw, 520px));
    gap: clamp(1.25rem, 3.5vw, 4.5rem);
    align-items: center;
    flex: 1;
    box-sizing: border-box;
    width: min(100%, 1080px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(0.35rem, 1.5vw, 1.25rem);
    min-height: calc(100dvh - 8rem);
    overflow: visible;
}

.gc-wheel-atmosphere {
    position: absolute;
    inset: -2rem;
    z-index: 0;
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    pointer-events: none;
    overflow: visible;
}

.gc-wheel-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.7;
}

.gc-wheel-glow.a {
    width: 22rem;
    height: 22rem;
    left: 8%;
    top: 22%;
    background: radial-gradient(circle, rgba(255, 220, 205, 0.85) 0%, rgba(255, 220, 205, 0.35) 42%, transparent 72%);
}

.gc-wheel-glow.b {
    width: 16rem;
    height: 16rem;
    right: 6%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(232, 222, 255, 0.7) 0%, rgba(232, 222, 255, 0.28) 45%, transparent 74%);
}

.gc-wheel-glow.c {
    width: 13rem;
    height: 13rem;
    left: 42%;
    top: 6%;
    background: radial-gradient(circle, rgba(220, 245, 236, 0.65) 0%, rgba(220, 245, 236, 0.25) 48%, transparent 74%);
}

.gc-wheel-dot {
    position: absolute;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #F7C3B4;
    opacity: 0.55;
}

.gc-wheel-dot.a { left: 22%; top: 16%; }
.gc-wheel-dot.b { left: 48%; bottom: 18%; background: #C9B8F5; }
.gc-wheel-dot.c { right: 28%; top: 28%; background: #F6D98A; width: 0.35rem; height: 0.35rem; }

.gc-wheel {
    position: relative;
    z-index: 1;
    align-self: stretch;
    min-height: calc(100dvh - 8.5rem);
    height: 100%;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    outline: none;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.gc-wheel.is-dragging { cursor: grabbing; }

.gc-wheel:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(242, 139, 116, 0.22);
}

.gc-wheel-ring {
    position: absolute;
    border: 2px dashed rgba(242, 139, 116, 0.3);
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.gc-wheel-stage.is-reports .gc-wheel-ring {
    border-color: rgba(155, 135, 232, 0.32);
}

.gc-wheel-mode {
    position: absolute;
    z-index: 5;
    display: grid;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.38rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #F0E4DA;
    box-shadow: 0 10px 24px rgba(86, 58, 42, 0.08);
}

.gc-wheel-mode-btn {
    min-height: 2.4rem;
    min-width: 5.7rem;
    padding: 0.42rem 1rem;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: #817571;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.gc-wheel-mode-btn.is-active,
.gc-wheel-mode-btn[aria-selected="true"] {
    background: linear-gradient(160deg, #FFE8DF, #F8B39F);
    color: #8A4A38;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.gc-wheel-stage.is-reports .gc-wheel-mode-btn.is-active,
.gc-wheel-stage.is-reports .gc-wheel-mode-btn[aria-selected="true"] {
    background: linear-gradient(160deg, #F0EAFF, #C9B8F5);
    color: #5A4BA8;
}

.gc-wheel-bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.gc-wheel-bubble {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    gap: 0.14rem;
    width: 5.4rem;
    height: 5.4rem;
    padding: 0.45rem;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    background: linear-gradient(160deg, #fff, #FFE4D7);
    color: #392F2B;
    font: inherit;
    font-size: 0.78rem;
    box-shadow: 0 12px 24px rgba(86, 58, 42, 0.1);
    cursor: pointer;
    transition: transform 0.42s cubic-bezier(0.22, 1.15, 0.36, 1),
      width 0.42s cubic-bezier(0.22, 1.15, 0.36, 1),
      height 0.42s cubic-bezier(0.22, 1.15, 0.36, 1),
      opacity 0.28s ease,
      box-shadow 0.2s ease;
    will-change: transform, width, height, opacity;
}

.gc-wheel.is-dragging .gc-wheel-bubble { transition: none; }

.gc-wheel-bubble.tone-peach,
.gc-wheel-bubble.is-todo {
    background: linear-gradient(160deg, #fff, #FFE4D7 55%, #F8C8B8);
}
.gc-wheel-bubble.tone-blue { background: linear-gradient(160deg, #fff, #DCEEFF); }
.gc-wheel-bubble.tone-mint,
.gc-wheel-bubble.is-done {
    background: linear-gradient(160deg, #fff, #D8F3E7 55%, #B8E8CF);
}
.gc-wheel-bubble.tone-yellow { background: linear-gradient(160deg, #fff, #FFF0C6); }
.gc-wheel-bubble.tone-coral { background: linear-gradient(160deg, #fff, #F8D2C8); }
.gc-wheel-bubble.tone-lavender { background: linear-gradient(160deg, #fff, #E8DEFF); }

.gc-wheel-bubble.is-todo.is-active {
    border-color: #F6B5A4;
    background: linear-gradient(160deg, #FFFDFB, #FFE0D2 55%, #F8C2B0);
    box-shadow:
        0 0 0 6px rgba(242, 139, 116, 0.16),
        0 0 28px rgba(242, 139, 116, 0.22),
        0 18px 34px rgba(86, 58, 42, 0.12);
}

.gc-wheel-bubble.is-done.is-active {
    border-color: #7ED4A8;
    background: linear-gradient(160deg, #FFFDFB, #D4F3E4 55%, #A8E4C4);
    box-shadow:
        0 0 0 6px rgba(61, 184, 122, 0.16),
        0 0 28px rgba(61, 184, 122, 0.22),
        0 18px 34px rgba(86, 58, 42, 0.12);
}

.gc-wheel-stage.is-reports .gc-wheel-bubble.is-active,
.gc-wheel-bubble.tone-lavender.is-active {
    border-color: #C9B8F5;
    background: linear-gradient(160deg, #FFFDFB, #EDE5FF 55%, #D5C8F8);
    box-shadow:
        0 0 0 6px rgba(155, 135, 232, 0.16),
        0 0 28px rgba(155, 135, 232, 0.2),
        0 18px 34px rgba(86, 58, 42, 0.12);
}

.gc-wheel-bubble.is-pop {
    animation: gc-wheel-pop 0.42s cubic-bezier(0.22, 1.35, 0.36, 1);
}

.gc-wheel-bubble-dot {
    position: absolute;
    top: 0.28rem;
    right: 0.28rem;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: #FF4D3A;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(86, 58, 42, 0.2);
    pointer-events: none;
    z-index: 2;
}

.gc-wheel-bubble-ico {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    color: #E08A6A;
    filter: drop-shadow(0 2px 4px rgba(86, 58, 42, 0.12));
}

.gc-wheel-bubble.tone-lavender .gc-wheel-bubble-ico { color: #8B7AE8; }
.gc-wheel-bubble.tone-mint .gc-wheel-bubble-ico,
.gc-wheel-bubble.is-done .gc-wheel-bubble-ico { color: #2FA86A; }
.gc-wheel-bubble.tone-blue .gc-wheel-bubble-ico { color: #5B8FD4; }
.gc-wheel-bubble.tone-yellow .gc-wheel-bubble-ico { color: #E0A83A; }
.gc-wheel-bubble.tone-coral .gc-wheel-bubble-ico { color: #E88A78; }
.gc-wheel-bubble.tone-peach .gc-wheel-bubble-ico,
.gc-wheel-bubble.is-todo .gc-wheel-bubble-ico { color: #E07A68; }

.gc-wheel-bubble-ico.is-check svg,
.gc-wheel-bubble-ico.is-outline svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-wheel-bubble-ico.is-outline svg [fill="none"] {
    fill: none;
    stroke: currentColor;
}

.gc-wheel-bubble-ico svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-wheel-bubble-ico.is-cute svg {
    fill: currentColor;
    stroke: none;
}

.gc-wheel-bubble-ico.is-cute svg [fill="none"] {
    fill: none;
    stroke: currentColor;
}

.gc-wheel-bubble-label {
    max-width: 92%;
    color: #392F2B;
    font-size: inherit;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gc-wheel-navs {
    position: absolute;
    z-index: 6;
    display: grid;
    gap: 0.75rem;
}

.gc-wheel-nav {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #F0E4DA;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #817571;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(86, 58, 42, 0.08);
    transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.gc-wheel-nav:hover:not(:disabled) { color: #392F2B; transform: scale(1.06); }
.gc-wheel-nav:disabled { opacity: 0.35; cursor: default; }
.gc-wheel-nav svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-wheel-bridge {
    position: absolute;
    z-index: 1;
    height: 0;
    border-top: 2px dotted rgba(242, 139, 116, 0.42);
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.9;
}

.gc-wheel-stage.is-reports .gc-wheel-bridge {
    border-top-color: rgba(155, 135, 232, 0.42);
}

.gc-wheel-detail {
    position: relative;
    z-index: 3;
    min-width: 0;
    width: 100%;
    max-width: 500px;
    justify-self: start;
    align-self: center;
}

.gc-wheel-detail::before {
    content: "";
    position: absolute;
    left: -1.35rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(242, 139, 116, 0.35), transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
}

.gc-wheel-stage.is-reports .gc-wheel-detail::before {
    background: radial-gradient(circle, rgba(155, 135, 232, 0.35), transparent 70%);
}

.gc-wheel-detail.is-swap .gc-wheel-detail-card,
.gc-wheel-detail.is-swap .gc-wheel-detail-empty {
    animation: gc-wheel-fade 0.28s ease;
}

.gc-wheel-detail-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 0.7rem;
    height: auto;
    min-height: 0;
    padding: 1.25rem 1.25rem 1.2rem;
    border: 1px solid #F3D7C8;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 228, 215, 0.7), transparent 42%),
        linear-gradient(180deg, #FFFCFA, #fff);
    box-shadow:
        0 0 0 4px rgba(242, 139, 116, 0.06),
        0 14px 36px rgba(86, 58, 42, 0.08);
}

.gc-wheel-detail-card.tone-lavender {
    border-color: #DCD4F3;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 222, 255, 0.75), transparent 42%),
        linear-gradient(180deg, #FFFCFA, #fff);
    box-shadow:
        0 0 0 4px rgba(155, 135, 232, 0.07),
        0 14px 36px rgba(86, 58, 42, 0.08);
}

.gc-wheel-detail-deco {
    position: absolute;
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: rgba(255, 228, 215, 0.55);
    top: -1.3rem;
    right: -1rem;
    pointer-events: none;
}

.gc-wheel-detail-deco.is-report { background: rgba(232, 222, 255, 0.65); }

.gc-wheel-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #EDE4DC;
    color: #817571;
    font-size: 0.78rem;
    font-weight: 800;
}

.gc-wheel-detail-status svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-wheel-detail-title {
    margin: 0;
    color: #392F2B;
    font-size: clamp(1.7rem, 2.8vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gc-wheel-detail-cheer {
    margin: 0;
    color: #817571;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: pre-wrap;
}

.gc-wheel-detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gc-wheel-detail-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #FFF3D6;
    color: #7A5A28;
    font-size: 0.8rem;
    font-weight: 800;
}

.gc-wheel-detail-facts span:nth-child(2) { background: #EEE8FF; color: #5F52A8; }
.gc-wheel-detail-facts span:nth-child(3) { background: #E7F3FF; color: #3F6FA8; }
.gc-wheel-detail-facts span:nth-child(4) { background: #E4F6ED; color: #2F9B63; }

.gc-wheel-detail-facts svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-wheel-progress {
    height: 0.65rem;
    border-radius: 999px;
    background: #F1E8E1;
    overflow: hidden;
}

.gc-wheel-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #F6A08C, #F28B74);
}

.gc-wheel-progress-label {
    margin: -0.25rem 0 0;
    color: #817571;
    font-size: 0.78rem;
    font-weight: 800;
}

.gc-wheel-vocab { display: grid; gap: 0.4rem; }
.gc-wheel-vocab-label {
    margin: 0;
    color: #817571;
    font-size: 0.78rem;
    font-weight: 800;
}

.gc-wheel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: min(100%, 17rem);
    min-height: 3.35rem;
    margin-top: 0.25rem;
    padding: 0.8rem 1.1rem;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #F6A08C 0%, #F28B74 55%, #EF7A60 100%);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(242, 139, 116, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.gc-wheel-cta.is-report {
    background: linear-gradient(135deg, #C9B8F5 0%, #9B87E8 100%);
    box-shadow: 0 12px 24px rgba(155, 135, 232, 0.28);
}

.gc-wheel-cta svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-wheel-cta:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
}

.gc-wheel-cta:active { transform: translateY(1px) scale(0.985); }

.gc-wheel-report-full {
    margin-top: 0.15rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #E8E1F7;
}

.gc-wheel-report-full p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.55;
}

.gc-wheel-report-full ul {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
    color: #817571;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.55;
}

.gc-wheel-detail-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.65rem;
    min-height: 12rem;
    padding: 1.35rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #FFFCFA, #FFF0E8);
    border: 1px dashed #F0D5C5;
    text-align: center;
}

.gc-wheel-detail-empty.is-report {
    background: linear-gradient(180deg, #FFFCFA, #EFEAFF);
    border-color: #D9D1F2;
}

.gc-wheel-detail-empty img { width: 78px; height: auto; }
.gc-wheel-detail-empty p {
    margin: 0;
    color: #817571;
    font-size: 1rem;
    font-weight: 800;
}

@keyframes gc-wheel-pop {
    0% { filter: brightness(1); }
    45% { filter: brightness(1.05); }
    100% { filter: brightness(1); }
}

@keyframes gc-wheel-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .gc-wheel-bubble,
    .gc-wheel-cta,
    .gc-wheel-mode-btn { transition: none; }
    .gc-wheel-bubble.is-pop,
    .gc-wheel-detail.is-swap .gc-wheel-detail-card,
    .gc-wheel-detail.is-swap .gc-wheel-detail-empty { animation: none; }
}

@media (max-width: 1200px) {
    .gc-wheel-stage {
        grid-template-columns: minmax(0, 1fr) minmax(0, clamp(260px, 36vw, 440px));
        gap: clamp(1rem, 2.5vw, 2.5rem);
    }
    .gc-wheel-glow.a { width: 16rem; height: 16rem; }
    .gc-wheel-glow.b { width: 12rem; height: 12rem; }
    .gc-wheel-glow.c { width: 10rem; height: 10rem; }
}

@media (max-width: 980px) {
    .gc-learn-hub.is-wheel,
    .gc-learn-home {
        min-height: 0;
    }
    .gc-wheel-stage {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        align-items: stretch;
        width: 100%;
        min-height: 0;
        padding: 0 0 0.35rem;
    }
    .gc-wheel {
        min-height: clamp(13.5rem, 42vw, 16rem);
        height: clamp(13.5rem, 42vw, 16rem);
        overflow: visible;
    }
    .gc-wheel-bubbles {
        overflow: visible;
    }
    .gc-wheel-bridge { display: none; }
    .gc-wheel-atmosphere { inset: 0; }
    .gc-wheel-mode {
        top: 0.35rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        grid-auto-flow: column;
        border-radius: 999px;
        padding: 0.28rem;
        box-shadow: 0 8px 18px rgba(86, 58, 42, 0.08);
    }
    .gc-wheel-mode-btn {
        min-width: 4.4rem;
        min-height: 1.95rem;
        border-radius: 999px;
        font-size: 0.82rem;
        padding: 0.35rem 0.85rem;
    }
    .gc-wheel-navs {
        right: auto !important;
        left: 50% !important;
        top: auto !important;
        bottom: 0.15rem;
        grid-auto-flow: column;
        gap: 1.1rem;
        transform: translateX(-50%) !important;
    }
    .gc-wheel-nav {
        width: 2.25rem;
        height: 2.25rem;
    }
    .gc-wheel-nav.is-prev svg,
    .gc-wheel-nav.is-next svg { transform: rotate(-90deg); }
    .gc-wheel-detail {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }
    .gc-wheel-detail::before { display: none; }
    .gc-wheel-detail-card {
        gap: 0.55rem;
        padding: 1.05rem 1rem 1rem;
        border-radius: 24px;
    }
    .gc-wheel-detail-cheer {
        font-size: 0.9rem;
        line-height: 1.45;
    }
    .gc-wheel-detail-facts {
        gap: 0.35rem;
    }
    .gc-wheel-cta {
        width: 100%;
        min-height: 3.1rem;
        margin-top: 0.15rem;
        border-radius: 16px;
        font-size: 1rem;
    }
    .gc-wheel-detail-title {
        font-size: clamp(1.28rem, 5vw, 1.7rem);
    }
    .gc-wheel-progress {
        height: 0.55rem;
    }
    .gc-wheel-progress-label {
        margin-top: -0.1rem;
    }
}

@media (max-width: 820px) {
    .gc-workspace:has(.gc-learn-hub.is-wheel) {
        padding: 0.35rem 0.65rem 0.9rem;
    }
    .gc-learn-hub.is-wheel,
    .gc-learn-home,
    .gc-wheel-stage {
        min-height: 0;
        width: 100%;
        padding: 0;
    }
    header.gc-top {
        gap: 0.45rem;
        padding: 0.55rem 0.7rem;
        min-height: 56px;
    }
    header.gc-top h1 {
        font-size: 1rem;
    }
    #hub-logout {
        padding: 0.35rem 0.55rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .gc-wheel {
        min-height: 12.75rem;
        height: 12.75rem;
    }
    .gc-wheel-detail-card {
        padding: 0.95rem 0.9rem 0.95rem;
        border-radius: 20px;
        gap: 0.48rem;
    }
    .gc-wheel-detail-status {
        font-size: 0.72rem;
        padding: 0.22rem 0.55rem;
    }
    .gc-wheel-detail-facts span {
        font-size: 0.72rem;
        min-height: 1.75rem;
        padding: 0.22rem 0.5rem;
        gap: 0.22rem;
    }
    .gc-wheel-detail-facts svg {
        width: 0.82rem;
        height: 0.82rem;
    }
    .gc-wheel-mode-btn {
        min-width: 3.9rem;
        padding: 0.32rem 0.65rem;
        font-size: 0.78rem;
    }
    .gc-wheel-glow.a,
    .gc-wheel-glow.b,
    .gc-wheel-glow.c {
        filter: blur(14px);
        opacity: 0.45;
    }
    .gc-wheel-cta {
        min-height: 2.95rem;
        font-size: 0.98rem;
    }
}

.gc-learn-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--learn-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 214, 196, 0.45), transparent 38%),
        linear-gradient(135deg, #FFFCFA 0%, #F7FBFF 52%, #F5FAF6 100%);
    box-shadow: var(--learn-shadow);
    color: var(--learn-text);
}

.gc-learn-kicker {
    margin: 0 0 0.25rem;
    color: #A87868;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gc-learn-lead {
    margin: 0.35rem 0 0;
    color: #382F2B;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.gc-learn-mascot {
    flex: none;
    width: 88px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(86, 58, 42, 0.12));
}

.gc-learn-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.gc-learn-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.7rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--learn-border);
    border-radius: 20px;
    box-shadow: var(--learn-shadow);
}

.gc-learn-stat.tone-peach { background: linear-gradient(160deg, #FFF7F1, var(--learn-peach)); }
.gc-learn-stat.tone-yellow { background: linear-gradient(160deg, #FFFBF0, var(--learn-yellow)); }
.gc-learn-stat.tone-mint { background: linear-gradient(160deg, #F4FBF6, var(--learn-mint)); }

.gc-learn-stat-ico {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--learn-coral);
}

.gc-learn-stat-ico svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-learn-stat strong {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gc-learn-stat > span:last-child {
    color: var(--learn-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.gc-learn-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.gc-learn-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--learn-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--learn-shadow);
}

.gc-learn-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gc-learn-section-ico {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 16px;
    background: var(--learn-peach);
    color: #D96A55;
    flex: none;
}

.gc-learn-section-ico.is-lavender {
    background: var(--learn-lavender);
    color: #7B6AD6;
}

.gc-learn-section-ico svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-learn-section-head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gc-learn-section-head p {
    margin: 0.15rem 0 0;
    color: var(--learn-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.gc-learn-count {
    margin-left: auto;
    min-width: 1.8rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--learn-border);
    color: var(--learn-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.gc-learn-hw-list,
.gc-learn-report-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gc-learn-hw-card,
.gc-learn-report-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--learn-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(86, 58, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

button.gc-learn-hw-card {
    width: 100%;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

button.gc-learn-hw-card:focus-visible {
    outline: 2px solid #F28B74;
    outline-offset: 2px;
}

.gc-learn-hw-card:hover,
.gc-learn-report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(86, 58, 42, 0.1);
}

.gc-learn-hw-card:active {
    transform: translateY(0) scale(0.995);
}

.gc-learn-hw-card.tone-peach { background: linear-gradient(180deg, #fff, #FFF8F3); border-color: #F3D7C8; }
.gc-learn-hw-card.tone-blue { background: linear-gradient(180deg, #fff, #F3F8FF); border-color: #C9D8EE; }
.gc-learn-hw-card.tone-mint { background: linear-gradient(180deg, #fff, #F2FAF5); border-color: #C5E5D1; }
.gc-learn-hw-card.tone-yellow { background: linear-gradient(180deg, #fff, #FFF9EB); border-color: #EBD7A4; }
.gc-learn-hw-card.tone-coral { background: linear-gradient(180deg, #fff, #FFF1ED); border-color: #E8B7AB; }

.gc-learn-hw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.gc-learn-hw-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--learn-border);
    color: var(--learn-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.gc-learn-hw-status svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-learn-hw-cheer {
    color: #2F9B63;
    font-size: 0.78rem;
    font-weight: 800;
}

.gc-learn-hw-card h3,
.gc-learn-report-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.gc-learn-hw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.7rem;
    color: var(--learn-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.gc-learn-hw-teacher,
.gc-learn-hw-class,
.gc-learn-hw-due {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.gc-learn-hw-teacher svg,
.gc-learn-hw-class svg,
.gc-learn-hw-due svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-learn-hw-due.is-soft { opacity: 0.75; }

.gc-learn-hw-bar {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(56, 47, 43, 0.08);
    overflow: hidden;
}

.gc-learn-hw-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #F28B74, #F5B089);
    transition: width 0.25s ease;
}

.gc-learn-hw-btn,
.gc-learn-report-btn,
.gc-learn-retry,
.gc-learn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #F28B74, #EF6F5A);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.gc-learn-hw-btn {
    align-self: flex-start;
    margin-top: 0.15rem;
    pointer-events: none;
}
.gc-learn-report-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, #8B7CF0, #6F8DFF);
}

.gc-learn-hw-btn svg,
.gc-learn-report-btn svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-learn-hw-btn:hover,
.gc-learn-report-btn:hover,
.gc-learn-retry:hover,
.gc-learn-back:hover { filter: brightness(1.03); }

.gc-learn-hw-btn:active,
.gc-learn-report-btn:active,
.gc-learn-retry:active,
.gc-learn-back:active { transform: scale(0.97); }

.gc-learn-done,
.gc-learn-more-reports {
    border: 1px dashed #E5D9CF;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.35rem 0.65rem 0.65rem;
}

.gc-learn-done summary,
.gc-learn-more-reports summary {
    cursor: pointer;
    list-style: none;
    padding: 0.55rem 0.2rem;
    color: var(--learn-muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.gc-learn-done summary::-webkit-details-marker,
.gc-learn-more-reports summary::-webkit-details-marker { display: none; }

.gc-learn-done summary em,
.gc-learn-more-reports summary em {
    margin-left: 0.35rem;
    font-style: normal;
    color: var(--learn-coral);
}

.gc-learn-report-card {
    background: linear-gradient(180deg, #fff, #F7F5FF);
    border-color: #DCD4F3;
}

.gc-learn-report-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gc-learn-report-spark {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: var(--learn-lavender);
    color: #7B6AD6;
    flex: none;
}

.gc-learn-report-spark svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-learn-report-summary {
    margin: 0;
    color: var(--learn-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
    white-space: pre-wrap;
}

.gc-learn-report-summary.is-muted {
    color: var(--learn-muted);
    font-weight: 650;
}

.gc-learn-report-vocab-label {
    margin: 0 0 0.4rem;
    color: var(--learn-muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.gc-learn-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.gc-learn-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.4rem 0.65rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #E3DCF7;
}

.gc-learn-chip strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: #4A3F8C;
}

.gc-learn-chip small {
    color: var(--learn-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.gc-learn-report-detail {
    margin-top: 0.2rem;
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #E8E1F7;
}

.gc-learn-report-detail p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.55;
}

.gc-learn-report-detail ul {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
    color: var(--learn-muted);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.55;
}

.gc-learn-empty {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 1.4rem 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, var(--learn-peach));
    border: 1px dashed #F0D5C5;
    text-align: center;
}

.gc-learn-empty.is-report {
    background: linear-gradient(180deg, #fff, var(--learn-lavender));
    border-color: #D9D1F2;
}

.gc-learn-empty img { width: 64px; height: auto; opacity: 0.92; }
.gc-learn-empty p {
    margin: 0;
    color: var(--learn-muted);
    font-size: 0.95rem;
    font-weight: 800;
}

.gc-learn-empty-ico {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 16px;
    background: #fff;
    color: #7B6AD6;
}

.gc-learn-empty-ico svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.gc-learn-play {
    min-height: 60vh;
    padding: 0;
}

.gc-learn-play:has(.hw-play),
.gc-learn-play:has(.hw-done) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
    height: 100%;
    margin: 0;
}

.gc-learn-overview {
    display: grid;
    gap: 0.7rem;
    width: min(560px, 100%);
    margin: 0 auto;
    padding-bottom: 1rem;
}

.gc-ov-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    min-height: 2.2rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid #EDE4DC;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #817571;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.gc-ov-back:hover {
    background: #fff;
    color: #392F2B;
}

.gc-ov-back:active { transform: scale(0.97); }

.gc-ov-card {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.35rem 1.25rem 1.35rem;
    border: 1px solid #EDE4DC;
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 240, 232, 0.9), transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(238, 232, 255, 0.75), transparent 34%),
        linear-gradient(180deg, #FFFCFA 0%, #FFFFFF 55%);
    box-shadow: 0 14px 36px rgba(86, 58, 42, 0.08);
    text-align: center;
}

.gc-ov-mascot-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 11rem;
    height: 11rem;
    margin-top: 0.15rem;
}

.gc-ov-mascot-glow {
    position: absolute;
    inset: 0.4rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 40% 35%, #FFF0E8 0%, #FFE4D4 42%, #EEE8FF 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.gc-ov-mascot {
    position: relative;
    z-index: 1;
    width: 132px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(86, 58, 42, 0.14));
    animation: gc-ov-float 3.4s ease-in-out infinite;
}

.gc-ov-spark {
    position: absolute;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 0.1rem;
    background: #F7C3B4;
    transform: rotate(45deg);
    opacity: 0.85;
    animation: gc-ov-twinkle 2.2s ease-in-out infinite;
}

.gc-ov-spark.a { top: 1.1rem; right: 1.3rem; background: #C9B8F5; }
.gc-ov-spark.b { bottom: 1.6rem; left: 1rem; width: 0.4rem; height: 0.4rem; animation-delay: 0.4s; }
.gc-ov-spark.c { top: 2.4rem; left: 1.5rem; background: #F6D98A; animation-delay: 0.9s; }

.gc-ov-bubble {
    position: absolute;
    z-index: 2;
    top: 0.15rem;
    right: -0.35rem;
    margin: 0;
    padding: 0.4rem 0.65rem;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    color: #C5674F;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(86, 58, 42, 0.1);
    white-space: nowrap;
}

.gc-ov-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #EDE4DC;
    color: #817571;
    font-size: 0.74rem;
    font-weight: 800;
}

.gc-ov-status svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-ov-title {
    margin: 0;
    color: #392F2B;
    font-size: clamp(1.7rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gc-ov-cheer {
    margin: -0.15rem 0 0;
    color: #817571;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.45;
}

.gc-ov-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
}

.gc-ov-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 18px;
}

.gc-ov-stat.tone-lavender { background: #EEE8FF; color: #5F52A8; }
.gc-ov-stat.tone-yellow { background: #FFF3D6; color: #9A6E1F; }

.gc-ov-stat-ico {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.gc-ov-stat-ico svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-ov-stat strong {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.gc-ov-section-label {
    margin: 0 0 0.55rem;
    color: #817571;
    font-size: 0.78rem;
    font-weight: 800;
}

.gc-ov-activities,
.gc-ov-words {
    width: 100%;
}

.gc-ov-activity-row,
.gc-ov-word-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.gc-ov-activity {
    display: grid;
    justify-items: center;
    gap: 0.28rem;
    min-width: 4.4rem;
    padding: 0.45rem 0.35rem 0.35rem;
    color: #392F2B;
    font-size: 0.72rem;
    font-weight: 800;
}

.gc-ov-activity-ico {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    transition: transform 0.18s ease;
}

.gc-ov-activity:hover .gc-ov-activity-ico { transform: translateY(-2px) scale(1.04); }

.gc-ov-activity-ico svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-ov-activity.tone-lavender .gc-ov-activity-ico { background: #EEE8FF; color: #6B5BD6; }
.gc-ov-activity.tone-mint .gc-ov-activity-ico { background: #E4F6ED; color: #2F9B63; }
.gc-ov-activity.tone-blue .gc-ov-activity-ico { background: #E7F3FF; color: #3F6FA8; }
.gc-ov-activity.tone-peach .gc-ov-activity-ico { background: #FFF0E8; color: #C5674F; }

.gc-ov-word {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFF8F3, #FFEFE6);
    color: #8A4F3C;
    box-shadow: inset 0 0 0 1px rgba(243, 215, 200, 0.9);
}

.gc-ov-word strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.gc-ov-word-extra {
    display: contents;
}

.gc-ov-word-extra[hidden] {
    display: none;
}

.gc-ov-words-more {
    margin-top: 0.55rem;
    padding: 0;
    border: none;
    background: none;
    color: #A87868;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.gc-ov-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 3.7rem;
    margin-top: 0.15rem;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #F6A08C 0%, #F28B74 55%, #EF7A60 100%);
    color: #fff;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(242, 139, 116, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.gc-ov-start svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-ov-start:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(242, 139, 116, 0.34);
}

.gc-ov-start:active {
    transform: translateY(1px) scale(0.985);
}

.gc-ov-details {
    width: 100%;
    margin-top: -0.15rem;
    text-align: left;
}

.gc-ov-details summary {
    cursor: pointer;
    list-style: none;
    color: #A87868;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.gc-ov-details summary::-webkit-details-marker { display: none; }

.gc-ov-details-body {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: #FAF8F5;
}

.gc-ov-details-body p {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    color: #817571;
    font-size: 0.82rem;
    font-weight: 700;
}

.gc-ov-details-body strong { color: #392F2B; }

@keyframes gc-ov-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes gc-ov-twinkle {
    0%, 100% { opacity: 0.35; transform: rotate(45deg) scale(0.85); }
    50% { opacity: 1; transform: rotate(45deg) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .gc-ov-mascot,
    .gc-ov-spark,
    .gc-ov-activity-ico,
    .gc-ov-start { animation: none; transition: none; }
    .gc-ov-start:hover,
    .gc-ov-activity:hover .gc-ov-activity-ico { transform: none; }
}

@media (max-width: 640px) {
    .gc-ov-card { padding: 1.15rem 1rem 1.2rem; border-radius: 26px; }
    .gc-ov-mascot-wrap { width: 9.5rem; height: 9.5rem; }
    .gc-ov-mascot { width: 112px; }
    .gc-ov-bubble { right: -0.1rem; font-size: 0.72rem; }
    .gc-ov-stats { grid-template-columns: 1fr; }
}

.gc-learn-loading,
.gc-learn-error {
    padding: 1.25rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--learn-border);
    box-shadow: var(--learn-shadow);
    color: var(--learn-muted);
    font-weight: 750;
}

.gc-learn-error {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
}

.gc-learn-back {
    margin-bottom: 0.75rem;
    background: #fff;
    color: var(--learn-text);
    border: 1px solid var(--learn-border);
}

.gc-learn-skel {
    display: grid;
    gap: 0.85rem;
}

.gc-learn-skel-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.gc-learn-skel-card {
    height: 5.5rem;
    border-radius: 20px;
    background: linear-gradient(90deg, #F3EDE6 20%, #FAF6F1 40%, #F3EDE6 60%);
    background-size: 200% 100%;
    animation: gc-learn-shimmer 1.2s ease-in-out infinite;
}

.gc-learn-skel-card.is-tall { height: 14rem; }

@keyframes gc-learn-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gc-learn-hw-card,
    .gc-learn-report-card,
    .gc-learn-hw-btn,
    .gc-learn-report-btn,
    .gc-learn-hw-bar span { transition: none; }
    .gc-learn-hw-card:hover,
    .gc-learn-report-card:hover { transform: none; }
    .gc-learn-skel-card { animation: none; }
}

@media (max-width: 900px) {
    .gc-learn-grid { grid-template-columns: 1fr; }
    .gc-learn-stats { grid-template-columns: 1fr; }
    .gc-learn-skel-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .gc-learn-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .gc-learn-mascot {
        align-self: flex-end;
        width: 72px;
        margin-top: -0.5rem;
    }
    .gc-learn-section { padding: 0.85rem; }
}

.gc-user strong,
.gc-user-meta span {
    display: block;
    white-space: nowrap;
}

.gc-user-meta span {
    color: #786962;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Keep avatar as a centered initial — do not inherit .gc-user span block layout. */
.gc-user > .gc-user-avatar {
    display: grid;
    place-items: center;
    white-space: nowrap;
}

.gc-workspace {
    box-sizing: border-box;
    position: relative;
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    overflow: auto;
    overflow-x: clip;
    padding: clamp(0.85rem, 1.6vw, 1.35rem) clamp(1rem, 2.4vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
}

.gc-workspace > * {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.gc-workspace > .gc-loading {
    width: auto;
    max-width: none;
    margin: 0;
}

.gc-loading {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(246, 241, 230, 0.92);
    backdrop-filter: blur(2px);
}

.gc-loading[hidden] {
    display: none !important;
}

.gc-loading-card {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    min-width: min(16rem, 100%);
    padding: 1.35rem 1.5rem;
    border: 1px solid #E8DFCF;
    border-radius: 18px;
    background: #FFFCF6;
    box-shadow: 0 12px 32px rgba(48, 41, 36, 0.08);
}

.gc-loading-spin {
    box-sizing: border-box;
    width: 2.35rem;
    height: 2.35rem;
    border: 3px solid #F4DDD7;
    border-top-color: #C93632;
    border-radius: 999px;
    animation: gc-loading-spin 0.75s linear infinite;
}

.gc-loading-text {
    margin: 0;
    color: #302924;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@keyframes gc-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .gc-loading-spin {
        animation: none;
        border-top-color: #F4DDD7;
        border-right-color: #C93632;
    }
}

.gc-workspace:has(.gc-home) {
    padding-top: 1.15rem;
}

.gc-workspace:has(.gc-home) > * {
    width: 100%;
}

.gc-welcome h2 {
    margin: 0.1rem 0 0;
    font-size: 1.22rem;
    letter-spacing: -0.01em;
}

.gc-welcome .gc-lead {
    margin: 0.15rem 0 0;
    color: #786962;
    font-size: 0.86rem;
    font-weight: 600;
}

.gc-home { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.85rem; }

.gc-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.gc-stats.is-short { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); }

.gc-home .gc-panel {
    padding: 0.85rem 0.95rem 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.gc-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #E9E1D8;
    border-radius: 14px;
    background: #fff;
    color: #352521;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-stat i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 10px;
    background: #FFF5EA;
}

.gc-stat svg,
.gc-quick svg {
    width: 16px;
    height: 16px;
    stroke: #E64618;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-stat-copy { display: flex; flex-direction: column; min-width: 0; }
.gc-stat-copy strong { font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.02em; }
.gc-stat-copy span { color: #786962; font-size: 0.75rem; font-weight: 700; }

.gc-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 188px;
    gap: 0.7rem;
    align-items: start;
}

.gc-home-grid:not(:has(.gc-aside)) { grid-template-columns: minmax(0, 1fr); }

.gc-home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.25rem;
}

.gc-home-head h3,
.gc-aside > h3 {
    margin: 0;
    font-size: 0.95rem;
}

.gc-aside > h3 {
    margin-bottom: 0.35rem;
    color: #786962;
    font-size: 0.75rem;
    font-weight: 700;
}

.gc-today-list { display: flex; flex-direction: column; }

.gc-today-class {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.62rem 0.35rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-today-class + .gc-today-class { box-shadow: inset 0 1px 0 #F1EAE3; }

.gc-today-class span { display: flex; flex: 1; flex-direction: column; gap: 0.1rem; min-width: 0; }
.gc-today-class strong { font-size: 0.98rem; line-height: 1.3; }
.gc-today-class strong,
.gc-today-class small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-today-class small { color: #786962; font-size: 0.78rem; font-weight: 600; }

.gc-today-class em {
    flex: none;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #F6F1EB;
    color: #786962;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.gc-today-class.is-live { background: #FFF8F3; }
.gc-today-class.is-live em { background: #FFF5EA; color: #E64618; }
.gc-today-class.is-done { color: #8A7C74; }
.gc-today-class.is-done strong { font-weight: 700; }

.gc-home .gc-aside {
    padding: 0.15rem 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.gc-quick-list { display: flex; flex-direction: column; gap: 0.15rem; }

.gc-quick {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 34px;
    padding: 0.25rem 0.4rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #352521;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.gc-quick:hover,
.gc-stat:hover,
.gc-today-class:hover { background: #FFF8F3; }

@media (max-width: 860px) {
    .gc-stats,
    .gc-home-grid { grid-template-columns: 1fr; }
    .gc-aside { padding-top: 0.2rem; }
}

.gc-welcome p,
#hub-date {
    margin: 0;
    color: #786962;
    font-size: 0.8rem;
    font-weight: 700;
}

.gc-dash.gc-home {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.gc-home .gc-home-head .gc-text-btn {
    min-height: 0;
    padding: 0;
    color: #E64618;
    font-size: 0.8rem;
    font-weight: 700;
}

.gc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 88px;
    padding: 1rem 1.05rem;
    border: 1px solid #E9E1D8;
    border-radius: 18px;
    background: #fff;
    color: #352521;
    font: inherit;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(53, 37, 33, 0.04);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.gc-card strong {
    display: block;
    flex: 1;
    font-size: 1.05rem;
}

.gc-card span {
    color: #E64618;
    font-weight: 800;
}

.gc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(53, 37, 33, 0.08);
}

.gc-icon-btn,
.gc-text-btn,
.gc-primary,
.gc-secondary,
.gc-danger {
    min-height: 44px;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-icon-btn {
    display: none;
    width: 44px;
    border: 1px solid #E9E1D8;
    background: #fff;
}

.gc-text-btn {
    padding: 0.4rem 0.75rem;
    border: none;
    background: transparent;
    color: #786962;
}

.gc-sfx {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #E64618;
    cursor: pointer;
}

.gc-sfx svg {
    width: 22px;
    height: 22px;
    display: block;
}

.gc-sfx[aria-pressed="false"] {
    color: #B7AAA4;
}

.gc-primary,
.gc-secondary,
.gc-danger {
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
}

.gc-primary {
    background: #E64618;
    color: #fff;
}

.gc-primary:hover { background: #C93610; }

.gc-secondary {
    background: #fff;
    border-color: #E9E1D8;
    color: #352521;
}

.gc-danger {
    background: #fff;
    border-color: #F0D2D0;
    color: #D94B48;
}

.gc-toolbar,
.gc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.gc-toolbar { justify-content: space-between; margin-bottom: 0.9rem; }

.gc-search {
    flex: 1 1 220px;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.gc-panel,
.gc-table,
dialog.gc-modal {
    background: #fff;
    border: 1px solid #E9E1D8;
    border-radius: 18px;
}

.gc-panel { padding: 1rem; }

.gc-split {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

#hub-panel:has(.gc-ticket),
#hub-panel:has(.qo-build) { width: min(1040px, 100%); }

.gc-ticket { display: flex; flex-direction: column; gap: 0.75rem; }

.gc-seg-tabs {
    display: inline-flex;
    gap: 0.15rem;
    align-self: flex-start;
    padding: 0.2rem;
    border-radius: 12px;
    background: #F3EDE6;
}

.gc-seg-tabs button {
    min-height: 34px;
    padding: 0.25rem 0.85rem;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #786962;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.gc-seg-tabs button.is-on {
    background: #fff;
    color: #E64618;
    box-shadow: 0 1px 2px rgba(53, 37, 33, 0.06);
}

.gc-ticket-desk {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.gc-ticket .gc-panel {
    padding: 0.85rem;
    border-radius: 16px;
    box-shadow: none;
}

.gc-ticket-list .gc-search {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 40px;
    min-height: 40px;
    margin: 0 0 0.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 700;
}

.gc-ticket-list .gc-search:focus {
    outline: none;
    border-color: #E64618;
    box-shadow: 0 0 0 3px rgba(230, 70, 24, 0.12);
}

.gc-ticket .ticket-people {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: min(62vh, 560px);
    overflow: auto;
}

.gc-ticket-list .gc-person {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 48px;
    padding: 0.35rem 0.4rem;
    border: none;
    border-radius: 10px;
    background: transparent;
}

.gc-ticket-list .gc-person span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gc-ticket-list .gc-person strong,
.gc-ticket-list .gc-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-ticket-list .gc-person small { color: #786962; font-size: 0.75rem; font-weight: 700; }

.gc-ticket-list .gc-person.is-on {
    background: #FFF5EA;
    box-shadow: inset 0 0 0 1px #F0C7B6;
}

.gc-ticket-list .gc-balance {
    margin: 0;
    color: #352521;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.gc-ticket-list .gc-avatar { width: 32px; height: 32px; font-size: 0.82rem; }

.gc-ticket-who {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gc-ticket-who h2 { margin: 0; font-size: 1.05rem; }
.gc-ticket-who p { margin: 0.1rem 0 0; color: #786962; font-size: 0.8rem; font-weight: 700; }

.gc-ticket-balance { margin-top: 0.85rem; }
.gc-ticket-count { display: flex; align-items: baseline; gap: 0.3rem; margin: 0; }
.gc-ticket-count strong { font-size: 1.8rem; line-height: 1; letter-spacing: -0.03em; }
.gc-ticket-count span { color: #786962; font-weight: 700; }

.gc-ticket-lots { margin-top: 0.85rem; }
.gc-lots { margin: 0; padding: 0; list-style: none; }
.gc-lots li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 40px;
    box-shadow: inset 0 1px 0 #F1EAE3;
}
.gc-lots li span { display: flex; flex-direction: column; min-width: 0; }
.gc-lots li strong { font-size: 0.9rem; }
.gc-lots li small { color: #786962; font-size: 0.75rem; font-weight: 700; }
.gc-lots .gc-text-btn { min-height: 32px; padding: 0.1rem 0.35rem; color: #786962; font-size: 0.8rem; }

.gc-ticket-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.gc-ticket-actions .gc-primary,
.gc-ticket-actions .gc-secondary {
    flex: none;
    min-height: 40px;
    white-space: nowrap;
}

.gc-more { position: relative; margin-left: auto; }
.gc-more > .gc-text-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 10px;
    font-size: 1.15rem;
    line-height: 1;
}
.gc-more-menu {
    position: absolute;
    z-index: 4;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 132px;
    padding: 0.3rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
}
.gc-more-menu button {
    width: 100%;
    min-height: 36px;
    padding: 0.35rem 0.6rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #D94B48;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.gc-more-menu button:hover { background: #FFF5F4; }

.gc-ticket-month {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #F1EAE3;
}
.gc-ticket-month h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.gc-ticket-month p { margin: 0; color: #786962; font-size: 0.8rem; font-weight: 600; line-height: 1.45; }
.gc-ticket-now { margin-top: 0.35rem !important; color: #352521 !important; font-weight: 800 !important; }
.gc-ticket-month label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.65rem;
    color: #786962;
    font-size: 0.78rem;
    font-weight: 800;
}
.gc-ticket-month input,
.gc-ticket-global input {
    box-sizing: border-box;
    width: min(180px, 100%);
    height: 40px;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 700;
}
.gc-ticket-month .gc-row,
.gc-ticket-global .gc-row { margin-top: 0.65rem; }
.gc-ticket-month .gc-text-btn { min-height: 36px; padding: 0.15rem 0.35rem; color: #786962; font-size: 0.82rem; }
.gc-ticket-detail .gc-save-note { margin: 0.7rem 0 0; }

.gc-ticket-bulk {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #F1EAE3;
}
.gc-ticket-bulk h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.gc-ticket-bulk p { margin: 0; color: #786962; font-size: 0.86rem; font-weight: 600; line-height: 1.5; }
.gc-ticket-bulk .gc-danger { min-height: 40px; }

.gc-ticket-global h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.gc-ticket-global > p { margin: 0; color: #786962; font-size: 0.86rem; font-weight: 600; line-height: 1.5; }
.gc-ticket-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}
.gc-ticket-global label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #786962;
    font-size: 0.78rem;
    font-weight: 800;
}

.gc-tabs { display: flex; gap: 0.35rem; margin-bottom: 0.9rem; }

.gc-tabs button {
    min-height: 40px;
    padding: 0.35rem 0.8rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #786962;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-tabs button.is-on { background: #FFF5EA; color: #E64618; }

.gc-workspace:has(.gc-classes) > #hub-panel {
    width: min(1280px, 100%);
}

.gc-classes {
    width: 100%;
    margin: 0 auto;
    min-width: 0;
}

#class-list {
    --cal-gap: 0.4rem;
    --bar-top: 1.42rem;
    --bar-h: 2.05rem;
    --bar-row-gap: 0.18rem;
    --bar-pitch: calc(var(--bar-h) + var(--bar-row-gap));
    min-width: 0;
    overflow-x: clip;
}

.gc-cal-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.gc-cal-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    cursor: pointer;
}

.gc-cal-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-cal-arrow:hover { background: #FFF5EA; color: #E64618; }

.gc-cal-title {
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #352521;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.gc-cal-title:hover,
.gc-cal-title:focus-visible { background: #FFF5EA; }

.gc-today {
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-today:hover { background: #FFF5EA; color: #E64618; }

.gc-view {
    display: flex;
    padding: 3px;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
}

.gc-view button {
    min-width: 40px;
    height: 32px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #786962;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-view button.is-on { background: #FFF5EA; color: #E64618; }

.gc-month-picker {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.35rem);
    left: 0;
    width: 280px;
    padding: 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(53, 37, 33, 0.12);
}

.gc-picker-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.gc-picker-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
}

.gc-picker-months button {
    min-height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #352521;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-picker-months button:hover,
.gc-picker-months button.is-on { background: #FFF5EA; color: #E64618; }

.gc-cal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    margin: 0 0 0.85rem;
}

.gc-cal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.gc-add-class {
    height: 40px;
    padding: 0 0.9rem;
    white-space: nowrap;
}

.gc-cal-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.gc-find {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: min(240px, 42vw);
    height: 40px;
    padding: 0 0.45rem 0 0.65rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
}

.gc-find svg {
    width: 16px;
    height: 16px;
    flex: none;
    stroke: #786962;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-find input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #352521;
    font: inherit;
    font-weight: 700;
}

.gc-find input:focus { outline: none; }

.gc-find button {
    border: none;
    background: transparent;
    color: #786962;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-find-results {
    position: absolute;
    z-index: 6;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    min-width: 240px;
    padding: 0.35rem;
    border: 1px solid #E9E1D8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(53, 37, 33, 0.12);
}

.gc-find-results p,
.gc-find-results button {
    margin: 0;
    padding: 0.45rem 0.55rem;
    color: #352521;
    font-weight: 800;
}

.gc-find-results button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-find-results button span {
    color: #786962;
    font-size: 0.78rem;
    font-weight: 700;
}

.gc-find-results button:hover { background: #FFF5EA; }

.gc-cal-nav-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-cal-bar .gc-cal-nav {
    flex: none;
    margin: 0;
}

.gc-cal-bar .gc-cal-nav strong { white-space: nowrap; }

.gc-cal-icon,
.gc-cal-plus,
.gc-cal-bar .gc-cal-arrow {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
}

.gc-cal-icon,
.gc-cal-bar .gc-cal-arrow {
    border: 1px solid #E9E1D8;
    background: #fff;
    color: #352521;
}

.gc-cal-icon:hover,
.gc-cal-icon[aria-expanded="true"],
.gc-cal-bar .gc-cal-arrow:hover {
    background: #FFF5EA;
    color: #E64618;
}

.gc-cal-plus {
    justify-self: end;
    border: 1px solid transparent;
    background: #E64618;
    color: #fff;
}

.gc-cal-plus:hover { background: #C93610; }

.gc-cal-icon { display: none; }

.gc-cal-icon svg,
.gc-cal-plus svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 860px) {
    .gc-cal-icon { display: grid; }
    .gc-find { display: none; }
    .gc-cal-search.is-open .gc-find { display: flex; width: min(220px, 70vw); }
    .gc-cal-title { font-size: 1rem; }
}

.gc-cal-head,
.gc-cal,
.gc-week,
.gc-week-bars {
    width: 100%;
    min-width: 0;
}

.gc-cal-head,
.gc-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--cal-gap, 0.4rem);
}

.gc-cal {
    display: flex;
    flex-direction: column;
    gap: var(--cal-gap, 0.4rem);
}

.gc-week {
    position: relative;
    --lanes: 0;
}

.gc-cal-head span {
    color: #786962;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
}

.gc-day {
    position: relative;
    min-width: 0;
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    padding: 0.35rem 0.28rem 0.35rem;
    padding-top: calc(1.35rem + var(--lanes, 0) * 1.35rem);
    overflow: hidden;
    border: 1px solid #EADFD7;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.gc-day.is-out { background: transparent; }
.gc-day.is-out b { color: #b5aaa4; }
.gc-day.is-today { box-shadow: inset 0 0 0 2px #F04438; }
.gc-day.is-today b { color: #F04438; }
.gc-day.is-selected { background: #FFF0ED; }
.gc-day:focus-visible { outline: 2px solid #F04438; outline-offset: 2px; }

.gc-more {
    display: block;
    width: 100%;
    height: var(--bar-h, 1.28rem);
    margin-top: var(--bar-row-gap, 0.18rem);
    padding: 0 0.35rem;
    border: none;
    background: transparent;
    color: #E64618;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: var(--bar-h, 1.28rem);
    text-align: left;
    cursor: pointer;
}
.gc-day:hover { background: #FFFCFA; }
.gc-day.is-out:hover { background: rgba(255, 245, 234, 0.55); }

.gc-day b {
    position: absolute;
    z-index: 2;
    top: 0.28rem;
    left: 0.4rem;
    display: block;
    font-size: 0.8rem;
    line-height: 1;
}

.gc-event {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    width: 100%;
    height: 1.25rem;
    margin-top: 0.16rem;
    padding: 0 0.35rem;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    background: #FFF0ED;
    color: #3B302D;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.gc-event-main,
.gc-event-teacher {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-event-teacher {
    color: #786962;
    font-size: 0.62rem;
    font-weight: 700;
}

.gc-day .gc-event:first-of-type { margin-top: 0; }

.gc-event:hover { background: #F6E2D2; }

.gc-week-bars {
    position: absolute;
    z-index: 1;
    top: var(--bar-top, 1.42rem);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: var(--bar-h, 1.28rem);
    column-gap: var(--cal-gap, 0.4rem);
    row-gap: var(--bar-row-gap, 0.18rem);
    min-width: 0;
    pointer-events: none;
}

.gc-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    align-self: start;
    min-width: 0;
    height: 1.25rem;
    margin-inline: 2px;
    padding: 0.08rem 0.4rem;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    background: #F4E9DF;
    color: #3B302D;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
}

.gc-bar:hover { background: #FFDCD5; }

.gc-teacher-filter select,
.gc-hint {
    color: #8A7871;
    font-size: 0.82rem;
    font-weight: 700;
}

.gc-teacher-filter select {
    height: 40px;
    padding: 0 0.7rem;
    border: 1px solid #EADFD7;
    border-radius: 999px;
    background: #fff;
    color: #3B302D;
}

.gc-timeweek-head,
.gc-timeweek-body {
    display: grid;
    grid-template-columns: 52px repeat(7, minmax(0, 1fr));
}

.gc-timeweek-body {
    max-height: min(640px, calc(100dvh - 280px));
    overflow: auto;
}

.gc-timeweek-day,
.gc-timeweek-hours span {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #3B302D;
    font: inherit;
    font-weight: 800;
}

.gc-timeweek-day.is-today,
.gc-timeweek-day.is-selected { color: #F04438; }

.gc-timeweek-hours span { height: 48px; color: #8A7871; font-size: 0.75rem; font-weight: 700; }

.gc-timeweek-col {
    position: relative;
    height: calc(48px * 13);
    border-left: 1px solid #EADFD7;
    background: linear-gradient(to bottom, transparent 0, transparent 47px, #EADFD7 47px);
    background-size: 100% 48px;
}

.gc-timeweek-col.is-today { background-color: #FFF9F4; }

.gc-time-event {
    position: absolute;
    overflow: hidden;
    padding: 0.2rem 0.35rem;
    border: 0;
    border-radius: 10px;
    background: #FFF0ED;
    color: #3B302D;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-time-event strong,
.gc-time-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-time-event small { color: #8A7871; font-size: 0.72rem; }

.gc-mobile-agenda { display: none; }

.gc-mobile-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.gc-strip-day {
    display: grid;
    justify-items: center;
    min-height: 64px;
    padding: 0.35rem 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #3B302D;
    font: inherit;
    cursor: pointer;
}

.gc-strip-day.is-on { background: #F04438; color: #fff; }
.gc-strip-day i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F04438;
}
.gc-strip-day.is-on i { background: #fff; }

.gc-mobile-list { display: grid; gap: 0.55rem; }

.gc-bar.is-continued {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: inset 3px 0 0 #E64618;
}

.gc-bar.is-continues {
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gc-day-sheet {
    position: fixed;
    inset: 0;
    /* Above hub header (200) and bell panel (220) so the drawer is never clipped. */
    z-index: 260;
}

.gc-day-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(53, 37, 33, 0.35);
    cursor: pointer;
}

.gc-day-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(340px, calc(100vw - 2.5rem));
    max-width: 100%;
    background: #fff;
    box-shadow: -16px 0 40px rgba(53, 37, 33, 0.16);
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.gc-day-sheet.is-open .gc-day-panel { transform: translateX(0); }

@media (max-width: 860px) {
    .gc-cal,
    .gc-cal-head,
    .gc-timeweek { display: none; }
    .gc-mobile-agenda { display: block; }
    .gc-day-panel {
        top: auto;
        right: 0;
        left: 0;
        width: 100%;
        height: min(78vh, 640px);
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    .gc-day-sheet.is-open .gc-day-panel { transform: translateY(0); }
}

header.gc-day-head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 0.7rem 0.8rem;
}

header.gc-day-head h2 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.gc-day-plus { position: static; }

.gc-day-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    overflow: auto;
    padding: 0.4rem 1rem 1.2rem;
}

.gc-day-card {
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    background: #FFF5EA;
}

.gc-day-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.gc-day-card p {
    margin: 0.25rem 0;
    font-weight: 700;
}

.gc-day-card .gc-primary { margin-top: 0.55rem; }

.gc-day-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.7rem;
    border: none;
    border-radius: 8px;
    background: #FFF5EA;
    color: #352521;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.gc-day-row > span:first-child {
    flex: none;
    min-width: 4.2rem;
    color: #E64618;
}

.gc-day-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.gc-day-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-day-teacher {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #786962;
    font-size: 0.78rem;
    font-weight: 700;
}

.gc-day-row:hover { background: #F6E2D2; }

.gc-detail p { margin: 0.4rem 0; font-weight: 700; }
.gc-phrase input { flex: 1; min-width: 0; }
.gc-table { width: 100%; border-collapse: collapse; overflow: hidden; }

.gc-table th,
.gc-table td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid #E9E1D8;
    text-align: left;
    font-size: 0.95rem;
}

.gc-table th { color: #786962; font-size: 0.78rem; font-weight: 800; }

.gc-person,
.gc-attend {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 58px;
    padding: 0.45rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-person.is-on,
.gc-attend:hover { background: #FFF5EA; }

.gc-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF5EA;
    color: #E64618;
    font-weight: 800;
}

.gc-person small,
.gc-muted { color: #786962; font-weight: 700; }

.gc-balance { margin-left: auto; font-weight: 800; }

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

.gc-form label,
.gc-stack label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #786962;
    font-size: 0.82rem;
    font-weight: 800;
}

.gc-form input,
.gc-form select,
.gc-form textarea,
.gc-stack input,
.gc-stack select,
.gc-stack textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 700;
}

.gc-form textarea,
.gc-stack textarea { min-height: 7rem; }

/* Homework / report form: beat the global input[type=text] 3rem left padding.
   Tabs sit top-left; the report editor width is handled by .gc-report-layout. */
#hub-panel:has(.gc-homework) {
    width: min(840px, 100%);
}

#hub-panel:has(.hw-switch-shell),
#hub-panel-platform:has(.hw-switch-shell),
#hub-panel:has(.hw-studio),
#hub-panel-platform:has(.hw-studio) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: clip;
}

.gc-report-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
    width: 100%;
    margin: 0;
}

.gc-report-preview {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid #E9E1D8;
    border-radius: 16px;
    background: #FFFcf8;
}

.gc-report-preview > .gc-kicker {
    margin: 0 0 0.7rem;
}

.gc-report-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border: 1px solid #E9E1D8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(53, 37, 33, 0.05);
}

.gc-report-card small {
    color: #786962;
    font-size: 0.75rem;
    font-weight: 700;
}

.gc-report-card strong {
    font-size: 1.02rem;
    font-weight: 800;
}

.gc-report-card p {
    margin: 0.15rem 0 0;
    white-space: pre-wrap;
    line-height: 1.55;
    font-weight: 600;
}

.gc-report-card-empty {
    color: #9A8B82;
    font-weight: 600;
}

.gc-report-card ul {
    display: grid;
    gap: 0.35rem;
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
}

.gc-report-card li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: #FAF7F2;
    font-size: 0.9rem;
    font-weight: 700;
}

.gc-report-card li span:last-child {
    color: #786962;
    text-align: right;
}

@media (min-width: 980px) {
    .gc-report-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
        gap: 1.35rem;
    }

    .gc-report {
        max-width: none;
    }

    .gc-report-preview {
        position: sticky;
        top: 0.75rem;
    }
}

.gc-homework,
.gc-homework .gc-stack {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gc-homework select,
.gc-homework textarea,
.gc-homework input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0.5rem 0.85rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
}

.gc-homework textarea {
    height: auto;
    min-height: 7rem;
    padding: 0.7rem 0.85rem;
    resize: vertical;
}

.gc-homework select:hover,
.gc-homework select:focus,
.gc-homework textarea:hover,
.gc-homework textarea:focus,
.gc-homework input[type="text"]:hover,
.gc-homework input[type="text"]:focus {
    border-color: #E9E1D8;
    background: #fff;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.gc-homework select:focus,
.gc-homework textarea:focus,
.gc-homework input[type="text"]:focus {
    outline: none;
    border-color: #E64618;
    box-shadow: 0 0 0 4px rgba(230, 70, 24, 0.12);
}

.gc-homework .gc-phrase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
}

.gc-homework .gc-phrase .gc-text-btn {
    align-self: center;
    justify-self: center;
}

@media (max-width: 640px) {
    .gc-homework .gc-phrase {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .gc-homework .gc-phrase input[data-en] {
        grid-column: 1;
        grid-row: 1;
    }

    .gc-homework .gc-phrase input[data-ja] {
        grid-column: 1;
        grid-row: 2;
    }

    .gc-homework .gc-phrase .gc-text-btn {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}

.gc-report {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 40rem;
    margin: 0;
    padding: 1rem 1.05rem 0.9rem;
    border: 1px solid #E9E1D8;
    border-radius: 16px;
    background: #fff;
}

.gc-report-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    background: #FAF7F2;
}

.gc-report-bar p { margin: 0; font-size: 0.86rem; font-weight: 700; }

.gc-report-bar .gc-text-btn {
    min-height: 32px;
    padding: 0.15rem 0.35rem;
    color: #E64618;
    font-size: 0.82rem;
}

.gc-report-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #352521;
    font-size: 0.9rem;
    font-weight: 800;
}

.gc-report textarea,
.gc-report input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 700;
}

.gc-report textarea {
    min-height: 6.2rem;
    padding: 0.7rem 0.8rem;
    resize: vertical;
    line-height: 1.5;
}

.gc-report input[type="text"] {
    height: 40px;
    min-height: 40px;
    padding: 0.4rem 0.7rem;
}

.gc-report textarea:focus,
.gc-report input[type="text"]:focus {
    outline: none;
    border-color: #E64618;
    box-shadow: 0 0 0 3px rgba(230, 70, 24, 0.12);
    padding-left: 0.8rem;
}

.gc-report input[type="text"]:focus { padding-left: 0.7rem; }

.gc-phrase-head,
.gc-report .gc-phrase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    align-items: center;
    gap: 0.45rem;
}

.gc-phrase-head {
    margin-bottom: 0.3rem;
    color: #786962;
    font-size: 0.75rem;
    font-weight: 700;
}

.gc-report .gc-phrase + .gc-phrase { margin-top: 0.4rem; }

.gc-phrase-x {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #786962;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.gc-phrase-x:hover { background: #FAF7F2; color: #D94B48; }

.gc-report-words { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.gc-report-words .gc-phrase-head,
.gc-report-words #phrase-rows,
.gc-report-words .gc-report-note { width: 100%; }

.gc-report-words .gc-text-btn {
    min-height: 32px;
    padding: 0.1rem 0.15rem;
    color: #786962;
    font-size: 0.84rem;
}

.gc-report-note {
    margin: 0.15rem 0 0;
    color: #786962;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
}

.gc-report-words .gc-secondary { min-height: 38px; }

.gc-report-to p { margin: 0; font-size: 0.86rem; font-weight: 700; }
.gc-report-to .gc-kicker { margin-bottom: 0.3rem; }
.gc-report-to ul { margin: 0; padding: 0; list-style: none; }
.gc-report-to li { padding: 0.18rem 0; font-size: 0.86rem; font-weight: 700; }
.gc-report-to .gc-report-note { margin-top: 0.25rem; font-weight: 600; }

.gc-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F1EAE3;
}

.gc-report-actions .gc-save-note { flex: 1; }

@media (max-width: 640px) {
    .gc-report-actions { align-items: stretch; flex-direction: column; }
    .gc-report-actions .gc-primary { width: 100%; }
    .gc-report-words .gc-secondary { width: 100%; }
}

.gc-span-2 { grid-column: 1 / -1; }

.gc-allday {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    color: #786962;
    font-size: 0.82rem;
    font-weight: 800;
}

.gc-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 5.4rem;
    min-height: 36px;
    padding: 0.15rem 0.65rem 0.15rem 0.2rem;
    border: 1px solid #E9E1D8;
    border-radius: 999px;
    background: #fff;
    color: #786962;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.gc-switch-knob {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #C9BEB6;
}

.gc-switch.is-on {
    flex-direction: row-reverse;
    padding: 0.15rem 0.2rem 0.15rem 0.65rem;
    border-color: #E64618;
    background: #E64618;
    color: #fff;
}

.gc-switch.is-on .gc-switch-knob { background: #fff; }

dialog.gc-modal {
    box-sizing: border-box;
    width: min(560px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: 1.1rem;
    overflow: auto;
    border: 1px solid #E9E1D8;
    box-shadow: 0 24px 60px rgba(53, 37, 33, 0.16);
}

dialog.gc-modal::backdrop { background: rgba(53, 37, 33, 0.35); }

dialog.gc-confirm {
    width: min(420px, calc(100vw - 1.5rem));
    padding: 0;
    border: none;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

dialog.gc-confirm::backdrop {
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 196, 160, 0.22), transparent 42%),
        rgba(42, 28, 24, 0.42);
    backdrop-filter: blur(4px);
}

.gc-confirm-card {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1.35rem 1.35rem 1.2rem;
    border: 1px solid #F0E6DC;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 236, 220, 0.95), transparent 46%),
        radial-gradient(circle at 0% 100%, rgba(236, 247, 240, 0.55), transparent 40%),
        #FFFCFA;
    box-shadow:
        0 28px 60px rgba(86, 58, 42, 0.18),
        0 8px 20px rgba(86, 58, 42, 0.08);
}

.gc-confirm-art {
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(145deg, #FFE4D4, #F7C3B4);
    color: #C5674F;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(224, 122, 85, 0.2);
}

.gc-confirm.is-danger .gc-confirm-art {
    background: linear-gradient(145deg, #FFD8D4, #F5B0A8);
    color: #B3382C;
    box-shadow: 0 10px 22px rgba(179, 56, 44, 0.18);
}

.gc-confirm-copy {
    display: grid;
    gap: 0.45rem;
    text-align: center;
}

.gc-confirm-copy h3 {
    margin: 0;
    color: #352521;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.gc-confirm-message {
    display: grid;
    gap: 0.35rem;
    color: #6E584E;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.55;
}

.gc-confirm-message p {
    margin: 0;
}

.gc-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: stretch;
    margin-top: 0.15rem;
}

.gc-confirm-cancel,
.gc-confirm-ok {
    flex: 1 1 8rem;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.gc-confirm-cancel {
    border: 1px solid #E9E1D8;
    background: #fff;
    color: #6E584E;
}

.gc-confirm-cancel:hover {
    background: #FFF6EE;
    border-color: #E5C8B4;
    color: #C45E34;
}

.gc-confirm-ok {
    border: none;
    background: #E07A55;
    color: #fff;
    box-shadow: 0 10px 22px rgba(208, 108, 72, 0.24);
}

.gc-confirm-ok:hover {
    background: #D46845;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(208, 108, 72, 0.28);
}

.gc-confirm-ok.is-danger {
    background: #D4574A;
    box-shadow: 0 10px 22px rgba(179, 56, 44, 0.22);
}

.gc-confirm-ok.is-danger:hover {
    background: #C2473B;
}

.gc-confirm-cancel:active,
.gc-confirm-ok:active {
    transform: scale(0.98);
}

.gc-attend-page {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: min(960px, 100%);
    margin: 0 auto;
}

.gc-attend-page .gc-panel {
    padding: 0.85rem 1rem;
    border: 1px solid #E9E1D8;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.gc-kicker {
    margin: 0 0 0.35rem;
    color: #786962;
    font-size: 0.75rem;
    font-weight: 700;
}

.gc-pick { position: relative; }

.gc-pick-btn,
.gc-pick-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 52px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.gc-pick-btn span,
.gc-pick-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.gc-pick-btn { flex-direction: row; }
.gc-pick-btn span { flex: 1; }
.gc-pick-btn strong,
.gc-pick-option strong { font-size: 0.98rem; }
.gc-pick-btn small,
.gc-pick-option small { color: #786962; font-size: 0.78rem; font-weight: 600; }

.gc-pick-btn svg {
    width: 18px;
    height: 18px;
    flex: none;
    stroke: #786962;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gc-pick-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    padding: 0.45rem;
    border: 1px solid #E9E1D8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(53, 37, 33, 0.08);
}

.gc-pick-menu input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    margin: 0 0 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 10px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 700;
}

.gc-pick-menu input:focus {
    outline: none;
    border-color: #E64618;
}

#class-options {
    display: flex;
    flex-direction: column;
    max-height: 280px;
    overflow: auto;
}

.gc-pick-option {
    min-height: 46px;
    border-color: transparent;
    border-radius: 10px;
}

.gc-pick-option.is-on { background: #FFF5EA; }
.gc-pick-option:hover { background: #FFF8F3; }

.gc-attend-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.gc-attend-count {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0;
}

.gc-attend-count strong {
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gc-attend-count span { color: #786962; font-weight: 700; }

.gc-save-note {
    margin: 0;
    color: #786962;
    font-size: 0.82rem;
    font-weight: 700;
}

.gc-save-note.is-dirty { color: #E64618; }
.gc-save-note.is-ok { color: #31945A; }
.gc-save-note.is-error { color: #D94B48; }

.gc-attend-head,
.gc-attend-save {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.gc-attend-head h3 { margin: 0; font-size: 0.95rem; }

.gc-attend-head .gc-text-btn {
    min-height: 36px;
    padding: 0.2rem 0.45rem;
    color: #786962;
    font-size: 0.82rem;
}

.gc-attend-save { justify-content: flex-end; margin-top: 0.35rem; }

.gc-attend-list {
    display: flex;
    flex-direction: column;
    max-height: min(52vh, 560px);
    margin-top: 0.25rem;
    overflow: auto;
}

.gc-attend-page .gc-attend {
    min-height: 52px;
    padding: 0.35rem 0.15rem;
    border: none;
    border-radius: 10px;
    cursor: default;
}

.gc-attend-page .gc-attend + .gc-attend { box-shadow: inset 0 1px 0 #F1EAE3; }
.gc-attend-page .gc-attend strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.98rem; }
.gc-attend-page .gc-avatar { width: 32px; height: 32px; font-size: 0.85rem; }

.gc-seg { display: flex; margin-left: auto; padding: 0.15rem; border-radius: 999px; background: #FAF7F2; }

.gc-seg button {
    min-width: 64px;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #786962;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gc-attend.is-present [data-state="present"],
.gc-attend.is-absent [data-state="absent"] {
    background: #fff;
    box-shadow: 0 0 0 1px #E9E1D8;
}

.gc-attend.is-absent [data-state="absent"] { color: #D94B48; }
.gc-attend.is-present [data-state="present"] { color: #31945A; }

@media (max-width: 720px) {
    .gc-attend-summary { align-items: flex-start; flex-direction: column; }
    .gc-seg button { min-width: 58px; min-height: 36px; }
}

.gc-choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gc-choice input[type="radio"],
.gc-choice input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    margin: 0;
    padding: 0;
    border: 2px solid #C4B8AE;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.gc-choice input[type="radio"]:checked,
.gc-choice input[type="checkbox"]:checked {
    border-color: #E64618;
    background: #E64618
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E")
        center / 0.75rem 0.75rem no-repeat;
}

.gc-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.gc-note { color: #31945A; font-weight: 800; }
.gc-warn { color: #D94B48; font-weight: 800; }

.qo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.qo-bar input[type="text"] {
    flex: 1 1 200px;
    width: auto;
    min-width: 160px;
    height: 40px;
    min-height: 40px;
    padding: 0.4rem 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 800;
    box-shadow: none;
}

.qo-bar input[type="text"]:hover,
.qo-bar input[type="text"]:focus {
    padding: 0.4rem 0.7rem;
    border-color: #E64618;
    background: #fff;
    box-shadow: none;
    outline: none;
}

.qo-bar select,
.qo-time select {
    height: 40px;
    min-height: 40px;
    padding: 0.35rem 0.65rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 800;
}

.qo-bar select { flex: 1 1 150px; min-width: 140px; }

.qo-saved { position: relative; flex: 1 1 190px; min-width: 180px; }

.qo-saved-btn {
    position: relative;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 1.8rem 0 0.7rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 800;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.qo-saved-btn::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid #786962;
    border-bottom: 2px solid #786962;
    transform: translateY(-70%) rotate(45deg);
}

.qo-saved-menu {
    position: absolute;
    z-index: 6;
    top: calc(100% + 0.3rem);
    left: 0;
    width: min(340px, 72vw);
    max-height: 280px;
    overflow: auto;
    padding: 0.3rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(53, 37, 33, 0.08);
}

.qo-saved-row { display: flex; align-items: center; gap: 0.15rem; border-radius: 8px; }
.qo-saved-row.is-on { background: #FFF5EA; }

.qo-saved-open {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    min-width: 0;
    padding: 0.4rem 0.5rem;
    border: none;
    background: transparent;
    color: #352521;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.qo-saved-open strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qo-saved-open small { color: #786962; font-size: 0.72rem; font-weight: 700; }

.qo-saved-delete {
    flex: none;
    min-height: 32px;
    padding: 0.2rem 0.55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #D94B48;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.qo-saved-delete:hover { background: #FFF5F4; }
.qo-saved-delete:disabled { opacity: 0.45; cursor: default; }
.qo-saved-empty { margin: 0; padding: 0.55rem 0.6rem; color: #786962; font-size: 0.82rem; font-weight: 700; }

.qo-bar .gc-primary,
.qo-bar .gc-secondary {
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    white-space: nowrap;
}

.qo-launch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.qo-time {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #786962;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.qo-timer {
    height: 14px;
    margin: 0 0 0.9rem;
    overflow: hidden;
    border-radius: 999px;
    background: #F3EBE3;
}

.qo-timer > span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(1);
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, #E64618, #F1A23A);
}

button.qo-answer:disabled {
    cursor: default;
    filter: saturate(0.85);
}

.qo-pin-input {
    width: 100%;
    min-height: 48px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #E9E1D8;
    border-radius: 12px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-weight: 800;
}

.qo-build {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.qo-rail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem;
    border-radius: 16px;
    background: #F6F1EA;
}

.qo-q,
.qo-add {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 40px;
    padding: 0.3rem 0.5rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #352521;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.qo-q b {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 7px;
    background: #fff;
    font-size: 0.72rem;
}

.qo-q small {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #786962;
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qo-q:hover { background: rgba(255, 255, 255, 0.7); }
.qo-q.is-on { background: #fff; box-shadow: inset 3px 0 0 #E64618; }
.qo-q.is-on b { background: #E64618; color: #fff; }
.qo-q.is-on small { color: #352521; }
.qo-q.is-bad:not(.is-on) b { color: #D94B48; }
.qo-add {
    justify-content: center;
    margin-top: 0.15rem;
    color: #E64618;
    background: #FFF5EA;
}

.qo-stage,
.qo-live,
.qo-lobby,
.qo-join {
    padding: 1.1rem;
    border: 1px solid #E9E1D8;
    border-radius: 18px;
    background: #fff;
}

.qo-stage { padding: 0.85rem 0.95rem 0.9rem; }

.qo-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.qo-stage-head strong { font-size: 0.92rem; }

.qo-prompt-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #786962;
    font-size: 0.82rem;
    font-weight: 800;
}

.qo-prompt-label textarea {
    width: 100%;
    min-height: 64px;
    max-height: 120px;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 12px;
    background: #FAF7F2;
    color: #352521;
    font: inherit;
    font-size: 1.12rem;
    font-weight: 800;
    resize: vertical;
}

.qo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 0.8rem;
    margin-top: 0.5rem;
}

.qo-meta p {
    margin: 0;
    color: #786962;
    font-size: 0.78rem;
    font-weight: 700;
}

.qo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.qo-tile,
.qo-answer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    border: none;
    border-radius: 12px;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: left;
}

.qo-tile {
    box-sizing: border-box;
    min-height: 48px;
    padding: 0.3rem 0.65rem;
    font-size: 1rem;
}

.qo-answer {
    min-height: 84px;
    max-height: 120px;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    font-size: 1.15rem;
}

.qo-tile input {
    flex: 1 1 auto;
    width: auto;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
}

.qo-tile input::placeholder { color: rgba(255, 255, 255, 0.75); }

.qo-tile input:hover,
.qo-tile input:focus {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.qo-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #352521;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.qo-mark[aria-pressed="true"] {
    background: #fff;
    border-color: #fff;
}

.qo-shape {
    flex: none;
    width: 0.9rem;
    font-size: 0.78rem;
    line-height: 1;
    text-align: center;
}

.qo-tile.is-correct { box-shadow: inset 0 0 0 2px #fff; }
.qo-answer.is-correct { box-shadow: inset 0 0 0 4px #fff; }
.qo-answer.is-dim { opacity: 0.45; }
button.qo-answer { width: 100%; cursor: pointer; touch-action: manipulation; }
button.qo-answer:disabled { cursor: default; }
.qo-red { background: #E21B3C; }
.qo-blue { background: #1368CE; }
.qo-yellow { background: #D89E00; }
.qo-green { background: #26890C; }

.qo-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
}

.qo-tool {
    min-width: 32px;
    min-height: 32px;
    padding: 0.1rem 0.45rem;
    border: 1px solid #E9E1D8;
    border-radius: 8px;
    background: #fff;
    color: #352521;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.qo-tool:disabled { opacity: 0.35; cursor: default; }
.qo-tool-danger { border-color: transparent; background: transparent; color: #D94B48; }
.qo-stage .gc-save-note { min-height: 1.15rem; margin: 0.55rem 0 0; font-size: 0.82rem; }

.qo-join,
.qo-lobby { max-width: 680px; margin: 0 auto; text-align: center; }

.qo-pin-input {
    margin: 0.8rem 0;
    font-size: 2rem;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

.qo-pin {
    margin: 0.2rem 0 0.8rem;
    color: #E64618;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.qo-question {
    margin: 0.3rem 0 0.4rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
}

.qo-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin: 1rem 0 0.4rem; }

.qo-chip {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #FFF5EA;
    font-weight: 800;
}

.qo-start { min-width: 180px; margin-top: 0.8rem; }

.qo-banner {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    text-align: center;
}

.qo-banner.is-ok { color: #31945A; }
.qo-banner.is-bad { color: #D94B48; }

.qo-result { position: relative; width: 100%; overflow: hidden; }
.qo-result.is-dim { opacity: 0.78; }

.qo-result-label {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.2;
}

.qo-you {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.qo-count {
    margin-left: auto;
    font-size: 1.35rem;
    font-weight: 800;
}

.qo-meter {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 7px;
    width: var(--share, 0%);
    background: rgba(255, 255, 255, 0.92);
}

.qo-podium-top {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
    margin: 0.8rem 0 0.2rem;
}

.qo-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    width: 7.2rem;
    min-height: 96px;
    padding: 0.7rem 0.4rem 0.55rem;
    border: 1px solid #E9E1D8;
    border-radius: 14px 14px 0 0;
    background: #fff;
}

.qo-stand.is-1 { min-height: 132px; background: #FFF5EA; }
.qo-stand.is-2 { min-height: 108px; }
.qo-stand.is-3 { min-height: 88px; }
.qo-stand.is-me { box-shadow: inset 0 0 0 2px #E64618; }

.qo-stand b {
    color: #E64618;
    font-size: 1.35rem;
    line-height: 1;
}

.qo-stand strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qo-stand em {
    color: #786962;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 800;
}

.qo-podium {
    margin: 0.4rem auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.qo-podium li {
    display: grid;
    grid-template-columns: 2rem 1fr auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid #E9E1D8;
    font-weight: 800;
}

.qo-podium li.is-me { background: #FFF5EA; }

@media (max-width: 900px) {
    main.gc-app.platform-hub,
    main.gc-app.platform-hub.is-side-collapsed {
        --hub-side: 0px;
        grid-template-columns: minmax(0, 1fr);
    }
    .gc-icon-btn { display: grid; place-items: center; }
    .gc-side-toggle { display: none; }
    .gc-nav-scrim {
        display: none !important;
        position: fixed;
        inset: 0;
        z-index: 45;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(48, 41, 36, 0.28);
        cursor: pointer;
        appearance: none;
    }
    main.gc-app.is-nav-open .gc-nav-scrim {
        display: block !important;
    }
    .gc-side {
        position: fixed;
        z-index: 50;
        inset: 0 auto 0 0;
        width: min(248px, 86vw);
        height: 100%;
        transform: translateX(-105%);
        transition: transform 220ms ease;
        box-shadow: 12px 0 30px rgba(53, 37, 33, 0.12);
    }
    main.gc-app.is-nav-open .gc-side { transform: none; }
    .gc-split,
    .gc-ticket-desk,
    .gc-form,
    .qo-build,
    .qo-grid { grid-template-columns: 1fr; }
    .qo-rail { flex-direction: row; overflow-x: auto; }
    .qo-q, .qo-add { min-width: 148px; width: auto; flex: none; }
    .qo-launch { width: 100%; margin-left: 0; }
    .qo-launch .gc-primary { flex: 1; }
    .gc-workspace { padding: 1rem; max-width: 100%; }
    main.gc-app.platform-hub .gc-workspace:has(.hw-done),
    main.gc-app.platform-hub .gc-workspace:has(.hw-play),
    main.gc-app.platform-hub .gc-workspace:has(.gc-learn-hub.is-playing),
    .gc-workspace:has(.hw-done),
    .gc-workspace:has(.hw-play),
    .gc-workspace:has(.gc-learn-hub.is-playing) {
        padding: 0 !important;
    }
    .gc-workspace > * {
        width: 100%;
        max-width: 100%;
    }
    #hub-panel:has(.gc-learn-hub),
    #hub-panel-platform:has(.gc-learn-hub),
    #hub-panel:has(.gc-learn-hub.is-wheel),
    #hub-panel-platform:has(.gc-learn-hub.is-wheel),
    .gc-learn-hub,
    .gc-learn-hub.is-wheel {
        width: 100%;
        max-width: 100%;
    }
    dialog.gc-modal {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        padding: 0.9rem;
    }
    #class-list {
        --cal-gap: 0.2rem;
        --bar-top: 1.12rem;
        --bar-h: 1.72rem;
        --bar-row-gap: 0.16rem;
    }
    .gc-day {
        min-height: max(72px, calc(var(--bar-top) + var(--lanes, 0) * var(--bar-pitch) + 0.25rem));
        padding: 0.15rem 0.12rem 0.2rem;
        padding-top: calc(var(--bar-top) + var(--lanes, 0) * var(--bar-pitch));
    }
    .gc-day b { top: 0.16rem; left: 0.2rem; }
    .gc-event,
    .gc-bar {
        height: var(--bar-h);
        font-size: 0.62rem;
        line-height: 1.1;
        padding: 0.04rem 0.2rem;
    }
    .gc-event-teacher {
        font-size: 0.54rem;
    }
    .gc-cal-nav strong { font-size: 1rem; }
    .gc-user-avatar { display: grid; }
    .gc-bell-panel {
        position: fixed;
        top: 4.2rem;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-height: min(520px, calc(100dvh - 5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .gc-card, .gc-side, .gc-day-panel { transition: none; }
    .gc-bell-panel,
    .gc-bell-item,
    .gc-bell-mark-all,
    .gc-bell-inbox-link {
        transition: none;
    }
    main.gc-app.platform-hub,
    main.gc-app.platform-hub .gc-side,
    main.gc-app.platform-hub .gc-brand-block,
    main.gc-app.platform-hub .gc-nav > span,
    main.gc-app.platform-hub .gc-side-account .gc-user-meta,
    main.gc-app.platform-hub .gc-side-logout span,
    main.gc-app.platform-hub .gc-side-foot-copy,
    main.gc-app.platform-hub .gc-side-toggle {
        transition: none;
    }
    main.gc-app.platform-hub.is-hw-studio-focus > .gc-side,
    .gc-hw-chrome-toggle {
        transition: none;
    }
}

/* —— Teacher / Owner portal chrome (Learny red + cream) —— */
main.gc-app.platform-hub[data-role="admin"],
main.gc-app.platform-hub[data-role="owner"] {
    --hub-red: #C93632;
    --hub-red-deep: #A92B28;
    --hub-cream: #F6F1E6;
    --hub-surface: #FFFCF6;
    --hub-rose: #F4DDD7;
    --hub-sand: #E8DFCF;
    --hub-text: #302924;
    --hub-muted: #81766C;
    --hub-line: #E4D9C8;
    --hub-side: 240px;
    --hub-side-collapsed: 72px;
    background: var(--hub-cream);
    color: var(--hub-text);
    grid-template-columns: var(--hub-side) minmax(0, 1fr);
}

main.gc-app.platform-hub[data-role="admin"].is-side-collapsed,
main.gc-app.platform-hub[data-role="owner"].is-side-collapsed {
    --hub-side: var(--hub-side-collapsed);
}

main.gc-app.platform-hub[data-role="admin"] > .gc-side,
main.gc-app.platform-hub[data-role="owner"] > .gc-side {
    gap: 0.55rem;
    padding: 1rem;
    background: #A92B28;
    border-right: none;
    color: #FFFCF6;
    opacity: 1;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-label,
main.gc-app.platform-hub[data-role="owner"] .gc-side-label {
    display: block;
    color: #F1C7BF;
}

main.gc-app.platform-hub[data-role="admin"] .gc-brand,
main.gc-app.platform-hub[data-role="owner"] .gc-brand {
    color: #FFFCF6;
    font-size: 1.22rem;
}

main.gc-app.platform-hub[data-role="admin"] .gc-brand-sub,
main.gc-app.platform-hub[data-role="owner"] .gc-brand-sub {
    display: block;
    margin: 0.2rem 0 0;
    color: #F1C7BF;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-toggle,
main.gc-app.platform-hub[data-role="owner"] .gc-side-toggle {
    border-color: rgba(255, 252, 246, 0.28);
    background: rgba(255, 252, 246, 0.1);
    color: #FFFCF6;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-toggle:hover,
main.gc-app.platform-hub[data-role="owner"] .gc-side-toggle:hover {
    background: rgba(255, 252, 246, 0.18);
}

main.gc-app.platform-hub[data-role="admin"] .gc-nav,
main.gc-app.platform-hub[data-role="owner"] .gc-nav {
    color: #FFFCF6;
    border-radius: 10px;
    font-weight: 500;
}

main.gc-app.platform-hub[data-role="admin"] .gc-nav:hover,
main.gc-app.platform-hub[data-role="owner"] .gc-nav:hover {
    background: rgba(255, 252, 246, 0.12);
    color: #FFFCF6;
}

main.gc-app.platform-hub[data-role="admin"] .gc-nav.is-current,
main.gc-app.platform-hub[data-role="owner"] .gc-nav.is-current {
    background: #FFFCF6;
    color: #A92B28;
    box-shadow: none;
    font-weight: 600;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-foot,
main.gc-app.platform-hub[data-role="owner"] .gc-side-foot {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.55rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
    color: #FFFCF6;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-mascot,
main.gc-app.platform-hub[data-role="owner"] .gc-side-mascot {
    width: 2.15rem;
    height: 2.15rem;
    flex: none;
    object-fit: contain;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-foot-copy,
main.gc-app.platform-hub[data-role="owner"] .gc-side-foot-copy {
    min-width: 0;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-foot-copy strong,
main.gc-app.platform-hub[data-role="owner"] .gc-side-foot-copy strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-foot-copy p,
main.gc-app.platform-hub[data-role="owner"] .gc-side-foot-copy p {
    margin: 0.1rem 0 0;
    color: #F1C7BF;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-account,
main.gc-app.platform-hub[data-role="owner"] .gc-side-account {
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 252, 246, 0.18);
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-account .gc-user,
main.gc-app.platform-hub[data-role="owner"] .gc-side-account .gc-user {
    color: #FFFCF6;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-account .gc-user-meta strong,
main.gc-app.platform-hub[data-role="owner"] .gc-side-account .gc-user-meta strong {
    color: #FFFCF6;
    font-size: 0.88rem;
    font-weight: 700;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-account #hub-role-label,
main.gc-app.platform-hub[data-role="owner"] .gc-side-account #hub-role-label {
    color: #F1C7BF;
    font-size: 0.72rem;
    font-weight: 500;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-logout,
main.gc-app.platform-hub[data-role="owner"] .gc-side-logout {
    color: #F1C7BF;
}

main.gc-app.platform-hub[data-role="admin"] .gc-side-logout:hover,
main.gc-app.platform-hub[data-role="owner"] .gc-side-logout:hover {
    color: #FFFCF6;
    background: rgba(255, 252, 246, 0.12);
}

main.gc-app.platform-hub[data-role="admin"] header.gc-top,
main.gc-app.platform-hub[data-role="owner"] header.gc-top {
    min-height: 56px;
    padding: 0.45rem 1.25rem;
    background: #FFFCF6 !important;
    border-bottom: 1px solid var(--hub-line);
}

main.gc-app.platform-hub[data-role="admin"] header.gc-top h1,
main.gc-app.platform-hub[data-role="owner"] header.gc-top h1 {
    color: var(--hub-text);
    font-size: 1rem;
    font-weight: 800;
}

main.gc-app.platform-hub[data-role="admin"] .gc-bell,
main.gc-app.platform-hub[data-role="owner"] .gc-bell,
main.gc-app.platform-hub[data-role="admin"] .gc-sfx,
main.gc-app.platform-hub[data-role="owner"] .gc-sfx {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border-color: var(--hub-sand);
    background: var(--hub-surface);
    color: var(--hub-text);
}

main.gc-app.platform-hub[data-role="admin"] .gc-user-avatar,
main.gc-app.platform-hub[data-role="owner"] .gc-user-avatar {
    width: 2.15rem;
    height: 2.15rem;
    background: #FFFCF6;
    color: #A92B28 !important;
    box-shadow: none;
}

main.gc-app.platform-hub[data-role="admin"] .gc-workspace:has(.gc-home),
main.gc-app.platform-hub[data-role="owner"] .gc-workspace:has(.gc-home),
main.gc-app.platform-hub[data-role="admin"] .gc-workspace:has(.hw-lib),
main.gc-app.platform-hub[data-role="owner"] .gc-workspace:has(.hw-lib) {
    padding: clamp(0.95rem, 1.8vw, 1.25rem) clamp(1rem, 2.4vw, 1.75rem) clamp(1.1rem, 2vw, 1.5rem);
}

main.gc-app.platform-hub[data-role="admin"] .gc-welcome h2,
main.gc-app.platform-hub[data-role="owner"] .gc-welcome h2 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.65rem);
    font-weight: 800;
    color: var(--hub-text);
}

main.gc-app.platform-hub[data-role="admin"] .gc-welcome p,
main.gc-app.platform-hub[data-role="owner"] .gc-welcome p,
main.gc-app.platform-hub[data-role="admin"] .gc-welcome .gc-lead,
main.gc-app.platform-hub[data-role="owner"] .gc-welcome .gc-lead {
    color: var(--hub-muted);
    font-weight: 600;
}

main.gc-app.platform-hub[data-role="admin"] .gc-welcome,
main.gc-app.platform-hub[data-role="owner"] .gc-welcome {
    margin-bottom: 0.85rem;
}

/* Collapsed desktop rail — fade/clip labels while --hub-side animates */
main.gc-app.platform-hub.is-side-collapsed .gc-brand-block,
main.gc-app.platform-hub.is-side-collapsed .gc-nav > span,
main.gc-app.platform-hub.is-side-collapsed .gc-side-account .gc-user-meta,
main.gc-app.platform-hub.is-side-collapsed .gc-side-logout span,
main.gc-app.platform-hub.is-side-collapsed .gc-side-foot-copy {
    max-width: 0;
    margin-left: 0;
    margin-right: 0;
    opacity: 0;
    pointer-events: none;
}

main.gc-app.platform-hub.is-side-collapsed .gc-brand-sub,
main.gc-app.platform-hub.is-side-collapsed .gc-side-label {
    display: none;
}

main.gc-app.platform-hub .gc-side-account .gc-user-meta,
main.gc-app.platform-hub .gc-side-logout span,
main.gc-app.platform-hub .gc-side-foot-copy {
    max-width: 12rem;
    overflow: hidden;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 140ms ease, max-width 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

main.gc-app.platform-hub.is-side-collapsed .gc-side {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    align-items: center;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-toggle {
    margin-inline: auto;
}

main.gc-app.platform-hub.is-side-collapsed .gc-nav-list,
main.gc-app.platform-hub.is-side-collapsed .gc-nav-list > div {
    align-items: center;
    width: 100%;
}

main.gc-app.platform-hub.is-side-collapsed .gc-nav {
    position: relative;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    min-height: 2.75rem;
    margin-inline: auto;
    padding: 0;
}

main.gc-app.platform-hub.is-side-collapsed .gc-nav > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main.gc-app.platform-hub.is-side-collapsed .gc-nav svg {
    margin: 0;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-bottom {
    align-items: center;
    width: 100%;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-foot {
    display: grid;
    place-items: center;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 2.75rem;
    margin-inline: auto;
    padding: 0.4rem;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-foot-copy {
    display: none;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-mascot {
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-account {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-account .gc-user {
    justify-content: center;
    width: 2.75rem;
}

main.gc-app.platform-hub.is-side-collapsed .gc-side-logout {
    width: 2.75rem;
    margin-inline: auto;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 900px) {
    main.gc-app.platform-hub[data-role="admin"],
    main.gc-app.platform-hub[data-role="owner"],
    main.gc-app.platform-hub[data-role="admin"].is-side-collapsed,
    main.gc-app.platform-hub[data-role="owner"].is-side-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }
}
