/* =================== Common page bits =================== */
.page-card { background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 28px 30px; position: relative; }
.page-title { font-size: 36px; font-weight: 800; color: var(--text); letter-spacing: -.01em; line-height: 1.2; display: flex; align-items: center; gap: 12px; }
.page-title .leaf { width: 40px; flex-shrink: 0; }
.page-sub { color: var(--text-2); font-size: 17px; margin-top: 6px; }
.state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 20px; }
.state img { width: 180px; aspect-ratio: 1536/1024; object-fit: contain; }
.state h3 { font-size: 20px; color: var(--navy); }
.state p { color: var(--text-2); max-width: 420px; }
.state__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.state__icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-600); }
.state__icon svg { width: 30px; height: 30px; }
.state__icon--error { background: var(--red-50); color: var(--red); }

/* Flashcard illustration (trang trí) */
.flash { position: relative; width: 210px; height: 150px; margin: 0 auto; }
.flash__card { position: absolute; inset: 0; border-radius: 16px; background: #fff; border: 1px solid #E1ECF7; box-shadow: 0 10px 24px rgba(34,93,150,.12); }
.flash__card:nth-child(1) { transform: rotate(-12deg) translate(-26px, 8px); background: #F1F7FE; }
.flash__card:nth-child(2) { transform: rotate(-5deg) translate(-12px, 4px); background: #F7FBFF; }
.flash__card--main { transform: rotate(-6deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px; overflow: hidden; }
.flash__hz { font-family: var(--font-cn); font-size: 46px; font-weight: 600; color: #1E5FD6; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flash__py { color: var(--navy); font-weight: 600; font-size: 17px; }
.flash__vi { color: var(--text-2); font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sparkle { position: absolute; width: 18px; height: 18px; color: #F6C343; }

/* =================== Home =================== */
.home-hero { position: relative; overflow: hidden; border-radius: 26px; min-height: 280px; padding: 44px 48px; display: flex; align-items: center;
  background:
    radial-gradient(420px 220px at 78% 60%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(600px 300px at 100% 0%, #CFE8FF, transparent 70%),
    linear-gradient(100deg, #EAF5FF 0%, #DCEFFF 55%, #CBE7FF 100%);
  border: 1px solid #D6E9FA; box-shadow: var(--shadow); }
.home-hero__text { position: relative; z-index: 2; max-width: 560px; }
.home-hero__hello { color: var(--text-2); font-size: 22px; }
.home-hero__title { font-size: 46px; line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.home-hero__title em { font-style: normal; color: #1A62E0; }
.home-hero__slogan { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-2); font-size: 19px; }
.home-hero__slogan span.lf { width: 26px; display: inline-block; }
.home-hero__quote { margin-top: 18px; font-size: 22px; line-height: 1.3; }
.home-hero__art { position: absolute; right: 24px; bottom: -8px; top: 0; width: 46%; max-width: 560px; z-index: 1; pointer-events: none; }
.home-hero__art img { position: absolute; right: 0; bottom: 0; height: 110%; width: auto; max-width: none; object-fit: contain; }
.home-hero__hills { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 0; pointer-events: none; }
.home-hero__hills svg { width: 100%; height: 100%; display: block; }
.home-hero .flash { position: absolute; left: 4%; bottom: 36px; transform: scale(.8); transform-origin: left bottom; }

.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fcard { position: relative; overflow: hidden; background: rgba(255,255,255,.94); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.fcard__head { display: flex; gap: 18px; align-items: flex-start; }
.fcard__icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #E4F1FD; color: var(--blue-600); flex-shrink: 0; }
.fcard__icon svg { width: 40px; height: 40px; }
.fcard__title { font-size: 28px; font-weight: 700; color: var(--navy); }
.fcard__desc { color: var(--text-2); font-size: 16.5px; margin-top: 4px; }
.fcard__go { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fcard__go:hover { background: var(--blue-50); }
.fcard__go svg { width: 22px; height: 22px; }
.fcard__art { position: relative; min-height: 170px; display: flex; align-items: center; justify-content: center; }
.fcard__art-note { position: absolute; right: 4%; top: 18%; font-size: 21px; line-height: 1.25; transform: rotate(-6deg); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; background: #F2F8FE; border-radius: 18px; padding: 18px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 0 12px; }
.stat + .stat { border-left: 1px solid #DDE9F5; }
.stat__icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat__icon svg { width: 28px; height: 28px; }
.stat__icon--violet { background: #ECE8FD; color: #6A55D8; }
.stat__icon--blue { background: #E1F0FD; color: var(--blue-600); }
.stat__num { font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat__label { color: var(--text-2); font-size: 15.5px; }
.count-pick { background: #F2F8FE; border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.count-pick label { color: var(--text-2); font-size: 15.5px; }
.fcard .btn--lg { min-height: 64px; font-size: 20px; }
.fcard .btn--lg .end { margin-left: auto; }

/* =================== Vocabulary list =================== */
.vl-head { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 32px; min-height: 140px; display: flex; align-items: center; gap: 24px;
  background: linear-gradient(100deg, #F4F9FF 0%, #E9F3FE 60%, #E1EFFD 100%); border: 1px solid #DDEBF8; }
.vl-head__text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.vl-head__art { position: relative; width: 300px; height: 120px; flex-shrink: 0; }
.vl-head__art .flash { position: absolute; left: 0; top: -6px; transform: scale(.66); transform-origin: left top; }
.note-paper { position: absolute; background: #FFF9E8; border-radius: 4px; box-shadow: 0 8px 18px rgba(80,60,20,.12); padding: 16px 14px; font-size: 15px; line-height: 1.3; text-align: center; color: #3B5A86; transform: rotate(-4deg); }
.note-paper::before { content: ""; position: absolute; top: -8px; left: 50%; width: 40px; height: 16px; margin-left: -20px; background: rgba(240, 220, 170, .8); transform: rotate(-3deg); }
.vl-head__art .note-paper { right: 0; top: 0; width: 132px; }
.vl-head .btn { flex-shrink: 0; }
.vl-body { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 240px 220px; gap: 16px; }
.toolbar .input, .toolbar .select { min-height: 54px; }
.chips-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chips-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-row .icon-btn { border: 1px solid var(--border); background: #fff; flex-shrink: 0; }
.chips-scroll .chip.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.vtable { width: 100%; border-collapse: collapse; min-width: 1080px; font-size: 15.5px; }
.vtable th { text-align: left; font-weight: 600; color: var(--text); background: #F3F8FE; padding: 14px 12px; white-space: nowrap; }
.vtable td { padding: 10px 12px; border-top: 1px solid #EDF3F9; vertical-align: middle; }
.vtable tbody tr:hover { background: #F9FCFF; }
.vtable tbody tr.is-selected { background: #F1F8FF; }
.vtable .c-check { width: 52px; text-align: center; }
.vtable .c-num { width: 44px; color: var(--text-2); }
.vtable .c-img { width: 84px; }
.vtable .c-hz { font-size: 22px; }
.vtable .c-tags { max-width: 260px; }
.vtable .c-tags > div { display: flex; flex-wrap: wrap; gap: 6px; }
.vtable .c-mean { max-width: 240px; }
.vtable .c-act { white-space: nowrap; width: 1%; }
.vtable .c-note { width: 170px; max-width: 170px; }
.note-cell { display: flex; align-items: center; gap: 2px; min-width: 0; }
.note-cell__text { min-width: 0; white-space: nowrap; color: var(--text-2); font-size: 14.5px; }
.vtable .note-cell__eye { width: 32px; height: 32px; flex-shrink: 0; }
.vtable .note-cell__eye svg { width: 20px; height: 20px; }
.note-view { display: flex; flex-direction: column; gap: 14px; }
.note-view__word { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--blue-50); border-radius: 12px; color: var(--text); }
.note-view__word .hanzi { font-size: 26px; }
.note-view__text { color: var(--text); font-size: 16px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.vtable .c-act .icon-btn { width: 36px; height: 36px; }
.thumb { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; background: #EEF5FC; }
.thumb--empty { display: flex; align-items: center; justify-content: center; color: #A6BBD4; }
.thumb--empty svg { width: 24px; height: 24px; }
.star-btn svg { width: 24px; height: 24px; }
.vl-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vl-foot__sel { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager button { min-width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; font-weight: 600; color: var(--text); font-size: 16px; }
.pager button:hover:not(:disabled) { background: var(--blue-50); }
.pager button.is-current { background: var(--blue); color: #fff; }
.pager button.pager__nav { border: 1px solid var(--border); background: #fff; color: var(--blue-600); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager button svg { width: 20px; height: 20px; vertical-align: middle; }
.pager__gap { color: var(--text-3); padding: 0 4px; }
.skel-row td { padding: 16px 12px; }

/* =================== Vocabulary form =================== */
.vf-card { display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 28px; padding: 28px 30px; }
.vf-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.vf-back { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); align-self: flex-start; }
.vf-back svg { width: 22px; height: 22px; color: var(--blue-600); }
.vf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vf-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.vf-image { border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.dropzone { position: relative; border: 2px dashed #A9D0F5; border-radius: 14px; background: #F7FBFF; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.is-over { background: #EEF6FF; border-color: var(--blue); }
.dropzone > svg { width: 64px; height: 64px; color: var(--blue); }
.dropzone strong { color: var(--blue-600); font-size: 18px; font-weight: 500; }
.dropzone span { color: var(--text-2); font-size: 14.5px; }
.dropzone.has-image { padding: 0; cursor: default; border-style: solid; overflow: hidden; background: #fff; }
.dropzone.has-image img { width: 100%; height: 230px; object-fit: contain; }
.img-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.img-actions .btn { flex-direction: column; gap: 6px; min-height: 84px; font-weight: 500; white-space: normal; text-align: center; line-height: 1.3; }
.img-actions .btn svg { width: 26px; height: 26px; }
.tip { display: flex; gap: 14px; padding: 16px 18px; background: #EFF6FE; border-radius: 14px; color: var(--text-2); font-size: 15px; }
.tip strong { display: block; color: var(--text); }
.tip__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tip__icon svg { width: 20px; height: 20px; }
.vf-actions { display: grid; grid-template-columns: 1fr 1.8fr; gap: 16px; margin-top: auto; }
.vf-actions .btn { min-height: 62px; font-size: 19px; }

/* Tag picker */
.tagpick { position: relative; max-width: 360px; }
.tagpick__btn { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left; padding: 8px 44px 8px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; position: relative; }
.tagpick__btn:hover { border-color: var(--border-strong); }
.tagpick__btn[aria-expanded="true"] { border-color: var(--blue); box-shadow: var(--focus); }
.tagpick__btn > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--blue-600); }
.tagpick__ph { color: var(--text-2); font-size: 15.5px; }
.tagpick__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,60,110,.16); padding: 10px; max-height: 320px; overflow: auto; }
.tagpick__opt { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.tagpick__opt:hover { background: var(--blue-50); }
.tagpick__new { display: flex; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border); }
.tagpick__new .input { min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
.tag-x { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; display: inline-flex; }
.tag-x svg { width: 14px; height: 14px; }

/* =================== Review setup =================== */
.rs-card { padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.rs-head { display: flex; gap: 18px; align-items: flex-start; padding: 0 6px 6px; }
.rs-head__icon { width: 56px; height: 56px; border-radius: 50%; background: #E4F1FD; color: var(--blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rs-head__icon svg { width: 28px; height: 28px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.step__title { font-size: 21px; font-weight: 600; color: var(--text); }
.step__desc { color: var(--text-2); font-size: 15.5px; margin-top: 2px; }
.step__content { margin-top: 16px; }
.step--inline { align-items: center; }
.step--inline .step__row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; }
.chip-grid .chip { width: 100%; padding: 0 10px; }
.chip-grid--counts { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mode { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 124px; padding: 14px 10px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; text-align: center; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s; }
.mode:hover { border-color: #A9D0F5; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode__icon { color: var(--blue-600); height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; gap: 4px; }
.mode__icon svg { width: 26px; height: 26px; }
.mode__icon .hz { font-family: var(--font-cn); color: var(--red); font-size: 20px; }
.mode__label { font-size: 15px; line-height: 1.3; }
.mode__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B8CBE0; margin-top: 4px; }
.mode.is-selected { border-color: var(--blue); background: #F2F8FF; color: var(--text); }
.mode.is-selected .mode__radio { display: none; }
.mode.is-selected::after { content: ""; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.mode:has(input:focus-visible) { box-shadow: var(--focus); }

.summary { display: flex; flex-direction: column; gap: 20px; }
.sum-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.sum-row svg { width: 28px; height: 28px; color: var(--navy); margin-top: 2px; }
.sum-row__label { color: var(--text-2); font-size: 15.5px; }
.sum-row__value { color: var(--blue-600); font-weight: 600; font-size: 18px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sum-row__value .tag { font-size: 14px; }
.sum-quote { border-top: 1px solid var(--border); padding-top: 18px; text-align: center; font-size: 22px; line-height: 1.35; transform: rotate(-3deg); }
.resume { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #FFF8EA; border: 1px solid #FBE3B4; flex-wrap: wrap; }
.resume__text { flex: 1; min-width: 220px; color: #6B4B0E; }
.resume__text strong { display: block; color: #3F2C05; }

/* =================== Review session =================== */
.qs-card { padding: 30px 34px; display: flex; flex-direction: column; gap: 22px; }
.qs-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.qs-top h1 { font-size: 34px; font-weight: 700; }
.qs-progress { width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.qs-progress .progress { width: 100%; }
.qs-count { font-size: 18px; color: var(--text-2); }
.qs-count strong { color: var(--text); }
.q-prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 0; }
.q-img { width: 240px; height: 200px; object-fit: contain; margin-bottom: 8px; border-radius: 14px; }
.q-big { font-size: 64px; line-height: 1.15; }
.q-big.hanzi { font-weight: 600; }
.q-vi { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.q-py { font-size: 30px; }
.q-sub { font-size: 20px; color: var(--text-2); }
.q-type { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue-600); background: var(--blue-50); padding: 4px 12px; border-radius: 99px; }
.q-prompt--compact { padding: 26px 0 10px; }
.q-input { min-height: 72px; font-size: 20px; padding: 0 22px; border-radius: 14px; }
.q-input.hanzi-input { font-family: var(--font-cn); }
.q-actions { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; }
.q-actions .btn { min-height: 64px; font-size: 19px; font-weight: 500; }
.q-actions--2 { grid-template-columns: 1fr 1fr; }
.q-hint { text-align: center; color: var(--text-3); font-size: 13.5px; margin-top: -10px; }

.fb { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.fb--wrong { background: linear-gradient(180deg, #FFEDEE 0%, #FFF7F7 100%); border: 1px solid #FBDADC; }
.fb--right { background: linear-gradient(180deg, #E4FAF0 0%, #F4FDF9 100%); border: 1px solid #C8F0DE; }
.fb__head { display: flex; gap: 18px; align-items: center; padding: 4px 8px; }
.fb__badge { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.fb__badge svg { width: 30px; height: 30px; stroke-width: 2.6; }
.fb--wrong .fb__badge { background: #EC2A33; }
.fb--right .fb__badge { background: var(--green); }
.fb__title { font-size: 26px; font-weight: 700; }
.fb--wrong .fb__title { color: #D0202A; }
.fb--right .fb__title { color: var(--green-700); }
.fb__sub { color: var(--text-2); font-size: 17px; }
.ans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: rgba(255,255,255,.6); border-radius: 14px; padding: 10px; }
.ans { position: relative; border-radius: 14px; background: #fff; border: 1px solid #F6DCDD; padding: 46px 16px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 200px; }
.ans--mine { background: #FFF5F5; }
.fb--right .ans { border-color: #CDEFDF; }
.ans__label { position: absolute; top: 12px; left: 12px; font-size: 14.5px; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: #FFE6E7; color: #D0202A; }
.fb--right .ans__label { background: var(--green-100); color: var(--green-700); }
.ans img { width: 130px; height: 110px; object-fit: contain; margin-bottom: 4px; }
.ans .hanzi { font-size: 40px; line-height: 1.2; }
.ans .pinyin { font-size: 21px; }
.ans__vi { font-size: 21px; color: var(--text); }
.ans__raw { font-size: 24px; color: var(--text); word-break: break-word; }
.ans__raw.empty { color: var(--text-3); font-size: 17px; font-style: italic; }
.note-box { display: flex; gap: 16px; padding: 16px 20px; background: #EFF6FE; border-radius: 14px; }
.note-box strong { display: block; margin-bottom: 2px; }
.note-box p { color: var(--text-2); }
.note-box .tip__icon { width: 38px; height: 38px; }
.fb--right .ans-grid { grid-template-columns: 1fr; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 22px; font-size: 16.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; color: var(--text); }
.rail-progress { display: flex; flex-direction: column; gap: 12px; }
.rail-progress__count { font-size: 19px; }
.rail-progress__score { display: flex; gap: 16px; font-size: 15px; color: var(--text-2); }
.rail-progress__score b { font-weight: 700; }
.rail-progress__score .ok { color: var(--green-700); }
.rail-progress__score .no { color: var(--red); }

/* =================== Review result =================== */
.rr-card { padding: 30px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.celebrate { position: relative; width: 300px; aspect-ratio: 1536 / 1024; }
.celebrate img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.confetti { position: absolute; width: 12px; height: 12px; border-radius: 3px; z-index: 0; }
.welldone { position: absolute; left: 50%; bottom: 8px; z-index: 2; transform: translateX(-50%) rotate(-6deg); background: #fff; border-radius: 8px; box-shadow: 0 6px 14px rgba(0,0,0,.12); padding: 4px 14px; font-weight: 800; color: #1646B8; font-size: 18px; white-space: nowrap; }
.rr-title { font-size: 38px; font-weight: 800; color: var(--text); }
.rr-sub { color: var(--text-2); font-size: 20px; }
.rr-stats { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.rr-stat { border: 1px solid var(--border); border-radius: 14px; padding: 18px 10px; background: #fff; }
.rr-stat__num { font-size: 38px; font-weight: 700; line-height: 1.15; }
.rr-stat__label { color: var(--text-2); font-size: 17px; }
.rr-stat--total .rr-stat__num { color: var(--navy); }
.rr-stat--ok .rr-stat__num { color: var(--green-700); }
.rr-stat--no { border-color: #F7DADC; } .rr-stat--no .rr-stat__num { color: var(--red); }
.rr-stat--acc .rr-stat__num { color: var(--green-700); }
.rr-msg { width: 100%; display: flex; gap: 20px; align-items: flex-start; text-align: left; padding: 20px 24px; background: #F1F7FE; border-radius: 14px; }
.rr-msg__icon { width: 52px; height: 52px; border-radius: 50%; background: #FFF4DA; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-msg__icon svg { width: 30px; height: 30px; }
.rr-msg strong { display: block; font-size: 18px; margin-bottom: 4px; }
.rr-msg p { color: var(--text-2); font-size: 17px; }
.rr-cta { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.rr-cta .btn { min-height: 70px; font-size: 21px; font-weight: 500; }
.rr-cta .btn svg { width: 26px; height: 26px; }
.suggest { display: flex; flex-direction: column; }
.suggest__item { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 0; background: #fff; text-align: left; width: 100%; border-top: 1px solid var(--border); }
.suggest__item:first-child { border-top: 0; }
.suggest__item:hover:not(:disabled) { background: #F7FBFF; }
.suggest__item:disabled { cursor: not-allowed; opacity: .55; }
.suggest__item > svg:first-child { width: 34px; height: 34px; color: var(--blue-600); flex-shrink: 0; }
.suggest__item > svg:last-child { width: 24px; height: 24px; color: var(--blue-600); margin-left: auto; flex-shrink: 0; }
.suggest__item strong { display: block; font-size: 18px; font-weight: 600; color: var(--text); }
.suggest__item span { color: var(--text-2); font-size: 15.5px; }
.sticky-note { position: relative; margin: 30px auto 0; width: 270px; min-height: 250px; padding: 44px 28px 28px; background: #FFF8E4; box-shadow: 0 16px 30px rgba(80,60,20,.14); transform: rotate(-4deg); text-align: center; font-size: 27px; line-height: 1.4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.sticky-note::before { content: ""; position: absolute; top: -14px; left: 34px; width: 36px; height: 50px; background: rgba(240, 214, 160, .85); transform: rotate(-10deg); border-radius: 4px; }
.sticky-note svg { width: 36px; height: 36px; color: var(--blue-600); }
.wrong-list { width: 100%; text-align: left; }

/* =================== Settings =================== */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.set-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.set-card h2 { font-size: 22px; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.set-card h2 svg { width: 26px; height: 26px; color: var(--blue-600); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.set-row:first-of-type { border-top: 0; }
.set-row__text strong { display: block; }
.set-row__text span { color: var(--text-2); font-size: 14.5px; }
.profile { display: flex; gap: 16px; align-items: center; }
.profile .avatar { width: 64px; height: 64px; font-size: 22px; }

/* =================== Responsive pages =================== */
@media (max-width: 1440px) {
  .vf-card { grid-template-columns: minmax(0, 1fr) 380px; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1279px) {
  .home-hero__title { font-size: 38px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 200px 190px; }
  .vl-head__art { display: none; }
  .rr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcard__title { font-size: 24px; }
  .fcard__icon { width: 64px; height: 64px; }
}
@media (max-width: 1023px) {
  .home-grid, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .vf-card { grid-template-columns: minmax(0, 1fr); }
  .home-hero__art { width: 42%; opacity: .95; }
  .home-hero .flash { display: none; }
  .mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rr-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sticky-note { display: none; }
}
@media (max-width: 767px) {
  .page-card { padding: 20px 16px; }
  .page-title { font-size: 26px; }
  .page-sub { font-size: 15px; }
  .home-hero { padding: 26px 20px 150px; min-height: 0; }
  .home-hero__title { font-size: 30px; }
  .home-hero__hello { font-size: 17px; }
  .home-hero__slogan { font-size: 16px; }
  .home-hero__quote { font-size: 18px; }
  .home-hero__art { width: 70%; left: auto; top: auto; height: 170px; right: 0; }
  .fcard { padding: 18px; }
  .fcard__head { gap: 12px; }
  .fcard__icon { width: 52px; height: 52px; } .fcard__icon svg { width: 28px; height: 28px; }
  .fcard__title { font-size: 21px; }
  .fcard__art-note { display: none; }
  .stat-row { grid-template-columns: 1fr; gap: 14px; }
  .stat + .stat { border-left: 0; border-top: 1px solid #DDE9F5; padding-top: 14px; }
  .vl-head { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .vl-head .btn { width: 100%; }
  .vl-body { padding: 16px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .input-icon { grid-column: 1 / -1; }
  .vl-foot { flex-direction: column; align-items: stretch; }
  .vf-card { padding: 20px 16px; }
  .vf-row { grid-template-columns: 1fr; }
  .vf-actions { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .step__num { width: 34px; height: 34px; font-size: 16px; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qs-card { padding: 20px 16px; }
  .qs-top { flex-direction: column; gap: 12px; }
  .qs-top h1 { font-size: 26px; }
  .qs-progress { width: 100%; align-items: flex-start; }
  .q-big { font-size: 48px; }
  .q-vi { font-size: 30px; }
  .q-actions { grid-template-columns: 1fr 1fr; }
  .q-actions .q-check { grid-column: 1 / -1; order: -1; }
  .q-actions .btn { min-height: 54px; font-size: 16.5px; }
  .ans-grid { grid-template-columns: 1fr; }
  .fb__title { font-size: 22px; }
  .rr-card { padding: 22px 16px; }
  .rr-title { font-size: 28px; }
  .rr-sub { font-size: 16.5px; }
  .rr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-stat__num { font-size: 30px; }
  .rr-cta { grid-template-columns: 1fr; }
  .rr-cta .btn { min-height: 56px; font-size: 18px; }
  .celebrate { width: 220px; }
  .set-card { padding: 20px 16px; }
}

/* ---------- Vocabulary: bulk action toolbar ---------- */
.bulkbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.bulkbar__sel { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); cursor: pointer; min-width: 150px; }
.bulkbar__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.bulk-btn { background: #fff; color: var(--blue-600); border-color: var(--border-strong); position: relative; cursor: pointer; }
.bulk-btn:hover:not([aria-disabled="true"]) { background: var(--blue-50); border-color: #A9D3F8; }
.bulk-btn--danger { color: var(--red); }
.bulk-btn--danger:hover:not([aria-disabled="true"]) { background: var(--red-50); border-color: var(--red-100); }
/* Disabled: vẫn hiện icon + chữ, nhạt hơn, không bấm được. */
.bulk-btn[aria-disabled="true"] { opacity: 1; background: #F3F7FC; color: var(--text-3); border-color: var(--border); cursor: not-allowed; box-shadow: none; }
.bulk-btn[aria-disabled="true"]:active { transform: none; }
.bulk-btn.is-busy { cursor: progress; }
.bulk-btn.is-busy svg { visibility: hidden; }
.bulk-btn.is-busy::before { content: ""; position: absolute; left: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
/* Tooltip cho nút đang disabled */
.bulk-btn.has-tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 20; white-space: nowrap; padding: 7px 10px; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.3; pointer-events: none; opacity: 0; transition: opacity .12s; }
.bulk-btn.has-tip:hover::after, .bulk-btn.has-tip:focus-visible::after { opacity: 1; }
@media (max-width: 720px) {
  .bulkbar__actions { margin-left: 0; width: 100%; }
  .bulk-btn { flex: 1 1 auto; padding: 0 10px; }
  .bulk-btn.has-tip::after { white-space: normal; width: 200px; text-align: center; }
}

/* ---------- Share Vocabulary Modal ---------- */
.share-list { list-style: none; margin: 0 0 16px; padding: 4px; max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.share-list li { display: grid; grid-template-columns: minmax(64px, auto) minmax(70px, auto) 1fr; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 8px; }
.share-list li:nth-child(odd) { background: var(--bg); }
.share-list .hanzi { font-size: 18px; color: var(--text); }
.share-list .pinyin { color: var(--pinyin); }
.share-list__vi { color: var(--text-2); }
.share-fmt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.share-fmt__label { font-weight: 600; color: var(--text); }
.share-fmt__opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bulk-tags { max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px; }

/* ---------- Settings: tạo mật khẩu cho tài khoản Google ---------- */
.set-pw { display: grid; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.set-pw .set-row__text { display: flex; flex-direction: column; gap: 4px; }
.set-pw .set-row__text span { color: var(--text-2); }

/* =========================================================
   Ngữ pháp (Grammar)
   ========================================================= */
.icon-btn--danger { color: var(--red); }
.icon-btn--danger:hover:not(:disabled) { background: var(--red-50); }

/* Tabs: Tất cả / Đã lưu / Được chia sẻ */
.gl-views { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.gl-view { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid transparent; background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; }
.gl-view svg { width: 18px; height: 18px; }
.gl-view:hover { background: var(--blue-50); color: var(--blue-600); }
.gl-view.is-active { background: var(--blue-50); border-color: var(--blue); color: var(--blue-600); }
.gl-count { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.gl-count--alert { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; }
#gl-toolbar { grid-template-columns: minmax(0, 1fr) 220px auto; }
.gl-tags { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; min-width: 0; }
.gl-tags__label { font-weight: 700; color: var(--navy); white-space: nowrap; }
.chip__n { font-size: 12.5px; opacity: .75; margin-left: 2px; }
.gl-total { margin: 0 0 10px; }

/* Card grid */
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.gcard:hover { border-color: #A9D3F8; box-shadow: 0 8px 22px rgba(20, 90, 170, .08); }
.gcard__head { display: flex; align-items: flex-start; gap: 4px; }
.gcard__title { flex: 1; min-width: 0; font-size: 17px; line-height: 1.35; color: var(--navy); margin: 6px 0 0; overflow-wrap: anywhere; }
.gcard__title a { color: inherit; text-decoration: none; }
.gcard__title a:hover { color: var(--blue-600); }
.gcard__structure { font-family: var(--font-cn), var(--font); background: var(--bg); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 6px 10px; color: var(--blue-700); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.gcard__desc { margin: 0; color: var(--text-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gcard__meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-top: auto; }
.gcard__from { display: inline-flex; align-items: center; gap: 4px; color: var(--green-700); }
.gcard__from svg { width: 13px; height: 13px; }
.gbm svg, .gbm-btn svg { width: 22px; height: 22px; }
.gbm.is-saved, .gbm-btn.is-saved { color: var(--amber); }
.gcard .icon-btn { width: 36px; height: 36px; flex-shrink: 0; }

/* Lời mời được chia sẻ */
.ginvites { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ginvite { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; flex-wrap: wrap; }
.ginvite__icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue-600); flex-shrink: 0; }
.ginvite__icon svg { width: 22px; height: 22px; }
.ginvite__text { flex: 1; min-width: 220px; color: var(--text-2); }
.ginvite__text strong { color: var(--text); }
.ginvite__title { font-weight: 700; color: var(--navy); font-size: 16px; margin: 2px 0; }
.ginvite__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Quản lý thẻ */
.tagmgr__new, .tagmgr__edit { display: flex; gap: 10px; }
.tagmgr__new .input, .tagmgr__edit .input { flex: 1; min-width: 0; }
.tagmgr { list-style: none; margin: 14px 0 0; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-md); max-height: 300px; overflow: auto; }
.tagmgr li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; }
.tagmgr li:nth-child(odd) { background: var(--bg); }
.tagmgr__name { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tagmgr__edit { flex: 1; }

/* Ô nhập thẻ */
.taginput { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; cursor: text; }
.taginput:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.taginput__chips { display: contents; }
.taginput__input { flex: 1; min-width: 160px; border: 0; outline: none; background: transparent; padding: 6px 2px; font-size: 15px; }
.taginput__chip { gap: 2px; }

/* Form */
.gf-card { display: grid; gap: 18px; max-width: 920px; }
.gf-examples { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.gf-examples > .btn { justify-self: start; }
.gex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gex { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; background: var(--bg); }
.gex__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gex__num { font-weight: 700; color: var(--navy); font-size: 14px; }
.gex__tools { display: flex; gap: 2px; }
.gex__tools .icon-btn { width: 34px; height: 34px; }
.gex__tools svg { width: 18px; height: 18px; }
.gex__fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.gex__fields label { display: grid; gap: 4px; min-width: 0; }
.gex__label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.gf-actions { max-width: 460px; justify-self: end; width: 100%; margin-top: 4px; }

/* Chi tiết */
.gd-invite { margin-bottom: 20px; }
.gd-card { display: grid; gap: 6px; }
.gd-head { display: flex; gap: 16px 24px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.gd-head__text { min-width: 0; flex: 1 1 320px; }
.gd-head .page-title { overflow-wrap: anywhere; }
.gd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.gd-meta { margin: 0; }
.gd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-actions .btn { --h: 42px; padding: 0 14px; font-size: 14.5px; }
.gd-del { color: var(--red); }
.gd-del:hover:not(:disabled) { background: var(--red-50); }
.gd-sec { padding: 16px 0; border-bottom: 1px solid var(--border); }
.gd-sec:last-child { border-bottom: 0; }
.gd-sec__title { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--navy); margin: 0 0 10px; flex-wrap: wrap; }
.gd-sec__title svg { width: 20px; height: 20px; color: var(--blue-600); }
.gd-sec__title .field__hint { font-weight: 500; margin-left: 4px; }
.gd-text { margin: 0; white-space: pre-line; color: var(--text); }
.gd-personal { background: var(--amber-50); border: 1px solid #FBE3B4; border-radius: 12px; padding: 12px 14px; }
.gd-structure { display: inline-block; font-family: var(--font-cn), var(--font); font-size: 18px; font-weight: 600; color: var(--blue-700); background: var(--blue-50); border: 1px dashed #A9D3F8; border-radius: 12px; padding: 10px 16px; overflow-wrap: anywhere; }
.gd-examples { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.gd-examples li::marker { color: var(--text-3); font-weight: 600; }
.gd-ex__zh { font-size: 20px; color: var(--text); }
.gd-ex__py { color: var(--pinyin); }
.gd-ex__vi { color: var(--text-2); }
.gd-notes { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Share */
.gshare-block { margin-top: 18px; display: grid; gap: 8px; }
.gshare-sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gshare-sent li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.gshare-sent__email { overflow-wrap: anywhere; min-width: 0; }
.gshare-status { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.gshare-status--pending { background: var(--amber-50); color: #B26A00; }
.gshare-status--accepted { background: var(--green-50); color: var(--green-700); }
.gshare-status--rejected { background: var(--red-50); color: var(--red); }
.gshare-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.gshare-results li { display: flex; gap: 8px; align-items: flex-start; }
.gshare-results svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.gshare-results .is-ok { color: var(--green-700); }
.gshare-results .is-err { color: var(--red); }
.gaccept-keep { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.gaccept-keep span { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Chuông thông báo */
.bell__badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.noti-list { max-height: 420px; overflow: auto; display: grid; gap: 4px; padding: 0 2px 4px; }
.noti { padding: 10px 12px; border-radius: 10px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.noti.is-unread { background: var(--blue-50); }
.noti__text strong { color: var(--text); }
.noti__title { font-weight: 700; color: var(--navy); margin-top: 2px; }
.noti__time { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.noti__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.noti__actions .btn { --h: 32px; padding: 0 10px; font-size: 13px; }
.noti__done { font-size: 12.5px; color: var(--text-3); }

@media (max-width: 767px) {
  #gl-toolbar { grid-template-columns: 1fr; }
  .gl-tags { flex-direction: column; align-items: stretch; gap: 8px; }
  .gl-grid { grid-template-columns: 1fr; }
  .gex__fields { grid-template-columns: 1fr; }
  .gf-actions { max-width: none; }
  .gd-actions .btn { flex: 1 1 auto; }
  .tagmgr__new { flex-direction: column; }
}
