* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #f4f7fc; color: #0b1a33; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; }
.hello-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; flex-shrink: 0; min-height: 66px; padding: 10px 28px; background: #fff; border-bottom: 1px solid #e7edf5; }
.hello-plan { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; font-size: .8rem; font-weight: 500; }
.hello-plan strong { font-size: .85rem; font-style: italic; font-weight: 800; }
.hello-plan.is-free { color: #16803d; background: #eaf8ef; }
.hello-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.325rem; font-weight: 700; line-height: 1.4; }
.hello-title-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #006acd; font-size: 1.5rem; }
.hello-title-icon > i { display: flex; align-items: center; justify-content: center; line-height: 1; }
.hello-open-link { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: #69798d; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hello-open-link:hover { color: #006acd; text-decoration: none; }
.hello-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 32px 24px 16px; }
.hello-wrapper { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; width: 100%; }
.hello-card { width: 100%; max-width: 1100px; min-width: 0; padding: 24px 22px 28px; background: #fff; border: 1px solid #e5ebf3; border-radius: 24px; box-shadow: 0 12px 40px rgba(18, 61, 107, .06); }
.hello-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.hello-intro h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 650; }
.hello-intro p { margin: 0; color: #66758a; font-size: .85rem; line-height: 1.8; }
.catalog-count { padding: 7px 12px; border: 1px solid #dce9f9; border-radius: 20px; background: #f0f6ff; color: #315d8d; font-size: .8rem; white-space: nowrap; }
.language-controls { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 18px; }
.language-controls > label { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: #4b5a6a; font-size: .82rem; font-weight: 550; }
.language-controls select, .search-wrap { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #d2dce9; border-radius: 10px; background: #fff; color: #0b1a33; font: inherit; }
.language-controls select { padding: 9px 32px 9px 12px; text-overflow: ellipsis; }
.search-wrap { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-wrap i { color: #8895a7; }
.search-wrap input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: #0b1a33; font: inherit; font-weight: 400; }
.search-wrap:focus-within { outline: 3px solid #8ec7ff; outline-offset: 2px; }
.search-wrap input:focus { outline: none; }
.language-match { margin: -10px 0 18px; color: #315d8d; font-size: .74rem; line-height: 1.7; }
.language-match:empty { display: none; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-settings, .export-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.editor-settings { gap: 18px; }
.editor-settings label { display: inline-flex; align-items: center; gap: 7px; color: #66758a; font-size: .8rem; }
.editor-settings select { min-height: 34px; padding: 4px 6px; border: 1px solid #d2dce9; border-radius: 7px; background: #fff; color: #4b5a6a; font: inherit; }
.editor-settings input { width: 15px; height: 15px; accent-color: #006acd; }
.hello-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 13px; border: 1px solid #e0e7f0; border-radius: 10px; background: #f4f7fc; color: #4b5a6a; font: inherit; font-size: .8rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.hello-btn:hover { background: #eaf0f8; color: #0b1a33; }
.hello-btn.primary { color: #fff; background: #006acd; border-color: #006acd; box-shadow: 0 4px 14px rgba(0,106,205,.12); }
.hello-btn.primary:hover { background: #0059b3; }
.hello-btn:disabled { opacity: .45; cursor: not-allowed; }
.editor-frame { min-width: 0; overflow: hidden; border: 1px solid #273346; border-radius: 14px; background: #1d1f21; }
.editor-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 16px; background: #272b33; color: #b8c3d5; font-size: .78rem; }
.file-tab { display: flex; align-items: center; gap: 8px; min-width: 0; }
#sourceFile { overflow-wrap: anywhere; }
.editor-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #79a9df; }
#editorLanguage { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#codeEditor { width: 100%; height: 380px; font-family: Consolas, 'Liberation Mono', Menlo, monospace; line-height: 1.7; }
#codeEditor .ace_gutter-cell { color: #7f8b9d; }
.editor-statusbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 7px 14px; background: #272b33; color: #a7b4c8; font-size: .7rem; }
.fallback-code { min-height: 380px; max-height: 480px; margin: 0; overflow: auto; padding: 18px; background: #1d1f21; color: #d7deea; font: 14px/1.7 Consolas, 'Liberation Mono', Menlo, monospace; tab-size: 4; }
.hello-status { min-height: 22px; margin: 12px 0 0; color: #16803d; font-size: .8rem; line-height: 1.7; overflow-wrap: anywhere; }
.hello-status.is-error { color: #c43d4b; }
.sample-note { margin: 10px 0 16px; padding: 12px 14px; border: 1px solid #dce9f9; border-radius: 10px; background: #f3f8ff; color: #315d8d; font-size: .8rem; line-height: 1.8; overflow-wrap: anywhere; }
.runtime-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.runtime-layout > section { min-width: 0; padding: 16px; border: 1px solid #e5ebf3; border-radius: 14px; background: #f8faff; }
.runtime-layout h3 { margin: 0; color: #315d8d; font-size: .9rem; font-weight: 600; }
.runtime-layout p { margin: 8px 0 0; color: #66758a; font-size: .78rem; line-height: 1.7; overflow-wrap: anywhere; }
.runtime-layout pre { max-height: 220px; margin: 12px 0 0; overflow: auto; color: #0b1a33; font: .8rem/1.8 Consolas, 'Liberation Mono', Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.output-panel pre { color: #16803d; font-size: 1rem; }
.plain-source { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f8; color: #66758a; font-size: .8rem; }
.plain-source summary { cursor: pointer; }
.plain-source pre { max-height: 400px; overflow: auto; margin: 14px 0 0; padding: 14px; border-radius: 10px; background: #f8faff; color: #0b1a33; font: 13px/1.7 Consolas, 'Liberation Mono', Menlo, monospace; tab-size: 4; }
.hello-tips { flex-shrink: 0; width: 100%; max-width: 1100px; margin-top: auto; padding: 18px 16px 0; border-top: 1px solid #eef2f8; color: #66758a; font-size: .85rem; line-height: 1.8; text-align: center; }
.hello-tips p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, pre:focus-visible, summary:focus-visible { outline: 3px solid #8ec7ff; outline-offset: 3px; }
@media (max-width: 767.98px) {
    .hello-header { padding: 8px 16px; gap: 10px; }
    .hello-plan { padding: 5px 8px; font-size: .72rem; }
    .hello-title { gap: 7px; font-size: 1.175rem; }
    .hello-title-icon { width: 32px; height: 32px; font-size: 1.3rem; }
    .hello-open-link { font-size: .8rem; }
    .hello-main { padding: 24px 16px 16px; gap: 20px; }
    .hello-card { padding: 18px 16px 22px; border-radius: 22px; }
    .runtime-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 575.98px) {
    .hello-header { grid-template-columns: minmax(0, 1fr) auto; }
    .hello-title { grid-column: 1 / -1; grid-row: 1; }
    .hello-plan { grid-column: 1; grid-row: 2; }
    .hello-open-link { grid-column: 2; grid-row: 2; }
    .language-controls { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .editor-actions > div { width: 100%; }
    .export-actions .hello-btn { flex: 1; }
    .editor-topbar { padding: 0 10px; }
    #codeEditor { height: 340px; }
    .hello-intro h2 { font-size: 1.05rem; }
    .hello-tips { padding: 18px 12px 0; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
