:root{
      --tc-bg:#1a1a1a; --tc-text:#fff; --panel-bg:#fff; --panel-border:#e6e6e6; --focus:#4c9ffe;
      --z-header:1000; --z-overlay:1100; --z-panel:1200; --header-h-mobile:56px; --header-h-desktop:60px;
    }
    *,*::before,*::after{box-sizing:border-box}
    html,body{margin:0;padding:0}
    body{font:400 16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:#111}
    a{color:inherit;text-decoration:none}
    button{font:inherit}

    /* Header */
    .tc-header{position:fixed;left:0;right:0;top:0;height:var(--header-h-mobile);background:var(--tc-bg);color:var(--tc-text);z-index:var(--z-header);transition:box-shadow .18s ease}
    .tc-header.scrolled{box-shadow:0 2px 0 rgba(0,0,0,.06),0 6px 16px rgba(0,0,0,.12)}
    .tc-row{max-width:1280px;margin:0 auto;height:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:0 12px}
    .tc-logo img{height:40px;display:block}
    .tc-actions{display:flex;gap:12px;align-items:center}
    .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;background:transparent;color:var(--tc-text);border-radius:6px;cursor:pointer}
    .icon-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
    .icon{width:20px;height:20px;fill:currentColor;stroke:currentColor}

    /* Search */
    .search-wrap{position:fixed;left:0;right:0;top:var(--header-h-mobile);height:0;background:var(--tc-bg);overflow:hidden;transition:height .22s ease;z-index:var(--z-overlay);border-bottom:1px solid rgba(255,255,255,.08)}
    .search-wrap.open{height:56px}
    .search-inner{max-width:800px;margin:0 auto;display:flex;gap:8px;align-items:center;padding:10px 12px}
    .search-input{flex:1;height:36px;border-radius:6px;border:1px solid rgba(255,255,255,.18);background:#0f0f0f;color:#fff;padding:0 12px}
    .search-input::placeholder{color:#c9c9c9}

    /* Overlay */
    .panel-overlay{position:fixed;inset:0;background:rgba(0,0,0,.38);opacity:0;visibility:hidden;transition:opacity .22s ease;z-index:var(--z-overlay);pointer-events:none}
    .panel-overlay.open{opacity:1;visibility:visible;pointer-events:auto}

    /* Panel (simpler, reliable) */
    .panel{position:fixed;top:0;right:-100%;bottom:0;width:86%;max-width:420px;background:var(--panel-bg);box-shadow:0 6px 24px rgba(0,0,0,.14);transition:right .26s ease;z-index:var(--z-panel);display:flex;flex-direction:column}
    .panel.open{right:0}
    .panel-head{display:grid;grid-template-columns:1fr auto;align-items:center;padding:14px 14px;border-bottom:1px solid var(--panel-border)}
    .panel-title{font-weight:700}
    .panel-close{width:36px;height:36px;border-radius:6px;border:0;background:transparent;cursor:pointer}
    .panel-close:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
    .panel-nav{overflow:auto;padding:8px 0}
    .panel-link{display:block;padding:14px 16px;border-bottom:1px solid var(--panel-border);font-weight:600;color:#111}
    .panel-link:hover{background:#f7f7f7}

    /* Desktop tweaks */
    @media(min-width:960px){.tc-header{height:var(--header-h-desktop)}.tc-row{padding:0 16px;gap:16px}.search-wrap{top:var(--header-h-desktop)}}