*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --gold:       #c9a84c;
      --gold-light: #f0d080;
      --gold-dark:  #8a6820;
      --black:      #080808;
      --surface:    #0e0e0e;
      --surface-2:  #161616;
      --surface-3:  #1e1e1e;
      --border:     rgba(201,168,76,0.18);
      --border-2:   rgba(201,168,76,0.32);
      --text:       #e8e0d0;
      --text-dim:   #9a8e7a;
      --text-muted: #5a5040;
      --user-bg:    #111008;
      --input-bg:   #0c0c0c;
      --cx: 50vw;
      --cy: 50vh;
    }

    html, body { height: 100%; overflow: hidden; font-family: 'Raleway', sans-serif; font-size: 14px; background: var(--black); color: var(--text); }
    body { display: flex; }

    @keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
    @keyframes fadeUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes fadeDown  { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes scaleIn   { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
    @keyframes slideOut  { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.92) translateY(-12px); } }
    @keyframes bop       { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }
    @keyframes drift     { from { transform: translate(0,0); } to { transform: translate(40px,30px); } }
    @keyframes pulse-gold { 0%,100% { opacity:1; } 50% { opacity:.45; } }
    @keyframes shimmer   { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
    @keyframes float-icon { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
    @keyframes ring-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,.4); } 50% { box-shadow: 0 0 0 10px rgba(201,168,76,0); } }
    @keyframes cursor-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
    @keyframes input-appear { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

    .noise {
      position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .032;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
      background-size: 180px;
    }
    .glow-orb { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(90px); z-index: 0; }
    .orb-1 { width:600px; height:600px; background: radial-gradient(circle, rgba(201,168,76,.07) 0%, transparent 70%); top:-150px; right:-150px; animation: drift 12s ease-in-out infinite alternate; }
    .orb-2 { width:400px; height:400px; background: radial-gradient(circle, rgba(201,168,76,.05) 0%, transparent 70%); bottom:-100px; left:-100px; animation: drift 16s ease-in-out infinite alternate-reverse; }
    body::after { content:''; position:fixed; inset:0; pointer-events:none; z-index:0; background: radial-gradient(circle 350px at var(--cx) var(--cy), rgba(201,168,76,.05), transparent); }

    #name-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,.92);
      backdrop-filter: blur(12px);
      z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      animation: fadeIn .4s ease forwards;
    }
    #name-overlay.hiding { animation: fadeIn .3s ease reverse forwards; pointer-events: none; }
    #name-overlay.hidden { display: none; }

    .name-box {
      background: linear-gradient(160deg, #1a1a14 0%, #111108 100%);
      border: 1px solid var(--border-2);
      border-radius: 6px;
      padding: 52px 56px;
      display: flex; flex-direction: column; align-items: center; gap: 24px;
      min-width: 360px;
      box-shadow: 0 40px 100px rgba(0,0,0,.9), 0 0 80px rgba(201,168,76,.08), inset 0 1px 0 rgba(201,168,76,.1);
      animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1) forwards;
      position: relative; overflow: hidden;
    }
    .name-box::before {
      content: '';
      position: absolute; top: 0; left: -100%; width: 60%; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(201,168,76,.6), transparent);
      animation: shimmer 2.5s ease-in-out infinite;
    }

    .name-icon-wrap {
      width: 72px; height: 72px; border-radius: 50%;
      border: 1px solid var(--border-2);
      background: var(--surface-2);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      animation: float-icon 3s ease-in-out infinite, ring-pulse 2s ease-in-out infinite;
      box-shadow: 0 0 30px rgba(201,168,76,.15);
    }
    .name-icon-wrap img { width: 44px; height: 44px; object-fit: contain; }

    .name-title {
      font-family: 'Cinzel', serif; font-size: 11px; font-weight: 600;
      letter-spacing: .45em; text-transform: uppercase; color: var(--gold);
      animation: fadeDown .5s .1s ease both;
    }
    .name-heading {
      font-family: 'Cinzel Decorative', serif; font-size: 22px; font-weight: 900;
      color: var(--text); line-height: 1.2; text-align: center;
      animation: fadeUp .5s .2s ease both;
    }
    .name-heading .gold-text {
      background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .name-sub {
      font-size: 12px; color: var(--text-dim); text-align: center;
      line-height: 1.8; letter-spacing: .03em;
      animation: fadeUp .5s .3s ease both;
    }

    .name-input-wrap {
      width: 100%; position: relative;
      animation: input-appear .5s .4s ease both;
    }
    #name-input {
      width: 100%; background: rgba(201,168,76,.04); border: 1px solid var(--border-2);
      border-radius: 3px; padding: 12px 16px; color: var(--text);
      font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600;
      letter-spacing: .15em; outline: none;
      transition: border-color .3s, box-shadow .3s, background .3s; text-align: center;
    }
    #name-input:focus {
      border-color: var(--gold);
      box-shadow: 0 0 20px rgba(201,168,76,.15);
      background: rgba(201,168,76,.07);
    }
    #name-input::placeholder { color: var(--text-muted); letter-spacing: .1em; }

    #name-btn {
      background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
      border: none; border-radius: 3px; padding: 12px 36px;
      color: var(--black); font-family: 'Cinzel', serif; font-size: 10px;
      font-weight: 900; letter-spacing: .3em; text-transform: uppercase;
      cursor: pointer;
      transition: opacity .2s, transform .2s, box-shadow .2s;
      box-shadow: 0 4px 20px rgba(201,168,76,.3);
      animation: fadeUp .5s .5s ease both;
    }
    #name-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(201,168,76,.4); }
    #name-btn:active { transform: translateY(0); }

    #cf-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,.88);
      backdrop-filter: blur(10px);
      z-index: 9998;
      display: flex; align-items: center; justify-content: center;
    }
    #cf-overlay.hidden { display: none; }
    .cf-box {
      background: linear-gradient(160deg, #1a1a14 0%, #111108 100%);
      border: 1px solid var(--border-2);
      border-radius: 6px;
      padding: 48px 52px;
      display: flex; flex-direction: column; align-items: center; gap: 20px;
      min-width: 340px;
      box-shadow: 0 32px 80px rgba(0,0,0,.8), 0 0 60px rgba(201,168,76,.06);
      animation: scaleIn .4s cubic-bezier(.34,1.56,.64,1) forwards;
    }
    .cf-title { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
    .cf-sub { font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.7; letter-spacing: .02em; }
    #cf-error { color: #f87171; font-size: 12px; display: none; font-family: 'Cinzel', serif; letter-spacing: .1em; }

    #sidebar {
      width: 260px; min-width: 260px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex; flex-direction: column;
      padding: 0; height: 100%; position: relative; z-index: 1;
    }
    .sb-head {
      display: flex; align-items: center; gap: 10px;
      padding: 20px 16px 16px;
      border-bottom: 1px solid var(--border);
    }
    .sb-logo { width: 24px; height: 24px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
    .sb-name { font-family: 'Cinzel', serif; font-size: 11px; font-weight: 900; letter-spacing: .28em; color: var(--gold); text-transform: uppercase; }

    .sb-new {
      display: flex; align-items: center; gap: 9px;
      padding: 10px 16px; margin: 8px;
      border-radius: 2px; font-size: 11px;
      font-family: 'Cinzel', serif; letter-spacing: .15em; text-transform: uppercase;
      color: var(--text-dim); cursor: pointer; background: none;
      border: 1px solid var(--border); width: calc(100% - 16px);
      text-align: left; transition: border-color .2s, color .2s, background .2s;
    }
    .sb-new:hover { border-color: var(--gold-dark); color: var(--gold); background: rgba(201,168,76,.04); }
    .sb-new svg { flex-shrink: 0; opacity: .6; }

    .sb-label { font-family: 'Cinzel', serif; font-size: 9px; color: var(--text-muted); padding: 12px 16px 4px; text-transform: uppercase; letter-spacing: .45px; }
    #history { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding: 0 8px; }
    #history::-webkit-scrollbar { width: 2px; }
    #history::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
    .hi {
      padding: 7px 10px; border-radius: 2px; font-size: 12px;
      color: var(--text-muted); cursor: pointer;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      transition: background .15s, color .15s;
      font-family: 'Raleway', sans-serif;
    }
    .hi:hover, .hi.active { background: rgba(201,168,76,.06); color: var(--text-dim); }

    .sb-foot {
      border-top: 1px solid var(--border); padding: 14px 16px;
      display: flex; align-items: center; gap: 10px;
    }
    .sb-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-2); }
    .sb-user-name  { font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600; letter-spacing: .15em; color: var(--gold); text-transform: uppercase; }
    .sb-user-model { font-size: 10px; color: var(--text-muted); letter-spacing: .05em; margin-top: 2px; }

    #main { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; position: relative; }

    #topbar {
      height: 52px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 24px; border-bottom: 1px solid var(--border);
      position: relative; z-index: 1;
    }
    .tb-model {
      display: flex; align-items: center; gap: 8px;
      font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600;
      letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
      cursor: default; user-select: none;
    }
    .tb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; animation: pulse-gold 2.5s ease-in-out infinite; display: inline-block; }
    .tb-chevron { font-size: 9px; opacity: .4; margin-left: 2px; }
    .tb-actions { display: flex; gap: 6px; }
    .tb-btn {
      background: none; border: 1px solid var(--border); color: var(--text-muted);
      border-radius: 2px; width: 30px; height: 30px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: border-color .2s, color .2s;
    }
    .tb-btn:hover { border-color: var(--gold-dark); color: var(--gold); }

    #chat-area { flex: 1; overflow: hidden; position: relative; display: flex; flex-direction: column; }

    #welcome {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 36px; padding: 0 24px 60px; text-align: center;
      animation: fadeUp .7s ease forwards;
    }
    .wlc-badge {
      font-family: 'Cinzel', serif; font-size: 9px; font-weight: 600;
      letter-spacing: .45em; color: var(--gold-dark); text-transform: uppercase;
      border: 1px solid var(--gold-dark); padding: 4px 14px; border-radius: 2px;
      animation: fadeIn 1s .2s ease both;
    }
    .wlc-greeting {
      font-family: 'Cinzel Decorative', serif;
      font-size: clamp(1.6rem, 4vw, 2.6rem);
      font-weight: 900; line-height: 1.1; letter-spacing: .04em;
      color: var(--text);
      animation: fadeUp .7s .1s ease both;
    }
    .wlc-greeting .gold-text {
      background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .wlc-divider { display: flex; align-items: center; gap: 14px; width: 180px; animation: fadeIn 1s .3s ease both; }
    .wlc-divider span:not(.wlc-diamond) { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold-dark), transparent); }
    .wlc-diamond { font-size: 8px; color: var(--gold); }
    .cat-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 560px; animation: fadeUp .7s .35s ease both; }
    .cat-pill {
      background: transparent; border: 1px solid var(--border);
      border-radius: 2px; padding: 8px 18px;
      font-family: 'Cinzel', serif; font-size: 10px; font-weight: 600;
      letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
      cursor: pointer; user-select: none;
      transition: border-color .25s, color .25s, background .25s, transform .15s, box-shadow .25s;
      white-space: nowrap;
    }
    .cat-pill:hover { border-color: var(--gold-dark); color: var(--gold); background: rgba(201,168,76,.05); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(201,168,76,.1); }

    #messages { flex: 1; overflow-y: auto; padding: 24px 0 8px; display: none; }
    #messages::-webkit-scrollbar { width: 3px; }
    #messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

    .msg-row { max-width: 760px; margin: 0 auto; padding: 6px 28px; animation: fadeUp .3s ease both; }
    .msg-meta {
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 6px; font-size: 11px; color: var(--text-muted);
      font-family: 'Cinzel', serif; letter-spacing: .1em; font-weight: 600; text-transform: uppercase;
    }
    .msg-meta.right { justify-content: flex-end; }
    .msg-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-2); }
    .msg-av-ai {
      width: 22px; height: 22px; border-radius: 50%;
      background: var(--surface-2); border: 1px solid var(--border-2);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; overflow: hidden;
    }
    .msg-av-ai img { width: 14px; height: 14px; object-fit: contain; }

    .msg-bubble { font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
    .msg-row.user .msg-bubble {
      background: linear-gradient(135deg, #161409, #111008);
      border: 1px solid var(--border);
      border-radius: 3px; border-bottom-right-radius: 0;
      padding: 12px 16px; margin-left: auto; max-width: 80%; width: fit-content;
      box-shadow: 0 2px 12px rgba(0,0,0,.3);
    }
    .msg-row.ai .msg-bubble { background: transparent; padding: 0; }

    .attach-chip {
      display: inline-flex; align-items: center; gap: 5px;
      background: var(--surface-2); border: 1px solid var(--border);
      border-radius: 2px; padding: 4px 10px; font-size: 11px;
      color: var(--text-dim); margin-bottom: 8px;
    }

    .typing { display: flex; gap: 5px; padding: 6px 0; align-items: center; }
    .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark); display: block; animation: bop 1.2s infinite; }
    .typing i:nth-child(2) { animation-delay: .2s; }
    .typing i:nth-child(3) { animation-delay: .4s; }

    #input-wrap { flex-shrink: 0; padding: 8px 28px 20px; position: relative; z-index: 1; }
    .input-box {
      max-width: 760px; margin: 0 auto;
      background: var(--input-bg); border: 1px solid var(--border);
      border-radius: 3px;
      transition: border-color .25s, box-shadow .25s;
    }
    .input-box:focus-within { border-color: var(--gold-dark); box-shadow: 0 0 20px rgba(201,168,76,.08); }

    #strip { display: none; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
    #strip.show { display: flex; }
    .strip-chip {
      display: flex; align-items: center; gap: 5px;
      background: var(--surface-2); border: 1px solid var(--border);
      border-radius: 2px; padding: 4px 8px; font-size: 11px; color: var(--text-dim); max-width: 180px;
    }
    .strip-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .strip-x { cursor: pointer; opacity: .5; font-size: 14px; flex-shrink: 0; line-height: 1; }
    .strip-x:hover { opacity: 1; }

    .ta-row { padding: 14px 16px 8px; }
    #ta {
      width: 100%; background: none; border: none; outline: none;
      color: var(--text); font-size: 14px; font-family: 'Raleway', sans-serif;
      font-weight: 400; resize: none; min-height: 24px; max-height: 200px;
      line-height: 1.6; overflow-y: auto;
    }
    #ta::placeholder { color: var(--text-muted); }

    .ib { display: flex; align-items: center; gap: 6px; padding: 4px 12px 12px; }
    #btn-attach {
      background: none; border: none; color: var(--text-muted);
      width: 28px; height: 28px; font-size: 20px; font-weight: 300;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      transition: color .2s; border-radius: 2px;
    }
    #btn-attach:hover { color: var(--gold); }
    #file-in { display: none; }
    .ib-spacer { flex: 1; }

    .model-pill {
      display: flex; align-items: center; gap: 6px;
      background: none; border: none; padding: 2px 4px;
      font-family: 'Cinzel', serif; font-size: 9px; font-weight: 600;
      letter-spacing: .18em; text-transform: uppercase;
      color: var(--text-muted); cursor: pointer; user-select: none; white-space: nowrap;
      position: relative; border-radius: 3px; transition: background .2s;
    }
    .model-pill:hover { background: rgba(201,168,76,.06); }
    .pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; display: inline-block; animation: pulse-gold 2.5s ease-in-out infinite; }
    .pill-name { color: var(--gold-dark); }
    .pill-tier { color: var(--text-muted); }
    .pill-chev { font-size: 9px; opacity: .4; }

    .model-menu {
      display: none;
      position: absolute; bottom: calc(100% + 10px); right: 0;
      background: linear-gradient(160deg, #1a1a14 0%, #111108 100%);
      border: 1px solid var(--border-2);
      border-radius: 4px; min-width: 200px; padding: 6px;
      z-index: 50; box-shadow: 0 16px 50px rgba(0,0,0,.6), 0 0 40px rgba(201,168,76,.06);
      animation: scaleIn .15s ease both;
    }
    .model-menu.show { display: block; }
    .model-opt {
      display: flex; flex-direction: column; gap: 2px;
      padding: 8px 10px; border-radius: 2px; cursor: pointer;
      text-transform: none; letter-spacing: normal;
      transition: background .15s;
    }
    .model-opt:hover { background: rgba(201,168,76,.08); }
    .opt-name { font-family: 'Cinzel', serif; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--text); }
    .opt-sub  { font-family: 'Raleway', sans-serif; font-size: 10.5px; color: var(--text-dim); letter-spacing: .02em; }

    #btn-mic {
      background: none; border: none; color: var(--text-muted);
      cursor: pointer; width: 28px; height: 28px; border-radius: 2px;
      display: flex; align-items: center; justify-content: center; transition: color .2s;
    }
    #btn-mic:hover { color: var(--gold); }

    #btn-send {
      background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
      border: none; border-radius: 2px; width: 28px; height: 28px;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      color: var(--black); transition: opacity .15s, box-shadow .15s, transform .15s; flex-shrink: 0;
      box-shadow: 0 2px 12px rgba(201,168,76,.25);
    }
    #btn-send:hover { opacity: .9; box-shadow: 0 4px 20px rgba(201,168,76,.4); transform: translateY(-1px); }
    #btn-send:active { transform: translateY(0); }
    #btn-send:disabled { opacity: .25; cursor: not-allowed; box-shadow: none; transform: none; }

    .disclaimer {
      text-align: center; font-size: 10px; color: var(--text-muted);
      margin-top: 8px; max-width: 760px; margin-inline: auto;
      font-family: 'Cinzel', serif; letter-spacing: .1em; text-transform: uppercase;
    }

    #error-toast {
      max-width: 760px; margin: 0 auto 10px;
      background: rgba(100,20,20,.6); border: 1px solid rgba(200,50,50,.4);
      border-radius: 2px; padding: 12px 16px; display: none;
      align-items: flex-start; gap: 10px;
      animation: fadeIn .2s ease;
    }
    #error-toast.show { display: flex; }
    .err-icon {
      flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%;
      background: rgba(200,50,50,.4); color: #f87171;
      font-size: 10px; font-weight: 700; font-family: 'Cinzel', serif;
      display: flex; align-items: center; justify-content: center; margin-top: 1px;
    }
    .err-body { flex: 1; }
    .err-title { font-size: 11px; font-family: 'Cinzel', serif; letter-spacing: .12em; font-weight: 600; color: #f87171; margin-bottom: 3px; text-transform: uppercase; }
    .err-msg   { font-size: 12px; color: #c9a0a0; line-height: 1.55; }
    .err-close { flex-shrink: 0; background: none; border: none; color: rgba(200,100,100,.5); font-size: 16px; cursor: pointer; line-height: 1; padding: 0 2px; transition: color .15s; }
    .err-close:hover { color: #f87171; }

    @media (max-width: 640px) {
      #sidebar { display: none; }
      .msg-row { padding: 5px 14px; }
      #input-wrap { padding: 8px 14px 16px; }
    }

.code-block {
  margin: 12px 0; border: 1px solid var(--border-2); border-radius: 4px;
  overflow: hidden; background: var(--surface-2);
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-dim);
}
.code-lang { color: var(--gold); }
.code-copy {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 2px; padding: 3px 10px; font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.code-copy:hover { border-color: var(--gold-dark); color: var(--gold); }
.code-block pre {
  margin: 0; padding: 12px 14px; overflow-x: auto;
  font-family: 'Consolas', 'Courier New', monospace; font-size: 12.5px;
  line-height: 1.6; color: var(--text); white-space: pre;
}