.ak-account { max-width: 1180px; margin: 24px auto 48px; color: var(--ak-ink); letter-spacing: 0; }
.ak-account *, .ak-dialog *, #keyModal * { letter-spacing: 0; box-sizing: border-box; }
.ak-account [hidden], .ak-dialog [hidden] { display: none !important; }
.ak-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ak-heading h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.ak-heading p { margin: 6px 0 0; color: var(--ak-muted); font-size: 14px; }
.ak-button, .ak-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--ak-line); border-radius: 8px; background: var(--ak-surface); color: var(--ak-ink); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; text-decoration: none; }
.ak-button:hover, .ak-icon-button:hover { border-color: var(--ak-blue); color: var(--ak-blue); }
.ak-button:disabled { opacity: .5; cursor: not-allowed; }
.ak-primary { background: var(--ak-blue); color: var(--ak-surface); border-color: var(--ak-blue); }
.ak-primary:hover { background: var(--ak-ink); color: var(--ak-surface); }
.ak-danger { color: #d84863; border-color: color-mix(in srgb, #d84863 35%, var(--ak-line)); }
.ak-icon-button { width: 36px; min-height: 36px; padding: 0; flex: 0 0 36px; }
.ak-icon-button span { display: none; }
.ak-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.ak-toolbar > input { flex: 1; min-width: 140px; max-width: 340px; }
.ak-account input:not([type=checkbox]):not([type=file]), .ak-account select, .ak-account textarea, .ak-dialog input:not([type=checkbox]) { width: 100%; min-height: 42px; border: 1px solid var(--ak-line); border-radius: 8px; padding: 10px 12px; background: var(--ak-surface); color: var(--ak-ink); font: inherit; font-size: 14px; }
.ak-account input[type=checkbox], .ak-dialog input[type=checkbox] { accent-color: var(--ak-blue); width: 18px; height: 18px; flex: 0 0 auto; }
.ak-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--ak-line); }
.ak-tabs a { display: inline-flex; gap: 9px; align-items: center; padding: 14px 0; border-bottom: 2px solid transparent; color: var(--ak-muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.ak-tabs [aria-selected=true] { color: var(--ak-blue); border-bottom-color: var(--ak-blue); }
.ak-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ak-song-card { position: relative; overflow: hidden; border: 1px solid var(--ak-line); border-radius: 8px; background: var(--ak-surface); }
.ak-song-cover { display: flex; flex-direction: column; justify-content: flex-end; position: relative; height: 156px; padding: 16px; background: #234c55; color: #fff; text-decoration: none; overflow: hidden; }
.ak-song-card:nth-child(3n+2) .ak-song-cover { background: #4c3859; }
.ak-song-card:nth-child(3n+3) .ak-song-cover { background: #384f78; }
.ak-song-cover::after { position: absolute; inset: 0; content: ''; background: linear-gradient(transparent 15%, rgba(0,0,0,.8)); }
.ak-song-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-song-cover > i { position: absolute; left: 20px; top: 20px; font-size: 32px; opacity: .28; }
.ak-song-cover h3, .ak-song-cover p { position: relative; z-index: 1; margin: 0; overflow-wrap: anywhere; }
.ak-song-cover h3 { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-song-cover p { margin-top: 4px; font-size: 12px; color: #dfe6ed; }
.ak-song-meta { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-top: 1px solid var(--ak-line); color: var(--ak-muted); font-size: 12px; }
.ak-song-meta strong { color: var(--ak-blue); }
.ak-song-meta .ak-card-actions { display: flex; gap: 6px; margin-left: auto; }
.ak-song-meta .ak-icon-button { width: 30px; min-height: 30px; flex-basis: 30px; }
.ak-select-box { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 6px; background: var(--ak-surface); border-radius: 6px; }
.ak-repertoire { display: flex; flex-direction: column; gap: 12px; min-height: 180px; padding: 18px; border: 1px solid var(--ak-line); border-radius: 8px; background: var(--ak-surface); }
.ak-repertoire-top { display: flex; align-items: center; gap: 8px; }
.ak-repertoire-top > i { padding: 12px; background: var(--ak-surface-muted); color: #32938b; border-radius: 8px; font-size: 19px; }
.ak-repertoire-top .ak-card-actions { display: flex; gap: 6px; margin-left: auto; }
.ak-repertoire a { text-decoration: none; color: var(--ak-ink); font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.ak-repertoire p { color: var(--ak-muted); font-size: 13px; margin: 0; }
.ak-empty { padding: 50px 20px; text-align: center; color: var(--ak-muted); }
.ak-empty > i { font-size: 32px; color: var(--ak-blue); }
.ak-empty h2 { font-size: 19px; color: var(--ak-ink); }
.ak-profile { display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 16px 0 32px; border-bottom: 1px solid var(--ak-line); text-align: center; }
.ak-avatar { display: grid; place-items: center; width: 104px; height: 104px; flex: 0 0 auto; border-radius: 50%; background: var(--ak-surface-muted); border: 1px solid var(--ak-line); color: var(--ak-blue); font-size: 36px; overflow: hidden; }
.ak-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ak-profile-identity { width: 100%; max-width: 560px; min-width: 0; }
.ak-profile h1 { margin: 0; font-size: 25px; overflow-wrap: anywhere; }
.ak-profile p { color: var(--ak-muted); margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.ak-profile-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; width: 100%; }
.ak-profile-actions .ak-button { min-height: 44px; padding: 10px 18px; }
.ak-profile-actions i { line-height: 1; }
.ak-profile-logout { color: var(--ak-muted); background: transparent; }
.ak-profile-logout:hover { color: #d84863; border-color: #d84863; }
.ak-collection-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; gap: 18px; }
.ak-collection-link { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 24px 16px; background: var(--ak-surface); border: 1px solid var(--ak-line); border-radius: 8px; color: var(--ak-ink); text-decoration: none; }
.ak-collection-link > i:first-child { color: #32938b; font-size: 24px; }.ak-collection-link:nth-child(2) > i:first-child { color: var(--ak-blue); }.ak-collection-link:nth-child(3) > i:first-child { color: #d76b8c; }
.ak-collection-link strong { font-size: 15px; }.ak-collection-link small { display: block; margin-top: 5px; color: var(--ak-muted); font-size: 12px; }
.ak-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ak-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ak-field { display: grid; gap: 7px; margin-bottom: 18px; font-size: 13px; font-weight: 650; }
.ak-editor textarea { min-height: 390px; resize: vertical; font-family: monospace; line-height: 1.65; tab-size: 4; }
.ak-preview { position: sticky; top: calc(var(--ak-toast-top, 90px) + 4px); padding-left: 24px; border-left: 1px solid var(--ak-line); min-width: 0; }
.ak-preview h2 { font-size: 20px; margin: 0 0 5px; overflow-wrap: anywhere; }.ak-preview p { color: var(--ak-muted); font-size: 13px; margin: 0 0 20px; }
.ak-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: monospace; font-size: 14px; line-height: 1.7; padding: 20px; border: 1px solid var(--ak-line); border-radius: 8px; background: var(--ak-surface); color: var(--ak-ink); min-height: 390px; }
.ak-preview .chord-highlight { color: var(--ak-blue); font-weight: 800; background: none; padding: 0; border: 0; }
.ak-editor-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }.ak-editor-actions small { color: var(--ak-muted); }
.ak-dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid var(--ak-line); border-radius: 8px; color: var(--ak-ink); background: var(--ak-surface); box-shadow: 0 24px 90px #0004; }
.ak-dialog::backdrop { background: #03091699; }
.ak-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--ak-line); }
.ak-dialog-header h2 { font-size: 18px; margin: 0; }
.ak-dialog-body { padding: 20px; overflow-wrap: anywhere; }.ak-dialog-body p { font-size: 14px; color: var(--ak-muted); margin: 0 0 16px; }
.ak-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--ak-line); }
.ak-repertoire-choice { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ak-line); font-size: 14px; cursor: pointer; }.ak-repertoire-choice span { flex: 1; min-width: 0; overflow-wrap: anywhere; }.ak-repertoire-choice small { display: block; margin-top: 4px; color: var(--ak-muted); }.ak-repertoire-choice:has(input:disabled) { opacity: .5; cursor: default; }
.ak-modal-message { display: block; color: #d84863; font-size: 13px; margin-top: 12px; }
.ak-toasts { position: fixed; top: var(--ak-toast-top, 90px); right: 16px; z-index: 1600; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); }
.ak-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ak-surface); color: var(--ak-ink); border: 1px solid var(--ak-line); border-left: 3px solid #32938b; border-radius: 8px; box-shadow: var(--ak-shadow); font-size: 14px; }
.ak-toast span { flex: 1; overflow-wrap: anywhere; }.ak-toast > i { color: #32938b; }.ak-toast-error { border-left-color: #d84863; }.ak-toast-error > i { color: #d84863; }.ak-toast-warning { border-left-color: #b9831a; }
body > .alert[style*="fixed"], body > .notification, body > .toast-message, body > .success-message, body > .error-message { top: var(--ak-toast-top, 90px) !important; z-index: 1500 !important; max-width: calc(100% - 32px); }
.nav-library { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ak-line); border-radius: 8px; background: var(--ak-surface); color: var(--ak-blue) !important; }
.nav-library::after { display: none !important; }
.nav-library[hidden] { display: none !important; }
.nav-utilities { display: flex; gap: 8px; align-items: center; order: 4; }
.navbar .mobile-menu-toggle { order: 5; }
@media (max-width: 768px) { .nav-utilities { gap: 5px; }.nav-utilities .theme-toggle, .nav-library { width: 32px; height: 34px; min-width: 32px; min-height: 34px; }.navbar { gap: 7px; }.navbar .logo { font-size: 16px; }.navbar .logo img { width: 25px; height: 25px; } }
#keyModal { z-index: 1400; padding: 14px; }
#keyModal .modal-content-modern { max-width: 460px; width: 100%; max-height: calc(100dvh - 28px); overflow: auto; border-radius: 8px; background: var(--ak-surface); color: var(--ak-ink); border: 1px solid var(--ak-line); }
#keyModal .modal-header-modern { padding: 16px 20px; background: var(--ak-surface); border-bottom: 1px solid var(--ak-line); color: var(--ak-ink); }
#keyModal .modal-header-modern h3 { font-size: 18px; }#keyModal .modal-body-modern { padding: 20px; }
.ak-selected-tone { display: flex; align-items: center; gap: 12px; background: var(--ak-surface-muted); padding: 12px; border: 1px solid var(--ak-line); border-radius: 8px; margin-bottom: 16px; }.ak-selected-tone > i { color: var(--ak-blue); }.ak-selected-tone small { display: block; color: var(--ak-muted); font-size: 12px; }.ak-selected-tone strong { font-size: 20px; }
#keyModal .key-options-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
#keyModal .key-option-btn { position: relative; display: block; padding: 14px; min-height: 110px; height: auto; text-align: left; border-radius: 8px; background: var(--ak-surface); border: 1px solid var(--ak-line); color: var(--ak-ink); }
#keyModal .key-option-content { display: flex; align-items: flex-start; gap: 5px; flex-direction: column; }#keyModal .key-option-content > i { display: none; }#keyModal .key-label { font-size: 13px; color: var(--ak-muted); order: -1; }#keyModal .key-value { font-size: 24px; color: var(--ak-ink); }.ak-capo-label { font-size: 11px; color: var(--ak-muted); }
#keyModal .key-option-btn.selected, #keyModal .key-grid-btn.selected { background: color-mix(in srgb, var(--ak-blue) 14%, var(--ak-surface)); border-color: var(--ak-blue); }
#keyModal .keys-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }#keyModal .key-grid-btn { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 60px; padding: 8px 2px; background: var(--ak-surface); border: 1px solid var(--ak-line); border-radius: 8px; color: var(--ak-ink); font-size: 14px; }
#keyModal .key-grid-btn small { font-size: 10px; color: var(--ak-muted); }#keyModal .other-keys-section h4 { font-size: 14px; color: var(--ak-ink); margin-bottom: 12px; }
@media (max-width: 1000px) { .ak-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .ak-profile { gap: 14px; padding: 12px 0 26px; }.ak-avatar { width: 88px; height: 88px; }.ak-profile h1 { font-size: 23px; }.ak-profile-actions .ak-button { padding-inline: 12px; } }
@media (max-width: 768px) { .ak-account { margin-top: 18px; }.ak-heading { align-items: flex-start; gap: 12px; }.ak-heading h1 { font-size: 22px; }.ak-heading .ak-button { padding: 9px 11px; }.ak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.ak-song-cover { height: 145px; padding: 12px; }.ak-song-cover h3 { font-size: 14px; }.ak-song-meta { flex-wrap: wrap; padding: 8px; }.ak-collection-links { grid-template-columns: 1fr; gap: 10px; }.ak-collection-link { padding: 18px 14px; }.ak-editor { grid-template-columns: 1fr; gap: 24px; }.ak-preview { position: static; border-left: 0; padding: 24px 0 0; border-top: 1px solid var(--ak-line); }.ak-fields { gap: 12px; }.ak-preview pre { min-height: 240px; }.ak-repertoire { min-height: 164px; padding: 12px; }.ak-repertoire-top .ak-icon-button { width: 30px; flex-basis: 30px; min-height: 30px; }.ak-repertoire-top > i { padding: 8px; }.ak-repertoire a { font-size: 15px; } }
@media (max-width: 370px) { .ak-grid { gap: 8px; }.ak-repertoire-top { flex-wrap: wrap; }.ak-heading h1 { font-size: 20px; }.ak-fields { grid-template-columns: 1fr; }.ak-song-meta > .ak-card-actions { width: 100%; justify-content: flex-end; } }
