:root {
  --gc-blue: #1a73e8; --gc-blue-d: #1967d2; --gc-text: #3c4043; --gc-muted: #5f6368; --gc-line: #dadce0; --gc-hover: #f1f3f4;
  --gc-side-w: 300px; --gc-top-h: 64px;
  --bs-body-font-family: 'Sarabun', system-ui, sans-serif; --bs-body-color: #3c4043; --bs-body-bg: #fff;
  --bs-primary: #1a73e8; --bs-primary-rgb: 26,115,232; --bs-link-color: #1a73e8; --bs-link-color-rgb: 26,115,232;
}
body { font-size: 1rem; }
h1, h2, h3, .ff-head, .gc-brand { font-family: 'Prompt', 'Sarabun', sans-serif; }
.btn-primary { --bs-btn-bg: var(--gc-blue); --bs-btn-border-color: var(--gc-blue); --bs-btn-hover-bg: var(--gc-blue-d); --bs-btn-hover-border-color: var(--gc-blue-d); }
.btn { border-radius: 8px; font-weight: 500; }
.btn-pill { border-radius: 999px; }
.form-control, .form-select { border-color: var(--gc-line); border-radius: 8px; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--gc-blue); box-shadow: 0 0 0 .2rem rgba(26,115,232,.15); }
.small-muted { font-size: .85rem; color: var(--gc-muted); }
.text-muted { color: var(--gc-muted) !important; }
a { text-decoration: none; }

/* ---------------- top bar ---------------- */
.gc-top { position: sticky; top: 0; z-index: 1030; height: var(--gc-top-h); display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--gc-line); }
.gc-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--gc-muted); font-size: 1.35rem; }
.gc-icon-btn:hover, .gc-icon-btn.active { background: var(--gc-hover); color: var(--gc-text); }
.gc-brand { display: flex; align-items: center; gap: 10px; color: var(--gc-text); font-size: 1.35rem; padding-right: 6px; }
.gc-logo { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 1.2rem; background: linear-gradient(135deg, #188038, #34a853); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.gc-crumb { display: flex; flex-direction: column; line-height: 1.2; color: var(--gc-text); min-width: 0; max-width: 46vw; }
.gc-crumb .t { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-crumb .s { font-size: .82rem; color: var(--gc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-crumb:hover .t { text-decoration: underline; }
.gc-avatar-btn { border: 0; background: none; padding: 4px; border-radius: 50%; }
.gc-avatar-btn:hover { background: var(--gc-hover); }

/* ---------------- shell / sidebar ---------------- */
.gc-shell { display: flex; min-height: calc(100vh - var(--gc-top-h)); }
.gc-side { width: var(--gc-side-w); flex-shrink: 0; border-right: 1px solid var(--gc-line); position: sticky; top: var(--gc-top-h); height: calc(100vh - var(--gc-top-h)); overflow-y: auto; padding: 8px 12px 24px 0; background: #fff; transition: margin .2s; }
.gc-side::-webkit-scrollbar { width: 8px; } .gc-side::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 8px; }
.gc-nav { display: flex; align-items: center; gap: 18px; padding: 0 16px 0 24px; min-height: 52px; border-radius: 0 999px 999px 0; color: var(--gc-text); font-weight: 500; }
.gc-nav > i { font-size: 1.3rem; width: 24px; text-align: center; color: var(--gc-muted); }
.gc-nav:hover { background: var(--gc-hover); color: var(--gc-text); }
.gc-nav.active { background: #e8f0fe; color: var(--gc-blue-d); }
.gc-nav.active > i { color: var(--gc-blue-d); }
.gc-course { gap: 14px; padding-left: 16px; min-height: 56px; }
.gc-course small { color: var(--gc-muted); font-weight: 400; }
.gc-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex-shrink: 0; font-size: .95rem; }
.gc-side-h { padding: 18px 24px 6px; font-size: .9rem; color: var(--gc-muted); font-weight: 500; border-top: 1px solid var(--gc-line); margin-top: 8px; }
.gc-side-sep { border-top: 1px solid var(--gc-line); margin: 8px 0; }
.gc-main { flex: 1; min-width: 0; }
.gc-backdrop { display: none; }
body.side-collapsed .gc-side { margin-left: calc(-1 * var(--gc-side-w)); }
@media (max-width: 991.98px) {
  .gc-side { position: fixed; z-index: 1040; left: 0; top: var(--gc-top-h); margin-left: calc(-1 * var(--gc-side-w)); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
  body.side-open .gc-side { margin-left: 0; }
  body.side-open .gc-backdrop { display: block; position: fixed; inset: var(--gc-top-h) 0 0 0; background: rgba(0,0,0,.3); z-index: 1035; }
}
.gc-flash { position: fixed; top: 76px; right: 16px; z-index: 1080; max-width: 440px; }
.gc-page { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }
.gc-page-wide { max-width: 1400px; margin: 0 auto; padding: 24px 20px 60px; }

/* ---------------- course tabs ---------------- */
.gc-tabs { border-bottom: 1px solid var(--gc-line); background: #fff; position: sticky; top: var(--gc-top-h); z-index: 1020; }
.gc-tabs-inner { display: flex; align-items: stretch; padding: 0 16px; overflow-x: auto; }
.gc-tab { padding: 0 20px; height: 48px; display: flex; align-items: center; color: var(--gc-muted); font-weight: 500; border-bottom: 4px solid transparent; border-radius: 4px 4px 0 0; white-space: nowrap; }
.gc-tab:hover { background: var(--gc-hover); color: var(--gc-text); }
.gc-tab.active { color: var(--gc-blue-d); border-bottom-color: var(--gc-blue-d); }

/* ---------------- home course cards ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course-card { border: 1px solid var(--gc-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; height: 300px; background: #fff; transition: box-shadow .15s; }
.course-card:hover { box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15); }
.course-card .cc-head { height: 108px; padding: 14px 96px 0 16px; color: #fff; position: relative; }
.course-card .cc-head a { color: #fff; }
.course-card .cc-name { font: 500 1.25rem/1.25 'Prompt', sans-serif; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .cc-name:hover { text-decoration: underline; }
.course-card .cc-sec { font-size: .9rem; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card .cc-teacher { font-size: .88rem; opacity: .95; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card .cc-av { position: absolute; right: 16px; bottom: -38px; border: 3px solid #fff; border-radius: 50%; }
.course-card .cc-body { flex: 1; padding: 44px 16px 8px; overflow: hidden; }
.course-card .cc-due { font-size: .85rem; color: var(--gc-muted); }
.course-card .cc-due a { color: var(--gc-text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-card .cc-due a:hover { text-decoration: underline; }
.course-card .cc-foot { border-top: 1px solid var(--gc-line); display: flex; justify-content: flex-end; gap: 4px; padding: 4px 8px; }

/* ---------------- banner ---------------- */
.gc-banner { border-radius: 10px; min-height: 240px; color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.gc-banner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); }
.gc-banner::before { content: ''; position: absolute; right: 120px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); }
.gc-banner h1 { font-size: 2.1rem; font-weight: 500; margin: 0; position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.gc-banner .sub { font-size: 1.15rem; position: relative; z-index: 1; opacity: .95; }
.gc-box { border: 1px solid var(--gc-line); border-radius: 10px; background: #fff; }
.gc-box-h { padding: 14px 16px 6px; font-weight: 500; }
.code-big { font: 500 1.6rem 'Prompt', monospace; color: var(--gc-blue-d); letter-spacing: .04em; }

/* ---------------- stream ---------------- */
.post { border: 1px solid var(--gc-line); border-radius: 10px; background: #fff; margin-bottom: 16px; }
.post:hover { box-shadow: 0 1px 2px rgba(60,64,67,.2); }
.post-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.post-body { padding: 0 16px 14px; }
.post-item { display: flex; gap: 16px; align-items: center; padding: 14px 16px; color: var(--gc-text); border-radius: 10px; }
.post-item:hover { background: #f8f9fa; color: var(--gc-text); }
.post-foot { border-top: 1px solid var(--gc-line); padding: 10px 16px; }
.comment { display: flex; gap: 12px; padding: 8px 0; }
.comment .who { font-weight: 600; font-size: .9rem; }
.comment .when { font-size: .8rem; color: var(--gc-muted); margin-left: 6px; }
.compose-fake { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--gc-muted); cursor: pointer; border-radius: 10px; }
.compose-fake:hover { color: var(--gc-blue-d); }
.item-ico { border-radius: 50%; display: inline-grid; place-items: center; color: #fff; flex-shrink: 0; font-size: 1.15rem; }

/* ---------------- classwork list ---------------- */
.cw-topic { font: 400 1.75rem 'Prompt', sans-serif; color: var(--gc-blue-d); border-bottom: 1px solid var(--gc-blue-d); padding-bottom: 8px; margin: 32px 0 6px; display: flex; align-items: center; }
.cw-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--gc-line); color: var(--gc-text); border-radius: 8px; }
.cw-row:hover { background: var(--gc-hover); color: var(--gc-text); }
.cw-row .ttl { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-row .meta { font-size: .85rem; color: var(--gc-muted); white-space: nowrap; }
.cw-row.draft .ttl { color: var(--gc-muted); font-style: italic; }
.chip-btn { border: 1px solid var(--gc-line); background: #fff; color: var(--gc-text); border-radius: 8px; padding: 6px 12px; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.chip-btn:hover { background: var(--gc-hover); color: var(--gc-text); }
.chip-btn.active { background: #e8f0fe; border-color: #e8f0fe; color: var(--gc-blue-d); font-weight: 600; }
.chip-btn .n { font-size: .78rem; background: rgba(0,0,0,.06); border-radius: 999px; padding: 0 7px; }

/* ---------------- item page ---------------- */
.item-head { display: flex; gap: 18px; padding-bottom: 14px; border-bottom: 2px solid; margin-bottom: 18px; }
.item-head h1 { font-size: 2rem; font-weight: 400; margin: 0 0 4px; }
.work-card { border-radius: 10px; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15); padding: 18px; background: #fff; }
.work-card h2 { font-size: 1.3rem; font-weight: 400; }
.state-turned_in, .state-graded { color: #188038; }
.state-missing, .state-revise { color: #d93025; }
.state-late { color: #e37400; }
.att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.att-card { display: flex; align-items: stretch; border: 1px solid var(--gc-line); border-radius: 10px; overflow: hidden; height: 74px; background: #fff; }
.att-card:hover { box-shadow: 0 1px 3px rgba(60,64,67,.25); }
.att-thumb { width: 104px; flex-shrink: 0; display: grid; place-items: center; background: #f1f3f4; border-right: 1px solid var(--gc-line); font-size: 2rem; overflow: hidden; }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-body { flex: 1; min-width: 0; padding: 12px 14px; color: var(--gc-text); }
.att-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-body:hover .att-title { text-decoration: underline; color: var(--gc-blue-d); }
.att-sub { font-size: .8rem; color: var(--gc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-x { border: 0; background: none; width: 44px; color: var(--gc-muted); font-size: 1.2rem; }
.att-x:hover { color: #d93025; background: #fce8e6; }
.yt-embed { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- editor (create item) ---------------- */
.ed-bar { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--gc-line); display: flex; align-items: center; gap: 12px; padding: 8px 16px; height: 64px; }
.ed-wrap { display: flex; min-height: calc(100vh - 64px); }
.ed-main { flex: 1; background: #f8f9fa; padding: 24px; min-width: 0; }
.ed-side { width: 380px; flex-shrink: 0; border-left: 1px solid var(--gc-line); padding: 24px; background: #fff; }
@media (max-width: 991.98px) { .ed-wrap { flex-direction: column; } .ed-side { width: auto; border-left: 0; border-top: 1px solid var(--gc-line); } }
.ed-card { background: #fff; border: 1px solid var(--gc-line); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.fill-input { background: #f1f3f4 !important; border: 0 !important; border-bottom: 1px solid #80868b !important; border-radius: 4px 4px 0 0 !important; padding: 22px 16px 8px; position: relative; }
.fill-input:focus { border-bottom: 2px solid var(--gc-blue) !important; box-shadow: none !important; }
.fill-wrap { position: relative; }
.fill-wrap > label { position: absolute; top: 6px; left: 16px; font-size: .78rem; color: var(--gc-muted); z-index: 2; }
.ed-side label.lbl { font-size: .9rem; font-weight: 500; color: var(--gc-text); margin: 18px 0 6px; display: block; }
.ed-side > label.lbl:first-child { margin-top: 0; }
.att-btns { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.att-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; color: var(--gc-muted); cursor: pointer; background: none; border: 0; }
.att-btn .c { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gc-line); display: grid; place-items: center; font-size: 1.4rem; background: #fff; transition: .15s; }
.att-btn:hover .c { background: var(--gc-hover); }
.assign-box { max-height: 280px; overflow-y: auto; border: 1px solid var(--gc-line); border-radius: 8px; }
.assign-box label { display: flex; align-items: center; gap: 10px; padding: 6px 12px; cursor: pointer; }
.assign-box label:hover { background: var(--gc-hover); }

/* ---------------- rich text ---------------- */
.rt-editor { background: #f1f3f4; border-radius: 4px 4px 0 0; border-bottom: 1px solid #80868b; }
.rt-editor:focus-within { border-bottom: 2px solid var(--gc-blue); }
.rt-area { padding: 14px 16px; outline: none; }
.rt-area:empty::before { content: attr(data-placeholder); color: var(--gc-muted); }
.rt-tools { display: flex; gap: 2px; padding: 4px 8px 6px; }
.rt-tools button { border: 0; background: none; width: 34px; height: 34px; border-radius: 6px; color: var(--gc-text); font-size: 1.1rem; }
.rt-tools button:hover { background: #e2e5e9; }
.rt { word-break: break-word; }
.rt ul, .rt ol { padding-left: 1.4rem; margin-bottom: .5rem; }

/* ---------------- people ---------------- */
.ppl-h { display: flex; align-items: center; border-bottom: 1px solid var(--gc-blue-d); padding: 26px 0 10px; margin-bottom: 4px; }
.ppl-h h2 { font: 400 2rem 'Prompt', sans-serif; color: var(--gc-blue-d); margin: 0; }
.ppl-row { display: flex; align-items: center; gap: 16px; padding: 10px 8px; border-bottom: 1px solid var(--gc-line); }
.ppl-row:last-child { border-bottom: 0; }

/* ---------------- grades table ---------------- */
.gb-wrap { overflow: auto; max-height: calc(100vh - 210px); border: 1px solid var(--gc-line); border-radius: 10px; }
.gb { border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.gb th, .gb td { border-right: 1px solid var(--gc-line); border-bottom: 1px solid var(--gc-line); padding: 8px 10px; background: #fff; white-space: nowrap; }
.gb thead th { position: sticky; top: 0; z-index: 2; background: #fff; vertical-align: bottom; font-weight: 500; }
.gb thead th.it { min-width: 120px; max-width: 140px; white-space: normal; }
.gb thead th.it a { color: var(--gc-blue-d); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; }
.gb .stk { position: sticky; left: 0; z-index: 1; min-width: 240px; }
.gb thead .stk { z-index: 3; }
.gb td.sc { text-align: center; min-width: 90px; }
.gb td.sc input { width: 64px; text-align: center; border: 1px solid transparent; border-radius: 6px; padding: 3px; background: transparent; }
.gb td.sc input:hover { border-color: var(--gc-line); }
.gb td.sc input:focus { border-color: var(--gc-blue); outline: none; background: #fff; }
.gb td.sc.missing input::placeholder { color: #d93025; }
.gb td.sum, .gb th.sum { background: #f8f9fa; font-weight: 600; text-align: center; }
.gb td.grade { background: #e8f0fe; font-weight: 700; color: var(--gc-blue-d); text-align: center; font-size: 1rem; }
.gb .cat { font-size: .75rem; color: var(--gc-muted); font-weight: 400; }
.sc-state { font-size: .72rem; display: block; }

/* ---------------- avatars / misc ---------------- */
.avatar-img { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eee; }
.avatar-txt { border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; color: #fff; font-weight: 500; }
.empty-state { text-align: center; padding: 56px 16px; color: var(--gc-muted); }
.empty-state > i { font-size: 3.4rem; color: #bdc1c6; display: block; margin-bottom: 10px; }
.stat-mini { border: 1px solid var(--gc-line); border-radius: 10px; padding: 12px 16px; background: #fff; }
.stat-mini .n { font: 500 1.6rem 'Prompt', sans-serif; color: var(--gc-text); line-height: 1.1; }
.stat-mini .l { font-size: .85rem; color: var(--gc-muted); }
.table-clean th { font-weight: 500; color: var(--gc-muted); font-size: .88rem; background: #f8f9fa; }
.tick-group { display: inline-flex; gap: 6px; }
.tick { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 46px; border-radius: 10px; cursor: pointer; border: 2px solid #e1e5ee; background: #fff; color: #9aa3b8; font-size: .7rem; line-height: 1.1; margin: 0; }
.tick i { font-size: 1.25rem; }
.btn-check:checked + .tick-ok { background: #188038; border-color: #188038; color: #fff; }
.btn-check:checked + .tick-no { background: #d93025; border-color: #d93025; color: #fff; }
.btn-check:checked + .tick-wait { background: #fef7e0; border-color: #f9ab00; color: #b06000; }
.checkin-code { font: 500 3rem 'Prompt', monospace; letter-spacing: .35em; color: var(--gc-blue-d); }
.save-bar { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,.97); border-top: 1px solid var(--gc-line); padding: 10px 16px; box-shadow: 0 -4px 14px rgba(0,0,0,.05); }

/* ---------------- login ---------------- */
.login-split { display: flex; min-height: 100vh; }
.login-hero { flex: 1.1; position: relative; color: #fff; background: linear-gradient(135deg, #188038 0%, #1a73e8 100%); overflow: hidden; }
.login-hero::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.08); right: -160px; top: -160px; }
.login-hero::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); left: -120px; bottom: -120px; }
.login-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 44px 56px; height: 100%; }
.login-form-side { flex: 1; display: grid; place-items: center; padding: 32px 20px; }
.login-box { width: 100%; max-width: 400px; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9aa0a6; pointer-events: none; }
.input-icon .form-control { padding-left: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #9aa0a6; padding: 6px 10px; }
.hero-feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.hero-feature i { font-size: 1.4rem; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex-shrink: 0; }

@media print { .no-print { display: none !important; } .gc-side { display: none; } .gb-wrap { max-height: none; overflow: visible; } }
.min-w-0 { min-width: 0; }

/* ---------------- ครอบภาพหัวชั้นเรียน ---------------- */
.banner-prev { position: relative; aspect-ratio: 4 / 1; border-radius: 10px; overflow: hidden; color: #fff; padding: 0 3%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 2.5%; }
.banner-prev .bp-t { font-size: clamp(1rem, 3vw, 1.6rem); font-weight: 500; position: relative; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.25); line-height: 1.25; }
.banner-prev .bp-s { font-size: clamp(.8rem, 1.8vw, 1rem); position: relative; z-index: 2; opacity: .95; min-height: 1em; }
.banner-prev .bp-badge { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(0,0,0,.6); border-radius: 20px; padding: 3px 10px; font-size: .78rem; }
.crop-live .crop-pv { position: absolute; inset: 0; overflow: hidden; }
.crop-live .crop-ov { position: absolute; inset: 0; z-index: 1; background: var(--crop-grad, transparent); }
.crop-stage { height: min(48vh, 440px); background: #202124; border-radius: 8px; overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; }
.crop-tools .btn { min-width: 38px; }
.crop-live { max-width: 520px; margin: 0 auto; }
.crop-live .bp-t { font-size: 1.05rem; } .crop-live .bp-s { font-size: .8rem; }

/* ---------------- Google / LINE ---------------- */
.login-or { display: flex; align-items: center; gap: 12px; color: #80868b; font-size: .85rem; margin: 22px 0 14px; }
.login-or::before, .login-or::after { content: ''; flex: 1; border-top: 1px solid var(--gc-line); }
.btn-oauth { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; border: 1px solid transparent; }
.btn-oauth.btn-lg { font-size: 1rem; padding: 12px; }
.btn-oauth-google { background: #fff; color: #3c4043; border-color: #dadce0; }
.btn-oauth-google:hover { background: #f8f9fa; color: #202124; border-color: #c6c9cc; }
.btn-oauth-google .oauth-logo { color: #4285f4; }
.btn-oauth-line { background: #06c755; color: #fff; }
.btn-oauth-line:hover { background: #05b34c; color: #fff; }
.oauth-logo { font-size: 1.15em; line-height: 1; }
.linked-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--gc-line); }
.linked-row:first-of-type { border-top: 0; }
.linked-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.linked-ic-google { background: #e8f0fe; color: #1967d2; }
.linked-ic-line { background: #e6f9ee; color: #06c755; }
.min-w-0 { min-width: 0; }
.join-pending { border: 1px solid #ceead6; background: #f1f8f3; border-radius: 12px; padding: 14px 16px; }

/* โลโก้วิทยาลัย */
.gc-logo-img { width: auto; max-width: 180px; object-fit: contain; display: block; }
.gc-logo-img.mx-auto { margin-left: auto; margin-right: auto; }
.gc-logo-img.on-dark { background: #fff; border-radius: 10px; padding: 4px 6px; box-sizing: content-box; }
.login-box { position: relative; }
.login-back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--gc-muted, #5f6368); text-decoration: none; margin-bottom: 1rem; padding: 4px 10px 4px 6px; border-radius: 999px; }
.login-back:hover { background: rgba(0,0,0,.05); color: var(--gc-text, #202124); }
