/* BPSC Student Contact Manager — every rule is scoped under .scm-wrap (app), .scm-guide (user guide),
   .scm-toasts and .scm-print so the theme and other plugins are untouched. */

/* Full-width app page: PHP adds body.scm-page where the shortcode is used (Assembler block theme on mzrbd.com). */
body.scm-page .entry-content,
body.scm-page .wp-block-post-content { max-width: 100% !important; box-sizing: border-box !important; padding-left: 16px !important; padding-right: 16px !important; }
body.scm-page .is-layout-constrained > .scm-wrap,
body.scm-page .is-layout-constrained > .scm-guide { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
body.scm-page .widget-area, body.scm-page #secondary { display: none !important; }

.scm-wrap {
  --scm-green: #0b6e4f; --scm-green-d: #08543c; --scm-gold: #c79a3a; --scm-gold-l: #f6ecd6; --scm-bg: #f4f7f5;
  --scm-line: #d7e0db; --scm-ink: #17241e; --scm-muted: #5d6b64; --scm-red: #b00020; --scm-blue: #1e4f8a; --scm-teal: #0f6b68;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif;
  color: var(--scm-ink); background: var(--scm-bg); font-size: 15px; line-height: 1.55;
  padding: 12px; border-radius: 12px; box-sizing: border-box; max-width: 1180px; margin: 0 auto;
}
.scm-wrap *, .scm-wrap *::before, .scm-wrap *::after { box-sizing: border-box; }
.scm-wrap h2, .scm-wrap h3, .scm-wrap h4 { margin: 0 0 8px; color: var(--scm-green-d); font-family: inherit; line-height: 1.3; letter-spacing: 0; }
.scm-wrap h2 { font-size: 19px; }
.scm-wrap h3 { font-size: 16px; }
.scm-wrap h4 { font-size: 14px; margin-top: 14px; }
.scm-wrap p { margin: 0 0 8px; }
.scm-wrap button { font: inherit; cursor: pointer; }
.scm-wrap a { color: var(--scm-green-d); }
.scm-wrap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.scm-wrap :focus-visible { outline: 2px solid var(--scm-gold); outline-offset: 2px; }

/* loading state printed by the shortcode */
.scm-wrap .scm-boot { min-height: 40vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--scm-muted); }
.scm-wrap .scm-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--scm-line); border-top-color: var(--scm-green); animation: scm-spin 1s linear infinite; }
@keyframes scm-spin { to { transform: rotate(360deg); } }

/* header */
.scm-wrap .scm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, var(--scm-green), var(--scm-green-d)); color: #fff; padding: 10px 14px; border-radius: 12px; border-bottom: 3px solid var(--scm-gold); }
.scm-wrap .scm-back { display: inline-flex; align-items: center; gap: 2px; color: #fff; text-decoration: none; font-size: 13px; background: rgba(255,255,255,.14); padding: 5px 10px 5px 6px; border-radius: 20px; }
.scm-wrap .scm-back svg { width: 16px; height: 16px; }
.scm-wrap .scm-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--scm-gold); flex: none; }
.scm-wrap .scm-brand { font-size: 19px; font-weight: 700; flex: 1 1 220px; min-width: 0; line-height: 1.25; }
.scm-wrap .scm-brand small { display: block; font-size: 12px; font-weight: 400; opacity: .92; margin-top: 2px; }
.scm-wrap .scm-user { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border-radius: 30px; padding: 4px 6px 4px 4px; }
.scm-wrap .scm-uav { width: 32px; height: 32px; border-radius: 50%; background: var(--scm-gold); color: #1c1606; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.scm-wrap .scm-uinfo { display: flex; flex-direction: column; line-height: 1.2; font-size: 12.5px; }
.scm-wrap .scm-uinfo i { font-style: normal; font-size: 11px; opacity: .85; }
.scm-wrap .scm-ubtn { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.scm-wrap .scm-ubtn svg { width: 15px; height: 15px; }

/* tabs */
.scm-wrap .scm-tabs { display: flex; gap: 4px; margin-top: 10px; background: #fff; border: 1px solid var(--scm-line); border-radius: 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; }
.scm-wrap .scm-tabs::-webkit-scrollbar { display: none; }
.scm-wrap .scm-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--scm-muted); padding: 9px 14px; border-radius: 9px; font-weight: 600; white-space: nowrap; }
.scm-wrap .scm-tab.is-on { background: var(--scm-green); color: #fff; }

/* section head + cards */
.scm-wrap .scm-head { display: flex; align-items: center; gap: 12px; margin: 16px 2px 6px; }
.scm-wrap .scm-head p { margin: 2px 0 0; color: var(--scm-muted); font-size: 13.5px; }
.scm-wrap .scm-head h2 { margin: 0; }
.scm-wrap .scm-hic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--scm-green); color: #fff; flex: none; box-shadow: 0 4px 14px rgba(11,110,79,.25); }
.scm-wrap .scm-hic.teal { background: var(--scm-teal); }
.scm-wrap .scm-hic.amber { background: var(--scm-gold); }
.scm-wrap .scm-hic svg { width: 22px; height: 22px; }
.scm-wrap .scm-card { background: #fff; border: 1px solid var(--scm-line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.scm-wrap .scm-muted { color: var(--scm-muted); font-size: 13px; }
.scm-wrap .scm-note { margin-top: 14px; background: var(--scm-gold-l); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.scm-wrap .scm-msg { padding: 9px 12px; border-radius: 8px; margin: 10px 0; background: #eef6f2; border-left: 4px solid var(--scm-green); }
.scm-wrap .scm-msg.err { background: #fdecef; color: var(--scm-red); border-left-color: var(--scm-red); }
.scm-wrap .scm-msg ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; }
.scm-wrap .scm-empty { text-align: center; color: var(--scm-muted); padding: 28px 14px; }
.scm-wrap .scm-empty svg { width: 34px; height: 34px; opacity: .4; display: block; margin: 0 auto 6px; }
.scm-wrap .scm-or { text-align: center; color: var(--scm-muted); font-size: 12.5px; margin: 10px 0 4px; }
.scm-wrap .pad { padding-left: 14px; padding-right: 14px; }

/* fields */
.scm-wrap .scm-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.scm-wrap .scm-row3 .span2 { grid-column: span 2; }
.scm-wrap .scm-field { margin-bottom: 8px; min-width: 0; }
.scm-wrap .scm-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; color: #33443c; }
.scm-wrap .scm-field label em { color: var(--scm-red); font-style: normal; }
.scm-wrap .scm-field input, .scm-wrap .scm-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--scm-line); border-radius: 8px; font: inherit; background: #fff; color: inherit; min-height: 44px; }
.scm-wrap .scm-field input[type="file"] { padding: 8px; }
.scm-wrap .scm-field input:focus, .scm-wrap .scm-field select:focus { border-color: var(--scm-green); outline: none; box-shadow: 0 0 0 3px rgba(11,110,79,.12); }
.scm-wrap .scm-field select[disabled] { background: #f2f4f3; color: #9aa59f; }
.scm-wrap .scm-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 6px 0; }
.scm-wrap .scm-check input { margin-top: 5px; width: 17px; height: 17px; flex: none; accent-color: var(--scm-green); }
.scm-wrap .scm-radios { display: grid; gap: 6px; margin: 6px 0; font-size: 13.5px; }
.scm-wrap .scm-radios label { display: flex; gap: 8px; align-items: flex-start; background: var(--scm-bg); border-radius: 8px; padding: 8px 10px; }
.scm-wrap .scm-radios input { margin-top: 5px; accent-color: var(--scm-green); flex: none; }
.scm-wrap .scm-search { position: relative; }
.scm-wrap .scm-search svg { position: absolute; left: 12px; top: 13px; color: var(--scm-muted); }
.scm-wrap .scm-search input { width: 100%; padding: 11px 12px 11px 40px; border: 1px solid var(--scm-line); border-radius: 10px; font: inherit; min-height: 46px; background: #fff; }
.scm-wrap .scm-search input:focus { border-color: var(--scm-green); outline: none; box-shadow: 0 0 0 3px rgba(11,110,79,.12); }

/* buttons */
.scm-wrap .scm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.scm-wrap .scm-actions.sticky { position: sticky; bottom: 0; background: #fff; padding: 10px 0; border-top: 1px solid var(--scm-line); z-index: 3; }
.scm-wrap .scm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--scm-green); color: #fff; border: 1px solid var(--scm-green); border-radius: 9px; padding: 10px 16px; font-weight: 600; text-decoration: none; min-height: 44px; line-height: 1.2; }
.scm-wrap .scm-btn:hover { filter: brightness(1.06); }
.scm-wrap .scm-btn.line { background: #fff; color: var(--scm-green-d); border-color: var(--scm-line); }
.scm-wrap .scm-btn.gold { background: var(--scm-gold); border-color: var(--scm-gold); color: #1c1606; }
.scm-wrap .scm-btn.green { background: #15803d; border-color: #15803d; }
.scm-wrap .scm-btn.danger { background: #fff; color: var(--scm-red); border-color: #f1c0c8; }
.scm-wrap .scm-btn.call { background: #15803d; border-color: #15803d; }
.scm-wrap .scm-btn.wa { background: #1fa855; border-color: #1fa855; }
.scm-wrap .scm-btn.sm { padding: 6px 11px; min-height: 36px; font-size: 13px; border-radius: 8px; }
.scm-wrap .scm-btn.wide { width: 100%; }
.scm-wrap .scm-btn[disabled] { opacity: .6; cursor: default; }
.scm-wrap .scm-link { background: none; border: 0; padding: 0; color: var(--scm-green-d); text-decoration: underline; font-size: inherit; display: inline-flex; align-items: center; gap: 4px; }

/* login */
.scm-wrap .scm-login { max-width: 430px; margin: 18px auto; padding: 22px; text-align: left; border-top: 3px solid var(--scm-gold); }
.scm-wrap .scm-login h3 { text-align: center; font-size: 18px; }
.scm-wrap .scm-login > .scm-muted { text-align: center; }
.scm-wrap .scm-login-ic { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--scm-green); color: #fff; display: grid; place-items: center; }
.scm-wrap .scm-login-ic svg { width: 28px; height: 28px; }

/* export result */
.scm-wrap .scm-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.scm-wrap .scm-stats div { flex: 1 1 110px; background: #eef6f2; border-radius: 10px; padding: 10px; text-align: center; }
.scm-wrap .scm-stats b { display: block; font-size: 24px; color: var(--scm-green-d); font-variant-numeric: tabular-nums; }
.scm-wrap .scm-stats span { font-size: 12px; color: var(--scm-muted); }
.scm-wrap .scm-stats .warn { background: #fdf5e6; }
.scm-wrap .scm-stats .warn b { color: #9a6b0f; }
.scm-wrap .scm-stats .bad { background: #fdecef; }
.scm-wrap .scm-stats .bad b { color: var(--scm-red); }
.scm-wrap details > summary { cursor: pointer; font-weight: 600; color: var(--scm-green-d); padding: 4px 0; }
.scm-wrap .scm-peek { margin-top: 12px; }
.scm-wrap .scm-how ol { margin: 8px 0 8px 20px; padding: 0; font-size: 14px; }
.scm-wrap .scm-how li { margin-bottom: 6px; }

/* tables */
.scm-wrap .scm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 6px; }
.scm-wrap .scm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.scm-wrap .scm-table th, .scm-wrap .scm-table td { border: 1px solid var(--scm-line); padding: 7px 9px; text-align: center; white-space: nowrap; vertical-align: top; }
.scm-wrap .scm-table th { background: #eef4f0; }
.scm-wrap .scm-table .l { text-align: left; }
.scm-wrap .scm-table .wrap { white-space: normal; min-width: 220px; }

/* lists */
.scm-wrap .scm-listhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.scm-wrap .scm-listhead h3 { margin: 0; display: flex; align-items: center; gap: 6px; }
.scm-wrap .scm-list { display: grid; gap: 6px; }
.scm-wrap .scm-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--scm-line); border-radius: 10px; padding: 9px 12px; color: inherit; transition: border-color .15s, background .15s; }
.scm-wrap .scm-item:hover { border-color: var(--scm-gold); background: #fffcf5; }
.scm-wrap .scm-item-i { flex: 1; min-width: 0; }
.scm-wrap .scm-item-i b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scm-wrap .scm-item-i small { display: block; color: var(--scm-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scm-wrap .scm-roll { font-size: 12px; font-weight: 700; background: var(--scm-gold-l); color: #7a5a14; border-radius: 6px; padding: 3px 8px; flex: none; font-variant-numeric: tabular-nums; }

/* avatars (initials behind the photo, so a broken photo never shows an icon) */
.scm-wrap .scm-av, .scm-wrap .scm-big { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--scm-green), var(--scm-teal)); color: #fff; font-weight: 700; flex: none; }
.scm-wrap .scm-av { width: 42px; height: 42px; border-radius: 10px; font-size: 14px; }
.scm-wrap .scm-big { width: 92px; height: 116px; border-radius: 12px; font-size: 30px; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.scm-wrap .scm-av img, .scm-wrap .scm-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* profile */
.scm-wrap .scm-profile { background: #fff; border: 1px solid var(--scm-line); border-radius: 14px; margin-top: 10px; overflow: hidden; padding-bottom: 6px; }
.scm-wrap .scm-pbar { padding: 10px 14px 0; }
.scm-wrap .scm-hero { display: flex; gap: 16px; align-items: center; padding: 14px; margin: 10px 14px 0; border-radius: 12px; background: linear-gradient(135deg, #eaf4ef, #fbf6ea); border: 1px solid var(--scm-line); }
.scm-wrap .scm-hero-i { min-width: 0; }
.scm-wrap .scm-hero h2 { font-size: 21px; color: var(--scm-ink); margin-bottom: 6px; }
.scm-wrap .scm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.scm-wrap .scm-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; background: #eef1f0; color: #34433c; border: 1px solid var(--scm-line); white-space: nowrap; }
.scm-wrap .scm-tag.gold { background: var(--scm-gold-l); color: #7a5a14; border-color: #ecd9ad; }
.scm-wrap .scm-tag.blue { background: #e8f0fb; color: var(--scm-blue); border-color: #c9daf3; }
.scm-wrap .scm-tag.teal { background: #e3f3f2; color: var(--scm-teal); border-color: #bfe2df; }
.scm-wrap .scm-tag.green { background: #e7f6ec; color: #166534; border-color: #c4e8cf; }
.scm-wrap .scm-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; padding: 14px; }
.scm-wrap .scm-cg { background: var(--scm-bg); border: 1px solid var(--scm-line); border-radius: 10px; padding: 11px 12px; }
.scm-wrap .scm-cg.is-zero { opacity: .65; }
.scm-wrap .scm-cg-l { font-size: 12px; font-weight: 700; color: var(--scm-muted); }
.scm-wrap .scm-cg-n { font-size: 18px; font-weight: 700; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.scm-wrap .scm-cg.is-zero .scm-cg-n { font-size: 14px; font-weight: 500; margin-bottom: 0; }
.scm-wrap .scm-cg-b { display: flex; gap: 6px; flex-wrap: wrap; }
.scm-wrap .scm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--scm-line); }
.scm-wrap .scm-gi { padding: 10px 14px; border-bottom: 1px solid var(--scm-line); }
.scm-wrap .scm-gi:nth-child(odd) { border-right: 1px solid var(--scm-line); }
.scm-wrap .scm-gl { font-size: 12.5px; font-weight: 700; color: var(--scm-muted); }
.scm-wrap .scm-gv { font-size: 14.5px; word-break: break-word; }

/* edit form */
.scm-wrap .scm-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.scm-wrap .scm-fields .full { grid-column: 1 / -1; }
.scm-wrap .scm-edit-ph { float: right; margin: 0 0 8px 12px; }
.scm-wrap .scm-edit .scm-big { width: 70px; height: 88px; font-size: 22px; }

/* footer */
.scm-wrap .scm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 4px 2px; border-top: 1px solid var(--scm-line); font-size: 12.5px; color: var(--scm-muted); }
.scm-wrap .scm-foot-l { display: flex; gap: 14px; flex-wrap: wrap; }
.scm-wrap .scm-foot a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }

/* toasts (appended to <body>) */
.scm-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; max-width: 360px; font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif; }
.scm-toasts .scm-toast { background: #17241e; color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); border-left: 4px solid #c79a3a; animation: scm-in .25s ease; transition: opacity .3s, transform .3s; }
.scm-toasts .scm-toast.ok { border-left-color: #22c55e; }
.scm-toasts .scm-toast.err { border-left-color: #ef4444; }
.scm-toasts .scm-toast.out { opacity: 0; transform: translateY(8px); }
@keyframes scm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .scm-wrap .scm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.scm-page .entry-content,
  body.scm-page .wp-block-post-content { padding-left: 6px !important; padding-right: 6px !important; }
  .scm-wrap { padding: 8px; font-size: 14.5px; border-radius: 0; }
  .scm-wrap .scm-top { padding: 9px 10px; gap: 8px; }
  .scm-wrap .scm-brand { font-size: 16px; flex-basis: 150px; }
  .scm-wrap .scm-brand small { font-size: 11px; }
  .scm-wrap .scm-logo { width: 36px; height: 36px; }
  .scm-wrap .scm-uinfo { display: none; }
  .scm-wrap .scm-back span { display: none; }
  .scm-wrap .scm-back { padding: 5px; }
  .scm-wrap .scm-tab { padding: 9px 10px; font-size: 14px; }
  .scm-wrap .scm-row3, .scm-wrap .scm-fields, .scm-wrap .scm-grid { grid-template-columns: 1fr; }
  .scm-wrap .scm-row3 .span2 { grid-column: auto; }
  .scm-wrap .scm-gi:nth-child(odd) { border-right: 0; }
  .scm-wrap .scm-hero { flex-direction: column; align-items: flex-start; }
  .scm-wrap .scm-btn { flex: 1 1 auto; }
  .scm-wrap .scm-cg-b .scm-btn { flex: 1 1 0; }
  .scm-wrap .scm-head { margin-top: 12px; }
  .scm-wrap .scm-edit-ph { float: none; margin: 0 0 8px; }
  .scm-toasts { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scm-wrap *, .scm-wrap *::before, .scm-wrap *::after, .scm-toasts * { animation: none !important; transition: none !important; }
}

/* ───────── user guide ([bpsc_contacts_guide]) ───────── */
.scm-guide {
  --g-green: #0b6e4f; --g-green-d: #08543c; --g-gold: #c79a3a; --g-line: #d7e0db; --g-muted: #5d6b64;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif; color: #17241e; line-height: 1.75; font-size: 15.5px; max-width: 1000px; margin: 0 auto;
}
.scm-guide *, .scm-guide *::before, .scm-guide *::after { box-sizing: border-box; }
.scm-guide h2, .scm-guide h3 { font-family: inherit; color: var(--g-green-d); line-height: 1.35; letter-spacing: 0; }
.scm-guide h2 { font-size: 21px; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
.scm-guide h2 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--g-green); color: #fff; display: inline-grid; place-items: center; font-size: 15px; flex: none; }
.scm-guide h3 { font-size: 17px; margin: 16px 0 6px; }
.scm-guide p { margin: 0 0 10px; }
.scm-guide .g-hero { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--g-green), var(--g-green-d)); color: #fff; border-radius: 14px; padding: 18px; border-bottom: 4px solid var(--g-gold); }
.scm-guide .g-hero img { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--g-gold); object-fit: cover; flex: none; }
.scm-guide .g-hero h1 { font-family: inherit; color: #fff; font-size: 23px; margin: 0; line-height: 1.3; }
.scm-guide .g-hero p { margin: 4px 0 0; opacity: .92; }
.scm-guide .g-cta { display: inline-block; margin-top: 10px; background: var(--g-gold); color: #1c1606; text-decoration: none; padding: 8px 16px; border-radius: 9px; font-weight: 700; }
.scm-guide .g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 14px 0; }
.scm-guide .g-card { background: #f4f7f5; border: 1px solid var(--g-line); border-radius: 12px; padding: 12px 14px; }
.scm-guide .g-card b { display: block; color: var(--g-green-d); font-size: 16px; }
.scm-guide .g-step { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--g-line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.scm-guide .g-step ol, .scm-guide .g-step ul { margin: 0 0 8px 20px; padding: 0; }
.scm-guide .g-step li { margin-bottom: 5px; }
.scm-guide .g-tip { background: #fbf6ea; border-left: 4px solid var(--g-gold); border-radius: 8px; padding: 9px 12px; font-size: 14.5px; margin: 8px 0; }
.scm-guide .g-warn { background: #fdecef; border-left: 4px solid #b00020; border-radius: 8px; padding: 9px 12px; font-size: 14.5px; margin: 8px 0; }
.scm-guide code { background: #eef1f0; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.scm-guide table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.scm-guide th, .scm-guide td { border: 1px solid var(--g-line); padding: 6px 8px; text-align: left; }
.scm-guide th { background: #eef4f0; }
.scm-guide .g-scroll { overflow-x: auto; }
/* phone mock-ups */
.scm-guide .ph { width: 230px; margin: 0 auto; border: 9px solid #1f2a25; border-radius: 26px; background: #f4f7f5; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,.18); font-size: 11px; line-height: 1.4; }
.scm-guide .ph .bar { background: var(--g-green); color: #fff; padding: 7px 9px; font-weight: 700; font-size: 11.5px; border-bottom: 2px solid var(--g-gold); }
.scm-guide .ph .bar small { display: block; font-weight: 400; font-size: 9px; opacity: .9; }
.scm-guide .ph .tabs { display: flex; gap: 3px; padding: 5px; background: #fff; }
.scm-guide .ph .tabs span { flex: 1; text-align: center; padding: 3px 0; border-radius: 5px; color: var(--g-muted); font-size: 9.5px; }
.scm-guide .ph .tabs .on { background: var(--g-green); color: #fff; }
.scm-guide .ph .bd { padding: 7px; }
.scm-guide .ph .in { background: #fff; border: 1px solid var(--g-line); border-radius: 6px; padding: 5px 7px; margin-bottom: 5px; color: #333; }
.scm-guide .ph .bt { background: var(--g-green); color: #fff; border-radius: 6px; padding: 6px; text-align: center; font-weight: 700; margin: 4px 0; }
.scm-guide .ph .bt.g { background: var(--g-gold); color: #1c1606; }
.scm-guide .ph .bt.l { background: #fff; color: var(--g-green-d); border: 1px solid var(--g-line); }
.scm-guide .ph .row { display: flex; gap: 4px; }
.scm-guide .ph .row > * { flex: 1; }
.scm-guide .ph .st { display: flex; gap: 4px; margin: 5px 0; }
.scm-guide .ph .st div { flex: 1; background: #eef6f2; border-radius: 6px; text-align: center; padding: 4px 0; }
.scm-guide .ph .st b { display: block; font-size: 14px; color: var(--g-green-d); }
.scm-guide .ph .it { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--g-line); border-radius: 6px; padding: 5px; margin-bottom: 4px; }
.scm-guide .ph .av { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #0b6e4f, #0f6b68); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; flex: none; }
.scm-guide .ph .it i { margin-left: auto; font-style: normal; background: #f6ecd6; color: #7a5a14; border-radius: 4px; padding: 0 4px; font-size: 9px; }
.scm-guide .ph .cg { background: #fff; border: 1px solid var(--g-line); border-radius: 6px; padding: 5px; margin-bottom: 5px; }
.scm-guide .ph .cg b { display: block; font-size: 12px; }
.scm-guide .ph .call { background: #15803d; color: #fff; border-radius: 5px; padding: 3px; text-align: center; }
.scm-guide .ph .wa { background: #1fa855; color: #fff; border-radius: 5px; padding: 3px; text-align: center; }
.scm-guide .g-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--g-line); color: var(--g-muted); font-size: 13.5px; }
@media (max-width: 720px) {
  .scm-guide .g-step { grid-template-columns: 1fr; }
  .scm-guide .g-hero { flex-direction: column; align-items: flex-start; }
}

/* ───────── print sheet ─────────
   printSheet() moves #scm-print directly under <body> and adds body.scm-printing.
   The rest of the page is removed with display:none — visibility:hidden would keep its height and add blank pages. */
.scm-print { display: none; font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', sans-serif; color: #000; font-size: 11pt; }
.scm-print .ph { display: flex; align-items: center; justify-content: center; gap: 4mm; text-align: center; border-bottom: 2px solid #000; padding-bottom: 3mm; margin-bottom: 4mm; }
.scm-print .ph img { width: 16mm; height: 16mm; border-radius: 50%; object-fit: cover; }
.scm-print .ph h1 { font-size: 15pt; margin: 0; }
.scm-print .ph .en { font-size: 10pt; }
.scm-print .ph h2 { font-size: 12.5pt; margin: 1.5mm 0 0; text-decoration: underline; }
.scm-print .ph .sub { font-size: 10pt; margin-top: 1mm; }
.scm-print table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.scm-print th, .scm-print td { border: 1px solid #000; padding: 1.1mm 1.6mm; text-align: center; vertical-align: top; }
.scm-print thead { display: table-header-group; }
.scm-print tr { page-break-inside: avoid; }
.scm-print th { background: #eee; }
.scm-print .l { text-align: left; }
.scm-print .kv th { width: 45mm; text-align: left; }
.scm-print .pp { display: flex; align-items: center; gap: 5mm; margin-bottom: 4mm; }
.scm-print .pph { width: 30mm; height: 38mm; object-fit: cover; border: 1px solid #000; }
.scm-print .pp h3 { font-size: 15pt; margin: 0; }
.scm-print .sig { display: flex; justify-content: space-between; margin-top: 16mm; font-size: 10pt; }
.scm-print .sig div { border-top: 1px solid #000; padding-top: 1mm; width: 55mm; text-align: center; }
.scm-print .small { font-size: 8.5pt; color: #333; margin-top: 3mm; }
@media print {
  body.scm-printing > *:not(#scm-print) { display: none !important; }
  html:has(body.scm-printing), body.scm-printing { background: #fff !important; margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
  body.scm-printing > #scm-print { display: block !important; position: static; width: 100%; background: #fff; }
  @page { size: A4; margin: 12mm; }
}
