:root {
  --bg: #f5f7fb;
  --bg-soft: #e9eef7;
  --card: #ffffff;
  --border: #e4e9f2;
  --border-strong: #d2dae8;
  --text: #101828;
  --text-soft: #2e3a52;
  --muted: #5f6b83;
  --muted-2: #93a0b8;

  /* Mot mau thuong hieu duy nhat: xanh duong */
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-soft: #eaf1ff;

  /* Tuong thich nguoc: teal tro thanh indigo */
  --teal: var(--primary);
  --teal-600: var(--primary-600);
  --teal-soft: var(--primary-soft);

  /* Tile thong ke: nen pastel diu */
  --blue-tile: #e9effb;
  --blue-tile-ink: #1d4ed8;
  --amber-tile: #fdf3e3;
  --amber-tile-ink: #b45309;
  --green-tile: #e9f6ec;
  --green-tile-ink: #15803d;
  --red-tile: #fdeceb;
  --red-tile-ink: #b91c1c;

  --success: #15803d;
  --success-soft: #edf7f0;
  --danger: #b91c1c;
  --danger-soft: #fdf1f1;
  --warn: #b45309;
  --warn-soft: #fdf7ec;

  /* Rieng cho luong Claude (Organization ID): tim nhat de phan biet voi ChatGPT */
  --claude-tint: #f3f0fe;
  --claude-tint-ink: #6d4fe0;
  --claude-tint-border: #ded6fb;

  /* Mau cam rieng cho luong Claude - dung lam "primary" khi dang o che do Claude */
  --claude-accent: #ea580c;
  --claude-accent-600: #c2410c;
  --claude-accent-700: #9a3412;
  --claude-accent-soft: #fef1e8;

  /* Rieng cho luong Grok (userId/Session JSON): tim xam nhat de phan biet */
  --grok-tint: #f4f4f5;
  --grok-tint-ink: #27272a;
  --grok-tint-border: #d4d4d8;

  /* Mau den rieng cho luong Grok - dung lam "primary" khi dang o che do Grok */
  --grok-accent: #18181b;
  --grok-accent-600: #000000;
  --grok-accent-700: #000000;
  --grok-accent-soft: #f1f1f3;

  /* Nut "Grok" tren menu: luon den (khong doi theo sang/toi nhu --grok-accent
     o tren, vi accent do doi mau de giu do tuong phan khi CA GIAO DIEN da den). */
  --grok-pill-bg: #18181b;
  --grok-pill-ink: #f4f4f5;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 26px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 4px 10px -4px rgba(15, 23, 42, .1), 0 24px 48px -12px rgba(15, 23, 42, .16);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  color-scheme: light; /* chi dung giao dien sang, khong theo che do toi cua dien thoai/may tinh */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Che do "dang o luong Claude" (vao tu nut Claude hoac the vua xac thuc la Claude):
   doi mau chu dao ca trang tu xanh sang cam. Vi hau het nut/accent/focus deu
   dung bien --primary (va --teal alias theo --primary) nen doi 4 dong nay la
   ca giao dien doi theo, khong can sua tung noi. */
body.theme-claude {
  --primary: var(--claude-accent);
  --primary-600: var(--claude-accent-600);
  --primary-700: var(--claude-accent-700);
  --primary-soft: var(--claude-accent-soft);
}

/* Che do "dang o luong Grok": tuong tu theme-claude nhung doi sang mau den/xam. */
body.theme-grok {
  --primary: var(--grok-accent);
  --primary-600: var(--grok-accent-600);
  --primary-700: var(--grok-accent-700);
  --primary-soft: var(--grok-accent-soft);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    radial-gradient(900px 460px at 5% 2%, color-mix(in srgb, var(--primary) 7%, transparent), transparent 65%);
  background-repeat: no-repeat;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.site-header .inner {
  display: flex; align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  flex-wrap: wrap;                 /* actions tu xuong hang 2 khi khong du cho */
  padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  flex: 0 0 auto;                  /* KHONG co lai -> ten thuong hieu khong bao gio xuong dong */
}
.brand > span:not(.logo) { white-space: nowrap; }
.brand .logo {
  flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(160deg, var(--primary), var(--primary-700));
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary) 55%, transparent);
}
.header-spacer { flex: 1 1 0; min-width: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border-radius: 999px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text-soft);
  transition: border-color .15s, background .15s, color .15s;
}
.btn-pill:hover { border-color: var(--muted-2); }
.btn-pill.teal { color: var(--teal-600); border-color: color-mix(in srgb, var(--teal) 32%, transparent); background: var(--teal-soft); }
.btn-pill.teal:hover { border-color: var(--teal); }
.btn-pill.active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 32%, transparent); background: var(--primary-soft); }
.btn-pill.claude { color: var(--claude-accent-600); border-color: color-mix(in srgb, var(--claude-accent) 32%, transparent); background: var(--claude-accent-soft); }
.btn-pill.claude:hover { border-color: var(--claude-accent); }
.btn-pill.grok { color: var(--grok-pill-ink); border-color: var(--grok-pill-bg); background: var(--grok-pill-bg); }
.btn-pill.grok:hover { opacity: .88; }

.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.lang-switch button { border: 0; background: transparent; cursor: pointer; color: var(--muted-2); padding: 4px 2px; font-weight: 600; font-size: 13px; }
.lang-switch button.active { color: var(--text); }
.lang-switch .sep { color: var(--border-strong); }

/* Header tren dien thoai: brand + doi ngon ngu o hang tren, 2 nut pill chiem tron hang duoi */
@media (max-width: 720px) {
  .site-header .inner { gap: 8px 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand .logo { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
  .header-spacer { display: none; }          /* day lang-switch sat le phai */
  .lang-switch { margin-left: auto; }
  .header-actions { order: 5; width: 100%; gap: 6px; }  /* 2 nut pill xuong hang rieng, chiem tron be ngang */
  .header-actions .btn-pill { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 9px 6px; font-size: 12px; }
}
@media (max-width: 380px) {
  .header-actions .btn-pill { font-size: 12px; padding: 9px 6px; gap: 5px; }
}

/* ---------- Hero (2 cot) ---------- */
.hero { padding: 68px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero { padding: 40px 0 22px; } .hero-grid { grid-template-columns: 1fr; gap: 30px; align-items: start; } }
.hero-pitch { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  color: var(--primary-600);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.hero h1 {
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 22px 0 16px;
  color: var(--text);
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 40ch; }

.hero-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-top: 34px; }
@media (max-width: 560px) { .hero-features { grid-template-columns: 1fr; } }
.hf { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.hf .ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.hf .ico svg { width: 16px; height: 16px; }
.hf b { display: block; font-size: 13px; letter-spacing: -.01em; }
.hf span { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.3; }

.hero-panel { min-width: 0; scroll-margin-top: 90px; }
@media (max-width: 900px) { .hero-panel { scroll-margin-top: 104px; } }
@media (max-width: 980px) { .hero-panel { max-width: 540px; margin: 0 auto; } }

/* ---------- Stepper (trong the, tren dau) ---------- */
.stepper { display: flex; justify-content: center; gap: 0; margin: 0 0 22px; }
.stepper .st { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; flex: 1; max-width: 140px; }
.stepper .st .circle {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--card); border: 1.5px solid var(--border-strong); color: var(--muted-2);
  position: relative; z-index: 2; transition: background .2s, border-color .2s, color .2s;
}
.stepper .st .lab { text-align: center; line-height: 1.25; }
.stepper .st .lab b { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stepper .st .lab s { display: block; text-decoration: none; font-size: 9.5px; letter-spacing: .12em; color: var(--muted-2); font-weight: 700; margin-top: 1px; }
.stepper .st:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 50%; width: 100%; height: 1.5px;
  background: var(--border-strong); z-index: 1;
}
.stepper .st.active .circle { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.stepper .st.done .circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper .st.done::after { background: var(--primary); }
.stepper .st.active .lab b, .stepper .st.done .lab b { color: var(--text); }
@media (max-width: 480px) {
  .stepper { margin: 0 0 18px; }
  .stepper .st .circle { width: 27px; height: 27px; font-size: 12px; }
  .stepper .st:not(:last-child)::after { top: 13.5px; }
  .stepper .st .lab b { font-size: 11px; }
  .stepper .st .lab s { font-size: 8.5px; letter-spacing: .1em; }
}

/* ---------- Card ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-card .card-body { padding: 30px; }
@media (max-width: 720px) { .panel-card .card-body { padding: 22px; } }

/* The form o hero: bo goc lon hon + nen chuyen sac nhe + bong noi hon */
.hero-panel .panel-card {
  border-radius: 24px;
  border-color: color-mix(in srgb, var(--primary) 10%, var(--border));
  background: linear-gradient(158deg, color-mix(in srgb, var(--primary) 6%, var(--card)) 0%, var(--card) 46%);
  box-shadow: var(--shadow-lg);
}
.hero-panel .panel-card .card-body { padding: 30px 32px; }
@media (max-width: 720px) { .hero-panel .panel-card .card-body { padding: 22px; } }

.section-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.section-label.grey { color: var(--muted-2); }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-soft); }
.input, .textarea, select.input {
  width: 100%; border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, select.input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.input.code { letter-spacing: .16em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Chi ma the (vd A1B2-C3D4...) moi viet hoa toan bo - Organization ID/User ID/
   Session JSON o buoc 2 phai giu nguyen chu hoa/thuong nguoi dung nhap/dan vao. */
.input.code.caps { text-transform: uppercase; }
.textarea { min-height: 140px; resize: vertical; letter-spacing: .05em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: var(--card); border-color: var(--border-strong); color: var(--text-soft); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }
.row-gap { display: flex; gap: 10px; flex-wrap: wrap; }

/* Segmented toggle (Session JSON | Account ID) */
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 5px; border-radius: 12px; margin-bottom: 16px;
}
.seg[hidden] { display: none; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.seg button.active { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

.howto {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
  font-size: 13px; color: var(--text-soft);
}
.howto b { display: block; margin-bottom: 6px; font-size: 13px; }
.howto ol { margin: 0; padding-left: 18px; }
.howto li { margin: 3px 0; }
.howto a { color: var(--primary); word-break: break-all; }
.method-pane .textarea { min-height: 150px; }

/* ---------- Buoc 2 Claude: pill ten goi + huong dan tim Organization ID ---------- */
.acct-pill {
  display: inline-flex; align-items: center;
  background: var(--claude-tint); color: var(--claude-tint-ink);
  border: 1px solid var(--claude-tint-border);
  border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.howto.howto-claude {
  background: var(--claude-tint); border-color: var(--claude-tint-border); color: var(--text-soft);
}
.howto.howto-claude b { color: var(--claude-tint-ink); }
.howto.howto-claude a { color: var(--claude-tint-ink); }
.howto.howto-claude p { margin: 0 0 8px; line-height: 1.5; }
.howto.howto-claude p:last-child { margin-bottom: 0; }
.howto-warn { color: var(--danger); font-weight: 600; }
.howto-managed { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); }
.howto[hidden] { display: none; }
#credHowtoBody { white-space: pre-line; }

/* Grok SSO: ba buoc doc tu tren xuong, tu co gian theo chieu rong cua form. */
.howto.howto-sso { padding: 18px; background: #fafafa; border-color: var(--grok-tint-border); color: var(--grok-tint-ink); }
.howto-sso > b { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #e4e4e7; font-size: 14px; line-height: 1.5; }
.howto-sso .sso-steps { list-style: none; margin: 0; padding: 0; }
.sso-steps > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; margin: 0; padding-bottom: 18px; }
.sso-steps > li:last-child { padding-bottom: 0; }
.sso-steps > li:not(:last-child)::after { content: ''; position: absolute; top: 34px; bottom: 6px; left: 13px; width: 1px; background: #dedee3; }
.sso-step-number { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grok-pill-bg); color: var(--grok-pill-ink); font-size: 12px; font-weight: 700; }
.sso-step-content { min-width: 0; padding-top: 2px; }
.sso-step-content strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.sso-step-content p { margin: 0; color: #52525b; line-height: 1.65; }
.howto-sso a { color: var(--grok-tint-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.howto-sso a:hover { color: #000; }
.howto-sso a:focus-visible { outline: 2px solid var(--grok-tint-ink); outline-offset: 3px; border-radius: 2px; }
.howto-sso code, .howto-sso kbd { display: inline-block; padding: 0 5px; border: 1px solid #dedee3; border-radius: 5px; background: #fff; color: var(--grok-tint-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.howto-sso kbd { box-shadow: 0 1px 0 #d4d4d8; }
.sso-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; font-weight: 600; }
.sso-path > span:not([aria-hidden]) { padding: 3px 7px; border: 1px solid #e4e4e7; border-radius: 6px; background: #fff; }
.sso-path > [aria-hidden] { color: #71717a; }
.howto-sso .sso-paste-note { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 8px; background: #f1f1f3; color: #3f3f46; font-size: 12px; line-height: 1.6; }
@media (max-width: 480px) {
  .howto.howto-sso { padding: 14px; }
  .sso-steps > li { gap: 10px; }
}

/* Tai khoan cap san da giao (buoc 3) */
.rc-deliver {
  margin-top: 16px; padding: 14px 16px; text-align: left;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px;
}
.rc-deliver > b { display: block; margin-bottom: 8px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); }
.dl-row:first-of-type { border-top: 0; }
.dl-k { flex: 0 0 96px; font-size: 12.5px; color: var(--muted); }
.dl-v { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; user-select: all; }
.dl-all { width: 100%; margin-top: 12px; justify-content: center; }
.rc-deliver-warn { margin: 10px 0 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.45; }
@media (max-width: 480px) { .dl-row { flex-wrap: wrap; } .dl-k { flex-basis: 100%; } }
.ack-box {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 13px; color: var(--text-soft); line-height: 1.45;
}
.ack-box[hidden] { display: none; }
.ack-box input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--primary); }

/* ---------- Buoc 2 ChatGPT: xem lai email + UID tu Session JSON truoc khi xac nhan ---------- */
.session-preview {
  border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border));
  background: var(--success-soft);
  border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 13px;
}
.session-preview .sp-title { display: block; margin-bottom: 6px; font-size: 13px; color: var(--success); }
.session-preview .sp-row { display: flex; gap: 10px; padding: 3px 0; }
.session-preview .sp-k { flex: 0 0 48px; color: var(--muted); font-weight: 600; }
.session-preview .sp-v { flex: 1; min-width: 0; color: var(--text); word-break: break-all; }
.session-preview .sp-v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.session-preview.is-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); background: var(--warn-soft); }
.session-preview.is-warn .sp-title { color: var(--warn); }
.session-preview .sp-good { color: var(--success); font-weight: 600; }
.session-preview .sp-bad { color: var(--danger); font-weight: 700; }
.session-preview .sp-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--card); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border)); color: var(--danger); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.session-preview .sp-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- Trang "Kiem tra goi dang ky" (plan.html) ---------- */
.plan-wrap { max-width: 860px; margin: 0 auto; padding: 28px 0 64px; }
.plan-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 16px; }
.plan-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.plan-secure { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.plan-secure i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.plan-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.plan-ico svg { width: 18px; height: 18px; }
.plan-tab, .plan-card-head { display: flex; align-items: center; gap: 12px; }
.plan-tab { padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--card); border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 0 0 3px var(--primary-soft); }
.plan-tab-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.plan-tab-text b { font-size: 14px; }
.plan-tab-text span { font-size: 12.5px; color: var(--muted); }
.plan-chip { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--primary-soft); color: var(--primary-600); white-space: nowrap; }
#planState[data-state="wait"] { background: var(--bg-soft); color: var(--muted); }
#planState[data-state="error"] { background: var(--danger-soft); color: var(--danger); }
#planState[data-state="done"] { background: var(--success-soft); color: var(--success); }
.plan-card { padding: 18px; margin-bottom: 14px; }
.plan-card-head { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.plan-help { margin: 0 0 12px; font-size: 13px; color: var(--text-soft); }
.plan-help summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.plan-help ol { margin: 8px 0 0; padding-left: 20px; }
.plan-help a { color: var(--primary); word-break: break-all; }
#planInput { min-height: 120px; font-size: 12.5px; letter-spacing: 0; word-break: break-all; }
.plan-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.pl-hero { padding: 16px 18px; margin-bottom: 14px; }
.pl-hero.is-live { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); background: linear-gradient(160deg, var(--success-soft), var(--card) 70%); }
.pl-hero-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-hero-k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-hero-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pl-hero-sub { margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pl-card { padding: 14px 18px 16px; }
.pl-card h3 { margin: 0 0 6px; font-size: 14px; }
.pl-card dl { margin: 0; }
.pl-card .hint { margin: 10px 0 0; }
.pl-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.pl-row:last-child { border-bottom: 0; }
.pl-row dt { flex: 0 0 118px; color: var(--muted); }
.pl-row dd { flex: 1; min-width: 0; margin: 0; font-weight: 600; word-break: break-all; }
.pl-row .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 500; }
.pl-copy { margin-left: 6px; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--card); color: var(--text-soft); font-size: 11px; cursor: pointer; vertical-align: middle; }
.pl-copy:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 720px) {
  .plan-wrap { padding: 18px 0 48px; }
  .plan-card { padding: 14px; }
  .plan-actions .btn { flex: 1; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-row dt { flex-basis: 96px; }
  .pl-hero-name { font-size: 19px; }
}

/* ---------- Buoc 2 Grok: khoi huong dan lay userId / Session JSON ---------- */
.howto.howto-grok {
  background: var(--grok-tint); border-color: var(--grok-tint-border); color: var(--text-soft);
}
.howto.howto-grok a { color: var(--grok-tint-ink); font-weight: 700; }
.howto.howto-grok p { margin: 0; line-height: 1.5; }
.hint.hint-danger { color: var(--danger); font-weight: 600; }
.input.input-danger { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }

/* ---------- Alert ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.alert-ok { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.alert-info { background: var(--primary-soft); color: var(--primary-600); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }

.demo-banner {
  background: var(--amber-tile); color: var(--amber-tile-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
  font-size: 12.5px; text-align: center; padding: 8px 12px;
}

/* ---------- Result card (buoc 3: doi / thanh cong / that bai) ---------- */
.result-card {
  text-align: center;
  padding: 26px 22px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 14px;
  animation: rcIn .28s ease both;
}
@keyframes rcIn { from { opacity: 0; transform: translateY(6px); } }
.result-card.is-wait,
.result-card.is-review,
.result-card.is-confirm { background: color-mix(in srgb, var(--warn) 6%, var(--card)); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.result-card.is-success { background: color-mix(in srgb, var(--success) 7%, var(--card)); border-color: color-mix(in srgb, var(--success) 24%, transparent); }
.result-card.is-failed  { background: color-mix(in srgb, var(--danger) 6%, var(--card)); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }

.rc-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 12px; color: #fff;
}
.is-wait .rc-icon, .is-review .rc-icon, .is-confirm .rc-icon { background: var(--warn); }
.is-success .rc-icon { background: var(--success); box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 14%, transparent); }
.is-failed .rc-icon  { background: var(--danger); }
.rc-glyph { font-size: 22px; font-weight: 800; line-height: 1; }
.rc-spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: sp .8s linear infinite; }

.rc-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.is-wait .rc-title, .is-review .rc-title, .is-confirm .rc-title { color: var(--warn); }
.is-success .rc-title { color: var(--success); }
.is-failed .rc-title { color: var(--danger); }

.rc-desc { font-size: 13px; color: var(--text-soft); margin: 0 auto 10px; max-width: 34ch; }
.rc-info { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.rc-info .rc-dot { color: var(--muted-2); }
.rc-oid { margin-top: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted-2); }

.rc-bar { margin: 16px auto 2px; max-width: 220px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 22%, transparent); overflow: hidden; }
.rc-bar span { display: block; height: 100%; width: 38%; border-radius: 999px; background: var(--warn); animation: rcbar 1.15s ease-in-out infinite; }
@keyframes rcbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }

.rc-confirm { margin-top: 14px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--warn) 35%, transparent); text-align: left; }
.rc-confirm > b { font-size: 13px; }
.rc-confirm-acct { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rc-confirm-btns { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Quick services ---------- */
.quick {
  display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap;
  margin-top: 16px;
}
.quick .section-label { white-space: nowrap; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--card); color: var(--text-soft);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s;
}
.chip:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); color: var(--primary); }

/* ---------- Workbench (full width) ---------- */
.workbench { padding: 28px 0 56px; }
.wb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.wb-head h2 { margin: 8px 0 4px; font-size: 21px; letter-spacing: -.02em; }
.wb-head .sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.wb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  border-radius: 16px; padding: 16px 18px;
  border: 1px solid transparent;
}
.stat .k { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.stat.total { background: var(--blue-tile); border-color: color-mix(in srgb, var(--primary) 14%, transparent); }
.stat.total .v { color: var(--blue-tile-ink); }
.stat.proc { background: var(--amber-tile); border-color: color-mix(in srgb, var(--amber-tile-ink) 18%, transparent); }
.stat.proc .v { color: var(--amber-tile-ink); }
.stat.ok { background: var(--green-tile); border-color: color-mix(in srgb, var(--green-tile-ink) 18%, transparent); }
.stat.ok .v { color: var(--green-tile-ink); }
.stat.err { background: var(--red-tile); border-color: color-mix(in srgb, var(--red-tile-ink) 16%, transparent); }
.stat.err .v { color: var(--red-tile-ink); }

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.order-item .row1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-item .tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-item .acts { display: flex; gap: 6px; }
.order-item .meta { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.order-item .meta .oid { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--muted-2); }
.order-item .details { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--text-soft); white-space: pre-wrap; word-break: break-word; }

.pill { white-space: nowrap; flex: none; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .01em; }
.pill.plain { background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border); font-weight: 600; }
.pill.pending, .pill.processing, .pill.review, .pill.unused, .pill.need_confirm {
  background: color-mix(in srgb, var(--warn) 12%, var(--card)); color: var(--warn);
}
.pill.success { background: color-mix(in srgb, var(--success) 12%, var(--card)); color: var(--success); }
.pill.failed, .pill.invalid, .pill.disabled { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); }
.pill.used, .pill.unknown, .pill.not_found { background: var(--bg-soft); color: var(--muted); }

.empty { text-align: center; color: var(--muted-2); font-size: 13px; padding: 40px 16px; border: 1px dashed var(--border-strong); border-radius: 14px; }

/* ---------- Partner ---------- */
.partner { padding: 56px 0 72px; }
.partner h2 { font-size: 25px; letter-spacing: -.025em; margin: 14px 0 0; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 780px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card { padding: 22px; box-shadow: var(--shadow-sm); }
.partner-card .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 19px; margin-bottom: 13px; }
.partner-card h3 { margin: 0 0 5px; font-size: 15.5px; letter-spacing: -.01em; }
.partner-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted-2); font-size: 12.5px; text-align: center; }

/* ---------- Query page ---------- */
.simple-wrap { max-width: 760px; margin: 0 auto; padding: 46px 0 70px; }
.simple-wrap h1 { font-size: 34px; letter-spacing: -.03em; margin: 16px 0 8px; }
.result-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.result-table th, .result-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.result-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-soft); color: var(--muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; border-bottom: 1px solid var(--border-strong);
}
.result-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.result-table tbody tr:last-child td { border-bottom: 0; }
.result-table td.code, .result-table .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  letter-spacing: .02em; white-space: nowrap; color: var(--text-soft);
}
.result-table td.nowrap, .result-table .nowrap { white-space: nowrap; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 32px 0 72px; }
.admin-wrap > h1 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 4px; }
.admin-hello { color: var(--muted); font-size: 13px; margin: 0 0 20px; }

.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 26px; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-grid .stat { padding: 15px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.admin-grid .stat .k { font-size: 11.5px; color: var(--muted); }
.admin-grid .stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; color: var(--text); }
.admin-grid .stat.ok { background: var(--green-tile); border-color: color-mix(in srgb, var(--green-tile-ink) 18%, transparent); }
.admin-grid .stat.ok .v { color: var(--green-tile-ink); }
.admin-grid .stat.err { background: var(--red-tile); border-color: color-mix(in srgb, var(--red-tile-ink) 16%, transparent); }
.admin-grid .stat.err .v { color: var(--red-tile-ink); }
.admin-grid .stat.proc { background: var(--amber-tile); border-color: color-mix(in srgb, var(--amber-tile-ink) 18%, transparent); }
.admin-grid .stat.proc .v { color: var(--amber-tile-ink); }

/* Cac section admin */
.admin-wrap > .card { margin-bottom: 18px; border-radius: 16px; }
.admin-wrap .card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-wrap .card-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.admin-wrap .card-head-actions { display: flex; gap: 8px; align-items: center; }
.admin-wrap .card-head-actions .input { width: 220px; height: 34px; padding: 6px 12px; font-size: 13px; }
@media (max-width: 560px) { .admin-wrap .card-head-actions { width: 100%; } .admin-wrap .card-head-actions .input { flex: 1; width: auto; } }
.admin-wrap .card-body { padding: 18px 20px; }
.admin-wrap .card-head + .card-body { padding-top: 16px; }

/* Bang "Khach da dung CDK": gon, khong can keo ngang; CDK ro chu khong che dau */
#usageTable .result-table { font-size: 12.5px; table-layout: fixed; }
#usageTable .result-table th, #usageTable .result-table td { padding: 9px 12px; }
#usageTable .result-table th:nth-child(1), #usageTable .result-table td:nth-child(1) { width: 17%; }
#usageTable .result-table th:nth-child(2), #usageTable .result-table td:nth-child(2) { width: 15%; }
#usageTable .result-table th:nth-child(3), #usageTable .result-table td:nth-child(3) { width: 30%; }
#usageTable .result-table th:nth-child(4), #usageTable .result-table td:nth-child(4) { width: 20%; }
#usageTable .result-table th:nth-child(5), #usageTable .result-table td:nth-child(5) { width: 18%; }
#usageTable .result-table td.code, #usageTable .result-table .code {
  font-size: 11.5px; letter-spacing: 0; white-space: normal; word-break: break-all;
}
#usageTable .usage-sub { display: block; font-size: 11px; color: var(--muted-2); margin-top: 1px; word-break: break-all; }

/* Man hinh hep (dien thoai): bang co dinh theo % khien CDK/UID bi bop qua hep,
   chu tu xuong dong tung ky tu mot (khong doc duoc). Tra ve cuon ngang binh
   thuong (nhu bang tra cuu) thay vi co ep vua man hinh bang moi gia. */
@media (max-width: 720px) {
  #usageTable .result-table { table-layout: auto; font-size: 12px; }
  #usageTable .result-table th, #usageTable .result-table td { width: auto !important; white-space: nowrap; }
  #usageTable .result-table td.code, #usageTable .result-table .code { white-space: nowrap; word-break: normal; }
  #usageTable .usage-sub { white-space: nowrap; word-break: normal; }
}

.usage-flag { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 700; white-space: normal; }
.usage-flag-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); white-space: nowrap; cursor: pointer; }
@media (max-width: 720px) { #usageTable .usage-flag { white-space: nowrap; } }
.usage-sess { margin-top: 4px; padding: 2px 9px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--card); color: var(--primary); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.usage-sess:hover { border-color: var(--primary); }
.sess-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(15, 20, 30, .55); }
.sess-modal[hidden] { display: none; }
.sess-box { width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); }
.sess-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sess-box .textarea { min-height: 200px; font-size: 12px; letter-spacing: 0; word-break: break-all; }
.sess-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sess-actions #sessDelete { color: var(--danger); }
.usage-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.usage-pager-btns { display: flex; gap: 6px; }

/* Login */
.admin-login {
  max-width: 384px; margin: 8vh auto 0; padding: 30px 30px 26px;
  border-radius: 20px; border: 1px solid color-mix(in srgb, var(--primary) 10%, var(--border));
  background: linear-gradient(158deg, color-mix(in srgb, var(--primary) 6%, var(--card)) 0%, var(--card) 46%);
  box-shadow: var(--shadow-lg);
}
.admin-login .login-logo {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px;
  background: linear-gradient(160deg, var(--primary), var(--primary-700));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--primary) 55%, transparent);
}
.admin-login h2 { margin: 0 0 4px; font-size: 18px; text-align: center; }
.admin-login .sub { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: 13px; }

.code-dump { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-top: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; max-height: 240px; overflow: auto; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; }

.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- Modal: Claude redelivery ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 20, 30, .5);
  backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px;
}
.modal-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.rd-card { position: relative; width: 100%; max-width: 440px; max-height: 88vh; overflow: auto; padding: 26px 26px 22px; }
.modal-x {
  position: absolute; top: 15px; right: 15px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.modal-x:hover { background: var(--bg-soft); color: var(--text); }
.rd-h { margin: 2px 34px 5px 0; font-size: 18px; letter-spacing: -.01em; }
.rd-sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.rd-steps { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: rd; }
.rd-steps li {
  position: relative; counter-increment: rd;
  padding: 4px 0 4px 30px; font-size: 12.75px; color: var(--text-soft); line-height: 1.45;
}
.rd-steps li::before {
  content: counter(rd); position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.rd-note { display: flex; gap: 8px; margin: 0 0 18px; padding: 9px 12px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.rd-note.danger { color: var(--danger); background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 18%, transparent); }
.rd-note.warn { color: var(--warn); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 18%, transparent); margin-top: 4px; }

.rd-key { min-height: 74px; }
.rd-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.rd-actions .rd-spacer { flex: 1; }
@media (max-width: 460px) {
  .rd-card { padding: 22px 18px 18px; }
  .rd-actions { flex-wrap: wrap; }
  .rd-actions .rd-spacer { flex-basis: 100%; height: 0; }
}

[hidden] { display: none !important; }
