:root { --bg: #424040; --panel: #7d7d7d; --ink: #f5fffefd; --muted: #637b9b; --line: #575353; --blue: #0878f9; --editor: #201c1c; } * { box-sizing: border-box; } body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 Arial, "Meiryo", sans-serif; } header {background: #061933;color: #dfd9d9; padding: 14px clamp(10px, 2vw, 20px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;box-sizing: border-box; width: 100%; min-width: 0;} header > * {min-width: 0; max-width: 100%; box-sizing: border-box;} header input,header select,header button {max-width: 100%; flex-shrink: 1;} h1 { font-size: 20px; margin: 0; font-weight: bold; } header p { margin: 0; flex: 1; font-size: 12px; color: #b0c7e4; } button { font: inherit; cursor: pointer; } .btn { border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); padding: 7px 12px; font-size: 12px; font-weight: 500; transition: all 0.15s; } .btn:hover { border-color: var(--blue); } .primary { background: var(--blue); border-color: var(--blue); color: white; } .primary:hover { background: #0066df; } .layout-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: auto; } aside { background: var(--panel); border-right: 1px solid var(--line); padding: 16px; overflow-y: auto; max-height: auto; position: sticky; top: 0; } #search { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 14px; outline: none; font-size: 13px; } #search:focus { border-color: var(--blue); } nav { display: flex; flex-direction: column; gap: 4px; } .navbtn { text-align: left; border: 0; background: transparent; color: var(--ink); padding: 8px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; } .navbtn:hover, .navbtn.active { background: #eef5ff; color: var(--blue); font-weight: bold; } main { padding: 18px; min-width: 0; display: flex; flex-direction: column; gap: 16px; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; } .panelhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: #777976; } .panelhead strong { font-size: 14px; color: var(--ink); } .editor-wrapper { display: grid; grid-template-columns: 42px minmax(0, 1fr); background: var(--editor); color: #063604; } .numbers { padding: 12px 8px; text-align: right; color: #c8cace; background: #162f52; white-space: pre; user-select: none; font: 13px/1.5 Consolas, monospace; } .code { display: block; width: 100%; height: 210px; padding: 12px; border: 0; outline: 0; resize: vertical; background: transparent; color: #8feeff; white-space: pre; tab-size: 2; font: 13px/1.5 Consolas, monospace; } .preview-container { padding: 16px; min-height: 250px; overflow: auto; background: #2e2b2d; display: flex; justify-content: center; } .preview-inner { width: 100%; min-height: 220px; transition: max-width 0.2s; } iframe { width: 100%; height: 100%; min-height: 220px; border: 1px dashed var(--line); border-radius: 8px; background: rgb(204, 200, 201); } .single-category-box { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; } .single-category-box h2 { font-size: 15px; margin: 0 0 4px; font-weight: bold; } .desc { color: var(--muted); font-size: 12px; margin: 0 0 10px; } .chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 6px; padding: 5px 10px; font-size: 12px; font-family: Consolas, monospace; transition: all 0.1s; cursor: pointer; } .chip:hover { border-color: var(--blue); color: var(--blue); } .chip.active { background: #ffe0f1; border-color: #3b82f6; color: #1d4ed8; font-weight: bold; } .toast { position: fixed; bottom: 20px; right: 20px; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 100; } .toast.show { opacity: 1; } .dark { --bg: #0b131e; --panel: #142032; --ink: #e2e8f0; --muted: #849bb8; --line: #23354e; } .dark .single-category-box { background: var(--panel); } .dark .panelhead { background: #101a29; } .dark .chip { background: #19273c; color: var(--ink); border-color: #263b59; } .dark .chip.active { background: #1e3a8a; border-color: #3b82f6; color: #93c5fd; } .dark .preview-container { background: #0b131e; } .dark iframe { border-color: #23354e; background: #142032; } @media(max-width: 900px) {.layout-shell { grid-template-columns: 1fr; }aside { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }} .preview-container.shadow-check {background: rgb(204, 200, 201) !important; transition: background-color 0.25s ease;} .animate-slide-in {animation: slideIn 0.5s ease both;} .animate-fade-up {animation: fadeUp 0.5s ease both;} .animate-zoom-in {animation: zoomIn 0.5s ease both;} .animate-shake {animation: shake 0.5s ease both;} .animate-flip-in {animation: flipIn 0.6s ease both;}