/* =========================================================
   JSON Pro —— 高级 JSON 工作台
   命名空间统一 .jp-，避免与站点/ Bootstrap 样式互相污染
   1. 变量与外壳
   2. 顶部工具条
   3. 主体两栏
   4. 编辑器与状态条
   5. 右侧标签页与表单控件
   6. 树视图（虚拟滚动）
   7. 结果区（代码块 / 列表 / 表格）
   8. 变换面板（手风琴 / 规则行）
   9. 历史与收藏
   10. 响应式与全屏
   ========================================================= */

/* ---------------------------------------------------------
   1. 变量与外壳
   --------------------------------------------------------- */
.jp {
    --jp-brand: #0f766e;
    --jp-brand-dark: #0b5d57;
    --jp-brand-weak: #eaf3f2;
    --jp-bg: #f8fafb;
    --jp-line: #e3e8ee;
    --jp-line-strong: #cfd8e3;
    --jp-ink: #0f172a;
    --jp-ink2: #475569;
    --jp-ink3: #94a3b8;
    --jp-err: #dc2626;
    --jp-err-bg: #fef2f2;
    --jp-warn: #b45309;
    --jp-ok: #047857;
    --jp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    position: relative;
    /* 宽度跟随站点容器：不设固定宽度、不做位移，
       否则会横向溢出内容卡片，盖住页面其它元素（右侧栏也会被裁掉） */
    width: 100%;
    max-width: 100%;
    margin: 4px 0 18px;
    color: var(--jp-ink);
    font-size: 13px;
    line-height: 1.6;
}

.jp *,
.jp *::before,
.jp *::after {
    box-sizing: border-box;
}

.jp-mono {
    font-family: var(--jp-mono);
}

/* 通用按钮 */
.jp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    padding: 0 11px;
    border: 1px solid var(--jp-line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--jp-ink2);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.jp-btn:hover {
    border-color: var(--jp-brand);
    color: var(--jp-brand);
    background: var(--jp-brand-weak);
}

.jp-btn:active {
    transform: translateY(1px);
}

.jp-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.jp-btn-primary {
    border-color: var(--jp-brand);
    background: var(--jp-brand);
    color: #fff;
    font-weight: 600;
}

.jp-btn-primary:hover {
    border-color: var(--jp-brand-dark);
    background: var(--jp-brand-dark);
    color: #fff;
}

.jp-btn-ghost {
    border-color: transparent;
    background: transparent;
    padding: 0 8px;
}

.jp-btn-sm {
    height: 26px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 6px;
}

.jp-btn-danger:hover {
    border-color: var(--jp-err);
    background: var(--jp-err-bg);
    color: var(--jp-err);
}

.jp-btn.is-on {
    border-color: var(--jp-brand);
    background: var(--jp-brand-weak);
    color: var(--jp-brand-dark);
}

/* ---------------------------------------------------------
   2. 顶部工具条
   --------------------------------------------------------- */
.jp-head {
    padding: 10px 12px;
    border: 1px solid var(--jp-line);
    border-radius: 10px 10px 0 0;
    background: #fff;
    border-bottom: none;
}

.jp-head-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jp-head-row + .jp-head-row {
    margin-top: 8px;
}

.jp-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--jp-ink2);
    font-size: 12px;
    font-weight: 600;
}

.jp-status-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--jp-ink3);
}

.jp-status-dot.is-ok {
    background: #e7f6f0;
    color: var(--jp-ok);
}

.jp-status-dot.is-ok::before {
    background: var(--jp-ok);
}

.jp-status-dot.is-err {
    background: var(--jp-err-bg);
    color: var(--jp-err);
}

.jp-status-dot.is-err::before {
    background: var(--jp-err);
}

.jp-stat {
    color: var(--jp-ink3);
    font-size: 12px;
    white-space: nowrap;
}

.jp-stat b {
    color: var(--jp-ink2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.jp-sep-v {
    width: 1px;
    height: 16px;
    background: var(--jp-line);
}

.jp-grow {
    flex: 1 1 auto;
}

.jp-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.jp-actions-right {
    margin-left: auto;
}

/* 全屏工具条中部的小程序推广位：默认隐藏，只在全屏（body.jp-lock）下出现 */
.jp-fs-ad {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 8px;
    border: 1px solid #d9ede8;
    border-radius: 999px;
    background: linear-gradient(180deg, #f6fcfb 0%, #ffffff 100%);
    font-size: 12.5px;
    line-height: 18px;
    color: var(--jp-ink2);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jp-fs-ad-tag {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--dd-brand, #0f766e);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}

.jp-fs-ad-text b {
    color: var(--dd-brand-dark, #0b5f59);
    font-weight: 700;
}

/* ---------------------------------------------------------
   3. 主体两栏
   --------------------------------------------------------- */
.jp-body {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 10px;
    height: clamp(500px, 70vh, 780px);
    padding: 10px;
    border: 1px solid var(--jp-line);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
}

.jp-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--jp-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.jp-pane-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 8px 0 10px;
    border-bottom: 1px solid var(--jp-line);
    background: #fbfcfd;
}

.jp-pane-title {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--jp-ink2);
    letter-spacing: .2px;
}

.jp-pane-head .jp-grow {
    min-width: 4px;
}

.jp-pane-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* ---------------------------------------------------------
   4. 编辑器与状态条
   --------------------------------------------------------- */
.jp-editor {
    position: absolute;
    inset: 0;
}

.jp-editor .CodeMirror {
    height: 100%;
    font-family: var(--jp-mono);
    font-size: 12.5px;
    line-height: 1.55;
    color: #0f172a;
    background: #fff;
}

.jp-editor .CodeMirror-gutters {
    border-right: 1px solid #eef2f6;
    background: #fbfcfd;
}

.jp-editor .CodeMirror-linenumber {
    color: #b6c2cf;
    font-size: 11.5px;
}

.jp-editor .CodeMirror-cursor {
    border-left: 2px solid var(--jp-brand);
}

.jp-editor .CodeMirror-selected {
    background: #d9efe9;
}

.jp-editor .CodeMirror-activeline-background {
    background: #f6fbf9;
}

/* 语法错误行 */
.jp-err-line {
    background: rgba(220, 38, 38, .07);
    box-shadow: inset 3px 0 0 rgba(220, 38, 38, .75);
}

.jp-warn-line {
    background: rgba(180, 83, 9, .06);
}

.jp-hit-line {
    background: rgba(15, 118, 110, .09);
}

.jp-status {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex: 0 0 auto;
    max-height: 74px;
    overflow: auto;
    padding: 6px 10px;
    border-top: 1px solid var(--jp-line);
    background: #fbfcfd;
    color: var(--jp-ink3);
    font-size: 12px;
    line-height: 1.5;
}

.jp-status.is-err {
    background: var(--jp-err-bg);
    color: #b91c1c;
}

.jp-status.is-warn {
    background: #fffbeb;
    color: var(--jp-warn);
}

.jp-status.is-ok {
    background: #f0fdf9;
    color: var(--jp-ok);
}

.jp-status-text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.jp-status-text .jp-pos {
    font-family: var(--jp-mono);
    font-weight: 600;
}

/* ---------------------------------------------------------
   5. 右侧标签页与表单控件
   --------------------------------------------------------- */
.jp-tabs {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 2px;
    padding: 0 4px;
    border-bottom: 1px solid var(--jp-line);
    background: #fbfcfd;
    overflow-x: auto;
    scrollbar-width: none;
}

.jp-tabs::-webkit-scrollbar {
    display: none;
}

.jp-tab {
    position: relative;
    flex: 0 0 auto;
    padding: 9px 9px 8px;
    border: none;
    background: none;
    color: var(--jp-ink3);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.jp-tab:hover {
    color: var(--jp-ink2);
}

.jp-tab.is-on {
    color: var(--jp-brand-dark);
}

.jp-tab.is-on::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--jp-brand);
}

.jp-tab-badge {
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--jp-ink2);
    font-size: 10.5px;
    font-weight: 600;
}

.jp-panels {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.jp-panel {
    display: none;
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}

.jp-panel.is-on {
    display: block;
}

.jp-panel.is-flex {
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.jp-panel.is-flex.is-on {
    display: flex;
}

.jp-group + .jp-group {
    margin-top: 10px;
}

.jp-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--jp-ink2);
    font-size: 12px;
    font-weight: 600;
}

.jp-hint {
    color: var(--jp-ink3);
    font-size: 11.5px;
    line-height: 1.55;
}

.jp-hint code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #0f766e;
    font-family: var(--jp-mono);
    font-size: 11px;
}

.jp-input,
.jp-select,
.jp-textarea {
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--jp-line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--jp-ink);
    font-size: 12.5px;
    line-height: 1.4;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.jp-input:focus,
.jp-select:focus,
.jp-textarea:focus {
    border-color: var(--jp-brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}

.jp-input.jp-mono,
.jp-textarea.jp-mono {
    font-family: var(--jp-mono);
    font-size: 12px;
}

.jp-textarea {
    height: auto;
    min-height: 84px;
    padding: 7px 8px;
    resize: vertical;
    line-height: 1.55;
}

.jp-select {
    padding-right: 22px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

.jp-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jp-row > * {
    min-width: 0;
}

.jp-col {
    flex: 1 1 0;
}

.jp-col-2 {
    flex: 2 1 0;
}

/* 分段选择（TS / Zod / Schema …） */
.jp-seg {
    display: inline-flex;
    padding: 2px;
    border-radius: 7px;
    background: #eef2f6;
}

.jp-seg-btn {
    padding: 4px 9px;
    border: none;
    border-radius: 5px;
    background: none;
    color: var(--jp-ink2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.jp-seg-btn.is-on {
    background: #fff;
    color: var(--jp-brand-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

/* 复选与开关 */
.jp-chk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--jp-ink2);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.jp-chk input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--jp-brand);
    cursor: pointer;
}

/* ---------------------------------------------------------
   6. 树视图（虚拟滚动）
   --------------------------------------------------------- */
.jp-tree {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 4px 0 12px;
    font-family: var(--jp-mono);
    font-size: 12.5px;
    line-height: 22px;
    -webkit-overflow-scrolling: touch;
}

.jp-tree-spacer {
    position: relative;
    width: 100%;
}

.jp-tree-rows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
}

.jp-tree-row {
    display: flex;
    align-items: center;
    height: 22px;
    padding-right: 8px;
    white-space: nowrap;
    cursor: default;
}

.jp-tree-row:hover {
    background: #f5f9f8;
}

.jp-tree-row.is-hit {
    background: rgba(15, 118, 110, .1);
}

.jp-tree-row.is-cur {
    background: var(--jp-brand-weak);
    box-shadow: inset 2px 0 0 var(--jp-brand);
}

.jp-tree-indent {
    flex: 0 0 auto;
    border-left: 1px solid #eef2f6;
    height: 22px;
}

.jp-toggle {
    flex: 0 0 16px;
    width: 16px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa8b8;
    font-size: 9px;
    cursor: pointer;
    user-select: none;
}

.jp-toggle:hover {
    color: var(--jp-brand);
}

.jp-toggle.is-leaf {
    cursor: default;
    color: transparent;
}

.jp-t-key {
    color: #0f766e;
    cursor: pointer;
}

.jp-t-key:hover {
    text-decoration: underline;
}

.jp-t-idx {
    color: #94a3b8;
}

.jp-t-punc {
    color: #b6c2cf;
}

.jp-t-str {
    max-width: 56ch;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #b45309;
}

.jp-t-num {
    color: #1d4ed8;
}

.jp-t-bool {
    color: #7c3aed;
}

.jp-t-null {
    color: #94a3b8;
}

.jp-t-count {
    margin-left: 6px;
    color: #b6c2cf;
    font-size: 11px;
}

.jp-t-path {
    margin-left: 8px;
    color: #cbd5e1;
    font-size: 10.5px;
    opacity: 0;
}

.jp-tree-row:hover .jp-t-path {
    opacity: 1;
}

.jp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 20px;
    color: var(--jp-ink3);
    font-size: 12.5px;
    text-align: center;
}

.jp-empty-big {
    font-size: 22px;
    line-height: 1;
    opacity: .5;
}

/* ---------------------------------------------------------
   7. 结果区（代码块 / 列表 / 表格）
   --------------------------------------------------------- */
.jp-code {
    margin: 0;
    padding: 9px 10px;
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--jp-line);
    border-radius: 7px;
    background: #fbfcfd;
    color: #1e293b;
    font-family: var(--jp-mono);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre;
    tab-size: 2;
}

.jp-code.is-tall {
    max-height: 380px;
}

.jp-code mark {
    padding: 0 1px;
    border-radius: 3px;
    background: #fde68a;
    color: inherit;
}

.jp-list {
    border: 1px solid var(--jp-line);
    border-radius: 7px;
    overflow: hidden;
}

.jp-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 9px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    line-height: 1.5;
}

.jp-list-item:last-child {
    border-bottom: none;
}

.jp-list-item:hover {
    background: #fbfcfd;
}

.jp-list-path {
    flex: 1 1 auto;
    min-width: 0;
    color: #0f766e;
    font-family: var(--jp-mono);
    font-size: 11.5px;
    word-break: break-all;
    cursor: pointer;
}

.jp-list-path:hover {
    text-decoration: underline;
}

.jp-list-val {
    flex: 0 1 auto;
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--jp-ink2);
    font-family: var(--jp-mono);
    font-size: 11.5px;
}

.jp-list-meta {
    flex: 0 0 auto;
    color: var(--jp-ink3);
    font-size: 11px;
    white-space: nowrap;
}

.jp-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: #eef2f6;
    color: var(--jp-ink2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
}

.jp-badge.is-add {
    background: #e8f7f0;
    color: #047857;
}

.jp-badge.is-del {
    background: #fef2f2;
    color: #b91c1c;
}

.jp-badge.is-chg {
    background: #eff6ff;
    color: #1d4ed8;
}

.jp-badge.is-move {
    background: #fefce8;
    color: #a16207;
}

.jp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.jp-table th,
.jp-table td {
    padding: 5px 7px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: top;
}

.jp-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fbfcfd;
    color: var(--jp-ink3);
    font-size: 11px;
    font-weight: 600;
}

.jp-table td.jp-mono {
    font-size: 11.5px;
    word-break: break-all;
}

.jp-tbl-wrap {
    max-height: 300px;
    overflow: auto;
    border: 1px solid var(--jp-line);
    border-radius: 7px;
}

/* 工具条里的小结果摘要 */
.jp-note {
    padding: 6px 9px;
    border-radius: 6px;
    background: #f6f9fb;
    color: var(--jp-ink2);
    font-size: 11.5px;
    line-height: 1.55;
}

.jp-note.is-warn {
    background: #fffbeb;
    color: var(--jp-warn);
}

.jp-note.is-ok {
    background: #f0fdf9;
    color: var(--jp-ok);
}

.jp-note.is-err {
    background: var(--jp-err-bg);
    color: #b91c1c;
}

/* ---------------------------------------------------------
   8. 变换面板（手风琴 / 规则行）
   --------------------------------------------------------- */
.jp-acc {
    border: 1px solid var(--jp-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.jp-acc + .jp-acc {
    margin-top: 8px;
}

.jp-acc-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: #fbfcfd;
    color: var(--jp-ink);
    font-size: 12.5px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.jp-acc-head:hover {
    background: #f4f8f7;
}

.jp-acc-head .jp-acc-arrow {
    color: var(--jp-ink3);
    font-size: 9px;
    transition: transform .15s;
}

.jp-acc.is-open .jp-acc-arrow {
    transform: rotate(90deg);
}

.jp-acc-head .jp-acc-tip {
    margin-left: auto;
    color: var(--jp-ink3);
    font-size: 11px;
    font-weight: 400;
}

.jp-acc-body {
    display: none;
    padding: 10px;
    border-top: 1px solid var(--jp-line);
}

.jp-acc.is-open .jp-acc-body {
    display: block;
}

.jp-rule {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px dashed #eef2f6;
}

.jp-rule:last-of-type {
    border-bottom: none;
}

.jp-rule .jp-input,
.jp-rule .jp-select {
    height: 26px;
    font-size: 11.5px;
    padding: 0 6px;
}

.jp-rule-del {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 5px;
    background: none;
    color: var(--jp-ink3);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.jp-rule-del:hover {
    background: var(--jp-err-bg);
    color: var(--jp-err);
}

/* ---------------------------------------------------------
   9. 历史与收藏
   --------------------------------------------------------- */
.jp-hist {
    border: 1px solid var(--jp-line);
    border-radius: 7px;
    overflow: hidden;
}

.jp-hist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.jp-hist-item:last-child {
    border-bottom: none;
}

.jp-hist-item:hover {
    background: #fbfcfd;
}

.jp-hist-main {
    flex: 1 1 auto;
    min-width: 0;
}

.jp-hist-time {
    color: var(--jp-ink2);
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.jp-hist-prev {
    overflow: hidden;
    color: var(--jp-ink3);
    font-family: var(--jp-mono);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jp-hist-size {
    flex: 0 0 auto;
    color: var(--jp-ink3);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   10. 响应式与全屏
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .jp-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(240px, 42vh) minmax(320px, 1fr);
        height: auto;
    }

    .jp {
        font-size: 12.5px;
    }

    .jp-actions {
        gap: 5px;
    }

    .jp-btn {
        height: 28px;
        padding: 0 9px;
        font-size: 12px;
    }

    /* 窄屏全屏时三栏放不下：按钮一行、推广条单独一行 */
    body.jp-lock .jp-head-actions-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.jp-lock .jp-fs-ad {
        justify-self: start;
        margin-top: 2px;
    }
}

@media (max-width: 575.98px) {
    .jp-body {
        padding: 8px;
        gap: 8px;
    }

    .jp-stat:nth-of-type(n+3) {
        display: none;
    }

    .jp-panel {
        padding: 8px;
    }
}

/* 全屏工作台 */
.jp.jp-fs {
    position: fixed;
    inset: 0;
    z-index: 20000;
    width: auto;
    height: auto;
    margin: 0;
    transform: none;
    padding: 10px;
    background: #f8fafb;
    display: flex;
    flex-direction: column;
}

.jp.jp-fs .jp-head {
    border-radius: 10px 10px 0 0;
}

.jp.jp-fs .jp-body {
    flex: 1 1 auto;
    height: auto;
}

body.jp-lock {
    overflow: hidden;
}

/* 全屏时工具条改为「左按钮 / 中间小程序推广 / 右按钮」三栏 */
body.jp-lock .jp-head-actions-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

body.jp-lock .jp-fs-ad {
    display: flex;
    justify-self: center;
    max-width: min(420px, 100%);
}

/* 全屏时只显示工具本身：隐藏编辑器之外的使用说明与声明区块。
   中间的 Google 广告不再设 display:none —— 全屏层 .jp-fs（z-index 20000）
   已经把它整个盖住，而 display:none 会让 AdSense 折叠，退出全屏后可能不再填充。 */
body.jp-lock .form-info,
body.jp-lock .zt-notice {
    display: none !important;
}

/* 工具使用说明统一用站点 .form-info（定义在 md5.css），不再单独定义 */

/* 时间戳换算结果 */
.jp-tsout {
    margin-top: 8px;
    border: 1px solid var(--jp-line);
    border-radius: 8px;
    overflow: hidden;
}

.jp-tsout-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
}

.jp-tsout-row:last-child {
    border-bottom: none;
}

.jp-tsout-k {
    flex: 0 0 78px;
    color: var(--jp-ink3);
}

.jp-tsout-v {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--jp-ink);
    font-family: var(--jp-mono);
    word-break: break-all;
}

.jp-tsout-v b {
    color: var(--jp-brand-dark);
}
