/* Personal AI — SAMURAI surface.
   Johnny's band: near-black, chrome silver, hard red.
   One conversation, no menu panels, no stat grids, no tables-as-home.
   Poster energy comes from type (weight, tracking, italic) — no images.
   The wordmark is styled text only, an original typographic treatment.
   This is a pure reskin of the Companion/Pack 1 stylesheet: every
   class/id Pack 1's JS and pages rely on is preserved as-is. */
:root{
  color-scheme:dark;
  --bg:#0a0a0b; --bg2:#101013;
  --surface:#141417; --surface2:#1a1a1e;
  --ink:#e3e6ec; --muted:#9ba1ab;
  --silver:#c0c4cc; --edge:#3f444c; --line:#26292f;
  --red:#d90429; --red-hot:#ff2e4d; --red-dark:#8e1224;
  --link:#ff465e;
  --ok:#5ed68b; --bad:#ff8a75;
  --radius:12px;
}
*{box-sizing:border-box}
::selection{background:var(--red); color:#fff}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--ink); font-size:16px; line-height:1.5;
}
a{color:var(--link)}
.topstrip{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  padding:10px 16px; background:linear-gradient(180deg,#151518,#0b0b0c);
  border-bottom:2px solid var(--red);
  position:sticky; top:0; z-index:5;
}
.who{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink)}
.face{
  width:42px; height:42px; border-radius:50%; overflow:hidden;
  background:radial-gradient(circle at 35% 30%,#2b2b31,#121214);
  border:2px solid var(--red);
  color:var(--silver); font-weight:700; font-size:20px; display:flex; align-items:center; justify-content:center;
}
.who-name{font-weight:700; display:flex; flex-direction:column; line-height:1.15}
.who-name small{
  font-weight:600; color:var(--muted); font-size:10px;
  letter-spacing:.24em; text-transform:uppercase; margin-top:4px;
}
.brand-word{
  display:inline-block; font-size:21px; font-weight:900; font-style:italic;
  letter-spacing:.13em; text-transform:uppercase; line-height:1.05;
  color:#edeff3; border-bottom:3px solid var(--red); padding-bottom:2px;
}
.brand-line{
  text-align:center; font-weight:900; font-style:italic;
  letter-spacing:.34em; text-transform:uppercase; color:var(--silver);
  font-size:15px; margin:0 0 14px; text-shadow:0 0 12px rgba(217,4,41,.35);
}
.net-badge{
  font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px;
  background:#0c2417; color:var(--ok); border:1px solid #1d5c38;
}
.net-badge.offline{background:#2b0a0e; color:var(--bad); border-color:#7a2430}
.menu-btn{
  margin-left:auto; background:#1d1d21; color:var(--ink);
  border:1px solid #34383f; border-radius:6px; padding:8px 14px;
  font:inherit; font-weight:800; letter-spacing:.06em; text-transform:uppercase; cursor:pointer;
}
.menu-btn:hover{border-color:var(--red); color:#fff}
.top-links{
  position:absolute; top:calc(100% + 8px); right:12px; min-width:230px;
  display:flex; flex-direction:column; align-items:stretch; gap:0;
  background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--red);
  border-radius:var(--radius); padding:6px; font-size:15px; z-index:20;
  box-shadow:0 14px 34px rgba(0,0,0,.55);
  opacity:0; visibility:hidden; transform:translateY(-4px);
  transition:opacity .15s ease, transform .15s ease, visibility .15s;
}
.top-links.open{opacity:1; visibility:visible; transform:none}
.top-links a{display:block; padding:11px 12px; border-radius:6px; text-decoration:none; font-weight:600; color:var(--silver)}
.top-links a:hover{color:var(--red-hot); background:#1d1d21}
.top-links .inline-form{display:block}
.top-links .linklike{display:block; width:100%; text-align:left; padding:11px 12px; border-radius:6px; color:var(--silver)}
.top-links .linklike:hover{color:var(--red-hot); background:#1d1d21}
.inline-form{display:inline}
.linklike{background:none;border:0;color:var(--link);font:inherit;font-weight:600;cursor:pointer;padding:0}
.page{max-width:780px; margin:0 auto; padding:20px 18px 36px}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; margin:0 0 14px}
.card h2{margin:0 0 8px; font-size:17px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color:#edeff3}
.muted{color:var(--muted)} .small{font-size:13px}
.flash{padding:11px 14px; border-radius:8px; margin:0 0 14px; font-size:14px}
.flash-error{background:#2b0a0e; border:1px solid #7a2430; color:#ffc4b8}
.flash-success{background:#0c2417; border:1px solid #1d5c38; color:#a9e8be}
/* conversation */
.thread{display:flex; flex-direction:column; gap:14px; margin-bottom:20px}
.bubble{max-width:85%; padding:13px 17px; border-radius:16px; white-space:pre-wrap; word-wrap:break-word; line-height:1.55}
.bubble-user{
  background:#2b0a12; color:#f6e9eb;
  border:1px solid #571626;
  align-self:flex-end; border-bottom-right-radius:5px;
}
.bubble-assistant{
  background:#17171b; border:1px solid #2c2f36;
  box-shadow:inset 3px 0 0 var(--red);
  align-self:flex-start; border-bottom-left-radius:5px;
}
.bubble-queued{opacity:.65; border:1px dashed #6e747e}
.bubble .b-meta{display:block; font-size:11px; color:var(--muted); margin-top:5px}
.composer{display:flex; flex-wrap:wrap; gap:8px; align-items:center; background:#101013; border:1px solid #2c2f36; border-radius:20px; padding:10px 12px; box-shadow:0 6px 18px rgba(0,0,0,.35)}
.composer:focus-within{border-color:var(--red); box-shadow:0 0 0 2px rgba(217,4,41,.22), 0 6px 18px rgba(0,0,0,.35)}
.composer textarea{flex:1 1 100%; min-width:0; border:0; resize:none; font:inherit; background:transparent; color:var(--ink); min-height:42px; padding:4px 2px}
.composer .btn{flex:0 0 auto}
.composer .btn-soft{
  background:transparent; border:0; width:40px; height:40px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%; font-size:17px; line-height:1; color:var(--silver);
}
.composer .btn-soft:hover{background:#1d1d21; box-shadow:none; color:#fff}
.composer .btn-soft svg{width:20px; height:20px; display:block}
.send-btn svg{width:19px; height:19px; display:block}
.send-btn{
  flex:0 0 auto; margin-left:auto; width:40px; height:40px; border:0; border-radius:50%;
  background:linear-gradient(160deg,#e8072f,#a90320); color:#fff;
  font-size:16px; line-height:1; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 0 12px rgba(217,4,41,.35); padding:0 0 0 2px;
}
.send-btn:hover{background:linear-gradient(160deg,#ff2e4d,#c10424)}
.composer textarea:focus{outline:none}
.composer textarea::placeholder{color:#6e747e}
.btn{
  background:var(--red); color:#fff; border:0; border-radius:6px;
  padding:10px 18px; font:inherit; font-weight:800; cursor:pointer;
  text-transform:uppercase; letter-spacing:.06em;
}
.btn:hover{background:#a90320; box-shadow:0 0 14px rgba(217,4,41,.35)}
.btn-soft{background:#1d1d21; color:var(--ink); border:1px solid #34383f}
.btn-small{padding:6px 12px; font-size:13px}
.btn-danger{background:transparent; color:var(--bad); border:1px solid #7a2430}
.hint{font-size:12px; color:var(--muted); margin-top:10px; line-height:1.45}
.sync-line{font-size:12px; color:var(--muted); margin:6px 2px 12px}
/* memory + lists */
.mem-item{border-top:1px solid var(--line); padding:12px 0}
.mem-item:first-of-type{border-top:0}
.mem-item .m-title{font-weight:700}
.mem-item form{margin-top:8px}
input[type=text],input[type=email],input[type=password],textarea{
  width:100%; padding:10px 12px; border:1px solid #2e3238; border-radius:8px;
  font:inherit; background:#0e0e10; color:var(--ink);
}
input[type=text]:focus,input[type=email]:focus,input[type=password]:focus,textarea:focus{
  border-color:var(--red); outline:none; box-shadow:0 0 0 2px rgba(217,4,41,.22);
}
label{display:block; font-weight:600; font-size:14px; letter-spacing:.03em; margin:12px 0 5px}
ul.plain{list-style:none; padding:0; margin:0}
ul.plain li{padding:8px 0; border-top:1px solid var(--line)}
ul.plain li:first-child{border-top:0}
/* Pack 1: photo chip, voice replies, attach/search buttons */
.photo-chip{
  display:inline-block; font-size:11px; font-weight:700; color:#ff8a94;
  background:#2b0a10; border:1px solid #7a2430; border-radius:999px; padding:1px 8px;
}
.bubble a{color:#ff5c6c; word-break:break-all}
.speak-btn{
  background:none; border:0; cursor:pointer; font-size:14px; padding:2px 4px;
  vertical-align:middle; opacity:.75; color:var(--silver);
}
.speak-btn:hover{opacity:1}
.voice-label{font-size:11px; color:var(--muted); font-style:italic; margin-left:2px}
.attach-btn{display:inline-flex; align-items:center; cursor:pointer}
#photoName{font-weight:600; color:#ff8a94}
input[type=checkbox]{width:auto; margin-right:6px; accent-color:var(--red)}
/* login */
.login-wrap{max-width:420px; margin:8vh auto 0; padding:0 16px}
.login-face{width:72px;height:72px;font-size:34px;margin:0 auto 12px}
.login-wrap h1{text-align:center; font-size:24px; font-weight:900; text-transform:uppercase; letter-spacing:.03em; margin:6px 0}
.login-wrap .sub{text-align:center; color:var(--muted); margin:0 0 18px}
