/* seacoral · 工具台外观覆盖层
   加载顺序在 CyberChef 自带 main.css 之后，只覆盖颜色、字体、圆角与分隔线，
   不改动任何布局结构与交互逻辑。 */

:root {
    --primary: #C8452C;
    --primary-dark: #A0361F;
    --sc-ink: #0D1A22;
    --sc-ink-2: #43525C;
    --sc-ink-3: #6C7A84;
    --sc-line: #DCE2E6;
    --sc-line-strong: #C4CDD3;
    --sc-mist: #F5F7F8;
    --sc-accent: #C8452C;
    --sc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    --sc-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;
}

body,
.btn, input, select, textarea, label, .title, .category-title, .op-list li {
    font-family: var(--sc-sans);
}

body { background: #fff; color: var(--sc-ink); }

/* ---------- 顶部条 ---------- */
#banner {
    position: absolute !important;
    top: 0;
    left: 0;
    line-height: normal !important;
    background: #fff !important;
    border-bottom: 1px solid var(--sc-line) !important;
    padding: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
}
#banner.row { margin: 0 !important; }
#banner { color: var(--sc-ink-2) !important; }
#banner .col-md-6 { padding: 0 !important; display: flex; align-items: center; min-height: 52px; }
#notice-wrapper { display: none !important; }
#banner > div:last-child,
#banner .col-md-6.ml-auto,
#banner .ml-auto { margin-left: auto !important; justify-content: flex-end; gap: 4px; padding-right: 12px !important; }
#options, #support {
    color: var(--sc-ink-2) !important;
    font-size: 13px !important;
    padding: 7px 11px !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#options:hover, #support:hover { color: var(--sc-ink) !important; background: var(--sc-mist); }
#options svg, #support svg { fill: currentColor; }

/* 品牌条：由 brand/chef.js 注入 */
/* 品牌块宽度与左侧操作栏一致，形成一条竖线 */
.sc-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    height: 100%;
    flex: 0 0 auto;
    width: calc(20% - 2px);
    border-right: 1px solid var(--sc-line);
    overflow: hidden;
}
.sc-bar .sc-mark { display: block; flex: 0 0 auto; color: var(--sc-accent); }
.sc-bar .sc-word { color: var(--sc-ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.sc-bar .sc-sep { width: 1px; height: 14px; background: var(--sc-line-strong); flex: 0 0 auto; }
.sc-bar .sc-app { color: var(--sc-ink-3); font-size: 12px; letter-spacing: 0.02em; white-space: nowrap; }

/* 品牌块之后的导航 */
.sc-links { display: flex; align-items: center; gap: 2px; padding: 0 8px; }
/* 上游 main.css 有 #banner a { color:#1976d2 }，这里必须带 #banner 才压得住 */
#banner .sc-links a {
    color: var(--sc-ink-2);
    font-size: 13px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
#banner .sc-links a:hover { color: var(--sc-ink); background: var(--sc-mist); }

/* ---------- 面板与标题 ---------- */
.split { border-color: var(--sc-line) !important; }
.title {
    background: var(--sc-mist) !important;
    border-bottom: 1px solid var(--sc-line) !important;
    color: var(--sc-ink-2) !important;
    font-family: var(--sc-mono) !important;
    font-size: 11.5px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 10px 0 14px !important;
}
.title label { margin: 0; font-family: inherit; font-weight: 500; }
.title .pane-controls .btn { color: var(--sc-ink-2) !important; }
.title .pane-controls .btn:hover { background: rgba(13, 26, 34, 0.06) !important; }

/* ---------- 左侧操作列表 ---------- */
#operations { background: #fff; }
#search {
    border: 1px solid var(--sc-line) !important;
    border-radius: 7px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    color: var(--sc-ink) !important;
    box-shadow: none !important;
    margin: 10px !important;
    width: calc(100% - 20px) !important;
    background: #fff !important;
}
#search:focus { border-color: var(--sc-accent) !important; outline: none; box-shadow: 0 0 0 3px rgba(200, 69, 44, 0.12) !important; }
#search::placeholder { color: var(--sc-ink-3); }

.category-title {
    color: var(--sc-ink) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 12px !important;
    border-top: 1px solid var(--sc-line);
    background: #fff;
}
.category-title:hover { background: var(--sc-mist) !important; color: var(--sc-accent) !important; }
.category-title .op-count, .category-title span[class*="count"] { color: var(--sc-ink-3) !important; font-family: var(--sc-mono); font-size: 11px; }

.op-list li {
    font-size: 13px !important;
    padding: 7px 12px !important;
    color: var(--sc-ink-2) !important;
    border-left: 2px solid transparent;
}
.op-list li:hover {
    background: var(--sc-mist) !important;
    color: var(--sc-ink) !important;
    border-left-color: var(--sc-accent);
}
.op-list li.selected, .op-list li.op-selected { background: #FBEDE9 !important; color: var(--sc-accent-ink, #A0361F) !important; }

/* ---------- 配方与输入输出 ---------- */
#recipe, #IO, #input, #output { background: #fff; }
.operation .argument { font-family: var(--sc-mono) !important; font-size: 12px !important; }
.inputarea, .outputarea, .textarea-wrapper textarea {
    font-family: var(--sc-mono) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: var(--sc-ink) !important;
}
.io-info, .status-bar, #input-selection, #output-selection {
    font-family: var(--sc-mono) !important;
    font-size: 11px !important;
    color: var(--sc-ink-3) !important;
}

/* ---------- 按钮 ---------- */
#controls { background: var(--sc-mist) !important; border-top: 1px solid var(--sc-line) !important; }
#bake {
    background: var(--sc-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-family: var(--sc-sans) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    padding: 9px 26px !important;
    text-transform: none !important;
}
#bake:hover { background: #A0361F !important; }
#bake:active { background: #8C2D19 !important; }
#step {
    background: #fff !important;
    color: var(--sc-ink-2) !important;
    border: 1px solid var(--sc-line-strong) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    padding: 9px 20px !important;
    text-transform: none !important;
}
#step:hover { border-color: var(--sc-ink-2) !important; color: var(--sc-ink) !important; }
#auto-bake-label { color: var(--sc-ink-2) !important; font-size: 12.5px !important; }

/* 图标按钮保持素色，只让主操作按钮着色 */
.bmd-btn-icon, .pane-controls .btn, .title .btn, #banner .btn {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sc-ink-2) !important;
    border-radius: 6px !important;
    padding: 0 !important;
    min-width: 30px !important;
    width: 30px !important;
    height: 30px !important;
}
.bmd-btn-icon:hover, .pane-controls .btn:hover { background: rgba(13, 26, 34, 0.07) !important; color: var(--sc-ink) !important; }
#banner .btn, #banner .bmd-btn-icon { color: #C6D3DA !important; }
#banner .btn:hover { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CFD7DC; border-radius: 6px; border: 2px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: #B4BFC6; }

/* ---------- 窄屏 ---------- */
@media (max-width: 780px) {
    .sc-bar { padding: 8px 10px; }
    .sc-bar .sc-app, .sc-bar .sc-sep { display: none; }
    #banner { min-height: 46px; }
}

/* 顶栏只保留品牌与右侧入口 */
#banner > div:not(.sc-bar):not(.sc-links):not(:last-child) { display: none !important; }

/* 单步按钮不要换行 */
#step { min-width: 88px !important; white-space: nowrap !important; }

/* 操作列表底色压平，只留 hover 与选中 */
.op-list li { background: transparent !important; }
.op-list li.op-list-favourites { background: transparent !important; }

/* 左侧功能计数与标题 */
#operations .title { border-bottom: 1px solid var(--sc-line) !important; }

/* 配方卡片：压掉上游的绿色，改成中性底 + 珊瑚强调 */
#rec-list > li {
    background: var(--sc-mist) !important;
    border: 1px solid var(--sc-line) !important;
    border-left: 3px solid var(--sc-accent) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    color: var(--sc-ink) !important;
}
#rec-list > li .title, #rec-list > li label { color: var(--sc-ink) !important; }
#rec-list > li select, #rec-list > li input { border-color: var(--sc-line) !important; color: var(--sc-ink) !important; background: #fff !important; }

/* 左侧标题：只留「操作」，隐藏上游的总数角标 */
#operations .title .op-count { display: none !important; }
#operations .title { height: 44px !important; line-height: 44px !important; }

/* 顶栏加高后，工作区必须跟着下移，否则面板标题会被压在顶栏下面 */
#workspace-wrapper { top: 52px !important; }
