/* ================================================================
   DXED-o1 — the DXED+ AI assistant.
   Identity: near-black navy ground, violet accent, glass panels,
   sharp cards, fast subtle motion. Gaming + technology + premium AI.
   Scoped under #dxed-o1-section so nothing leaks into the app.
   ================================================================ */
#dxed-o1-section {
  --o1-bg: #0a0b12;
  --o1-panel: rgba(20, 21, 32, .78);
  --o1-card: #14151f;
  --o1-nested: #191a26;
  --o1-border: rgba(148, 130, 255, .10);
  --o1-border-strong: rgba(148, 130, 255, .22);
  --o1-acc: #8b5cf6;
  --o1-acc-light: #c9b6ff;
  --o1-acc-soft: rgba(139, 92, 246, .14);
  --o1-text: #eceaf6;
  --o1-text-2: #b9b6cc;
  --o1-text-3: #7d7a93;
}
#dxed-o1-container { display: block; }

.o1-shell {
  display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0;
  min-height: calc(100vh - 140px); background:
    radial-gradient(900px 400px at 80% -10%, rgba(139,92,246,.08), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(139,92,246,.05), transparent 55%),
    var(--o1-bg);
  border: 1px solid var(--o1-border); border-radius: 18px; overflow: hidden;
  color: var(--o1-text);
}

/* ── the mark ─────────────────────────────────────────────────── */
.o1-mark { display: inline-flex; color: var(--o1-acc-light); flex: 0 0 auto; }
.o1-mark svg { display: block; }
.o1-mark-anim svg { animation: o1spin 3.2s cubic-bezier(.6,.05,.3,1) infinite; }
@keyframes o1spin { 0%,55% { transform: rotate(0deg); } 75%,100% { transform: rotate(90deg); } }

/* ── boot / gate ──────────────────────────────────────────────── */
.o1-boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 320px; color: var(--o1-text-2); font-weight: 700; letter-spacing: .4px; grid-column: 1 / -1; }
.o1-shell-gate { display: grid; place-items: center; grid-template-columns: 1fr; padding: 40px 20px; }
.o1-gate { max-width: 520px; text-align: center; }
.o1-gate h2 { font-size: 24px; letter-spacing: -.3px; margin: 18px 0 10px; }
.o1-gate p { color: var(--o1-text-2); line-height: 1.65; margin: 0 0 22px; }
.o1-gate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 26px; text-align: left; }
.o1-gate-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--o1-text-2); background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 10px; padding: 10px 12px; }
.o1-gate-item svg { color: var(--o1-acc-light); }

/* ── buttons ──────────────────────────────────────────────────── */
.o1-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--o1-border-strong); background: var(--o1-card); color: var(--o1-text); font: 700 13.5px inherit; border-radius: 11px; padding: 9px 15px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.o1-btn:hover { background: var(--o1-nested); }
.o1-btn:active { transform: scale(.98); }
.o1-btn-primary { background: linear-gradient(140deg, #8b5cf6, #6d3ef0); border-color: transparent; color: #fff; }
.o1-btn-primary:hover { background: linear-gradient(140deg, #9771f7, #7b52f2); }
.o1-btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 13px; }
.o1-btn-ghost { background: none; border-color: transparent; color: var(--o1-text-2); }
.o1-btn-ghost:hover { background: var(--o1-card); color: var(--o1-text); }
.o1-danger { color: #f87171; }
.o1-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; border: none; background: none; color: var(--o1-text-3); cursor: pointer; transition: background .15s, color .15s; flex: 0 0 auto; }
.o1-iconbtn:hover { background: var(--o1-acc-soft); color: var(--o1-text); }

/* ── sidebar ──────────────────────────────────────────────────── */
.o1-side { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-right: 1px solid var(--o1-border); background: rgba(12, 13, 20, .6); backdrop-filter: blur(14px); min-height: 0; }
.o1-newchat { width: 100%; }
.o1-sidesearch { display: flex; align-items: center; gap: 8px; background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 10px; padding: 7px 11px; color: var(--o1-text-3); }
.o1-sidesearch input { flex: 1; background: none; border: none; outline: none; color: var(--o1-text); font: 500 13px inherit; min-width: 0; }
.o1-sidelist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 2px -6px 0; padding: 0 6px; scrollbar-width: thin; }
.o1-sidegroup { font: 700 10.5px inherit; text-transform: uppercase; letter-spacing: .8px; color: var(--o1-text-3); padding: 12px 6px 5px; }
.o1-siderow { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 10px; cursor: pointer; transition: background .13s; }
.o1-siderow:hover { background: var(--o1-card); }
.o1-siderow.on { background: var(--o1-acc-soft); }
.o1-sidepin { display: inline-flex; color: var(--o1-acc-light); }
.o1-sidetitle { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--o1-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o1-siderow.on .o1-sidetitle, .o1-siderow:hover .o1-sidetitle { color: var(--o1-text); }
.o1-sidedots { opacity: 0; width: 26px; height: 26px; }
.o1-siderow:hover .o1-sidedots, .o1-siderow.on .o1-sidedots { opacity: 1; }
.o1-sidehint { font-size: 12.5px; color: var(--o1-text-3); line-height: 1.6; padding: 10px 6px; }
.o1-sidefoot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--o1-text-3); padding-top: 8px; border-top: 1px solid var(--o1-border); }

/* ── topbar ───────────────────────────────────────────────────── */
.o1-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.o1-topbar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--o1-border); background: rgba(12, 13, 20, .5); backdrop-filter: blur(14px); }
.o1-drawerbtn { display: none; }
.o1-brand { display: inline-flex; align-items: baseline; gap: 9px; background: none; border: none; cursor: pointer; color: var(--o1-text); padding: 0; }
.o1-brand .o1-mark { align-self: center; }
.o1-brand-name { font: 800 16.5px inherit; letter-spacing: -.2px; }
.o1-brand-sub { font: 700 9px inherit; letter-spacing: 1.2px; color: var(--o1-text-3); }
.o1-topgap { flex: 1; }
.o1-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--o1-card); border: 1px solid var(--o1-border); color: var(--o1-text-2); border-radius: 999px; padding: 6px 12px; font: 700 12px inherit; cursor: pointer; transition: border-color .15s, color .15s; }
.o1-chip:hover { border-color: var(--o1-border-strong); color: var(--o1-text); }
.o1-chip svg { color: var(--o1-acc-light); }

/* ── home ─────────────────────────────────────────────────────── */
.o1-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.o1-home { max-width: 780px; width: 100%; margin: 0 auto; padding: 40px 22px 60px; display: flex; flex-direction: column; gap: 20px; }
.o1-hero { text-align: center; padding-top: 16px; }
.o1-hero h1 { font-size: 30px; letter-spacing: -.5px; margin: 16px 0 8px; }
.o1-hero p { color: var(--o1-text-2); font-size: 14.5px; margin: 0; }
.o1-banner { display: flex; align-items: center; gap: 10px; background: var(--o1-acc-soft); border: 1px solid var(--o1-border-strong); border-radius: 12px; padding: 11px 14px; font-size: 13px; color: var(--o1-text-2); }
.o1-banner svg { color: var(--o1-acc-light); flex: 0 0 auto; }
.o1-modes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.o1-modechip { display: inline-flex; align-items: center; gap: 8px; background: var(--o1-card); border: 1px solid var(--o1-border); color: var(--o1-text-2); border-radius: 999px; padding: 8px 16px; font: 700 13px inherit; cursor: pointer; transition: all .15s; }
.o1-modechip:hover { border-color: var(--o1-border-strong); }
.o1-modechip.on { background: var(--o1-acc-soft); border-color: var(--o1-acc); color: var(--o1-text); }
.o1-modechip.on svg { color: var(--o1-acc-light); }
.o1-suggest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.o1-sug { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 13px; padding: 13px 15px; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.o1-sug:hover { border-color: var(--o1-border-strong); background: var(--o1-nested); transform: translateY(-1px); }
.o1-sug em { font: 700 10.5px inherit; font-style: normal; text-transform: uppercase; letter-spacing: .8px; color: var(--o1-acc-light); }
.o1-sug span { font-size: 13.5px; font-weight: 600; color: var(--o1-text-2); line-height: 1.45; }

/* ── composer ─────────────────────────────────────────────────── */
.o1-composer { background: var(--o1-panel); backdrop-filter: blur(16px); border: 1px solid var(--o1-border-strong); border-radius: 16px; padding: 6px 8px 8px; transition: border-color .15s, box-shadow .15s; }
.o1-composer:focus-within { border-color: var(--o1-acc); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.o1-composer-hero { box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.o1-inputwrap { padding: 8px 10px 2px; }
.o1-input { width: 100%; background: none; border: none; outline: none; resize: none; color: var(--o1-text); font: 500 15px/1.55 inherit; max-height: 200px; }
.o1-input::placeholder { color: var(--o1-text-3); }
.o1-inputbar { display: flex; align-items: center; gap: 4px; padding: 2px 4px 0; }
.o1-inputgap { flex: 1; }
.o1-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: var(--o1-text-3); border-radius: 999px; padding: 5px 11px; font: 700 12px inherit; cursor: pointer; transition: all .15s; }
.o1-toggle:hover { color: var(--o1-text-2); }
.o1-toggle.on { background: var(--o1-acc-soft); border-color: var(--o1-acc); color: var(--o1-acc-light); }
.o1-modelbtn { display: inline-flex; align-items: center; gap: 7px; background: var(--o1-card); border: 1px solid var(--o1-border); color: var(--o1-text-2); border-radius: 999px; padding: 6px 12px; font: 700 12.5px inherit; cursor: pointer; transition: border-color .15s; }
.o1-modelbtn:hover { border-color: var(--o1-border-strong); color: var(--o1-text); }
.o1-sendbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; border: none; background: linear-gradient(140deg, #8b5cf6, #6d3ef0); color: #fff; cursor: pointer; transition: transform .1s, filter .15s; }
.o1-sendbtn:hover { filter: brightness(1.12); }
.o1-sendbtn:active { transform: scale(.94); }
.o1-attachrow { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 8px 0; }
.o1-attachrow:empty { display: none; }
.o1-attach { display: inline-flex; align-items: center; gap: 9px; background: var(--o1-nested); border: 1px solid var(--o1-border); border-radius: 11px; padding: 7px 8px 7px 11px; opacity: .7; transition: opacity .2s; }
.o1-attach.ready { opacity: 1; }
.o1-attach > svg { color: var(--o1-acc-light); }
.o1-attach-meta { display: flex; flex-direction: column; }
.o1-attach-meta strong { font-size: 12.5px; color: var(--o1-text); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o1-attach-meta em { font-style: normal; font-size: 10.5px; color: var(--o1-text-3); }

/* ── chat ─────────────────────────────────────────────────────── */
.o1-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.o1-thread { flex: 1; overflow-y: auto; padding: 26px 22px 10px; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin; min-height: 280px; max-height: calc(100vh - 320px); }
.o1-chatfoot { padding: 10px 22px 18px; }
.o1-msg { max-width: 760px; width: 100%; margin: 0 auto; animation: o1in .22s ease-out; }
@keyframes o1in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.o1-msg-user .o1-msg-body { background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 14px 14px 4px 14px; padding: 12px 16px; font-size: 14.5px; line-height: 1.6; color: var(--o1-text); margin-left: auto; max-width: 85%; width: fit-content; }
.o1-msg-attach { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.o1-msg-id { display: flex; align-items: center; gap: 8px; font: 800 12.5px inherit; letter-spacing: .2px; color: var(--o1-acc-light); margin-bottom: 8px; }
.o1-msg-ai .o1-msg-body { font-size: 14.5px; line-height: 1.7; color: var(--o1-text-2); }
.o1-thinking { display: flex; align-items: center; gap: 9px; padding: 4px 0; font: 800 13px inherit; color: var(--o1-acc-light); }
.o1-thinking em { font-style: normal; font-weight: 600; color: var(--o1-text-3); animation: o1pulse 1.4s ease-in-out infinite; }
@keyframes o1pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* markdown */
.o1-md .o1-p { margin: 0 0 10px; }
.o1-md .o1-p:last-child { margin-bottom: 0; }
.o1-md .o1-h { color: var(--o1-text); margin: 18px 0 8px; letter-spacing: -.2px; }
.o1-md h2.o1-h { font-size: 19px; } .o1-md h3.o1-h { font-size: 16px; } .o1-md h4.o1-h, .o1-md h5.o1-h { font-size: 14px; }
.o1-md .o1-list { margin: 4px 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; }
.o1-md strong { color: var(--o1-text); }
.o1-md a { color: var(--o1-acc-light); }
.o1-quote { border-left: 2.5px solid var(--o1-acc); background: var(--o1-acc-soft); margin: 10px 0; padding: 9px 14px; border-radius: 0 10px 10px 0; color: var(--o1-text-2); }
.o1-ic { background: var(--o1-nested); border: 1px solid var(--o1-border); border-radius: 5px; padding: 1.5px 6px; font: 600 12.5px ui-monospace, Menlo, monospace; color: var(--o1-acc-light); }
.o1-tablewrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--o1-border); border-radius: 12px; }
.o1-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.o1-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--o1-text-3); background: var(--o1-nested); padding: 9px 13px; }
.o1-table td { padding: 9px 13px; border-top: 1px solid var(--o1-border); color: var(--o1-text-2); }
.o1-code { margin: 12px 0; border: 1px solid var(--o1-border); border-radius: 12px; overflow: hidden; background: #0d0e16; }
.o1-code-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: var(--o1-nested); border-bottom: 1px solid var(--o1-border); font: 700 11px ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .6px; color: var(--o1-text-3); }
.o1-code-acts { display: flex; gap: 4px; }
.o1-code-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--o1-text-3); font: 700 11px inherit; cursor: pointer; padding: 3px 7px; border-radius: 6px; text-transform: none; letter-spacing: 0; }
.o1-code-btn:hover { background: var(--o1-acc-soft); color: var(--o1-text); }
.o1-code pre { margin: 0; padding: 13px 15px; overflow-x: auto; max-height: 320px; font: 500 13px/1.6 ui-monospace, Menlo, monospace; color: #d8d5ea; scrollbar-width: thin; }
.o1-code.open pre { max-height: none; }

/* loadout card (Gaming Intelligence) */
.o1-loadout { margin: 14px 0; border: 1px solid var(--o1-border-strong); border-radius: 14px; background: linear-gradient(160deg, rgba(139,92,246,.10), rgba(139,92,246,.02)); padding: 15px 17px; }
.o1-loadout-head { display: flex; align-items: center; gap: 9px; font: 800 12px inherit; text-transform: uppercase; letter-spacing: .8px; color: var(--o1-acc-light); margin-bottom: 12px; }
.o1-loadout-head em { font-style: normal; margin-left: auto; color: var(--o1-text-2); text-transform: none; letter-spacing: 0; font-weight: 700; }
.o1-loadout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.o1-lo-cell { background: rgba(10,11,18,.5); border: 1px solid var(--o1-border); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.o1-lo-cell span { font: 700 10px inherit; text-transform: uppercase; letter-spacing: .7px; color: var(--o1-text-3); }
.o1-lo-cell strong { font-size: 14px; color: var(--o1-text); }
.o1-lo-primary strong { color: var(--o1-acc-light); }
.o1-lo-stars { letter-spacing: 2px; color: var(--o1-acc-light) !important; }
.o1-lo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.o1-lo-tags i { font-style: normal; font-size: 12px; font-weight: 700; background: var(--o1-acc-soft); color: var(--o1-acc-light); border-radius: 999px; padding: 3.5px 11px; }
.o1-lo-perks i { background: var(--o1-nested); color: var(--o1-text-2); }
.o1-lo-why { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--o1-text-2); }

/* response actions */
.o1-acts { display: flex; gap: 2px; margin-top: 9px; opacity: 0; transition: opacity .18s; }
.o1-msg-ai:hover .o1-acts, .o1-acts:focus-within { opacity: 1; }
.o1-acts button { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 8px; border: none; background: none; color: var(--o1-text-3); cursor: pointer; transition: background .13s, color .13s; }
.o1-acts button:hover { background: var(--o1-acc-soft); color: var(--o1-text); }
.o1-acts button.on { color: #34d399; }
.o1-acts button.on-bad { color: #f87171; }

/* ── menus / model picker / tools ─────────────────────────────── */
.o1-menu { position: fixed; z-index: 300; background: #16172294; backdrop-filter: blur(18px); border: 1px solid var(--o1-border-strong); border-radius: 13px; padding: 6px; display: flex; flex-direction: column; min-width: 190px; box-shadow: 0 16px 44px rgba(0,0,0,.5); animation: o1in .14s ease-out; }
.o1-menu button { display: flex; align-items: center; gap: 9px; background: none; border: none; color: #cfccdf; font: 600 13px system-ui, sans-serif; padding: 8.5px 11px; border-radius: 9px; cursor: pointer; text-align: left; }
.o1-menu button:hover { background: rgba(139,92,246,.14); color: #fff; }
.o1-menu-danger { color: #f87171 !important; }
.o1-modelmenu { min-width: 270px; }
.o1-modelmenu button { flex-direction: column; align-items: stretch; gap: 3px; }
.o1-modelmenu button.on { background: rgba(139,92,246,.10); }
.o1-mm-name { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; }
.o1-mm-check { margin-left: auto; color: #34d399; display: inline-flex; }
.o1-mm-desc { font-size: 11.5px; font-weight: 500; color: #8f8ca6; }
.o1-toolsheet { position: fixed; inset: 0; z-index: 290; background: rgba(5,6,10,.6); display: flex; align-items: center; justify-content: center; animation: o1fade .15s ease-out; }
@keyframes o1fade { from { opacity: 0; } to { opacity: 1; } }
.o1-toolbox { width: min(620px, 94vw); background: #12131c; border: 1px solid var(--o1-border-strong); border-radius: 18px; padding: 18px; box-shadow: 0 28px 70px rgba(0,0,0,.55); animation: o1in .18s ease-out; }
.o1-toolbox-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.o1-toolbox-head h4 { margin: 0; font-size: 16px; color: #fff; }
.o1-toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.o1-tool { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: #171826; border: 1px solid rgba(148,130,255,.10); border-radius: 13px; padding: 14px 15px; cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.o1-tool:hover { border-color: rgba(148,130,255,.3); background: #1b1c2d; transform: translateY(-1px); }
.o1-tool-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(139,92,246,.14); color: #c9b6ff; }
.o1-tool strong { font-size: 13.5px; color: #fff; }
.o1-tool em { font-style: normal; font-size: 12px; color: #8f8ca6; line-height: 1.5; }

/* ── pages (memory / about) ───────────────────────────────────── */
.o1-page { max-width: 720px; width: 100%; margin: 0 auto; padding: 24px 22px 50px; }
.o1-backlink { margin-bottom: 8px; margin-left: -10px; }
.o1-pagehead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.o1-pagehead h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.o1-dim { color: var(--o1-text-3); font-size: 13.5px; line-height: 1.65; }
.o1-subhead { display: flex; align-items: center; gap: 9px; font-size: 14px; margin: 26px 0 10px; color: var(--o1-text); }
.o1-count { font-size: 11px; font-weight: 800; background: var(--o1-acc-soft); color: var(--o1-acc-light); border-radius: 999px; padding: 2px 9px; }
.o1-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: 700 13px inherit; color: var(--o1-text-2); }
.o1-switch input { display: none; }
.o1-switch i { width: 40px; height: 22px; border-radius: 999px; background: var(--o1-nested); border: 1px solid var(--o1-border-strong); position: relative; transition: background .18s; }
.o1-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--o1-text-3); transition: transform .18s, background .18s; }
.o1-switch input:checked + i { background: var(--o1-acc); border-color: var(--o1-acc); }
.o1-switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.o1-memadd { display: flex; gap: 9px; margin: 16px 0 4px; }
.o1-textinput { flex: 1; background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 11px; padding: 10px 14px; color: var(--o1-text); font: 500 13.5px inherit; outline: none; min-width: 0; }
.o1-textinput:focus { border-color: var(--o1-acc); }
.o1-memlist { display: flex; flex-direction: column; gap: 7px; }
.o1-memrow { display: flex; align-items: flex-start; gap: 10px; background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 11px; padding: 11px 8px 11px 14px; font-size: 13.5px; color: var(--o1-text-2); line-height: 1.55; }
.o1-memrow span { flex: 1; }
.o1-page > .o1-danger { margin-top: 20px; }

.o1-abouthero { text-align: center; padding: 18px 0 6px; }
.o1-abouthero h2 { font-size: 26px; margin: 14px 0 8px; letter-spacing: -.4px; }
.o1-abouthero p { color: var(--o1-text-2); line-height: 1.7; margin: 0 0 8px; }
.o1-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 4px; }
.o1-stat { background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 13px; padding: 14px; text-align: center; }
.o1-stat strong { display: block; font-size: 21px; letter-spacing: -.4px; color: var(--o1-text); }
.o1-stat span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--o1-text-3); }
.o1-capgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.o1-cap { display: flex; flex-direction: column; gap: 5px; background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 13px; padding: 14px 15px; }
.o1-cap-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--o1-acc-soft); color: var(--o1-acc-light); }
.o1-cap strong { font-size: 13.5px; color: var(--o1-text); }
.o1-cap em { font-style: normal; font-size: 12px; color: var(--o1-text-3); line-height: 1.55; }
.o1-usagegrid { display: flex; flex-direction: column; gap: 10px; }
.o1-usagerow { display: grid; grid-template-columns: 130px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; color: var(--o1-text-2); }
.o1-usagerow em { font-style: normal; text-align: right; color: var(--o1-text-3); font-weight: 600; }
.o1-usagetrack { height: 7px; border-radius: 4px; background: var(--o1-nested); overflow: hidden; }
.o1-usagetrack i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #c9b6ff); border-radius: 4px; transition: width .3s ease-out; }

/* ── Video Lab ────────────────────────────────────────────────── */
.o1-vcredits { display: inline-flex; align-items: center; gap: 7px; font: 700 12.5px inherit; color: var(--o1-acc-light); background: var(--o1-acc-soft); border: 1px solid var(--o1-border-strong); border-radius: 999px; padding: 6px 13px; }
.o1-vbuy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 12px; padding: 11px 14px; margin-top: 12px; }
.o1-vjobs { display: flex; flex-direction: column; gap: 12px; }
.o1-vjob { background: var(--o1-card); border: 1px solid var(--o1-border); border-radius: 14px; overflow: hidden; }
.o1-vplayer { width: 100%; max-height: 420px; background: #000; display: block; }
.o1-vjob-meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.o1-vjob-prompt { font-size: 13.5px; color: var(--o1-text-2); line-height: 1.5; }
.o1-vjob-acts { display: flex; gap: 9px; flex-wrap: wrap; }
.o1-vjob-acts .o1-btn { text-decoration: none; }
.o1-vjob-state { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px inherit; color: var(--o1-acc-light); }
.o1-vjob-state.err { color: #f87171; }
.o1-vjob-busy { border-style: dashed; border-color: var(--o1-border-strong); }
.o1-vjob-err { opacity: .8; }

/* ── mobile ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .o1-shell { grid-template-columns: minmax(0, 1fr); border-radius: 14px; min-height: calc(100dvh - 150px); }
  .o1-side { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; z-index: 260; transform: translateX(-102%); transition: transform .22s cubic-bezier(.4,0,.2,1); border-radius: 0; background: #0e0f18; }
  .o1-drawer-open .o1-side { transform: none; box-shadow: 24px 0 60px rgba(0,0,0,.45); }
  .o1-scrim { display: none; }
  .o1-drawer-open .o1-scrim { display: block; position: fixed; inset: 0; z-index: 250; background: rgba(4,5,9,.6); }
  .o1-drawerbtn { display: inline-flex; }
  .o1-brand-sub { display: none; }
  .o1-chip-lbl { display: none; }
  .o1-chip { padding: 6px 9px; }
  .o1-home { padding: 26px 16px 40px; }
  .o1-hero h1 { font-size: 23px; }
  .o1-suggest { grid-template-columns: 1fr; }
  .o1-thread { padding: 18px 14px 8px; max-height: none; }
  .o1-chatfoot { padding: 8px 12px 12px; }
  .o1-msg-user .o1-msg-body { max-width: 94%; }
  .o1-modelbtn span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .o1-toolsheet { align-items: flex-end; }
  .o1-toolbox { width: 100%; border-radius: 18px 18px 0 0; max-height: 78dvh; overflow-y: auto; animation: o1up .2s ease-out; }
  @keyframes o1up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .o1-toolgrid { grid-template-columns: 1fr; }
  .o1-statgrid { grid-template-columns: repeat(2, 1fr); }
  .o1-capgrid { grid-template-columns: 1fr; }
  .o1-usagerow { grid-template-columns: minmax(0, 1fr) 90px; }
  .o1-usagerow span:first-child { grid-column: 1 / -1; }
  .o1-gate-grid { grid-template-columns: 1fr; }
  .o1-acts { opacity: 1; }
  .o1-memadd { flex-direction: column; }
}
