/* Demo interativa: reproduz o SaguiCode (tema escuro do app) dentro da página. */
.sg {
  --a-canvas: #101114; --a-sidebar: #0b0c0f; --a-surface: #17191d; --a-subtle: #1d2026; --a-hover: #272b33;
  --a-line: #2b2f36; --a-ctrl: #3e444d; --a-text: #f0f2f5; --a-2: #b8c0cb; --a-muted: #929ca9;
  --a-accent: #3a5bd0; --a-accent-text: #82b8ff; --a-accent-soft: #172b44; --a-ok: #82b889; --a-warn: #dfc178; --a-danger: #f08e85;
  font: 13px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--a-text);
  text-align: left;
}
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg button { font: inherit; color: inherit; cursor: pointer; }
.sg svg { width: 16px; height: 16px; flex: none; }

/* Janela */
.sg-window { border-radius: 14px; overflow: hidden; background: var(--a-canvas); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset; height: 660px; display: flex; flex-direction: column; }
.sg-titlebar { height: 34px; display: flex; align-items: center; gap: 14px; padding-left: 12px; background: var(--a-sidebar); border-bottom: 1px solid var(--a-line); flex: none; user-select: none; }
.sg-titlebar img { width: 16px; height: 16px; border-radius: 4px; }
.sg-menus { display: flex; gap: 2px; }
.sg-menus span { padding: 3px 8px; border-radius: 5px; color: var(--a-2); font-size: 12.5px; }
.sg-menus span:hover { background: var(--a-hover); }
.sg-title { margin: 0 auto; color: var(--a-muted); font-size: 12px; transform: translateX(-60px); }
.sg-winbtns { display: flex; height: 100%; }
.sg-winbtns span { width: 46px; display: grid; place-items: center; color: var(--a-2); }
.sg-winbtns span:hover { background: var(--a-hover); }
.sg-winbtns span:last-child:hover { background: #c42b1c; color: #fff; }
.sg-winbtns svg { width: 12px; height: 12px; }

.sg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 48px 250px minmax(0, 1fr) auto; }
.sg-body.no-sidebar { grid-template-columns: 48px 0 minmax(0, 1fr) auto; }
.sg-body.no-sidebar .sg-sidebar { visibility: hidden; border: 0; }

/* Faixa de atalhos */
.sg-ribbon { background: var(--a-sidebar); border-right: 1px solid var(--a-line); display: flex; flex-direction: column; align-items: center; padding: 8px 0; gap: 4px; }
.sg-rbtn { width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; display: grid; place-items: center; color: var(--a-muted); position: relative; }
.sg-rbtn:hover { background: var(--a-hover); color: var(--a-text); }
.sg-rbtn.is-on { background: var(--a-accent-soft); color: var(--a-accent-text); }
.sg-rbtn svg { width: 18px; height: 18px; }
.sg-usage { margin: 8px 0; width: 6px; height: 64px; border-radius: 3px; background: var(--a-subtle); position: relative; overflow: hidden; }
.sg-usage i { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, var(--a-accent-text), var(--a-accent)); border-radius: 3px; transition: height 1s ease; }
.sg-ribbon .grow { flex: 1; }

/* Menu lateral */
.sg-sidebar { background: var(--a-sidebar); border-right: 1px solid var(--a-line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sg-search { margin: 10px 10px 6px; display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 32px; border-radius: 8px; background: var(--a-subtle); border: 1px solid transparent; color: var(--a-muted); }
.sg-search:focus-within { border-color: var(--a-ctrl); }
.sg-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--a-text); font: inherit; outline: none; }
.sg-side-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); }
.sg-side-head button { border: 0; background: transparent; color: var(--a-muted); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.sg-side-head button:hover { background: var(--a-hover); color: var(--a-text); }
.sg-tree { overflow: auto; padding: 2px 6px 10px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--a-line) transparent; }
.sg-row { width: 100%; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 5px 8px; border-radius: 7px; text-align: left; color: var(--a-2); min-height: 30px; }
.sg-row:hover { background: var(--a-hover); color: var(--a-text); }
.sg-row.is-on { background: var(--a-accent-soft); color: var(--a-text); }
.sg-row .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row.proj { font-weight: 600; color: var(--a-text); }
.sg-row.space { padding-left: 24px; }
.sg-row.conv { padding-left: 42px; font-size: 12.5px; }
.sg-row .caret { transition: transform .15s; color: var(--a-muted); width: 14px; height: 14px; }
.sg-row.closed .caret { transform: rotate(-90deg); }
.sg-row .agent { width: 14px; height: 14px; border-radius: 3px; }
.sg-branch { font: 11px "Cascadia Code", Consolas, monospace; color: var(--a-muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sg-dot.run { background: var(--a-ok); box-shadow: 0 0 0 3px rgba(130,184,137,.18); animation: sg-pulse 1.3s infinite; }
.sg-dot.new { background: var(--a-accent-text); }
.sg-dot.idle { background: transparent; }
@keyframes sg-pulse { 50% { opacity: .35; } }
.sg-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--a-line); border-top-color: var(--a-ok); animation: sg-rot .8s linear infinite; flex: none; }
@keyframes sg-rot { to { transform: rotate(360deg); } }
.sg-empty-search { padding: 14px; color: var(--a-muted); font-size: 12.5px; }
.sg-side-foot { border-top: 1px solid var(--a-line); padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: var(--a-muted); font-size: 12px; }
.sg-side-foot .on { width: 7px; height: 7px; border-radius: 50%; background: var(--a-ok); }

/* Área de trabalho */
.sg-work { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--a-canvas); }
.sg-work-head { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--a-line); flex: none; }
.sg-crumb { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.sg-crumb span { color: var(--a-muted); font-weight: 400; }
.sg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--a-subtle); border: 1px solid var(--a-line); font: 11px "Cascadia Code", Consolas, monospace; color: var(--a-2); white-space: nowrap; }
.sg-badge svg { width: 12px; height: 12px; }
.sg-head-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.sg-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-text); font-size: 12.5px; font-weight: 500; }
.sg-btn:hover { background: var(--a-hover); }
.sg-btn.primary { background: var(--a-accent); border-color: transparent; color: #fff; }
.sg-btn.primary:hover { filter: brightness(1.12); }
.sg-btn.icon { width: 30px; padding: 0; justify-content: center; }
.sg-btn.is-on { background: var(--a-accent-soft); border-color: #2a4670; color: var(--a-accent-text); }
.sg-btn[disabled] { opacity: .45; cursor: not-allowed; }
.sg-pop-wrap { position: relative; }
.sg-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 220px; background: var(--a-surface); border: 1px solid var(--a-ctrl); border-radius: 10px; padding: 5px; box-shadow: 0 18px 40px rgba(0,0,0,.5); z-index: 5; }
.sg-pop button { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 7px 8px; border-radius: 7px; text-align: left; }
.sg-pop button:hover { background: var(--a-hover); }
.sg-pop img { width: 16px; height: 16px; border-radius: 3px; }
.sg-pop small { margin-left: auto; color: var(--a-muted); font-size: 11px; }

.sg-grid { flex: 1; min-height: 0; display: grid; gap: 10px; padding: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.sg-card { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-surface); overflow: hidden; transition: border-color .15s, transform .15s; cursor: pointer; }
.sg-card:hover { border-color: var(--a-ctrl); }
.sg-card.is-run { border-color: #35553a; }
.sg-card-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--a-line); font-weight: 600; font-size: 12.5px; }
.sg-card-head img { width: 15px; height: 15px; border-radius: 3px; }
.sg-card-head .st { margin-left: auto; font-weight: 400; color: var(--a-muted); font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.sg-card .sg-log { padding: 10px 12px; font-size: 12px; }

.sg-single { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sg-log { flex: 1; min-height: 0; overflow: auto; padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--a-line) transparent; }
.sg-msg-user { align-self: flex-end; max-width: 80%; background: var(--a-accent-soft); border: 1px solid #22406a; padding: 8px 12px; border-radius: 12px 12px 4px 12px; white-space: pre-wrap; word-break: break-word; }
.sg-msg-agent { max-width: 92%; color: var(--a-text); white-space: pre-wrap; }
.sg-msg-agent .who { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--a-muted); margin-bottom: 2px; font-weight: 600; }
.sg-msg-agent .who img { width: 13px; height: 13px; border-radius: 3px; }
.sg-caret::after { content: "▍"; color: var(--a-accent-text); animation: sg-pulse .9s infinite; margin-left: 1px; }
.sg-tool { display: flex; align-items: center; gap: 8px; font: 12px "Cascadia Code", Consolas, monospace; color: var(--a-2); padding: 5px 9px; border-radius: 7px; background: var(--a-subtle); border: 1px solid var(--a-line); width: fit-content; max-width: 100%; animation: sg-in .25s ease both; }
.sg-tool b { color: var(--a-accent-text); font-weight: 600; }
.sg-tool .ok { color: var(--a-ok); }
.sg-diff { font: 11.5px/1.6 "Cascadia Code", Consolas, monospace; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; animation: sg-in .25s ease both; max-width: 100%; }
.sg-diff-h { padding: 5px 10px; background: var(--a-subtle); color: var(--a-2); display: flex; gap: 10px; }
.sg-diff-h .add { color: var(--a-ok); } .sg-diff-h .del { color: var(--a-danger); }
.sg-diff div.l { padding: 0 10px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.sg-diff .l.plus { background: rgba(130,184,137,.1); color: #b9e0bd; }
.sg-diff .l.minus { background: rgba(240,142,133,.09); color: #f2b3ad; }
.sg-result { display: flex; align-items: center; gap: 8px; color: var(--a-ok); font-weight: 600; font-size: 12.5px; animation: sg-in .25s ease both; }
.sg-thinking { display: flex; gap: 4px; padding: 6px 0; }
.sg-thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-muted); animation: sg-bounce 1s infinite; }
.sg-thinking i:nth-child(2) { animation-delay: .15s; } .sg-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes sg-bounce { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes sg-in { from { opacity: 0; transform: translateY(4px); } }
.sg-empty { margin: auto; text-align: center; color: var(--a-muted); max-width: 320px; }
.sg-empty img { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 8px; }
.sg-empty strong { display: block; color: var(--a-text); font-size: 15px; margin-bottom: 4px; }

/* Caixa de mensagem */
.sg-composer { margin: 8px 16px 14px; border: 1px solid var(--a-ctrl); border-radius: 12px; background: var(--a-surface); transition: border-color .15s, box-shadow .15s; }
.sg-composer:focus-within { border-color: #4d74c9; box-shadow: 0 0 0 3px #82b8ff20; }
.sg-composer textarea { width: 100%; resize: none; border: 0; background: transparent; color: var(--a-text); font: inherit; font-size: 13.5px; padding: 10px 12px 4px; outline: none; height: 44px; }
.sg-composer-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px 8px; }
.sg-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 7px; background: var(--a-subtle); color: var(--a-2); font-size: 12px; border: 0; }
.sg-chip img { width: 13px; height: 13px; border-radius: 3px; }
.sg-composer-bar .sp { flex: 1; }
.sg-ibtn { width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--a-muted); display: grid; place-items: center; position: relative; }
.sg-ibtn:hover { background: var(--a-hover); color: var(--a-text); }
.sg-ibtn.send { background: var(--a-accent); color: #fff; }
.sg-ibtn.send:hover { filter: brightness(1.15); background: var(--a-accent); }
.sg-ibtn.send[disabled] { background: var(--a-subtle); color: var(--a-muted); cursor: not-allowed; }
.sg-ibtn.rec { color: #fff; background: #b33f37; animation: sg-pulse 1s infinite; }
.sg-wave { display: none; align-items: center; gap: 2px; height: 22px; padding: 0 8px; }
.sg-composer.is-rec .sg-wave { display: flex; }
.sg-composer.is-rec .sg-chip { display: none; }
.sg-wave i { width: 2px; border-radius: 2px; background: var(--a-danger); animation: wave .9s ease-in-out infinite; }

/* Painel lateral */
.sg-panel { width: 300px; border-left: 1px solid var(--a-line); background: var(--a-sidebar); display: flex; flex-direction: column; min-height: 0; }
.sg-panel[hidden] { display: none; }
.sg-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--a-line); flex: none; }
.sg-tab { border: 0; background: transparent; padding: 7px 9px 9px; font-size: 12px; font-weight: 600; color: var(--a-muted); border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 5px; }
.sg-tab:hover { color: var(--a-text); }
.sg-tab.is-on { color: var(--a-text); border-bottom-color: var(--a-accent-text); }
.sg-tab svg { width: 14px; height: 14px; }
.sg-tab .n { font-size: 10px; background: var(--a-accent-soft); color: var(--a-accent-text); border-radius: 999px; padding: 0 6px; }
.sg-pane { flex: 1; overflow: auto; padding: 14px; scrollbar-width: thin; scrollbar-color: var(--a-line) transparent; }
.sg-pane h4 { margin: 0 0 4px; font-size: 13.5px; }
.sg-pane .sub { color: var(--a-muted); font-size: 12px; margin: 0 0 12px; }
.sg-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sg-plan li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; transition: background .3s; }
.sg-plan li.doing { background: var(--a-subtle); }
.sg-plan .bx { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--a-ctrl); flex: none; margin-top: 1px; display: grid; place-items: center; }
.sg-plan .done .bx { background: var(--a-ok); border-color: var(--a-ok); color: #0b1408; }
.sg-plan .done .bx svg { width: 11px; height: 11px; stroke-width: 3; }
.sg-plan .done span { color: var(--a-muted); text-decoration: line-through; }
.sg-plan .doing .bx { border-color: var(--a-ok); border-top-color: transparent; border-radius: 50%; animation: sg-rot .9s linear infinite; }
.sg-progress { height: 6px; border-radius: 3px; background: var(--a-subtle); overflow: hidden; margin-bottom: 14px; }
.sg-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--a-ok), #b8f36b); border-radius: 3px; transition: width .5s ease; }
.sg-bl { display: grid; gap: 6px; }
.sg-bl-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-surface); animation: sg-in .25s ease both; }
.sg-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; flex: none; margin-top: 1px; }
.sg-tag.bug { background: #392825; color: var(--a-danger); }
.sg-tag.melhoria { background: #342f22; color: var(--a-warn); }
.sg-tag.funcionalidade { background: var(--a-accent-soft); color: var(--a-accent-text); }
.sg-add { display: flex; gap: 6px; margin-top: 10px; }
.sg-add input, .sg-commit input { flex: 1; min-width: 0; height: 30px; border-radius: 8px; border: 1px solid var(--a-ctrl); background: var(--a-surface); color: var(--a-text); padding: 0 10px; font: inherit; outline: none; }
.sg-add input:focus, .sg-commit input:focus { border-color: #4d74c9; }
.sg-files { display: grid; gap: 2px; margin: 8px 0 12px; }
.sg-file { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; font: 12px "Cascadia Code", Consolas, monospace; animation: sg-in .25s ease both; }
.sg-file:hover { background: var(--a-subtle); }
.sg-file .m { width: 16px; text-align: center; font-weight: 700; color: var(--a-warn); }
.sg-file .m.a { color: var(--a-ok); }
.sg-file .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a-2); }
.sg-file .add { color: var(--a-ok); } .sg-file .del { color: var(--a-danger); }
.sg-commit { display: grid; gap: 6px; }
.sg-log-git { margin-top: 14px; display: grid; gap: 6px; }
.sg-log-git div { display: flex; gap: 8px; font-size: 12px; color: var(--a-2); }
.sg-log-git code { color: var(--a-warn); font: 11.5px "Cascadia Code", Consolas, monospace; }

/* Navegador dentro do painel */
.sg-browser { border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; background: #fff; color: #1d1f24; }
.sg-url { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--a-subtle); color: var(--a-2); font: 11.5px "Cascadia Code", Consolas, monospace; }
.sg-url span { flex: 1; background: var(--a-canvas); border-radius: 6px; padding: 3px 8px; }
.sg-shop { padding: 14px; }
.sg-shop h5 { margin: 0 0 2px; font-size: 14px; }
.sg-shop .price { font-size: 20px; font-weight: 700; margin: 6px 0 12px; }
.sg-pay { display: grid; gap: 6px; }
.sg-pay button { display: flex; align-items: center; gap: 8px; border: 1px solid #d9dce2; background: #fff; color: #1d1f24; border-radius: 8px; padding: 8px 10px; text-align: left; font-weight: 500; }
.sg-pay button:hover { border-color: #2D40A6; }
.sg-pay button.is-on { border-color: #2D40A6; background: #edf0fc; }
.sg-pay .novo { margin-left: auto; font-size: 10px; background: #e5fbd0; color: #2f6b12; padding: 2px 6px; border-radius: 999px; font-weight: 700; }
.sg-qr { margin: 12px auto 0; width: 132px; display: grid; grid-template-columns: repeat(21, 1fr); gap: 0; padding: 8px; border: 1px solid #e1e3e8; border-radius: 8px; animation: sg-in .3s ease both; }
.sg-qr i { aspect-ratio: 1; }
.sg-qr i.b { background: #111; }
.sg-qr-cap { text-align: center; font-size: 11.5px; color: #555; margin-top: 6px; }

/* Celular */
.sg-phone-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px; min-height: 660px; }
.sg-phone-note { display: grid; gap: 14px; max-width: 300px; justify-self: end; }
.sg-phone-note.right { justify-self: start; }
.sg-phone-note div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,14,11,.7); backdrop-filter: blur(8px); font-size: 14px; color: var(--text-2); }
.sg-phone-note strong { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }
.sg-phone { width: 340px; height: 680px; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #2a2d33, #0c0d10); box-shadow: var(--shadow), inset 0 0 0 2px #3a3e45; position: relative; }
.sg-phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.sg-screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--a-canvas); display: flex; flex-direction: column; position: relative; }
.sg-status { height: 46px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 12.5px; font-weight: 600; }
.sg-status span:last-child { display: flex; gap: 5px; align-items: center; }
.sg-status svg { width: 14px; height: 14px; }
.sg-conn { margin: 4px 14px 6px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(130,184,137,.1); color: var(--a-ok); font-size: 11.5px; font-weight: 600; }
.sg-conn svg { width: 13px; height: 13px; }
.sg-m-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--a-line); min-height: 48px; flex: none; }
.sg-m-head h6 { margin: 0; font-size: 16px; font-weight: 700; flex: 1; }
.sg-m-head .back { border: 0; background: transparent; color: var(--a-accent-text); display: flex; align-items: center; gap: 2px; padding: 4px 2px; font-size: 14px; }
.sg-m-head img { width: 20px; height: 20px; border-radius: 5px; }
.sg-m-list { flex: 1; overflow: auto; padding: 6px 10px 20px; scrollbar-width: none; }
.sg-m-group { margin: 12px 4px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); display: flex; gap: 6px; align-items: center; }
.sg-m-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 0; background: var(--a-surface); margin-bottom: 6px; text-align: left; }
.sg-m-item:active { transform: scale(.99); }
.sg-m-item img { width: 30px; height: 30px; border-radius: 8px; background: var(--a-subtle); padding: 5px; }
.sg-m-item .tx { flex: 1; min-width: 0; }
.sg-m-item strong { display: block; font-size: 13.5px; }
.sg-m-item span { display: block; color: var(--a-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-screen .sg-log { padding: 12px 14px; font-size: 13px; }
.sg-screen .sg-composer { margin: 6px 10px 18px; border-radius: 18px; }
.sg-screen .sg-composer textarea { height: 40px; }
.sg-home-ind { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); }

@media (max-width: 1100px) {
  .sg-panel { width: 260px; }
  .sg-body { grid-template-columns: 48px 220px minmax(0, 1fr) auto; }
}
@media (max-width: 960px) {
  .sg-phone-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
  .sg-phone-note { display: none; }
}
@media (max-width: 400px) {
  .sg-phone { width: 100%; height: 640px; border-radius: 40px; }
  .sg-screen { border-radius: 30px; }
}
