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

body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.4;
    background: #111;
    color: #d4d4d4;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* scanlines — matches options.html/dashboard.html */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.025),
        rgba(0,0,0,0.025) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ── LAYOUT ───────────────────────────────── */

.layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ── STATUS BAR ───────────────────────────── */

.statusbar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 20px;
    border-bottom: 1px solid #1e1e1e;
    background: #0d0d0d;
    flex-shrink: 0;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.s-item { display: flex; align-items: center; gap: 5px; }
.s-key  { color: #5a8a5a; }
.s-div  { color: #2a2a2a; margin: 0 14px; }

/* ── TOOL GRID ────────────────────────────── */

.toolbox {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    align-content: start;
}

.toolbox::-webkit-scrollbar { width: 4px; }
.toolbox::-webkit-scrollbar-track { background: transparent; }
.toolbox::-webkit-scrollbar-thumb { background: #2a2a2a; }

@keyframes cardin {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tool-group {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: border-color 0.15s;
    animation: cardin 0.2s ease both;
}

.tool-group:hover {
    border-color: var(--gc);
}

.tool-group-header {
    color: var(--gc);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #1e1e1e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-group-header::before {
    content: '▸';
    opacity: 0.7;
}

.tool-link {
    color: #777;
    text-decoration: none;
    font-size: 13px;
    padding: 3px 0 3px 10px;
    display: block;
    position: relative;
    transition: color 0.1s;
}

.tool-link::before {
    content: '›';
    position: absolute;
    left: 0;
    color: transparent;
    transition: color 0.1s;
}

.tool-link:hover            { color: #e8e8e8; }
.tool-link:hover::before    { color: var(--gc); }

/* ── BOTTOM BAR ───────────────────────────── */

.bottombar {
    border-top: 1px solid #1e1e1e;
    background: #0d0d0d;
    padding: 9px 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.searchrow,
.newsrow {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 11px;
}

.newsrow { color: #3a3a3a; }

form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    color: #d4d4d4;
    font-family: inherit;
    font-size: 13px;
    width: 420px;
    outline: none;
    padding: 1px 0;
    caret-color: #5a8a5a;
}

input:focus { border-bottom-color: #5a8a5a; }

/* News strip */
.news-sep { color: #252525; margin: 0 8px; }

#newsstrip a {
    color: #3a3a3a;
    text-decoration: none;
    transition: color 0.1s;
}

#newsstrip a:hover { color: #888; }
