/* TeachMaterial · Mudah: one top bar, four places, big pictures, big buttons. */
:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --ink: #1c1b19;
  --mute: #5f5b54;
  --line: #e6e1d8;
  --soft: #efebe3;
  --accent: #df5428;
  --accent-dark: #c2441c;
  --accent-soft: #fde8de;
  --ok: #2c7a4b;
  --ok-soft: #e4f3e9;
  --warn: #8a4f00;
  --warn-soft: #fff2d8;
  --head: 76px;
  --r: 20px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 8px 24px rgba(28, 27, 25, .06);
  --shadow-up: 0 2px 4px rgba(28, 27, 25, .06), 0 18px 40px rgba(28, 27, 25, .12);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* ---------------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--head);
  display: flex; align-items: center; gap: 24px; padding: 0 32px;
  background: rgba(247, 245, 240, .88); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; border-radius: 14px; }
.logo {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .02em;
}
.brand-t { display: flex; flex-direction: column; line-height: 1.2; }
.brand-t b { font-size: 18px; }
.brand-t small { font-size: 14px; color: var(--mute); }
.tabs {
  position: relative; display: flex; gap: 4px; margin: 0 auto; padding: 5px;
  background: var(--soft); border-radius: 18px;
}
.tabs a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 20px; border-radius: 14px;
  font-weight: 600; font-size: 17px; text-decoration: none; color: var(--mute);
  transition: color .25s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: #fff; }
.tab-pill {
  position: absolute; z-index: 0; top: 5px; left: 0; height: 50px; width: 0; border-radius: 14px;
  background: var(--ink); box-shadow: 0 6px 16px rgba(28, 27, 25, .22);
  transition: transform .45s var(--spring), width .45s var(--spring);
}
.av {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff9b6e, var(--accent) 62%, var(--accent-dark));
  color: #fff; font-weight: 800; font-size: 17px; flex: none;
}
.av.sm { width: 28px; height: 28px; font-size: 14px; }
.av.lg { width: 76px; height: 76px; font-size: 32px; box-shadow: 0 12px 30px rgba(223, 84, 40, .3); }
.count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
}
.bunyi {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 600;
}
.bunyi .off { display: none; }
.bunyi[aria-pressed="false"] .on { display: none; }
.bunyi[aria-pressed="false"] .off { display: block; }
.bunyi[aria-pressed="false"] { color: var(--mute); }

/* ---------------------------------------------------------------- page */
main { outline: none; }
.page { max-width: 1320px; margin: 0 auto; padding: 36px 32px 64px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.lead { margin-top: 6px; color: var(--mute); font-size: 18px; }

/* ---------------------------------------------------------------- buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, box-shadow .2s, color .2s;
}
.btn.big { min-height: 60px; padding: 0 28px; font-size: 19px; border-radius: 16px; }
.btn.wide { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(223, 84, 40, .28); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(28, 27, 25, .2); }
.btn.dark:hover { background: #000; }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #cfc8bb; }
.btn.done { background: var(--ok); color: #fff; box-shadow: 0 8px 20px rgba(44, 122, 75, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-weight: 600; font-size: 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip small { font-size: 14px; color: var(--mute); font-weight: 600; }
.chip:hover { border-color: #cfc8bb; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: #d9d4ca; }

/* ---------------------------------------------------------------- command grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; margin-top: 26px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .35s var(--spring), box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-up); }
.card .media { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.card .media > .frame img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .media > .frame img { transform: scale(1.03); }
.frame { position: relative; width: 100%; height: 100%; }
.frame.missing img, .frame.empty img { display: none; }
.frame.missing::after, .frame.empty::after {
  content: 'Gambar sedang disediakan'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--mute); font-size: 15px; background: repeating-linear-gradient(135deg, #f3f0ea 0 14px, #efebe3 14px 28px);
}
.frame.empty::after { content: 'Contoh akan datang'; }
.inset {
  position: absolute; left: 12px; bottom: 12px; width: 31%; aspect-ratio: 1; object-fit: contain; background: #fff;
  border-radius: 12px; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.card-b { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; }
.card-b b { font-size: 19px; line-height: 1.3; }
.card-b code, code.cmd { font-family: var(--mono); font-size: 15px; color: var(--accent-dark); font-weight: 600; }
.badge {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(223, 84, 40, .3);
}
.paper {
  position: absolute; inset: 0; padding: 18px 20px; background: #fffdf8;
  background-image: repeating-linear-gradient(#fffdf8 0 29px, #ece6da 29px 30px);
  font-size: 14px; line-height: 30px; color: #4b4740; white-space: pre-line; overflow: hidden;
}
.paper::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, #fffdf8); }
.paper-tag {
  position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.6;
}
.paper-tag .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- detail */
.back { margin-bottom: 10px; }
.detail-page { padding-top: 22px; }
.detail-page .title h1 { font-size: 30px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.detail-page .title .lead { font-size: 17px; margin-top: 4px; }
.detail-page .panel { gap: 18px; }
.detail-page .step-b { gap: 10px; }


.detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.showcase { position: sticky; top: calc(var(--head) + 20px); }
.show-frame {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 14px; box-shadow: var(--shadow);
}
.show-frame .frame img { width: 100%; max-height: calc(100vh - 250px); object-fit: contain; border-radius: 14px; margin: 0 auto; }
.show-frame .frame.missing { aspect-ratio: 3 / 2; }
.show-frame .zoom { position: absolute; right: 24px; top: 24px; }
.show-cap { margin-top: 12px; color: var(--mute); font-size: 16px; }
.ba { display: grid; grid-template-columns: 1fr auto 1.35fr; align-items: center; gap: 14px; }
.ba figure { margin: 0; }
.ba img { width: 100%; border-radius: 14px; max-height: calc(100vh - 340px); object-fit: contain; background: #f3f0ea; }
.ba figcaption { margin-top: 8px; font-weight: 700; font-size: 16px; text-align: center; }
.ba-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumbs button {
  width: 92px; aspect-ratio: 3 / 2; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 3px solid transparent; background: #f3f0ea; box-shadow: var(--shadow);
}
.thumbs button img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.semak { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--warn); }
.semak-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; }
.semak-row span { display: flex; align-items: center; gap: 10px; }
.semak p { margin-top: 10px; color: var(--ink); }
.big-paper {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px; box-shadow: var(--shadow);
  white-space: pre-wrap; font-size: 17px; line-height: 1.7; max-height: calc(100vh - 220px); overflow: auto;
}
.big-paper h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-bottom: 10px; white-space: normal; }

.panel { display: flex; flex-direction: column; gap: 22px; }
.kump { color: var(--mute); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.title h1 { margin-top: 4px; }
.title .cmd { font-size: 18px; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 18px;
}
.step h2 { font-size: 20px; line-height: 40px; }
.step-b { display: flex; flex-direction: column; gap: 12px; }
.field {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); font-size: 18px; font-weight: 600; transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.chips.small .chip { min-height: 44px; font-size: 15px; padding: 0 14px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; background: var(--soft); border-radius: 16px; }
.seg button {
  min-height: 50px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 17px;
  color: var(--mute); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.prompt {
  position: relative; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  font-size: 16px; line-height: 1.6; max-height: 132px; overflow: auto; color: #3d3a35;
}
.prompt.is-cmd { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--ink); }
.prompt mark { background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 1px 4px; font-weight: 700; }
.how { color: var(--mute); font-size: 16px; }
.how b { color: var(--ink); }
.tip-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--ok-soft); color: #1f4d33; font-size: 16px; }
.tip-box .ic { color: var(--ok); margin-top: 2px; }

/* ---------------------------------------------------------------- Puan Reza */
.reza-page { height: calc(100vh - var(--head)); display: grid; grid-template-rows: auto 1fr auto; max-width: 980px; margin: 0 auto; padding: 0 32px; }
.reza-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-size: 19px; line-height: 1.2; }
.who small { color: var(--mute); font-size: 15px; }
.msgs { overflow-y: auto; padding: 10px 4px 20px; display: flex; flex-direction: column; gap: 18px; }
.hello { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; }
.hello h1 { font-size: 30px; margin-top: 6px; }
.starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; width: 100%; }
.starter {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; text-align: left; box-shadow: var(--shadow);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.starter:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.starter .th { width: 76px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; flex: none; background: #f3f0ea; display: grid; place-items: center; color: var(--mute); }
.starter .th img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }
.starter b { display: block; font-size: 17px; line-height: 1.3; }
.msg { display: flex; gap: 12px; max-width: 100%; }
.msg.me { justify-content: flex-end; }
.bubble { padding: 14px 18px; border-radius: 20px; font-size: 17px; max-width: 78%; white-space: pre-wrap; }
.msg.me .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.me .bubble img { width: 220px; border-radius: 12px; margin-bottom: 8px; }
.msg.reza .body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.msg.reza .bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.result { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
.result .frame img { width: 100%; border-radius: 14px; cursor: zoom-in; }
.result .acts { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 4px 4px; }
.drawing {
  position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(110deg, #f3efe8 30%, #fdfbf7 50%, #f3efe8 70%); background-size: 220% 100%;
  animation: sheen 1.5s linear infinite;
}
.drawing svg { width: 120px; height: 90px; stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.drawing path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: sketch 2.4s ease-in-out infinite; }
.drawing p { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-weight: 700; color: var(--mute); }
.answer { background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; white-space: pre-wrap; font-size: 16px; line-height: 1.7; }
.composer-wrap { position: relative; padding: 8px 0 22px; }
.composer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 10px; padding: 10px;
  background: var(--card); border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.composer textarea {
  border: 0; outline: none; resize: none; background: transparent; min-height: 48px; max-height: 160px;
  padding: 11px 6px; font-size: 18px; line-height: 1.45;
}
.attach { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 2px 4px 4px; }
.attach img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.hint { margin-top: 8px; text-align: center; color: var(--mute); font-size: 15px; }
.hint code { font-family: var(--mono); font-weight: 600; color: var(--accent-dark); }
.slash {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 4px); max-height: 340px; overflow: auto; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-up);
}
.slash button {
  width: 100%; display: grid; grid-template-columns: 56px 170px 1fr; align-items: center; gap: 14px; min-height: 56px;
  padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font-size: 16px;
}
.slash button[aria-selected="true"], .slash button:hover { background: var(--soft); }
.slash .th { width: 56px; height: 40px; border-radius: 8px; overflow: hidden; background: #f3f0ea; display: grid; place-items: center; color: var(--mute); }
.slash .th img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
.slash .th .ic { width: 18px; height: 18px; }
.slash span { color: var(--mute); }

/* ---------------------------------------------------------------- tips */
.tips { columns: 2; column-gap: 22px; margin-top: 26px; }
.tip {
  break-inside: avoid; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.tip-h { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.tip h3 { font-size: 21px; line-height: 1.3; }
.tip-h img { width: 112px; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 12px; flex: none; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs div { padding: 12px 14px; border-radius: 14px; font-size: 16px; }
.vs small { display: block; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.vs .weak { background: var(--soft); color: var(--mute); }
.vs .strong { background: var(--ok-soft); color: #1f4d33; }
.tambah { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 14px; border: 2px dashed var(--line); }
.tambah p { flex: 1; font-size: 16px; }
.tambah small { display: block; font-weight: 800; font-size: 14px; color: var(--mute); }

/* ---------------------------------------------------------------- my pictures */
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 26px; }
.mine .card { cursor: default; }
.mine .card-b { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.mine .card-b div { min-width: 0; }
.mine .card-b b { font-size: 17px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { margin: 60px auto 0; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-state .ic.huge { width: 72px; height: 72px; stroke-width: 1.4; color: #b9b1a3; }

/* ---------------------------------------------------------------- lightbox, toast */
dialog#lb { border: 0; padding: 18px; border-radius: 26px; max-width: 92vw; max-height: 94vh; background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog#lb::backdrop { background: rgba(28, 27, 25, .55); backdrop-filter: blur(4px); }
dialog#lb img { max-width: calc(92vw - 36px); max-height: calc(94vh - 120px); border-radius: 14px; margin: 0 auto; }
.lb-bar { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 240%); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px;
  background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  transition: transform .45s var(--spring), opacity .25s; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { color: #7fe0a6; }

@keyframes sheen { to { background-position: -220% 0; } }
@keyframes sketch { 0% { stroke-dashoffset: 340; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 8px 20px rgba(223, 84, 40, .28); } 50% { box-shadow: 0 0 0 10px rgba(223, 84, 40, .18); } }
.pulse { animation: pulse 1.2s ease-in-out 3; }

@media (min-width: 1700px) {
  body { font-size: 18px; }
  .page { max-width: 1560px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- sign-in and live Puan Reza */
.masuk { margin-top: 40px; }
.masuk-f { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; text-align: left; }
.masuk-f label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.err { color: #a12d0f; background: var(--accent-soft); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.bubble.err { color: #a12d0f; background: var(--accent-soft); border-color: #f6cdbd; }
.top-acts { display: flex; align-items: center; gap: 10px; }
.nama { color: var(--mute); font-weight: 600; margin-right: 4px; }
.sikit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 4px 2px; }
.sikit span { color: var(--mute); font-weight: 700; font-size: 15px; margin-right: 2px; }
.sikit .chip { min-height: 44px; font-size: 15px; }
.mine .media img { cursor: zoom-in; }
.mine .card .media .frame img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.result .frame.loading { aspect-ratio: 3 / 2; border-radius: 14px; background: linear-gradient(110deg, #f3efe8 30%, #fdfbf7 50%, #f3efe8 70%); background-size: 220% 100%; animation: sheen 1.5s linear infinite; }
.result .frame.loading img { opacity: 0; }


/* TeachMaterial hotfix 2026-10-30: chat rows never shrink; the result picture frame takes its own height */
.msgs > * { flex-shrink: 0; }
.result .frame { height: auto; }
.result .acts { padding-top: 16px; }
