* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: Inter, Arial, sans-serif; background: #0b1010; color: #e8f0ed; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
button, input { font: inherit; }
button { border: 1px solid #293633; color: #dce9e4; background: #192321; border-radius: 8px; padding: 9px 13px; cursor: pointer; }
button:hover { background: #293b35; }
.topbar { min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #101817; border-bottom: 1px solid #24302c; }
.brand { font-size: 23px; font-weight: 800; letter-spacing: -1.3px; padding-right: 5px; }
.brand span, .home h1 span { color: #79e0bd; }
.controls { display: flex; gap: 5px; }
#search-form { display: flex; flex: 1; gap: 8px; min-width: 0; }
input { min-width: 0; width: 100%; color: #edf7f2; background: #18211f; border: 1px solid #2a3934; border-radius: 9px; outline: none; padding: 11px 13px; }
input:focus { border-color: #79e0bd; }
.go { color: #092019; background: #79e0bd; border-color: #79e0bd; font-weight: 700; }
.go:hover { background: #9aefd2; }
.tabbar { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 5px 12px; background: #0e1513; border-bottom: 1px solid #24302c; }
#tabs { display: flex; flex: 1; gap: 6px; overflow-x: auto; min-width: 0; }
.tab { display: flex; align-items: center; gap: 10px; min-width: 115px; max-width: 190px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: #a9b8b1; background: #17201d; cursor: pointer; font-size: 12px; }
.tab.active { color: #f1faf6; background: #24332d; border-color: #385248; }
.tab-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.close-tab { color: #9eafa7; font-size: 16px; cursor: pointer; }
.new-tab { font-size: 19px; padding: 4px 12px; }
main { position: relative; flex: 1; min-height: 0; background: #0b1010; }
#status { height: 32px; padding: 8px 14px; color: #9aada4; background: #101715; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#result { display: block; width: 100%; height: calc(100% - 32px); border: 0; background: white; }
.home { position: absolute; inset: 32px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; text-align: center; }
.home h1 { margin: 0; font-size: 60px; letter-spacing: -4px; }
.home p { margin: 0 0 12px; color: #93a69d; }
#home-form { display: flex; width: min(440px, 85%); gap: 8px; }
.home small { color: #71847b; margin-top: 8px; }
[hidden] { display: none !important; }
@media (max-width: 620px) { .topbar { gap: 7px; padding: 8px; } .brand { font-size: 19px; } .controls { gap: 2px; } .controls button { padding: 8px; } }
