/* C++ Formatter Online — ValSolution Web Tool */
.jed-page { padding: 28px 16px 56px; background: var(--vs-bg, #f6f8fc); min-height: 75vh; }
.jed-wrap { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.jed-hero { text-align: center; padding: 8px 8px 2px; }
.jed-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 12px; font-weight: 700; margin-bottom: 10px; border: 1px solid #c7d2fe; }
.jed-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 38px); color: #0f172a; line-height: 1.15; }
.jed-hero h1 span { color: var(--vs-primary, #4338ca); }
.jed-hero p { margin: 0 auto; max-width: 720px; color: #475569; font-size: 15.5px; line-height: 1.55; }
.jed-hero code, .jed-checks code, .jed-guide code { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid #cbd5e1; background: #fff; font-size: 12px; font-family: ui-monospace, monospace; color: #0f172a; }

.jed-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.jed-controls { display: grid; gap: 14px; }
.jed-opt-grid { display: grid; grid-template-columns: 205px 235px 1fr; gap: 14px; align-items: end; }
.jed-opt-grid > label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: #334155; }
.jed-opt-grid select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #0f172a; font: inherit; font-size: 13.5px; }
.jed-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-bottom: 6px; }
.jed-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; }
.jed-check input { accent-color: #4338ca; }

.jed-action-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid #e2e8f0; padding-top: 13px; }
.jed-btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: .15s; text-decoration: none; }
.jed-btn:hover { border-color: #6366f1; background: #f8faff; }
.jed-btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.jed-btn-primary { background: #4338ca; border-color: #4338ca; color: #fff; }
.jed-btn-primary:hover { background: #3730a3; border-color: #3730a3; }
.jed-btn-success { background: #059669; border-color: #059669; color: #fff; }
.jed-btn-success:hover { background: #047857; border-color: #047857; }
.jed-file-label { margin: 0; }

.jed-status { padding: 11px 15px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: #eef2ff; color: #312e81; border: 1px solid #c7d2fe; }
.jed-status.is-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.jed-status.is-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }

.jed-editors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jed-pane { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.jed-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.jed-pane-head h2 { margin: 0; font-size: 15.5px; color: #0f172a; }
.jed-pane-right { display: inline-flex; align-items: center; gap: 8px; }
.jed-meta { font-size: 12px; font-weight: 600; color: #64748b; }

.jed-code-shell { display: grid; grid-template-columns: 46px minmax(0, 1fr); border: 1px solid #1e293b; border-radius: 12px; overflow: hidden; background: #0f172a; height: 430px; }
.jed-gutter { margin: 0; padding: 12px 8px 12px 4px; background: #1e293b; color: #94a3b8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; text-align: right; overflow: hidden; user-select: none; }
.jed-textarea { width: 100%; height: 100%; border: 0; outline: none; resize: none; padding: 12px 14px; background: #0f172a; color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; tab-size: 4; white-space: pre; overflow: auto; }
.jed-textarea::placeholder { color: #64748b; }
.jed-textarea.is-dragover { background: #1e1b4b; }

.jed-diag h2 { margin: 0 0 10px; font-size: 17px; color: #0f172a; }
.jed-diag-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: #92400e; }

.jed-related h2, .jed-guide h2, .jed-faq h2 { margin: 0 0 13px; font-size: 20px; color: #0f172a; }
.jed-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jed-related-grid a { display: block; padding: 13px 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; text-decoration: none; transition: .15s; }
.jed-related-grid a:hover { border-color: #6366f1; background: #eef2ff; }
.jed-related-grid strong { display: block; color: #1e293b; font-size: 14px; margin-bottom: 3px; }
.jed-related-grid span { display: block; color: #64748b; font-size: 12.5px; }

.jed-guide-lead { margin: 0 0 16px; color: #475569; font-size: 14.5px; line-height: 1.65; }
.jed-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.jed-feat-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; }
.jed-feat-box h3 { margin: 0 0 6px; font-size: 15px; color: #1e293b; }
.jed-feat-box p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.55; }
.jed-howto-heading { margin-top: 6px !important; }
.jed-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jed-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 13px 15px; }
.jed-step-num { width: 34px; height: 34px; border-radius: 10px; background: #312e81; color: #ffffff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.jed-steps strong { display: block; color: #0f172a; font-size: 14.5px; margin-bottom: 3px; }
.jed-steps p { margin: 0; color: #475569; font-size: 13.5px; line-height: 1.55; }
.jed-steps kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid #cbd5e1; background: #fff; font-size: 12px; font-family: ui-monospace, monospace; color: #0f172a; }

.jed-faq-list { display: grid; gap: 10px; }
.jed-faq-list details { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; background: #f8fafc; }
.jed-faq-list summary { cursor: pointer; font-weight: 700; color: #0f172a; font-size: 14.5px; }
.jed-faq-list p { margin: 8px 0 0; color: #475569; font-size: 13.5px; line-height: 1.6; }

@media (max-width: 960px) {
  .jed-opt-grid, .jed-editors, .jed-related-grid, .jed-feature-grid { grid-template-columns: 1fr; }
  .jed-code-shell { height: 320px; }
}
