/* Review shell — the frame around the three concepts. Neutral on purpose: the
   chrome must not compete with the work it is showing. */

:root{
  --ink:#101014; --ink-2:#3a3a42; --muted:#7c7c86; --line:#e4e4e8; --line-2:#f0f0f3;
  --bg:#f7f7f8; --card:#ffffff; --accent:#101014;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  font-family:var(--font); background:var(--bg); color:var(--ink);
  -webkit-font-smoothing:antialiased; display:flex; flex-direction:column; min-height:100%;
}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit}

/* ── top bar ────────────────────────────────────────────────────────────── */
.bar{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.bar-in{
  max-width:1680px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;gap:20px;
}
.bar-id{display:flex;align-items:center;gap:11px;flex:1;min-width:0}
.mark{
  width:34px;height:34px;border-radius:9px;background:var(--ink);color:#fff;display:grid;place-items:center;
  font-size:12px;font-weight:700;letter-spacing:.06em;flex:none;
}
.bar-text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.bar-text b{font-size:14.5px;font-weight:600;letter-spacing:-.01em}
.bar-text i{font-style:normal;font-size:12.5px;color:var(--muted)}
.bar-right{display:flex;align-items:center;gap:14px}
.bar-link{
  font-size:12.5px;color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;gap:5px;
  padding:7px 10px;border-radius:8px;transition:background .15s,color .15s;white-space:nowrap;
}
.bar-link:hover{background:var(--line-2);color:var(--ink)}

.seg{display:flex;background:var(--line-2);border-radius:9px;padding:3px;gap:2px}
.segbtn{
  font-size:12.5px;font-weight:500;color:var(--muted);padding:6px 12px;border-radius:7px;white-space:nowrap;
  transition:background .15s,color .15s;
}
.segbtn[aria-selected="true"]{background:var(--card);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.07)}
.segbtn:hover{color:var(--ink)}

/* ── concept switcher ───────────────────────────────────────────────────── */
.concepts{
  max-width:1680px;margin:0 auto;width:100%;padding:0 24px 16px;display:grid;
  grid-template-columns:repeat(3,1fr);gap:12px;
}
.concept{
  display:flex;gap:12px;align-items:flex-start;text-align:left;padding:13px 15px;border-radius:12px;
  border:1px solid var(--line);background:var(--card);transition:border-color .15s,box-shadow .15s,transform .15s;
}
.concept:hover{border-color:#c9c9d0}
.concept[aria-selected="true"]{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.c-key{
  width:24px;height:24px;border-radius:7px;background:var(--line-2);color:var(--ink-2);display:grid;place-items:center;
  font-size:12px;font-weight:700;flex:none;margin-top:1px;
}
.concept[aria-selected="true"] .c-key{background:var(--ink);color:#fff}
.c-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.c-name{font-size:14px;font-weight:600;letter-spacing:-.01em}
.c-desc{font-size:12.5px;color:var(--muted);line-height:1.4}

/* ── screen tabs ────────────────────────────────────────────────────────── */
.screens{
  border-top:1px solid var(--line-2);max-width:1680px;margin:0 auto;width:100%;
  padding:11px 24px 0;display:flex;align-items:center;gap:16px;flex-wrap:wrap;
}
.screens-in{display:flex;gap:2px;flex:1;overflow-x:auto;scrollbar-width:none}
.screens-in::-webkit-scrollbar{display:none}
.scr{
  font-size:13px;font-weight:500;color:var(--muted);padding:8px 13px;border-radius:8px;white-space:nowrap;
  transition:background .15s,color .15s;
}
.scr:hover{background:var(--line-2);color:var(--ink)}
.scr[aria-selected="true"]{background:var(--ink);color:#fff}
.scr-note{font-size:12px;color:var(--muted);margin:0;white-space:nowrap}
.screens{padding-bottom:11px}

/* ── stage + device frame ───────────────────────────────────────────────── */
.stage{flex:1;display:flex;justify-content:center;align-items:flex-start;padding:24px;min-height:0;overflow:auto}
.frame{
  width:100%;max-width:1680px;background:var(--card);border:1px solid var(--line);border-radius:14px;
  overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04),0 12px 32px -18px rgba(0,0,0,.18);
  display:flex;flex-direction:column;transition:max-width .25s ease;
}
.frame-bar{
  display:flex;align-items:center;gap:6px;padding:9px 14px;border-bottom:1px solid var(--line-2);
  background:#fbfbfc;flex:none;
}
.frame-bar span{width:9px;height:9px;border-radius:50%;background:#dcdce1}
.frame-bar b{
  margin-left:10px;font-size:11.5px;font-weight:500;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.frame iframe{width:100%;height:860px;border:0;display:block;background:#fff}

.frame[data-device="390"],.frame[data-device="430"]{border-radius:40px;padding:10px;background:#101014;border-color:#101014}
.frame[data-device="390"] .frame-bar,.frame[data-device="430"] .frame-bar{display:none}
.frame[data-device="390"] iframe,.frame[data-device="430"] iframe{border-radius:32px}
.frame[data-device="390"]{max-width:min(390px,100%)}
.frame[data-device="430"]{max-width:min(430px,100%)}
.frame[data-device="390"] iframe{height:844px}
.frame[data-device="430"] iframe{height:932px}

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot{
  max-width:1680px;margin:0 auto;width:100%;padding:4px 24px 28px;display:flex;gap:24px;
  justify-content:space-between;align-items:flex-start;
}
.foot p{margin:0;font-size:12px;color:var(--muted);line-height:1.55;max-width:900px}
.foot b{color:var(--ink-2)}
.foot a{color:var(--ink-2)}
.foot-keys{white-space:nowrap;flex:none;display:flex;align-items:center;gap:4px}
kbd{
  font-family:var(--font);font-size:11px;color:var(--ink-2);background:var(--card);border:1px solid var(--line);
  border-bottom-width:2px;border-radius:5px;padding:1px 5px;margin-left:2px;
}

@media (max-width:900px){
  .bar-in{flex-wrap:wrap;gap:12px}
  .concepts{grid-template-columns:1fr;gap:8px}
  .c-desc{display:none}
  .scr-note{display:none}
  .stage{padding:14px}
  .frame iframe{height:720px}
  .frame[data-device="390"] iframe{height:760px}
  .frame[data-device="430"] iframe{height:820px}
  .foot{flex-direction:column;gap:10px}
  .foot-keys{display:none}
}
