/* songbadghor (সংবাদঘর) — app-dashboard news portal. Grey shell, white rounded cards, coral accent. Prefix: sg- */
:root { --sg-c: #F0533A; --sg-cd: #C7361F; --sg-tint: #FDECE8; --sg-shell: #F3F4F7; --sg-ink: #15161A; --sg-mut: #5F6675; --sg-line: #E7E9EE; --sg-r: 18px; --sg-sh: 0 1px 2px rgba(21, 22, 26, .05), 0 8px 24px rgba(21, 22, 26, .06); --sg-bn: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.sg-body { margin: 0; background: var(--sg-shell); color: var(--sg-ink); font: 400 16px/1.65 var(--sg-bn); overflow-x: hidden; }
.sg-body img { max-width: 100%; height: auto; display: block; }
.sg-body a { color: inherit; text-decoration: none; }
.sg-body ul, .sg-body ol { margin: 0; padding: 0; list-style: none; }
.sg-body h1, .sg-body h2, .sg-body h3, .sg-body h4, .sg-body p { margin: 0; }
.sg-body button { font-family: inherit; cursor: pointer; }
.sg-body a:focus-visible, .sg-body button:focus-visible, .sg-body input:focus-visible { outline: 3px solid var(--sg-cd); outline-offset: 2px; }
.sg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-skip { position: absolute; left: 8px; top: -60px; z-index: 3000; background: var(--sg-ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.sg-skip:focus { top: 8px; }
.nw-lock { overflow: hidden; }

/* ---- top bar ---- */
.sg-top { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--sg-line); }
.sg-bar { max-width: 1360px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 18px; }
.sg-logo { display: flex; align-items: center; gap: 10px; flex: none; font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.sg-logo-dot { width: 36px; height: 36px; border-radius: 12px; background: var(--sg-cd); color: #fff; display: grid; place-items: center; font-size: 16px; }
.sg-tabs { display: none; align-self: stretch; gap: 4px; margin-left: 6px; }
.sg-tabs a { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 600; font-size: 15px; color: var(--sg-mut); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sg-tabs a i { font-size: 14px; }
.sg-tabs a:hover { color: var(--sg-ink); }
.sg-tabs a.is-on { color: var(--sg-ink); border-bottom-color: var(--sg-c); }
.sg-pill { display: none; align-items: center; gap: 8px; flex: 1; max-width: 360px; margin-left: auto; background: var(--sg-shell); border: 1px solid var(--sg-line); border-radius: 999px; padding: 0 16px; height: 42px; }
.sg-pill i { color: var(--sg-mut); font-size: 14px; }
.sg-pill input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--sg-ink); height: 100%; }
.sg-pill input:focus-visible { outline: none; }
.sg-pill:focus-within { border-color: var(--sg-cd); box-shadow: 0 0 0 3px var(--sg-tint); }
.sg-bar-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sg-ico { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sg-line); background: #fff; color: var(--sg-ink); font-size: 16px; }
.sg-ico:hover { background: var(--sg-shell); }
.sg-lang { display: inline-flex; border: 1px solid var(--sg-line); border-radius: 999px; padding: 3px; background: #fff; }
.sg-lang span { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--sg-mut); line-height: 1.4; }
.sg-lang span.is-cur { background: var(--sg-ink); color: #fff; }

/* ---- shell ---- */
.sg-shell { max-width: 1360px; margin: 0 auto; padding: 20px 16px 8px; display: block; }
.sg-side { display: none; }
.sg-main { min-width: 0; }
.sg-card { background: #fff; border-radius: var(--sg-r); box-shadow: var(--sg-sh); }
.sg-sec { margin-bottom: 20px; }
.sg-empty { padding: 20px; color: var(--sg-mut); font-size: 15px; }
.sg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--sg-mut); line-height: 1.5; }
.sg-meta > span + span::before, .sg-meta > b + span::before { content: '•'; margin-right: 10px; color: #B6BBC6; }
.sg-meta b { color: var(--sg-ink); font-weight: 600; }
.sg-tag, .sg-pilltag { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1.3; padding: 3px 10px; border-radius: 999px; background: var(--sg-tint); color: #B02D18; }
.sg-ex { font-size: 14.5px; color: var(--sg-mut); line-height: 1.6; }
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sg-head-title { font-size: 20px; font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.sg-head-title::before { content: ''; width: 6px; height: 22px; border-radius: 4px; background: var(--sg-c); flex: none; }
.sg-head-more, .sg-more { font-size: 14px; font-weight: 600; color: var(--sg-cd); white-space: nowrap; }
.sg-head-more:hover, .sg-more:hover { text-decoration: underline; }
.sg-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sg-line); background: #fff; color: var(--sg-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.sg-btn:hover { background: var(--sg-shell); }
.sg-btn.is-solid { background: var(--sg-cd); border-color: var(--sg-cd); color: #fff; }
.sg-btn.is-solid:hover { background: #A92C19; }
.sg-btn.is-done { border-color: var(--sg-cd); color: var(--sg-cd); }
.sg-save.is-on { background: var(--sg-tint); border-color: var(--sg-cd); color: #B02D18; }
.sg-save.is-on i { font-weight: 900; }

/* ---- sidebar ---- */
.sg-welcome { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin-bottom: 16px; }
.sg-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sg-tint); color: var(--sg-cd); display: grid; place-items: center; font-size: 18px; }
.sg-hello { font-weight: 700; font-size: 16px; line-height: 1.3; }
.sg-date { font-size: 13px; color: var(--sg-mut); }
.sg-welcome-tag { grid-column: 1 / -1; font-size: 13.5px; color: var(--sg-mut); border-top: 1px solid var(--sg-line); padding-top: 10px; margin-top: 6px !important; }
.sg-cats { padding: 14px 10px; }
.sg-side-h { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--sg-mut); padding: 0 10px 6px; }
.sg-catlist a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; font-weight: 500; font-size: 15px; }
.sg-catlist a small { font-size: 12.5px; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--sg-shell); color: var(--sg-mut); }
.sg-catlist a:hover { background: var(--sg-shell); }
.sg-catlist a.is-on { background: var(--sg-tint); color: #B02D18; font-weight: 700; }
.sg-catlist a.is-on small { background: #fff; color: #B02D18; }

/* ---- homepage grid ---- */
.sg-home { display: block; }
.sg-rail { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 4px; }
.sg-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.sg-sec .sg-grid { margin-bottom: 0; }
.sg-sec > .sg-grid { margin-top: 0; }
.sg-deskbox { padding: 18px; }
.sg-deskbox .sg-grid.is-flat { gap: 14px; }

/* ---- headline ---- */
.sg-headline .sg-big { overflow: hidden; margin-bottom: 16px; }
.sg-big-media { position: relative; }
.sg-big-img { display: block; aspect-ratio: 16 / 10; background: #D9DCE3; }
.sg-big-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-big-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 15, .25) 0%, rgba(10, 11, 15, 0) 30%, rgba(10, 11, 15, .88) 100%); pointer-events: none; }
.sg-big-cap { position: absolute; inset: 0; z-index: 2; padding: 16px 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.sg-big-cap .sg-pilltag { background: #fff; color: var(--sg-ink); pointer-events: auto; }
.sg-big-cap h1, .sg-big-cap h2 { font-size: 22px; line-height: 1.4; font-weight: 700; color: #fff; pointer-events: auto; }
.sg-big-foot { padding: 14px 18px 16px; display: grid; gap: 12px; }
.sg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg-acts .sg-meta { margin-right: auto; }
.sg-pc { overflow: hidden; display: flex; flex-direction: column; }
.sg-pc-img { display: block; aspect-ratio: 16 / 10; background: #D9DCE3; overflow: hidden; }
.sg-pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sg-pc:hover .sg-pc-img img { transform: scale(1.04); }
.sg-pc-body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; }
.sg-pc h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.sg-pc h3 a:hover, .sg-row h3 a:hover, .sg-desk-lead h3 a:hover, .sg-rank a:hover, .sg-op h3 a:hover, .sg-job h3 a:hover { color: var(--sg-cd); }
.sg-pc.is-wide h3 { font-size: 18px; }

/* ---- desk / rows ---- */
.sg-desk-grid { display: grid; gap: 16px; }
.sg-desk-lead { display: grid; gap: 8px; align-content: start; }
.sg-desk-img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #D9DCE3; }
.sg-desk-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-desk-lead h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.sg-rows { display: grid; gap: 4px; align-content: start; }
.sg-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--sg-line); }
.sg-row:last-child { border-bottom: 0; }
.sg-row-img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: #D9DCE3; display: block; }
.sg-row-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-row h3 { font-size: 15.5px; font-weight: 600; line-height: 1.5; margin-bottom: 3px; }

/* ---- video reel ---- */
.sg-reel { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.sg-vid { scroll-snap-align: start; padding: 10px; display: grid; gap: 10px; align-content: start; }
.sg-vid-img { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #D9DCE3; }
.sg-vid-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--sg-cd); display: grid; place-items: center; font-size: 15px; padding-left: 3px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s; }
.sg-vid:hover .sg-play { transform: translate(-50%, -50%) scale(1.1); }
.sg-vid b { font-size: 15px; font-weight: 600; line-height: 1.5; padding: 0 4px 4px; }
.sg-vid:hover b { color: var(--sg-cd); }

/* ---- tabs, trend, chips ---- */
.sg-tabsw { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-tabsw button { border: 0; background: var(--sg-shell); color: var(--sg-mut); padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.sg-tabsw button.is-on { background: var(--sg-ink); color: #fff; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--sg-shell); font-size: 14px; font-weight: 600; }
.sg-chips a small { font-size: 12px; color: var(--sg-mut); }
.sg-chips a:hover { background: var(--sg-tint); color: #B02D18; }
.sg-chips.is-big a { padding: 10px 18px; font-size: 15px; background: #fff; border: 1px solid var(--sg-line); }
.sg-chips.is-big a i { color: var(--sg-cd); font-size: 13px; }
.sg-trend { display: grid; gap: 8px; }
.sg-trend a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--sg-shell); font-weight: 600; font-size: 15px; line-height: 1.5; }
.sg-trend a:hover { background: var(--sg-tint); }
.sg-trend b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sg-cd); color: #fff; display: grid; place-items: center; font-size: 14px; }

/* ---- gallery ---- */
.sg-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-gal-i { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; background: #D9DCE3; }
.sg-gal-i.is-big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.sg-gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sg-gal-i:hover img { transform: scale(1.05); }
.sg-gal-i span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; background: linear-gradient(180deg, rgba(10, 11, 15, 0), rgba(10, 11, 15, .88)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sg-gal-i.is-big span { font-size: 17px; }

/* ---- opinion, jobs, explainer ---- */
.sg-op { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--sg-shell); }
.sg-ini { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sg-cd); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.sg-op h3 { font-size: 15.5px; font-weight: 600; line-height: 1.5; margin-bottom: 4px; }
.sg-job { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--sg-line); }
.sg-job-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--sg-tint); color: var(--sg-cd); display: grid; place-items: center; }
.sg-job h3 { font-size: 15.5px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.sg-deadline { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--sg-ink); }
.sg-deadline i { color: var(--sg-cd); }
.sg-deadline em, .sg-w-h em { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--sg-shell); color: var(--sg-mut); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.sg-qa { padding: 18px; display: grid; gap: 10px; align-content: start; }
.sg-q { width: 34px; height: 34px; border-radius: 50%; background: var(--sg-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.sg-qa h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.sg-qa h3 a:hover { color: var(--sg-cd); }
.sg-ex b { color: var(--sg-ink); }

/* ---- right rail widgets ---- */
.sg-w { padding: 16px 18px; }
.sg-w-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.sg-score-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; }
.sg-team b { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; }
.sg-sc { display: flex; align-items: center; gap: 6px; background: var(--sg-shell); border-radius: 14px; padding: 8px 14px; }
.sg-sc strong { font-size: 26px; font-weight: 700; font-family: Inter, var(--sg-bn); line-height: 1.2; }
.sg-sc span { color: var(--sg-mut); font-weight: 700; }
.sg-w-foot { text-align: center; font-size: 13px; color: var(--sg-mut); margin-top: 10px; }
.sg-rates li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sg-line); font-size: 14.5px; }
.sg-rates li:last-child { border-bottom: 0; }
.sg-rates span { flex: 1; color: var(--sg-mut); }
.sg-rates b { font-weight: 700; }
.sg-rates small { font-size: 12.5px; font-weight: 600; color: var(--sg-mut); }
.sg-rates small.is-up { color: #12703F; }
.sg-rates small.is-down { color: #B42318; }
.sg-rank li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sg-line); }
.sg-rank li:last-child { border-bottom: 0; }
.sg-rank-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sg-tint); color: #B02D18; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; }
.sg-rank a { font-size: 14.5px; font-weight: 600; line-height: 1.5; display: block; margin-bottom: 2px; }

/* ---- newsletter ---- */
.sg-news { padding: 22px; display: grid; gap: 16px; background: var(--sg-ink); color: #fff; }
.sg-news h2 { font-size: 21px; font-weight: 700; line-height: 1.4; }
.sg-news p { color: #D5D8E0; font-size: 15px; margin-top: 4px; }
.sg-news form { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.sg-news input { flex: 1 1 200px; min-width: 0; height: 44px; border-radius: 999px; border: 0; padding: 0 18px; font: inherit; font-size: 15px; }
.sg-news .sg-btn { height: 44px; padding: 0 22px; }
.sg-news small { flex-basis: 100%; color: #C5C9D3; font-size: 12.5px; }

/* ---- listing pages ---- */
.sg-cathead { padding: 22px; display: grid; gap: 10px; justify-items: start; margin-bottom: 16px; }
.sg-cathead h1 { font-size: 28px; font-weight: 700; line-height: 1.4; }
.sg-pill.is-wide { display: flex; width: 100%; max-width: 520px; margin: 4px 0 0; padding-right: 4px; }
.sg-pill.is-wide .sg-btn { height: 34px; }
.sg-pager { padding: 20px 0 6px; }
.sg-pager nav { display: flex; justify-content: center; }
.sg-pager svg { width: 18px; height: 18px; }
.sg-pager .hidden { display: none; }
.sg-pager a, .sg-pager span > span { display: inline-block; min-width: 42px; padding: 8px 13px; margin: 3px; border-radius: 12px; background: #fff; font-weight: 600; text-align: center; box-shadow: var(--sg-sh); }
.sg-pager a:hover { color: var(--sg-cd); }
.sg-pager span[aria-current] span { background: var(--sg-cd); color: #fff; }
.sg-pagecard { padding: 24px; }
.sg-pagecard h1 { font-size: 28px; margin-bottom: 14px; line-height: 1.4; }
.sg-prose { max-width: 760px; }

/* ---- article ---- */
.sg-art-grid { display: grid; gap: 16px; }
.sg-story { padding: 20px; min-width: 0; }
.sg-story-head { display: grid; gap: 12px; justify-items: start; margin-bottom: 16px; }
.sg-story-head h1 { font-size: 28px; font-weight: 700; line-height: 1.45; }
.sg-dek { font-size: 17px; color: var(--sg-mut); line-height: 1.7; }
.sg-story-fig { margin: 0 0 14px; border-radius: 16px; overflow: hidden; }
.sg-story-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sg-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--sg-line); border-bottom: 1px solid var(--sg-line); margin-bottom: 20px; }
.sg-share > span { font-size: 14px; font-weight: 700; color: var(--sg-mut); margin-right: 4px; }
.sg-share > a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sg-line); display: grid; place-items: center; font-size: 15px; }
.sg-share > a:hover { background: var(--sg-shell); }
.sg-body-text { max-width: 760px; }
.sg-body-text.mz-article-body p, .sg-body-text.mz-article-body li { font-size: 18px !important; line-height: 1.95 !important; color: var(--sg-ink) !important; margin: 0 0 1.1em; }
.sg-body-text.mz-article-body h2, .sg-body-text.mz-article-body h3 { margin: 1.4em 0 .5em; line-height: 1.5; }
.sg-body-text img { border-radius: 12px; }
.sg-art-rail { display: grid; gap: 16px; align-content: start; }
.sg-related { margin-top: 24px; }

/* ---- footer ---- */
.sg-foot { max-width: 1360px; margin: 16px auto 0; padding: 28px 20px 24px; color: var(--sg-mut); font-size: 14.5px; border-top: 1px solid var(--sg-line); }
.sg-foot-in { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.sg-foot-about { grid-column: 1 / -1; }
.sg-foot-logo { font-size: 22px; font-weight: 700; color: var(--sg-ink); }
.sg-foot-about p { margin-top: 8px; max-width: 460px; }
.sg-foot h4 { color: var(--sg-ink); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sg-foot li { margin-bottom: 6px; line-height: 1.5; }
.sg-foot a:hover { color: var(--sg-cd); text-decoration: underline; }
.sg-foot-social { display: flex; gap: 8px; margin-top: 14px; }
.sg-foot-social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--sg-ink); }
.sg-foot-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--sg-line); font-size: 13.5px; }

/* ---- panels / sheets ---- */
.sg-panel { position: fixed; inset: 0; z-index: 1500; background: rgba(21, 22, 26, .55); opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; }
.sg-panel.is-open { opacity: 1; visibility: visible; }
.sg-sheet { position: absolute; background: var(--sg-shell); padding: 20px 16px; overflow-y: auto; transition: transform .28s; }
.sg-sheet.is-right { top: 0; bottom: 0; right: 0; width: min(380px, 90vw); transform: translateX(100%); }
.sg-sheet.is-bottom { left: 0; right: 0; bottom: 0; max-height: 80vh; border-radius: 22px 22px 0 0; background: #fff; transform: translateY(100%); }
.sg-sheet.is-top { left: 0; right: 0; top: 0; border-radius: 0 0 22px 22px; background: #fff; transform: translateY(-100%); padding-top: 24px; }
.sg-panel.is-open .sg-sheet { transform: none; }
.sg-x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sg-ink); color: #fff; font-size: 16px; z-index: 2; }
.sg-sheet-title { font-size: 22px; font-weight: 700; margin: 0 48px 14px 4px !important; }
.sg-sheet .sg-welcome { box-shadow: none; }
.sg-sheet .sg-cats { box-shadow: none; margin-bottom: 8px; }
.sg-sheet-act { margin-top: 16px; }
.sg-sheet label { display: block; font-weight: 600; margin: 0 40px 10px 0; }
.sg-sform { display: flex; gap: 8px; }
.sg-sform input { flex: 1; min-width: 0; height: 46px; border-radius: 999px; border: 1px solid var(--sg-line); background: var(--sg-shell); padding: 0 18px; font: inherit; font-size: 16px; }
.sg-sform .sg-btn { height: 46px; padding: 0 20px; }

/* ---- phone bottom tab bar ---- */
.sg-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--sg-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(21, 22, 26, .06); }
.sg-tabbar a, .sg-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: transparent; color: var(--sg-mut); font-size: 12px; font-weight: 600; line-height: 1.3; border-radius: 12px; }
.sg-tabbar i { font-size: 18px; }
.sg-tabbar .is-on { color: var(--sg-cd); background: var(--sg-tint); }
body.sg-body { padding-bottom: 76px; }

/* ---- >= 600 ---- */
@media (min-width: 600px) {
    .sg-grid.is-2, .sg-grid.is-3, .sg-grid.is-4 { grid-template-columns: 1fr 1fr; }
    .sg-reel { grid-auto-columns: 42%; }
    .sg-gal { grid-template-columns: repeat(3, 1fr); }
    .sg-gal-i.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
    .sg-rows.is-2col { grid-template-columns: 1fr 1fr; column-gap: 24px; }
    .sg-rows.is-2col .sg-row:nth-last-child(2) { border-bottom: 0; }
    .sg-rail { grid-template-columns: 1fr 1fr; }
    .sg-news { grid-template-columns: 1fr 1fr; align-items: center; }
    .sg-foot-in { grid-template-columns: repeat(3, 1fr); }
    .sg-foot-about { grid-column: 1 / -1; }
}
/* ---- >= 768: tablet ---- */
@media (min-width: 768px) {
    body.sg-body { padding-bottom: 0; }
    .sg-tabbar, .sg-only-phone { display: none; }
    .sg-tabs { display: flex; }
    .sg-shell { padding: 24px 24px 8px; }
    .sg-big-cap h1, .sg-big-cap h2 { font-size: 30px; }
    .sg-desk-grid { grid-template-columns: 1.15fr 1fr; gap: 22px; }
    .sg-desk-grid.is-flip .sg-desk-lead { order: 2; }
    .sg-reel { grid-auto-columns: 31%; overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .sg-grid.is-4 { grid-template-columns: repeat(2, 1fr); }
    .sg-story { padding: 28px; }
    .sg-story-head h1 { font-size: 34px; }
    .sg-foot-in { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
    .sg-foot-about { grid-column: auto; }
    .sg-foot { padding-left: 24px; padding-right: 24px; }
}
/* ---- >= 1100: three columns ---- */
@media (min-width: 1100px) {
    .sg-pill { display: flex; }
    .sg-bar-r { margin-left: 0; }
    .sg-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px 24px 8px; }
    .sg-side { display: block; position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; }
    .sg-home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
    .sg-rail { grid-template-columns: 1fr; position: sticky; top: 88px; margin-top: 0; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: none; padding-bottom: 4px; }
    .sg-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
    .sg-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
    .sg-reel { grid-template-columns: repeat(4, 1fr); }
    .sg-art-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
    .sg-art-rail { position: sticky; top: 88px; }
    .sg-foot { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
    .sg-home { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
    .sg-grid.is-4 { grid-template-columns: repeat(2, 1fr); }
    .sg-reel { grid-template-columns: repeat(2, 1fr); }
}
