:root {
    color-scheme: dark;
    --bg: #0b0d10;
    --panel: #151922;
    --panel-soft: #10141b;
    --text: #eef2f6;
    --muted: #aeb7c3;
    --subtle: #778291;
    --line: #28313d;
    --accent: #35d0ba;
    --accent-strong: #4ea1ff;
    --danger: #ff6f61;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(53, 208, 186, 0.12), transparent 26rem),
        linear-gradient(180deg, #0d1117 0%, var(--bg) 45%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-shell,
.tool-shell {
    display: flex;
    flex-direction: column;
}

.site-header,
.site-main,
.site-footer,
.tool-header,
.tool-main,
.tool-footer {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    padding: 72px 0 34px;
}

.tool-header {
    padding: 34px 0 22px;
}

.site-main,
.tool-main {
    flex: 1;
}

.eyebrow,
.tool-category {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.privacy-note {
    width: fit-content;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(53, 208, 186, 0.34);
    border-radius: 8px;
    background: rgba(53, 208, 186, 0.08);
    color: var(--text);
    font-weight: 700;
}

.section-heading {
    margin-bottom: 18px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.site-nav a,
.breadcrumb-list a,
.breadcrumb-list span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.54);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.site-nav a:hover,
.breadcrumb-list a:hover {
    border-color: rgba(53, 208, 186, 0.58);
    color: var(--text);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.breadcrumb-list span {
    color: var(--accent);
}

.hub-section,
.category-section {
    margin-bottom: 28px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 14px;
}

.category-card {
    display: grid;
    min-height: 160px;
    align-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(53, 208, 186, 0.1), rgba(78, 161, 255, 0.05)),
        rgba(16, 20, 27, 0.96);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.category-card:hover {
    border-color: rgba(53, 208, 186, 0.66);
    background:
        radial-gradient(circle at 18% 0%, rgba(53, 208, 186, 0.16), transparent 10rem),
        rgba(16, 20, 27, 0.98);
    transform: translateY(-2px);
}

.category-card span,
.tool-tags span,
.workflow-list span {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-card strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.35;
}

.featured-grid .tool-card {
    min-height: 240px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tool-tags span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(53, 208, 186, 0.3);
    border-radius: 8px;
    background: rgba(53, 208, 186, 0.07);
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.workflow-list article {
    min-height: 130px;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.58);
}

.workflow-list h3 {
    margin-top: 8px;
}

.workflow-list p {
    margin: 0;
    color: var(--muted);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
}

.tool-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(21, 25, 34, 0.96), rgba(16, 20, 27, 0.96));
    box-shadow: var(--shadow);
}

.tool-card p:not(.tool-category) {
    margin: 0;
    color: var(--muted);
}

.button-link,
button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #04110f;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.button-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.button-link:hover,
button:hover {
    background: #5fe3d1;
}

.tool-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.back-link {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--text);
}

.seo-intro {
    max-width: 840px;
    margin: 20px 0 0;
    color: var(--muted);
}

.seo-intro strong {
    color: var(--text);
}

.seo-intro ul {
    display: grid;
    max-width: 780px;
    margin: 18px 0 0;
    padding-left: 1.2rem;
    gap: 8px;
}

.editor-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(21, 25, 34, 0.92);
    box-shadow: var(--shadow);
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.validator-grid {
    display: grid;
    gap: 24px;
}

.validator-panel {
    display: grid;
    gap: 16px;
}

.validator-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.compact-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.column {
    display: flex;
    min-height: 480px;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin-bottom: 10px;
}

label {
    color: var(--muted);
    font-weight: 800;
}

textarea {
    width: 100%;
    flex: 1;
    min-height: 360px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #090c11;
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    padding: 16px;
}

textarea:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.18);
    outline: 0;
}

textarea[readonly] {
    background: var(--panel-soft);
    color: #d9e0e8;
}

.code-input {
    min-height: 190px;
    flex: initial;
    resize: vertical;
}

.results {
    min-height: 44px;
}

.empty-results {
    margin: 0;
    color: var(--subtle);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.results-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #0a0e14;
    font-size: 0.94rem;
}

.results-table th,
.results-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.results-table th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.results-table tbody tr:last-child td {
    border-bottom: 0;
}

.results-table tr.valid td:nth-last-child(2),
.results-table tr.valid td:nth-last-child(1):empty,
.results-table tr.valid td:nth-child(4) {
    color: var(--accent);
    font-weight: 800;
}

.results-table tr.invalid td:nth-last-child(2),
.results-table tr.invalid td:last-child {
    color: var(--danger);
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #090c11;
    color: var(--text);
    font: inherit;
    padding: 0 12px;
}

input:focus,
select:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.18);
    outline: 0;
}

.metadata-panel,
.results-layout {
    margin-bottom: 24px;
}

.metadata-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.metadata-form label {
    display: grid;
    gap: 8px;
}

.results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.summary-card,
.result-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0a0e14;
}

.summary-card {
    padding: 14px;
}

.summary-card span {
    display: block;
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.summary-card strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1.1;
}

.result-cards {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.result-card {
    padding: 16px;
    border-left: 4px solid var(--accent);
}

.result-card.warning {
    border-left-color: #ffc857;
}

.result-card.error {
    border-left-color: var(--danger);
}

.result-card h3,
.result-card p {
    margin: 0;
}

.result-card h3 {
    font-size: 1rem;
}

.result-card p + p,
.result-card h3 + p {
    margin-top: 8px;
}

.result-severity {
    color: var(--subtle);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.suggestion {
    color: var(--muted);
}

.metadata-preview {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) 1fr;
    gap: 10px 14px;
    margin: 16px 0 0;
}

.metadata-preview dt {
    color: var(--subtle);
    font-weight: 800;
}

.metadata-preview dd {
    margin: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.audio-panel {
    margin-bottom: 24px;
}

.drop-zone {
    display: grid;
    min-height: 260px;
    place-items: center;
    gap: 12px;
    padding: 32px;
    border: 2px dashed rgba(53, 208, 186, 0.42);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.72);
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.drop-zone.drag-over,
.drop-zone:focus {
    border-color: var(--accent);
    background: rgba(53, 208, 186, 0.08);
    outline: 0;
}

.drop-zone p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.drop-title {
    color: var(--text) !important;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.file-info {
    margin-top: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0a0e14;
}

.info-grid span {
    display: block;
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.info-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.progress-wrap {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #090c11;
}

.progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.2s ease;
}

.tool-message p {
    margin: 14px 0 0;
    color: var(--muted);
}

.tool-message .error {
    color: var(--danger);
    font-weight: 800;
}

.audio-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audio-summary .summary-card strong {
    font-size: 1.1rem;
}

.artwork-box {
    display: grid;
    gap: 16px;
}

.artwork-preview {
    width: min(100%, 320px);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0a0e14;
}

.cover-preview {
    width: min(100%, 420px);
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0a0e14;
    box-shadow: var(--shadow);
}

.cover-maker-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.78fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.cover-maker-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #070a0f;
    box-shadow: var(--shadow);
    cursor: grab;
    touch-action: none;
}

.cover-maker-canvas:active {
    cursor: grabbing;
}

.cover-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cover-control-grid label,
.preset-toolbar label {
    display: grid;
    gap: 8px;
}

.cover-control-grid input[type="range"] {
    padding: 0;
    accent-color: var(--accent);
}

.typography-panel {
    margin-bottom: 24px;
}

.preset-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
}

.preset-toolbar label {
    min-width: min(100%, 300px);
    flex: 1;
}

.preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.compact-left {
    justify-content: flex-start;
}

.typography-studio {
    margin-bottom: 24px;
}

.typography-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.typography-canvas-wrap {
    display: grid;
    gap: 10px;
}

.typography-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #070a0f;
    cursor: grab;
    box-shadow: var(--shadow);
    touch-action: none;
}

.typography-canvas:active {
    cursor: grabbing;
}

.typography-controls {
    display: grid;
    gap: 14px;
}

.typography-controls label {
    display: grid;
    gap: 8px;
}

.typography-controls input[type="range"] {
    padding: 0;
    accent-color: var(--accent);
}

.recommendation-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.visualizer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.analyzer-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #090c11;
}

.visualizer-stage {
    margin-bottom: 24px;
}

.visualizer-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #070a0f;
    box-shadow: var(--shadow);
}

.visualizer-controls input[type="range"] {
    padding: 0;
    accent-color: var(--accent);
}

.inline-option {
    align-content: center;
    grid-template-columns: auto 1fr !important;
}

.inline-option input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.audio-preview {
    width: 100%;
    margin-top: 16px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.72);
}

.options-grid legend {
    padding: 0 8px;
    color: var(--muted);
    font-weight: 800;
}

.options-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.options-grid input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

button {
    padding: 0 18px;
}

button.secondary {
    background: #2d3542;
    color: var(--text);
}

button.secondary:hover {
    background: #394454;
}

button.tertiary {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
}

button.tertiary:hover {
    border-color: var(--accent);
    background: rgba(53, 208, 186, 0.08);
    color: var(--text);
}

body.harmonic-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(53, 208, 186, 0.16), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(78, 161, 255, 0.13), transparent 24rem),
        linear-gradient(180deg, #0d1117 0%, var(--bg) 45%);
}

.harmonic-studio {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.harmonic-control-panel,
.camelot-wheel-panel,
.harmonic-visualization,
.seo-education,
.related-tools,
.faq-section {
    background:
        linear-gradient(180deg, rgba(21, 25, 34, 0.88), rgba(9, 12, 17, 0.94)),
        radial-gradient(circle at 10% 0%, rgba(53, 208, 186, 0.12), transparent 18rem);
    backdrop-filter: blur(18px);
}

.mode-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(9, 12, 17, 0.78);
}

.mode-tab {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
}

.mode-tab:hover,
.mode-tab.active {
    border-color: rgba(53, 208, 186, 0.44);
    background: rgba(53, 208, 186, 0.12);
    color: var(--text);
}

.harmonic-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.harmonic-control-panel .validator-heading {
    display: grid;
    grid-template-columns: 1fr;
}

.harmonic-control-panel h2,
.camelot-wheel-panel h2 {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.harmonic-input-grid label {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(40, 49, 61, 0.72);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.64);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.harmonic-input-grid label.active-field {
    border-color: rgba(53, 208, 186, 0.58);
    background: rgba(53, 208, 186, 0.08);
}

.conversion-result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.conversion-token {
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(53, 208, 186, 0.28);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(53, 208, 186, 0.14), rgba(78, 161, 255, 0.08)),
        #0a0e14;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.conversion-token span,
.panel-copy,
.wheel-heading p,
#wheel-hint {
    color: var(--muted);
}

.conversion-token span {
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.conversion-token strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.65rem, 4vw, 2.55rem);
    line-height: 1;
}

.copy-actions {
    margin-top: 18px;
}

.wheel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

#wheel-hint {
    max-width: 240px;
    margin: 2px 0 0;
    font-size: 0.92rem;
    text-align: right;
}

.camelot-wheel {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin: 10px auto 0;
    border: 1px solid rgba(78, 161, 255, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(10, 14, 20, 0.98) 0 23%, transparent 23.4%),
        radial-gradient(circle, transparent 0 37%, rgba(53, 208, 186, 0.08) 37.4% 52%, transparent 52.4%),
        conic-gradient(from -15deg, rgba(53, 208, 186, 0.2), rgba(78, 161, 255, 0.2), rgba(255, 200, 87, 0.14), rgba(53, 208, 186, 0.2));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 0 70px rgba(78, 161, 255, 0.08);
    animation: wheelPulse 8s ease-in-out infinite;
}

.camelot-wheel::before,
.camelot-wheel::after {
    position: absolute;
    inset: 11%;
    border: 1px solid rgba(238, 242, 246, 0.08);
    border-radius: 50%;
    content: "";
}

.camelot-wheel::after {
    inset: 34%;
    border-color: rgba(53, 208, 186, 0.18);
}

.wheel-core {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 31%;
    aspect-ratio: 1;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(53, 208, 186, 0.38);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(21, 25, 34, 0.96), rgba(9, 12, 17, 0.96));
    box-shadow: inset 0 0 34px rgba(53, 208, 186, 0.08);
    text-align: center;
}

.wheel-core span,
.wheel-core strong {
    display: block;
}

.wheel-core span {
    align-self: end;
    color: var(--subtle);
    font-size: clamp(0.62rem, 1.6vw, 0.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wheel-core strong {
    align-self: start;
    color: var(--text);
    font-size: clamp(1.1rem, 3vw, 1.65rem);
    line-height: 1;
}

.wheel-node {
    position: absolute;
    z-index: 3;
    display: grid;
    width: clamp(48px, 10vw, 70px);
    height: clamp(48px, 10vw, 70px);
    place-items: center;
    padding: 6px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(238, 242, 246, 0.12);
    border-radius: 50%;
    background: rgba(9, 12, 17, 0.88);
    color: var(--text);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wheel-node span,
.wheel-node small {
    line-height: 1;
}

.wheel-node span {
    font-size: clamp(0.9rem, 2.2vw, 1.08rem);
    font-weight: 900;
}

.wheel-node small {
    color: var(--subtle);
    font-size: clamp(0.58rem, 1.6vw, 0.72rem);
    font-weight: 800;
}

.wheel-node.mode-b {
    width: clamp(42px, 8.3vw, 60px);
    height: clamp(42px, 8.3vw, 60px);
    background: rgba(16, 20, 27, 0.92);
}

.wheel-node:hover,
.wheel-node:focus {
    z-index: 4;
    border-color: var(--accent);
    background: rgba(53, 208, 186, 0.16);
    outline: 0;
    transform: translate(-50%, -50%) scale(1.08);
}

.wheel-node.compatible {
    border-color: rgba(78, 161, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.12), 0 16px 32px rgba(0, 0, 0, 0.3);
}

.wheel-node.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(53, 208, 186, 0.95), rgba(78, 161, 255, 0.78));
    color: #04110f;
    box-shadow: 0 0 0 4px rgba(53, 208, 186, 0.16), 0 18px 38px rgba(53, 208, 186, 0.18);
}

.wheel-node.active small {
    color: rgba(4, 17, 15, 0.78);
}

.harmonic-results-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
}

.panel-copy {
    margin: 10px 0 0;
}

.key-chip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.key-chip {
    min-height: 106px;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.9);
    border-radius: 8px;
    background: #0a0e14;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.key-chip:hover,
.key-chip.active {
    border-color: rgba(53, 208, 186, 0.62);
    background: rgba(53, 208, 186, 0.08);
    transform: translateY(-2px);
}

.key-chip span {
    display: block;
    color: var(--accent);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.key-chip strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.25;
}

.energy-card {
    border-left-color: var(--accent-strong);
}

.harmonic-visualization {
    display: grid;
    grid-template-columns: minmax(220px, 0.32fr) 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.transition-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.transition-step {
    position: relative;
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(78, 161, 255, 0.1), rgba(10, 14, 20, 0.92)),
        #0a0e14;
    overflow: hidden;
}

.transition-step::after {
    position: absolute;
    right: -18px;
    bottom: -34px;
    color: rgba(53, 208, 186, 0.08);
    content: "KEY";
    font-size: 6rem;
    line-height: 1;
}

.transition-step span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.transition-step strong {
    display: block;
    margin-top: 14px;
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
}

.transition-step em {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-style: normal;
    font-weight: 800;
}

.education-grid,
.related-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.education-grid article {
    padding: 18px;
    border: 1px solid rgba(40, 49, 61, 0.78);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.58);
}

.education-grid p {
    margin: 0;
    color: var(--muted);
}

.related-tools,
.faq-section {
    margin-top: 24px;
}

.related-link-grid a {
    display: flex;
    min-height: 74px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: #0a0e14;
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.related-link-grid a:hover {
    border-color: var(--accent);
    background: rgba(53, 208, 186, 0.08);
    transform: translateY(-2px);
}

.faq-section details {
    margin-top: 12px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.58);
}

.faq-section summary {
    cursor: pointer;
    padding: 16px;
    color: var(--text);
    font-weight: 900;
}

.faq-section details p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--muted);
}

body.vocal-page {
    background:
        radial-gradient(circle at 16% 0%, rgba(53, 208, 186, 0.15), transparent 27rem),
        radial-gradient(circle at 82% 12%, rgba(78, 161, 255, 0.13), transparent 28rem),
        linear-gradient(180deg, #0d1117 0%, var(--bg) 45%);
}

.vocal-upload-panel,
.vocal-module,
.preview-export-panel,
.vocal-page .seo-education,
.vocal-page .related-tools,
.vocal-page .faq-section {
    background:
        linear-gradient(180deg, rgba(21, 25, 34, 0.9), rgba(9, 12, 17, 0.94)),
        radial-gradient(circle at 12% 0%, rgba(53, 208, 186, 0.1), transparent 20rem);
    backdrop-filter: blur(18px);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.badge-row span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(53, 208, 186, 0.34);
    border-radius: 8px;
    background: rgba(53, 208, 186, 0.08);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-badge-row span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(53, 208, 186, 0.4);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(53, 208, 186, 0.12), rgba(78, 161, 255, 0.08)),
        rgba(10, 14, 20, 0.72);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(53, 208, 186, 0.08);
}

.empty-audio-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
}

.empty-audio-illustration span {
    display: block;
    width: 7px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    box-shadow: 0 0 18px rgba(53, 208, 186, 0.18);
    animation: vocalIdleBars 1.8s ease-in-out infinite;
}

.empty-audio-illustration span:nth-child(2) {
    height: 36px;
    animation-delay: 0.12s;
}

.empty-audio-illustration span:nth-child(3) {
    height: 48px;
    animation-delay: 0.24s;
}

.empty-audio-illustration span:nth-child(4) {
    height: 32px;
    animation-delay: 0.36s;
}

.empty-audio-illustration span:nth-child(5) {
    height: 26px;
    animation-delay: 0.48s;
}

.drop-trust {
    color: var(--accent) !important;
    font-weight: 900;
}

.vocal-waveform {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 3;
    min-height: 150px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #070a0f;
    box-shadow: inset 0 0 34px rgba(53, 208, 186, 0.04);
    cursor: crosshair;
}

.vocal-waveform:hover {
    border-color: rgba(53, 208, 186, 0.52);
    box-shadow: 0 0 28px rgba(53, 208, 186, 0.08), inset 0 0 34px rgba(53, 208, 186, 0.05);
}

.pitch-analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.vocal-workbench {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.vocal-module {
    display: grid;
    gap: 16px;
    align-content: start;
}

.module-title h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.control-grid label,
.master-harmony {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(40, 49, 61, 0.78);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.64);
}

.control-grid input[type="range"],
.master-harmony input[type="range"],
.harmony-card input[type="range"] {
    padding: 0;
    accent-color: var(--accent);
}

.harmony-module {
    grid-column: span 2;
}

.harmony-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.harmony-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 14px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: #0a0e14;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.harmony-card:hover {
    border-color: rgba(53, 208, 186, 0.6);
    background: rgba(53, 208, 186, 0.07);
    transform: translateY(-2px);
}

.harmony-card input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--accent);
}

.harmony-card span {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
}

.harmony-card small {
    color: var(--subtle);
    font-weight: 800;
}

.master-harmony {
    margin-top: 2px;
}

.vocal-presets button {
    min-height: 40px;
}

.vocal-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vocal-preset-grid button {
    display: grid;
    min-height: 86px;
    align-content: center;
    justify-items: start;
    padding: 14px;
    border: 1px solid rgba(40, 49, 61, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(53, 208, 186, 0.08), rgba(78, 161, 255, 0.04)),
        #0a0e14;
    color: var(--text);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.vocal-preset-grid button:hover,
.vocal-preset-grid button:focus {
    border-color: var(--accent);
    background: rgba(53, 208, 186, 0.1);
    color: var(--text);
    outline: 0;
    transform: translateY(-2px);
}

.vocal-preset-grid span,
.vocal-preset-grid small {
    display: block;
}

.vocal-preset-grid span {
    font-size: 1rem;
    font-weight: 900;
}

.vocal-preset-grid small {
    margin-top: 4px;
    color: var(--subtle);
    font-weight: 800;
}

.advanced-vocal-panel {
    grid-column: span 2;
}

.advanced-vocal-panel details {
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.54);
}

.advanced-vocal-panel summary {
    cursor: pointer;
    padding: 16px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
}

.advanced-control-grid {
    padding: 0 16px 16px;
}

.preview-export-panel {
    margin-bottom: 24px;
}

.live-visualizer {
    display: grid;
    grid-template-columns: minmax(180px, 0.25fr) 1fr minmax(170px, 0.22fr);
    gap: 16px;
    align-items: center;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.64);
}

.spectrum-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 4;
    min-height: 130px;
    border: 1px solid rgba(40, 49, 61, 0.9);
    border-radius: 8px;
    background: #070a0f;
    box-shadow: inset 0 0 36px rgba(78, 161, 255, 0.05);
}

.pitch-meter {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(53, 208, 186, 0.26);
    border-radius: 8px;
    background: rgba(53, 208, 186, 0.07);
}

.pitch-meter span,
.export-status-card span {
    color: var(--subtle);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pitch-meter strong,
.export-status-card strong {
    color: var(--text);
    line-height: 1.15;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.preview-grid > div {
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.64);
}

.premium-export-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(0, auto));
    gap: 12px;
    align-items: stretch;
    margin-top: 18px;
}

.export-status-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.64);
}

.export-status-card p {
    margin: 0;
    color: var(--muted);
}

.export-status-card .export-success,
.export-success {
    color: var(--accent) !important;
    font-weight: 900;
}

.premium-export-grid button {
    min-height: 68px;
}

.mini-tips-panel {
    margin-bottom: 24px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tips-grid article {
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background: rgba(10, 14, 20, 0.64);
    color: var(--muted);
    font-weight: 800;
}

.mood-page .tool-header {
    padding-bottom: 30px;
}

.mood-generator-panel,
.composition-layout,
.melody-panel,
.mood-preview-panel,
.seo-education,
.related-tools,
.faq-section {
    margin-bottom: 24px;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mood-card {
    display: grid;
    min-height: 104px;
    align-content: space-between;
    justify-items: start;
    padding: 15px;
    border: 1px solid rgba(40, 49, 61, 0.86);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(53, 208, 186, 0.08), rgba(78, 161, 255, 0.05)),
        #0a0e14;
    color: var(--text);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mood-card:hover,
.mood-card:focus,
.mood-card.active {
    border-color: rgba(53, 208, 186, 0.76);
    background:
        radial-gradient(circle at 20% 0%, rgba(53, 208, 186, 0.18), transparent 9rem),
        rgba(10, 14, 20, 0.92);
    color: var(--text);
    outline: 0;
    box-shadow: 0 0 28px rgba(53, 208, 186, 0.1);
    transform: translateY(-2px);
}

.mood-card span {
    display: block;
    font-size: 1rem;
    font-weight: 900;
}

.mood-card small {
    display: block;
    max-width: 100%;
    color: var(--subtle);
    font-weight: 800;
}

.composition-layout {
    display: grid;
    grid-template-columns: minmax(290px, 0.36fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.composition-settings {
    position: sticky;
    top: 18px;
}

.progression-panel {
    min-height: 100%;
}

.variation-actions {
    flex-wrap: wrap;
    max-width: 520px;
}

.variation-actions button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.86rem;
}

.progression-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.progression-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(40, 49, 61, 0.9);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(16, 20, 27, 0.96), rgba(7, 10, 15, 0.98));
    box-shadow: inset 0 0 32px rgba(78, 161, 255, 0.04);
}

.progression-card span {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.progression-card strong {
    color: var(--text);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1;
}

.progression-card small {
    color: var(--muted);
    font-weight: 800;
}

.piano-roll-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 18 / 5;
    min-height: 260px;
    margin-top: 18px;
    border: 1px solid rgba(40, 49, 61, 0.9);
    border-radius: 8px;
    background: #070a0f;
    box-shadow: inset 0 0 44px rgba(53, 208, 186, 0.05), 0 0 28px rgba(0, 0, 0, 0.18);
}

.melody-note-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.melody-note-list span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(53, 208, 186, 0.32);
    border-radius: 8px;
    background: rgba(53, 208, 186, 0.08);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
}

.mood-export-grid {
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(130px, auto));
}

.mood-export-grid button {
    padding: 0 14px;
    white-space: normal;
}

.tool-message {
    margin-top: 12px;
    color: var(--accent);
    font-weight: 900;
}

.soundfont-status {
    color: var(--subtle);
    font-size: 0.9rem;
}

.soundfont-status.ready {
    color: var(--accent);
    font-weight: 900;
}

.soundfont-status.fallback {
    color: #ffd27a;
    font-weight: 900;
}

@keyframes vocalIdleBars {
    0%,
    100% {
        transform: scaleY(0.72);
        opacity: 0.72;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes wheelPulse {
    0%,
    100% {
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 0 70px rgba(78, 161, 255, 0.08);
    }
    50% {
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 0 90px rgba(53, 208, 186, 0.13);
    }
}

.site-footer,
.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 34px 0;
    border-top: 1px solid rgba(40, 49, 61, 0.72);
    color: var(--subtle);
    font-size: 0.92rem;
}

.site-footer p,
.tool-footer p {
    margin: 0;
}

.site-footer a,
.tool-footer a {
    color: var(--text);
    font-weight: 800;
    text-decoration-color: rgba(53, 208, 186, 0.55);
    text-underline-offset: 4px;
}

.site-footer a:hover,
.tool-footer a:hover {
    color: var(--accent);
}

@media (max-width: 760px) {
    .site-header {
        padding-top: 46px;
    }

    .tool-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .editor-panel {
        padding: 16px;
    }

    .editor-grid {
        grid-template-columns: 1fr;
    }

    .validator-heading {
        flex-direction: column;
    }

    .metadata-form,
    .results-layout,
    .visualizer-grid,
    .cover-maker-layout,
    .cover-control-grid,
    .typography-layout,
    .options-grid,
    .summary-grid,
    .metadata-preview,
    .info-grid,
    .audio-summary {
        grid-template-columns: 1fr;
    }

    .compact-actions {
        justify-content: flex-start;
    }

    .site-footer,
    .tool-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .harmonic-studio,
    .harmonic-results-layout,
    .harmonic-visualization,
    .education-grid,
    .related-link-grid,
    .workflow-list,
    .vocal-workbench,
    .composition-layout,
    .mood-grid,
    .progression-grid,
    .control-grid,
    .harmony-grid,
    .preview-grid,
    .live-visualizer,
    .premium-export-grid,
    .pitch-analysis-grid,
    .tips-grid,
    .vocal-preset-grid {
        grid-template-columns: 1fr;
    }

    .harmony-module,
    .advanced-vocal-panel {
        grid-column: auto;
    }

    .composition-settings {
        position: static;
    }

    .badge-row {
        justify-content: flex-start;
    }

    .wheel-heading {
        flex-direction: column;
    }

    #wheel-hint {
        max-width: none;
        text-align: left;
    }

    .key-chip-grid,
    .transition-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .column {
        min-height: 340px;
    }

    textarea {
        min-height: 270px;
    }
}

@media (max-width: 560px) {
    .harmonic-input-grid,
    .conversion-result,
    .key-chip-grid,
    .transition-rail {
        grid-template-columns: 1fr;
    }

    .mode-tabs {
        width: 100%;
    }

    .mode-tab {
        flex: 1;
    }

    .mood-card {
        min-height: 88px;
    }

    .piano-roll-canvas {
        min-height: 220px;
    }

    .camelot-wheel {
        width: min(100%, 430px);
    }

    .wheel-node {
        width: 43px;
        height: 43px;
        padding: 4px;
    }

    .wheel-node.mode-b {
        width: 38px;
        height: 38px;
    }

    .wheel-node small {
        display: none;
    }
}

.language-switch{display:inline-flex;align-items:center;justify-content:center;min-width:2.4rem;padding:.45rem .7rem;border:1px solid currentColor;border-radius:999px;font-weight:800;text-decoration:none;margin-left:auto}.language-switch:hover{filter:brightness(1.2)}
