/* SEMIO MED - pagina inicial com widgets (04/12/2026) */
.shm {
  --i-tinta: #0f2036; --i-texto: #33445b; --i-mudo: #5d6d82; --i-marca: #103868; --i-marca-f: #0b2a4f; --i-marca-t: #e9f0f8;
  --i-linha: #e1e5ec; --i-papel: #fff; --i-creme: #faf6ee; --i-ouro: #b9770f; --i-ouro-t: #fbf1dc;
  --w-vidro: rgba(255, 255, 255, .62); --w-borda: rgba(255, 255, 255, .78); --w-sombra: 0 10px 30px -14px rgba(16, 40, 72, .35);
  --w-linha: 168px; --w-gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 26px 28px 40px; color: var(--i-tinta); font-family: Inter, system-ui, sans-serif;
}
html.dark .shm {
  --i-tinta: #eaf1fa; --i-texto: #c3cfdf; --i-mudo: #93a3ba; --i-marca: #8fb4e8; --i-marca-f: #cfe0f7; --i-marca-t: #1a2a44;
  --i-linha: #22324a; --i-papel: #111c2e; --i-creme: #141f31; --i-ouro: #f0b84a; --i-ouro-t: #2b2412;
  --w-vidro: rgba(24, 36, 58, .58); --w-borda: rgba(255, 255, 255, .1); --w-sombra: 0 12px 34px -14px rgba(0, 0, 0, .6);
}
/* a home original fica montada, mas fora de vista */
.semiomed-home-root.shm-ativo > :not(.shm) { display: none !important; }
.semiomed-home-root.shm-ativo { padding: 0 !important; }

.shm button { font: inherit; color: inherit; cursor: pointer; text-align: left; }
.shm button:focus-visible, .shm .shm-w:focus-visible { outline: 2px solid var(--i-marca); outline-offset: 2px; }
.shm h1, .shm h2, .shm h3, .shm p { margin: 0; }
.shm ul, .shm ol { list-style: none; margin: 0; padding: 0; }
.shm svg { display: block; }
html.semiomed-smooth .semiomed-workspace .shm :where(h1, h2, h3), html.semiomed-smooth .shm-gal :where(h1, h2, h3) { color: var(--i-tinta) !important; }

/* topo */
.shm-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
html body .shm .shm-data { color: var(--i-mudo) !important; font-size: 14px; font-weight: 600; }
.shm-ola { margin-top: 4px !important; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
html body .shm .shm-editar { flex: none; padding: 8px 16px; border: 1px solid rgba(16, 56, 104, .16); border-radius: 999px; background: rgba(255, 255, 255, .7) !important; color: var(--i-marca) !important; font-size: 14px; font-weight: 700; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html body .shm .shm-editar:hover { border-color: var(--i-marca) !important; }
html body .shm .shm-editar[aria-pressed="true"] { background: var(--i-marca) !important; border-color: var(--i-marca) !important; color: #fff !important; }
.shm-dica { margin: -8px 0 12px !important; color: var(--i-mudo); font-size: 13.5px; }

/* ---------- quadro: fundo de cor suave para o vidro aparecer ---------- */
.shm-quadro { position: relative; padding: 18px; border-radius: 30px; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 70% at 8% 10%, rgba(78, 137, 214, .38), transparent 60%),
    radial-gradient(50% 60% at 92% 18%, rgba(55, 178, 160, .30), transparent 62%),
    radial-gradient(55% 65% at 70% 95%, rgba(232, 176, 82, .32), transparent 60%),
    radial-gradient(45% 55% at 20% 90%, rgba(16, 56, 104, .22), transparent 65%),
    linear-gradient(160deg, #eef3fa, #f7f2ea);
}
html.dark .shm-quadro { background:
    radial-gradient(60% 70% at 8% 10%, rgba(64, 120, 200, .35), transparent 60%),
    radial-gradient(50% 60% at 92% 18%, rgba(40, 150, 135, .25), transparent 62%),
    radial-gradient(55% 65% at 70% 95%, rgba(200, 140, 50, .22), transparent 60%),
    linear-gradient(160deg, #0d1626, #121c2e); }
.shm-quadro-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--w-linha); grid-auto-flow: dense; gap: var(--w-gap); }

/* ---------- widget: o vidro ---------- */
.shm-w { position: relative; min-width: 0; border-radius: 24px; border: 1px solid var(--w-borda); background: var(--w-vidro);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--w-sombra), inset 0 1px 0 rgba(255, 255, 255, .7); transition: transform .18s ease, box-shadow .18s ease; }
html.dark .shm-w { box-shadow: var(--w-sombra), inset 0 1px 0 rgba(255, 255, 255, .06); }
.shm-w.is-p { grid-column: span 1; grid-row: span 1; }
.shm-w.is-m { grid-column: span 2; grid-row: span 1; }
.shm-w.is-g { grid-column: span 2; grid-row: span 2; }
.shm-w-corpo { height: 100%; overflow: hidden; border-radius: inherit; }
.shm-w-corpo > div { height: 100%; }
.shm-w.is-clicavel { cursor: pointer; }
.shm-w.is-clicavel:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(16, 40, 72, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }

/* partes comuns */
.shm-w-topo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shm-w-ic, .shm-app-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.shm-w-ic svg { width: 15px; height: 15px; }
.is-estudar.shm-w-ic, .is-estudar.shm-app-ic { background: linear-gradient(150deg, #2d63a3, #103868); }
.is-praticar.shm-w-ic, .is-praticar.shm-app-ic { background: linear-gradient(150deg, #1f4f8a, #0b2a4f); }
.is-acompanhar.shm-w-ic, .is-acompanhar.shm-app-ic { background: linear-gradient(150deg, #1a4478, #081f3d); }
.shm-w-rot { color: var(--i-mudo); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-w-extra { margin-left: auto; color: var(--i-mudo); font-size: 12px; font-weight: 600; white-space: nowrap; }
.shm-w-titulo { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; color: var(--i-tinta); }
.shm-w-det { display: block; color: var(--i-texto); font-size: 13.5px; line-height: 1.45; }
.shm-w-acao { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--i-marca); font-size: 14px; font-weight: 700; }
.shm-w-acao svg { width: 16px; height: 16px; transition: transform .15s; }
.shm-w:hover .shm-w-acao svg { transform: translateX(3px); }
.shm-w-vazio { color: var(--i-mudo); font-size: 14px; padding: 10px 0; }

/* continuar */
.shm-w-cont { display: grid; grid-template-columns: 44% 1fr; grid-template-rows: 1fr auto; }
.shm-w-cont-arte { grid-row: 1 / -1; width: 100%; height: 100%; object-fit: cover; }
.shm-w-cont-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 18px 16px; }
.shm-w-cont .shm-w-titulo { font-size: 21px; }
.shm-w-cont .shm-w-det { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shm-w-cont:not(:has(.shm-w-cont-arte)) { grid-template-columns: 1fr; }
.shm-w.is-g .shm-w-cont { grid-template-columns: 1fr; grid-template-rows: 46% auto 1fr; }
.shm-w.is-g .shm-w-cont-arte { grid-row: auto; }
.shm-w-lista { padding: 0 12px 12px; display: grid; gap: 4px; align-content: start; }
html body .shm .shm-w-linha { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .45) !important; }
html body .shm .shm-w-linha:hover { background: rgba(255, 255, 255, .8) !important; }
html.dark body .shm .shm-w-linha { background: rgba(255, 255, 255, .06) !important; }
.shm-w-linha-tx { display: grid; min-width: 0; }
.shm-w-linha-tx b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-w-linha-tx small { color: var(--i-mudo); font-size: 12px; }

/* meta, desafio: aneis */
.shm-w-meta, .shm-w-des, .shm-w-ecg, .shm-w-rev, .shm-w-agenda, .shm-w-frase, .shm-w-agora { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.shm-w-meta-c { display: flex; align-items: center; gap: 12px; flex: 1; }
.shm-w.is-p .shm-w-meta-c { flex-direction: row; gap: 10px; }
.shm-w-anel { position: relative; flex: none; display: grid; place-items: center; }
.shm-anel { transform: rotate(-90deg); }
.shm-anel circle { fill: none; stroke-width: 3.4; stroke-linecap: round; }
.shm-anel-t { stroke: rgba(16, 56, 104, .12); }
html.dark .shm-anel-t { stroke: rgba(255, 255, 255, .12); }
.shm-anel-p { transition: stroke-dashoffset .6s ease; }
.shm-w-anel-n { position: absolute; font-size: 22px; font-weight: 800; color: var(--i-tinta); }
.shm-w.is-p .shm-w-meta .shm-w-anel { margin: 0; }
.shm-w-meta-tx { display: grid; min-width: 0; }
.shm-w-meta-tx strong { font-size: 15px; font-weight: 800; color: var(--i-tinta); }
.shm-w-meta-tx span { font-size: 12.5px; color: var(--i-mudo); }
.shm-w.is-p .shm-w-meta .shm-w-anel svg { width: 64px; height: 64px; }
.shm-w.is-p .shm-w-meta .shm-w-anel-n { font-size: 18px; }
.shm-w.is-m .shm-w-meta { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 18px; }
.shm-w.is-m .shm-w-meta .shm-w-topo { grid-column: 1 / -1; }
.shm-w.is-m .shm-w-meta-c { flex-direction: column; align-items: flex-start; gap: 4px; }
.shm-w.is-m .shm-w-meta .shm-w-anel svg { width: 74px; height: 74px; }
.shm-w-barras { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 100%; padding-bottom: 2px; }
.shm-w-barra { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.shm-w-barra i { display: block; width: 100%; max-width: 18px; border-radius: 5px; background: rgba(16, 56, 104, .22); }
.shm-w-barra.is-hoje i { background: var(--i-marca); }
.shm-w-barra small { color: var(--i-mudo); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.shm-w-des .shm-w-anel { margin: auto 0 0; }
.shm-w-des .shm-w-anel-n { font-size: 17px; }
.shm-w.is-p .shm-w-des .shm-w-det { font-size: 12.5px; }

/* agenda */
.shm-w-ag { display: grid; gap: 6px; }
html body .shm .shm-w-ev { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .5) !important; }
html body .shm .shm-w-ev:hover { background: rgba(255, 255, 255, .85) !important; }
html.dark body .shm .shm-w-ev { background: rgba(255, 255, 255, .06) !important; }
.shm-w-ev-d { flex: none; display: grid; justify-items: center; width: 52px; }
.shm-w-ev-d small { color: var(--i-mudo); font-size: 11px; font-weight: 700; }
.shm-w-ev-d b { color: var(--i-marca); font-size: 15px; font-weight: 800; }
.shm-w-ev-t { display: grid; min-width: 0; }
.shm-w-ev-t small { color: var(--i-ouro); font-size: 11.5px; font-weight: 750; text-transform: lowercase; }
.shm-w-ev-t small::first-letter { text-transform: uppercase; }
.shm-w-ev-t b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-w-ev-l { color: var(--i-mudo); font-size: 12px; }

/* frase */
.shm-w-nav { display: flex; gap: 4px; margin-left: auto; }
html body .shm .shm-w-mini { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55) !important; color: var(--i-texto) !important; }
html body .shm .shm-w-mini:hover { background: #fff !important; color: var(--i-marca) !important; }
.shm-w-mini svg { width: 15px; height: 15px; }
.shm-w-fr { margin: 0; overflow: hidden; }
.shm-w-fr p { font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; line-height: 1.5; color: var(--i-tinta); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shm-w.is-g .shm-w-fr p { font-size: 19px; -webkit-line-clamp: 9; }
.shm-w-fr footer { margin-top: 6px; color: var(--i-mudo); font-size: 12.5px; font-weight: 700; }

/* atalhos: icones de app */
.shm-w-apps { padding: 14px 10px; }
.shm-w-apps-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 4px; height: 100%; align-content: center; }
html body .shm .shm-w-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 2px; border: 0; border-radius: 14px; background: transparent !important; }
html body .shm .shm-w-app:hover { background: rgba(255, 255, 255, .5) !important; }
.shm-w-app > span:last-child { max-width: 100%; color: var(--i-tinta); font-size: 12px; font-weight: 650; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shm-app-ic { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 16px -10px rgba(6, 18, 34, .6), inset 0 1px 0 rgba(255, 255, 255, .35); position: relative; }
.shm-app-ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 55%); }
.shm-app-ic svg { width: 27px; height: 27px; }

/* fotos (prancha, radiografia) */
.shm-w-foto { position: relative; }
.shm-w-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shm-w-foto.is-claro { background: #f3eee4; }
.shm-w-foto.is-claro img { object-fit: contain; padding: 8px 8px 46px; }
.shm-w.is-m .shm-w-foto.is-claro img { object-fit: contain; padding: 10px 52% 10px 10px; }
.shm-w-foto.is-escuro { background: #0b0f16; }
.shm-w-foto-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 10px 14px 12px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .9) 40%); }
.shm-w-foto.is-escuro .shm-w-foto-cap { background: linear-gradient(180deg, transparent, rgba(6, 10, 18, .9) 45%); }
.shm-w-foto.is-escuro .shm-w-foto-cap * { color: #fff !important; }
.shm-w-foto.is-escuro .shm-w-rot { color: rgba(255, 255, 255, .7) !important; }
.shm-w-foto-cap strong { font-size: 13.5px; font-weight: 750; line-height: 1.25; color: var(--i-tinta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shm-w.is-m .shm-w-foto.is-claro .shm-w-foto-cap { left: 48%; top: 0; align-content: center; background: none; }
.shm-w.is-m .shm-w-foto.is-claro .shm-w-foto-cap strong { font-size: 17px; }
.shm-w.is-m .shm-w-foto.is-escuro img { object-position: center 30%; }

/* ECG */
.shm-w-tracado { width: 100%; height: 34px; margin: 2px 0; }
.shm-w-tracado path { stroke: #c8442f; }
.shm-w-ecg.is-feito .shm-w-tracado path { stroke: #1f9e6e; }
.shm-w-ecg .shm-w-titulo { font-size: 15.5px; }
.shm-w-ecg .shm-w-det { font-size: 12.5px; }

/* revisar */
.shm-w-rev-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
html body .shm .shm-w-num { display: flex; flex-direction: column; justify-content: center; padding: 8px 10px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .5) !important; }
html body .shm .shm-w-num:hover { background: rgba(255, 255, 255, .85) !important; }
.shm-w-num b { font-size: 26px; font-weight: 800; color: var(--i-tinta); line-height: 1.1; }
.shm-w-num small { color: var(--i-mudo); font-size: 12px; font-weight: 600; }

/* novidades */
.shm-w-novo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.shm-w-novo.is-g { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
html body .shm .shm-w-novo-i { position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: #eee !important; }
.shm-w-novo-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shm-w-novo-i:hover img { transform: scale(1.04); }
.shm-w-novo-tx { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 26px 14px 12px; background: linear-gradient(180deg, transparent, rgba(6, 14, 28, .82)); color: #fff; }
.shm-w-novo-tx b { font-size: 15px; font-weight: 800; }
.shm-w-novo-tx small { font-size: 12px; color: rgba(255, 255, 255, .82); line-height: 1.35; }
.shm-w-novo-tx .shm-selo { justify-self: start; }

/* agora */
.shm-w-agora .shm-w-det { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- modo de edicao ---------- */
.shm-w-tirar, .shm-w-tam { display: none; }
.shm.is-editando .shm-w { cursor: grab; touch-action: none; animation: shmBalanca .32s ease-in-out infinite alternate; }
.shm.is-editando .shm-w:nth-child(2n) { animation-delay: -.16s; }
.shm.is-editando .shm-w.is-arrastando { cursor: grabbing; animation: none; z-index: 5; box-shadow: 0 28px 60px -18px rgba(16, 40, 72, .55); transition: none; }
.shm.is-editando .shm-w-corpo { pointer-events: none; }
html body .shm.is-editando .shm-w-tirar { position: absolute; top: -8px; left: -8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #8a96a8 !important; color: #fff !important; box-shadow: 0 2px 8px rgba(6, 18, 34, .3); }
html body .shm.is-editando .shm-w-tirar:hover { background: #c0392b !important; }
.shm-w-tirar svg { width: 14px; height: 14px; }
html body .shm.is-editando .shm-w-tam { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: block; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(16, 32, 54, .78) !important; color: #fff !important; font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .shm .shm-w-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; grid-column: span 1; border: 2px dashed rgba(16, 56, 104, .3); border-radius: 24px; background: rgba(255, 255, 255, .35) !important; color: var(--i-marca) !important; font-size: 14px; font-weight: 700; }
html body .shm .shm-w-add:hover { background: rgba(255, 255, 255, .6) !important; border-color: var(--i-marca); }
.shm-w-add svg { width: 30px; height: 30px; }
@keyframes shmBalanca { from { transform: rotate(-.45deg); } to { transform: rotate(.45deg); } }

/* ---------- galeria de widgets ---------- */
.shm-gal { position: fixed; inset: 0; z-index: 1350; display: grid; place-items: center; padding: 16px; background: rgba(8, 20, 38, .34); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-family: Inter, system-ui, sans-serif; }
.shm-gal[hidden] { display: none; }
.shm-gal-cx { --i-tinta: #0f2036; --i-texto: #33445b; --i-mudo: #5d6d82; --i-marca: #103868; --i-ouro: #b9770f; --i-ouro-t: #fbf1dc; --w-vidro: rgba(255, 255, 255, .7); --w-borda: rgba(255, 255, 255, .8); --w-sombra: 0 6px 18px -10px rgba(16, 40, 72, .35);
  width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .7);
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(242, 246, 252, .9)); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); box-shadow: 0 30px 80px -20px rgba(6, 18, 34, .45); color: var(--i-tinta); }
.shm-gal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.shm-gal-cab h2 { margin: 0; font-size: 21px; font-weight: 800; }
html body .shm-gal-fechar { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 32, 54, .08) !important; color: var(--i-tinta) !important; cursor: pointer; }
.shm-gal-fechar svg { width: 18px; height: 18px; }
.shm-gal-lista { display: grid; gap: 12px; }
.shm-gal-item { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: linear-gradient(160deg, #e9f0fa, #f6f0e6); }
.shm-gal-prev { height: 96px; overflow: hidden; border-radius: 16px; }
.shm-gal-prev .shm-w { width: 100%; height: 100%; border-radius: 16px; pointer-events: none; transform: none !important; }
.shm-gal-prev .shm-w.is-amostra.is-m, .shm-gal-prev .shm-w.is-amostra.is-g { width: 200%; height: 200%; transform: scale(.5) !important; transform-origin: 0 0; }
.shm-gal-prev .shm-w.is-amostra.is-p { width: 96px; height: 96px; }
.shm-gal-tx { display: grid; gap: 3px; min-width: 0; }
.shm-gal-tx b { font-size: 15px; font-weight: 750; }
.shm-gal-tx small { color: var(--i-mudo); font-size: 12.5px; line-height: 1.4; }
html body .shm-gal-add { padding: 8px 14px; border: 0; border-radius: 999px; background: #103868 !important; color: #fff !important; font: 700 13.5px Inter, system-ui, sans-serif; cursor: pointer; }
html body .shm-gal-rest { margin-top: 16px; padding: 6px 0; border: 0; background: none !important; color: #103868 !important; font: 650 13.5px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.shm-gal-vazio { color: var(--i-mudo); font-size: 14px; }
.shm-gal-tirar, .shm-gal .shm-w-tirar, .shm-gal .shm-w-tam { display: none !important; }

/* ---------- todos os modulos ---------- */
.shm-sec-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shm-sec-cab h2 { font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.shm-mods { margin-top: 34px; }
.shm-mods-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--i-linha); border-radius: 16px; background: var(--i-papel); }
.shm-col { padding: 20px 18px 12px; }
.shm-col + .shm-col { border-left: 1px solid var(--i-linha); }
.shm-col h3 { font-size: 16px; font-weight: 800; }
.shm-col-sub { margin: 2px 0 10px !important; color: var(--i-mudo); font-size: 13px; }
html body .shm .shm-mod { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; border: 0; border-radius: 10px; background: transparent !important; }
html body .shm .shm-mod:hover { background: var(--i-creme) !important; }
.shm-mod-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--i-marca-t); color: var(--i-marca); }
.shm-mod-ic svg { width: 20px; height: 20px; }
html body .shm .shm-mod:hover .shm-mod-ic { background: var(--i-marca); color: #fff; }
.shm-mod-tx { display: grid; gap: 2px; min-width: 0; }
.shm-mod-tx b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--i-tinta); }
.shm-mod-tx small { color: var(--i-mudo); font-size: 12.5px; line-height: 1.35; }
.shm-selo { padding: 1px 7px; border-radius: 4px; background: var(--i-ouro-t); color: var(--i-ouro); font-size: 11px; font-style: normal; font-weight: 750; }

/* tablet */
@media (max-width: 1100px) {
  .shm-quadro-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shm-mods-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shm-col:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--i-linha); }
}
/* celular: 2 colunas, como a tela do iPhone */
@media (max-width: 760px) {
  .shm { --w-linha: 158px; --w-gap: 12px; padding: 16px 14px 28px; }
  .shm-quadro { margin: 0 -6px; padding: 12px; border-radius: 26px; }
  .shm-quadro-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shm-w { border-radius: 22px; }
  .shm-w-cont { grid-template-columns: 40% 1fr; }
  .shm-w-cont-tx { padding: 14px; }
  .shm-w-cont .shm-w-titulo { font-size: 17px; }
  .shm-w-cont .shm-w-det { -webkit-line-clamp: 2; font-size: 12.5px; }
  .shm-w.is-m .shm-w-meta { column-gap: 12px; }
  .shm-app-ic { width: 50px; height: 50px; border-radius: 14px; }
  .shm-w-app > span:last-child { font-size: 11px; }
  .shm-gal-item { grid-template-columns: 110px 1fr; }
  .shm-gal-prev { height: 70px; }
  .shm-gal-add { grid-column: 1 / -1; justify-self: start; }
  .shm-mods-g { grid-template-columns: 1fr; }
  .shm-col + .shm-col, .shm-col:nth-child(3) { border-left: 0; border-top: 1px solid var(--i-linha); }
  html body .shm .shm-mod { padding: 11px 6px; }
  .shm-mods { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) { .shm *, .shm.is-editando .shm-w { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------
   O tema "smooth" da plataforma zera gradiente, sombra e desfoque de
   tudo dentro do #root (com !important). O vidro dos widgets precisa
   deles de volta, so nesta pagina.
   ------------------------------------------------------------------ */
html.semiomed-smooth #root .shm .shm-quadro { background-image:
    radial-gradient(60% 70% at 8% 10%, rgba(78, 137, 214, .38), transparent 60%),
    radial-gradient(50% 60% at 92% 18%, rgba(55, 178, 160, .30), transparent 62%),
    radial-gradient(55% 65% at 70% 95%, rgba(232, 176, 82, .32), transparent 60%),
    radial-gradient(45% 55% at 20% 90%, rgba(16, 56, 104, .22), transparent 65%),
    linear-gradient(160deg, #eef3fa, #f7f2ea) !important; }
html.dark.semiomed-smooth #root .shm .shm-quadro { background-image:
    radial-gradient(60% 70% at 8% 10%, rgba(64, 120, 200, .35), transparent 60%),
    radial-gradient(50% 60% at 92% 18%, rgba(40, 150, 135, .25), transparent 62%),
    radial-gradient(55% 65% at 70% 95%, rgba(200, 140, 50, .22), transparent 60%),
    linear-gradient(160deg, #0d1626, #121c2e) !important; }
html.semiomed-smooth #root .shm .shm-w { -webkit-backdrop-filter: blur(22px) saturate(170%) !important; backdrop-filter: blur(22px) saturate(170%) !important; box-shadow: var(--w-sombra), inset 0 1px 0 rgba(255, 255, 255, .7) !important; }
html.dark.semiomed-smooth #root .shm .shm-w { box-shadow: var(--w-sombra), inset 0 1px 0 rgba(255, 255, 255, .06) !important; }
html.semiomed-smooth #root .shm .shm-w.is-clicavel:hover { box-shadow: 0 18px 40px -16px rgba(16, 40, 72, .45), inset 0 1px 0 rgba(255, 255, 255, .7) !important; }
html.semiomed-smooth #root .shm.is-editando .shm-w.is-arrastando { box-shadow: 0 28px 60px -18px rgba(16, 40, 72, .55) !important; }
html.semiomed-smooth #root .shm .is-estudar:is(.shm-w-ic, .shm-app-ic) { background-image: linear-gradient(150deg, #2d63a3, #103868) !important; }
html.semiomed-smooth #root .shm .is-praticar:is(.shm-w-ic, .shm-app-ic) { background-image: linear-gradient(150deg, #1f4f8a, #0b2a4f) !important; }
html.semiomed-smooth #root .shm .is-acompanhar:is(.shm-w-ic, .shm-app-ic) { background-image: linear-gradient(150deg, #1a4478, #081f3d) !important; }
html.semiomed-smooth #root .shm .shm-w-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3) !important; }
html.semiomed-smooth #root .shm .shm-app-ic { box-shadow: 0 8px 16px -10px rgba(6, 18, 34, .6), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
html.semiomed-smooth #root .shm .shm-app-ic::after { background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 55%) !important; }
html.semiomed-smooth #root .shm .shm-w-foto-cap { background-image: linear-gradient(180deg, transparent, rgba(255, 255, 255, .92) 42%) !important; }
html.semiomed-smooth #root .shm .shm-w-foto.is-escuro .shm-w-foto-cap { background-image: linear-gradient(180deg, transparent, rgba(6, 10, 18, .92) 45%) !important; }
html.semiomed-smooth #root .shm .shm-w.is-m .shm-w-foto.is-claro .shm-w-foto-cap { background-image: none !important; }
html.semiomed-smooth #root .shm .shm-w-novo-tx { background-image: linear-gradient(180deg, transparent, rgba(6, 14, 28, .55) 30%, rgba(6, 14, 28, .9)) !important; }
html.semiomed-smooth #root .shm .shm-editar { -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important; }
html.semiomed-smooth #root .shm.is-editando .shm-w-tam { -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
html.semiomed-smooth #root .shm.is-editando .shm-w-tirar { box-shadow: 0 2px 8px rgba(6, 18, 34, .3) !important; }
html.semiomed-smooth #root .shm .shm-ola { letter-spacing: -0.02em !important; }
html.semiomed-smooth #root .shm .shm-w-titulo { letter-spacing: -0.01em !important; }
/* ajustes de encaixe */
.shm { --w-vidro: rgba(255, 255, 255, .52); }
html.dark .shm { --w-vidro: rgba(24, 36, 58, .5); }
.shm-w-agenda { gap: 6px; padding: 14px 14px 12px; }
.shm-w-ag { gap: 4px; }
html body .shm .shm-w-ev { padding: 5px 8px; border-radius: 12px; gap: 10px; }
.shm-w-ev-d { width: 50px; line-height: 1.15; }
.shm-w-ev-d small { font-size: 10.5px; white-space: nowrap; }
.shm-w-ev-d b { font-size: 14px; }
.shm-w-ev-t { line-height: 1.25; }
.shm-w-novo-tx small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.shm-w-novo.is-g .shm-w-novo-tx small { -webkit-line-clamp: 2; }
.shm-w-foto-cap strong { font-size: 13px; }

/* frase do dia abaixo da saudacao */
.shm-sub { margin-top: 6px !important; color: var(--i-texto); font-size: 16px; line-height: 1.45; max-width: 60ch; }
html body .shm .shm-sub { color: var(--i-texto) !important; }
/* widget sequencia */
.shm-w-seq { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.shm-w-seq-n { display: flex; align-items: center; gap: 8px; flex: 1; }
.shm-w-seq-n svg { width: 34px; height: 34px; color: #d98a1f; }
.shm-w-seq-n b { font-size: 38px; font-weight: 800; color: var(--i-tinta); line-height: 1; }
.shm-w-seq .shm-w-det { font-size: 12.5px; }
