/* Miel — working profile prototype (IG-like, EN/LTR). */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #fafafa; color: #111; font-family: var(--miel-system);
  display: grid; justify-items: center; }
img { display: block; max-width: 100%; }

.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 99; background: #111; color: #fff;
  padding: 0.8rem 1.2rem; border-radius: 0.5rem; text-decoration: none; transition: top 0.2s; }
.skip-link:focus-visible { top: 0.8rem; }
:focus-visible { outline: 2.5px solid var(--miel-cocoa); outline-offset: 2px; }

.app { width: min(100%, 30rem); background: #fff; min-height: 100dvh;
  border-inline: 1px solid #efefef; }

.app-top { display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0;
  background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); z-index: 5; }
.app-user { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.app-icons { display: inline-flex; gap: 1.1rem; }
.app-icons svg { width: 1.4rem; height: 1.4rem; }

.head { display: flex; gap: 1.6rem; padding: 1.3rem 1.1rem 0.6rem; align-items: flex-start; }
.ava-ring { flex: none; width: 5.4rem; height: 5.4rem; border-radius: 50%;
  background: var(--miel-cocoa); display: grid; place-items: center;
  outline: 2.5px solid var(--miel-base); outline-offset: 3px; }
.ava-ring img { width: 55%; }
.head-copy h1 { font-size: 1.05rem; font-weight: 700; }
.stat { margin-top: 0.35rem; font-size: 0.92rem; color: #333; }
.stat b { font-weight: 700; }
.bio { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.5; color: #222; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.9rem 1.1rem; }
.act { min-height: 2.75rem; border: 0; border-radius: 0.6rem; font: inherit; font-weight: 600;
  cursor: pointer; background: #efefef; color: #111; }
.act:first-child { background: var(--miel-cocoa); color: #fff; }

.highlights { display: flex; gap: 1.4rem; padding: 0.7rem 1.1rem 1.1rem; overflow-x: auto; }
.hl { display: grid; justify-items: center; gap: 0.45rem; font-size: 0.68rem;
  letter-spacing: 0.08em; color: #333; flex: none; }
.hl i { width: 3.9rem; height: 3.9rem; border-radius: 50%; border: 1.5px solid #dcdcdc;
  background: var(--miel-cocoa); display: grid; place-items: center; }
.hl i img { width: 45%; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #efefef; }
.tab { display: grid; place-items: center; padding: 0.75rem 0; color: #999; }
.tab.on { color: #111; box-shadow: inset 0 -1.5px 0 #111; }
.tab svg { width: 1.5rem; height: 1.5rem; }

.grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.grid li { position: relative; }
.carousel-ic { position: absolute; top: 0.5rem; right: 0.5rem; color: #fff;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 40%)); pointer-events: none; }
.carousel-ic svg { width: 1.15rem; height: 1.15rem; }

.proto-note { text-align: center; font-size: 0.75rem; color: #999; padding: 1.4rem 1rem 2rem; }

/* dialog */
#postDlg { border: 0; border-radius: 0.8rem; padding: 0; width: min(94vw, 30rem);
  box-shadow: 0 40px 90px rgb(0 0 0 / 35%); }
#postDlg::backdrop { background: rgb(0 0 0 / 55%); }
.dlg-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem; }
.dlg-ava { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--miel-cocoa);
  display: grid; place-items: center; }
.dlg-ava img { width: 55%; }
.dlg-user { font-weight: 700; font-size: 0.95rem; }
.dlg-close { margin-inline-start: auto; width: 2.75rem; height: 2.75rem; border: 0;
  background: none; font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.dlg-close:hover { background: #f2f2f2; }
.dlg-media img { width: 100%; display: block; }
.dlg-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.5rem; }
.dlg-nav button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #ddd;
  background: #fff; font-size: 1.3rem; cursor: pointer; }
.dlg-nav button:hover { background: #f6f6f6; }
.dots { display: inline-flex; gap: 0.35rem; }
.dots i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #ccc; }
.dots i.on { background: var(--miel-cocoa); }
.dlg-cap { padding: 0.6rem 1rem 1.1rem; font-size: 0.92rem; line-height: 1.5; color: #222; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
