:root{
--bg:#f4f4f4a8;
--surface:rgba(255,255,255,.42);
--surface-hover:rgba(255,255,255,.9);
--border:rgba(0,0,0,.1);
--text:#1a1a1a;
--text-secondary:#666;
--accent:#4f8cff;
--content:white;
}
[data-theme="dk"]{
--bg:#101214a8;
--surface:rgba(30,32,35,.82);
--surface-hover:rgba(255,255,255,.1);
--border:rgba(255,255,255,.1);
--text:#f5f5f5;
--text-secondary:#aaa;
--accent:#4f8cff;
--content:black;
}
*{
    box-sizing: border-box;
    margin:0;
    padding:0;
}
body{
    width:100vw;
    height:100vh;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: black;
    color:var(--text);
    user-select: none;
    transition: background-color 250ms ease,
    color 250ms ease;
}
.bowser{
    width:100%;
    height:100%;
    display:flex;
    flex-direction: column;
    background:transparent;
}
.tb{
    position:relative;
    display:flex;
    align-items: center;
    gap:8px;
    min-height:64px;
    padding: 12px;
    border-bottom:1px solid var(--border);
    background: transparent;
    z-index:10;
}
.ctrls,.exts{
    display:flex;
    align-items: center;
    gap:4px;
}
.ctrl,.ext{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background:transparent;
    color:var(--text);
    cursor:pointer;
    transition:background-color 180ms ease, border-color 180ms ease;
    width:32px;
    height:32px;
    border-radius: 50%;
    font-size:16px;
}
.ctrl svg,.ext svg{
    color:var(--text);
    width:16px;
    height:16px;
}
.ctrl:hover,.ext:hover{
    background:var(--surface-hover);
    border-color:var(--border);
}
.add{
    flex:1;
    height:36px;
    display: flex;
    align-items: center;
    gap:8px;
    min-width:60px;
    padding: 0 8px 0 8px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:var(--surface);
    transition:background-color 180ms ease, border-color 180ms ease;
}
.add:focus-within{
    border-color:var(--accent);
}
.addic svg{
    color:var(--text-secondary);
    width:16px;
    height:16px;
}
#ad{
    width:100%;
    height:100%;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    font:inherit;
    font-size:14px;
}
#ad::placeholder{
    color:var(--text-secondary);
}
.con{
    position:relative;
    flex:1;
    min-height:60px;
    background:var(--content);
    overflow: hidden;
}
iframe{
    display: block;
    width:100%;
    height:100%;
    border:0;
    background:var(--content);
}
.ld{
    position:absolute;
    top:0;
    left:0;
    width:0;
    height:2px;
    background:var(--accent);
    z-index:20;
    transition:width 250ms ease;
}
.ld.act{
    width:70%;
}
.err{
    position:absolute;
    inset:0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:8px;
    background:var(--content);
    color:var(--text);
    text-align: center;
    z-index:5;
}
.err.act{
    display:flex;
}
.eric{
    font-size:42px;
    margin-bottom: 8px;;
}
.err h2{
    font-size:20px;
    font-weight: 600;
}
.err p{
    color:var(--text-secondary);
    font-size:14px
}
.err span{
    color:var(--text-secondary);
    font-size:12px;
}
.bm{
    display: flex;
    align-items: center;
    gap:4px;
    height:36px;
    padding:0 10px;
    border-bottom:1px solid var(--brd);
    background:var(--bg);
    overflow-x:auto;
    scrollbar-width: none;
}
.bm::-webkit-scrollbar{
    display: none;
}
.bm button{
    border:0;
    border-radius:24px;
    padding:6px 10px;
    background:transparent;
    color:var(--text);
    font:inherit;
    font-size:12px;
    white-space: nowrap;
    cursor:pointer;
    transition:background 150ms ease;
}
.bm button:hover{
    background:var(--hov);
}
.bm button:active{
    background:var(--accent);
}
.hrp,.mnup{
    position:absolute;
    z-index:100;
    background:var(--bg);
    border:1px solid var(--border);
    box-shadow:0 8px 24px rgba(0,0,0,.16);
    opacity:0;
    visibility:hidden;
    backdrop-filter: blur(24px)!important;
    transform:translateY(-6px) scale(.98);
    transform-origin:top right;
    transition:opacity 150ms ease,
    transform 150ms ease,
    visibility 150ms ease;
    pointer-events:none;
}
.hrp.act,.mnup.act{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}
.hrp{
    top:58px;
    right:48px;
    width:320px;
    max-height:420px;
    border-radius:24px;
    overflow:hidden;
}
.mnup{
    top:58px;
    right:8px;
    width:180px;
    padding:5px;
    border-radius:24px;
}
.hryd{
    display:flex;
    align-items: center;
    height:44px;
    padding:0 12px;
    border-bottom:1px solid var(--border);
}
.hryd h2{
   
    font-size:18px;
    font-weight:600;
}
.hurl{
    max-height:375px;
    overflow-y:auto;
    padding:5px;
}
.hryi{
    display:flex;
    flex-direction:column;
    gap:2px;
    width:100%;
    padding:8px 10px;
    border:0;
    border-radius:24px;
    background:transparent;
    color:var(--text);
    text-align:left;
    cursor:pointer;
}
.hryi:hover{
    background:var(--surface-hover);
}
.hryi span:first-child{
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.hur-ur{
    font-size:10px;
    opacity:.6;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.hr-et{
    padding:28px 12px;
    text-align:center;
    font-size:13px;
    opacity:0.6;
}
.mnup button{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    height:36px;
    padding:0 8px;
    border:0;
    border-radius:24px;
    background:transparent;
    color:var(--text);
    font:inherit;
    font-size:12px;
    text-align:left;
    cursor:pointer;
}
.mnup button:hover{
    background:var(--surface-hover);
}
.mnup svg{
    width:16px;
    height:16px;
    fill:none;
    color:var(--text);
}
.ctrl.hide{
    display:none;
}
.ctrl:disabled{
    opacity:.35;
    cursor:default;
}
.tot{
    position:fixed;
    left:50%;
    bottom:24px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:24px;
    background:var(--bg);
    color:var(--text);
    box-shadow:0 8px 24px rgba(0,0,0,.16);
    backdrop-filter:blur(20px);
    font-size:13px;
    opacity:0;
    visibility:hidden;
    transform:translate(-50%,10px);
    transition:opacity 180ms ease,transform 180ms ease,visibility 180ms ease;
    z-index:200;
    pointer-events:none;
}

.tot.act{
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
}

.tot svg{
    color:var(--accent);
    flex-shrink:0;
}
