/* MUSIC NORDI — small, local-first interface. No external fonts or images. */
:root {
  --ink: #233a32;
  --ink-soft: #5d6e63;
  --green: #173c32;
  --green-hover: #245344;
  --lime: #d5e79d;
  --paper: #f7f8f2;
  --white: #fffefa;
  --line: #e1e6da;
  --line-dark: #cbd5c7;
  --muted: #758075;
  --radius: 15px;
  --shadow: 0 10px 32px rgba(30, 53, 38, .055);
  --sidebar-width: 224px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { accent-color: var(--green); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #95b566; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
button svg, a svg { pointer-events: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
img { display: block; max-width: 100%; }
small { font-size: 12px; }
hr { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
::selection { background: #d7e6ad; color: #173c32; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-width); padding: 31px 18px 21px; background: var(--green); color: #edf2e7; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 12px 38px; white-space: nowrap; font-size: 18px; font-weight: 700; letter-spacing: -.6px; }
.brand small { display: block; color: #a6baad; font-size: 9px; line-height: 1.6; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.brand-mark { width: 35px; height: 38px; border: 1px solid rgba(213,231,157,.75); border-radius: 8px 8px 8px 2px; color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 27px; font-weight: normal; position: relative; }
.brand-mark:after { content: ''; position: absolute; right: 5px; bottom: 7px; width: 11px; height: 1px; background: currentColor; opacity: .55; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav-label { color: #90a89b; padding: 0 14px; margin: 14px 0 11px; text-transform: uppercase; font-size: 9px; letter-spacing: 1.8px; font-weight: 700; }
.nav-link { display: flex; gap: 12px; align-items: center; min-height: 45px; padding: 11px 14px; border: 0; border-radius: 8px; background: transparent; color: #bbcec1; font-size: 12px; text-align: left; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,255,255,.055); color: white; }
.nav-link.active, .nav-link[aria-current='page'] { color: #e6efca; background: #2b5143; }
.nav-link.active:before { content: ''; position: absolute; left: 0; width: 3px; height: 23px; background: var(--lime); border-radius: 0 2px 2px 0; }
.nav-icon { display: inline-flex; color: #aac0ad; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-link.active .nav-icon { color: var(--lime); }
.nav-count { margin-left: auto; min-width: 21px; height: 21px; text-align: center; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 10px; color: var(--lime); background: rgba(213,231,157,.12); }
.sidebar-bottom { margin-top: auto; padding: 24px 12px 0; }
.sidebar-note { border: 1px solid #3e5b4c; border-radius: 11px; padding: 15px; font-size: 11px; line-height: 1.65; color: #b2c5b5; margin-bottom: 22px; }
.sidebar-note strong { display: block; color: #e0e9cb; font-weight: 500; font-size: 12px; margin-bottom: 6px; }
.sidebar-note a { display: inline-flex; gap: 6px; align-items: center; color: var(--lime); margin-top: 8px; font-size: 11px; }
.sidebar-profile { border-top: 1px solid #355345; padding-top: 20px; display: flex; align-items: center; gap: 10px; }
.sidebar-profile .avatar { background: #3a5848; color: #d5e79d; border: 1px solid #52705a; width: 32px; height: 32px; font-size: 10px; }
.sidebar-profile strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.5; color: #eef1e7; }
.sidebar-profile small { display: block; font-size: 10px; color: #a4b8a9; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); padding: 0 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,254,250,.55); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #879080; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs strong, .breadcrumbs .current { color: #4d6053; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.topbar-divider { height: 22px; width: 1px; background: var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e6ebdc; color: #4f6145; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.avatar.small { width: 26px; height: 26px; font-size: 9px; }
.avatar-stack { display: inline-flex; padding-left: 5px; }
.avatar-stack .avatar { margin-left: -5px; border: 2px solid var(--white); }
.page { max-width: 1550px; margin: 0 auto; padding: 38px 42px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.page-heading p { color: var(--ink-soft); font-size: 12px; line-height: 1.7; margin-bottom: 0; max-width: 640px; }
.eyebrow { color: #81906e; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: -1.4px; margin: 0 0 10px; }
.page-title em { font-weight: 400; color: #799052; }
.muted { color: var(--muted); }
.text-small { font-size: 11px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.space-between { justify-content: space-between; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button svg { width: 15px; height: 15px; }
.button:hover { box-shadow: 0 2px 6px rgba(30,53,38,.06); }
.button-primary { color: #f8f9ed; background: var(--green); border-color: var(--green); }
.button-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button-secondary { color: #50604d; background: var(--white); border-color: #d8dfcf; }
.button-secondary:hover { background: #edf1e6; border-color: #bac7ad; }
.button-ghost { color: #64735d; background: transparent; }
.button-ghost:hover { background: #e9eee1; }
.button-danger { color: #9d4c3f; background: #fcf0e9; border-color: #f0d8cb; }
.button-icon { width: 35px; min-height: 35px; padding: 8px; color: #7c8976; background: transparent; border-color: transparent; border-radius: 6px; }
.button-icon:hover { background: #e8ecdf; }
.button-icon svg { width: 17px; height: 17px; }
.button-small { min-height: 31px; padding: 6px 10px; font-size: 10px; }
.button-block { width: 100%; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.toolbar .search { flex: 1; max-width: 410px; }
.toolbar-spacer { margin-left: auto; }
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search svg { position: absolute; left: 13px; width: 16px; height: 16px; color: #8a9780; pointer-events: none; }
.search input { width: 100%; min-width: 0; height: 40px; padding: 10px 15px 10px 38px; background: var(--white); color: var(--ink); border: 1px solid #dfe5d7; border-radius: 7px; font-size: 11px; }
.search input::placeholder { color: #929b8b; }
.search input:focus { border-color: #a4b48a; outline: 2px solid #e2ebd3; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.chip { display: inline-flex; gap: 7px; align-items: center; min-height: 30px; border: 1px solid #dde3d3; border-radius: 6px; padding: 5px 11px; background: transparent; color: #7b856f; font-size: 10px; }
.chip:hover { background: #edf1e4; }
.chip.active { color: var(--green); background: #e7eddc; border-color: #cfdcbd; font-weight: 600; }
.chip .count { font-size: 9px; opacity: .65; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 29px; }
.stat-card { background: #f1f4e9; border: 1px solid #e2e8d7; padding: 19px 21px; border-radius: 10px; display: flex; align-items: center; gap: 14px; }
.stat-icon { height: 37px; width: 37px; border-radius: 9px; background: #e4ead9; display: flex; align-items: center; justify-content: center; color: #7e925e; }
.stat-card .muted { font-size: 10px; }
.stat-value { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: #426142; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 25px 0 16px; }
.section-title h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
.section-title .muted { font-size: 10px; }
.section-title a { font-size: 10px; color: #708653; }
.score-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.score-card { min-width: 0; background: var(--white); border: 1px solid #e0e5d7; border-radius: 11px; overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.score-card:hover { border-color: #bdcba9; box-shadow: var(--shadow); transform: translateY(-2px); }
.score-cover { height: 165px; overflow: hidden; position: relative; background: #e6ebda; color: #597143; padding: 22px 25px; display: flex; flex-direction: column; justify-content: space-between; }
.score-cover:before { content: ''; position: absolute; width: 235px; height: 235px; right: -80px; top: -80px; border: 1px solid rgba(70,96,57,.09); border-radius: 50%; box-shadow: 0 0 0 28px rgba(70,96,57,.035), 0 0 0 58px rgba(70,96,57,.025); }
.score-cover:after { content: ''; position: absolute; height: 28px; left: 25px; right: 25px; bottom: 32px; background: repeating-linear-gradient(to bottom,transparent 0,transparent 5px,currentColor 5px,currentColor 6px); opacity: .17; }
.cover-sage { background: #e1e8d3; color: #677e4d; }
.cover-sand { background: #eee7d6; color: #99825b; }
.cover-lilac { background: #e7e5ed; color: #888095; }
.cover-blue { background: #e0e8e7; color: #698b88; }
.cover-dark { background: #29483b; color: #c3d79e; }
.cover-clef { font-family: var(--serif); font-size: 47px; line-height: 1.2; opacity: .7; position: absolute; left: 25px; bottom: 21px; z-index: 1; }
.cover-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; max-width: 180px; letter-spacing: -.5px; position: relative; z-index: 1; }
.cover-subtitle { font-size: 8px; text-transform: uppercase; letter-spacing: 1.6px; position: relative; z-index: 1; }
.cover-number { position: absolute; right: 21px; bottom: 17px; font-family: var(--serif); font-size: 48px; opacity: .13; }
.score-cover .badge { align-self: flex-start; background: rgba(255,254,250,.8); color: #5c6c49; border-color: rgba(255,254,250,.4); }
.score-cover .button-icon { position: absolute; top: 9px; right: 9px; color: inherit; }
.score-card-body { padding: 18px 19px 16px; }
.score-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -.35px; margin: 0 0 6px; }
.score-card .composer { font-size: 10px; color: #86907c; margin: 0 0 16px; }
.score-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 9px; color: #758367; margin-bottom: 17px; }
.score-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0e7; padding-top: 13px; font-size: 9px; color: #8d9783; }
.score-card-footer svg { width: 12px; height: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; white-space: nowrap; border-radius: 4px; border: 1px solid transparent; font-size: 9px; line-height: 1.5; font-weight: 500; padding: 3px 7px; vertical-align: middle; }
.badge:before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.green { background: #eaf2df; color: #6a864d; border-color: #e1ebd3; }
.badge.amber { background: #fcf2dd; color: #a68b45; border-color: #f5e8c8; }
.badge.neutral { background: #eef0e9; color: #7d8772; border-color: #e7eade; }
.badge.blue { background: #e6eeed; color: #638782; border-color: #dce8e4; }
.tag { display: inline-flex; align-items: center; border: 1px solid #e6eade; color: #879178; border-radius: 4px; padding: 2px 6px; font-size: 9px; white-space: nowrap; }
.table-wrap { background: var(--white); border: 1px solid #e0e5d7; border-radius: 10px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.data-table th { padding: 13px 20px; background: #f6f7ef; color: #8a957b; font-size: 9px; font-weight: 500; border-bottom: 1px solid #e8ecde; }
.data-table td { padding: 16px 20px; border-bottom: 1px solid #edf0e6; font-size: 11px; color: #6a7960; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbf5; }
.data-table td strong { color: #42573d; font-weight: 500; }
.data-table small { display: block; color: #929b86; font-size: 9px; margin-top: 3px; }
.table-title { display: flex; gap: 11px; align-items: center; }
.table-score-icon { width: 32px; height: 38px; border-radius: 4px; background: #ecf0e3; border: 1px solid #dde4cf; display: inline-flex; align-items: center; justify-content: center; color: #91a570; font-family: var(--serif); font-size: 24px; }
.empty-state { text-align: center; padding: 65px 24px; border: 1px dashed #ccd8bd; border-radius: 12px; color: #7b886d; }
.empty-state svg { height: 35px; width: 35px; margin-bottom: 12px; color: #9baa87; }
.empty-state h2, .empty-state h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; color: #3b5738; margin-bottom: 9px; }
.empty-state p { max-width: 440px; margin: 0 auto 20px; font-size: 12px; }
.dialog-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: rgba(17,40,30,.45); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.dialog { position: relative; width: 100%; max-width: 540px; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 15px; background: var(--white); padding: 29px 30px 26px; box-shadow: 0 24px 100px rgba(10,33,21,.22); }
.dialog.wide { max-width: 780px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 22px; }
.dialog h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 7px; letter-spacing: -.7px; }
.dialog p { color: var(--ink-soft); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-field { margin-bottom: 17px; min-width: 0; }
.form-grid .form-field { margin-bottom: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 11px; font-weight: 500; color: #5f7053; margin-bottom: 7px; }
.form-field small { display: block; font-size: 10px; color: #8b977d; margin-top: 5px; }
.input, .select, .textarea { width: 100%; min-width: 0; background: #fffefa; border: 1px solid #d9e1ce; border-radius: 6px; padding: 10px 11px; min-height: 41px; font-size: 12px; color: #44593d; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #a1aa94; }
.select { padding-right: 25px; }
.notice { border-radius: 8px; border: 1px solid #dfe8d1; background: #eef4e4; padding: 13px 16px; font-size: 11px; color: #768b5b; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 16px; height: 16px; margin-top: 1px; }
.notice p { margin: 0; }
.notice.amber { border-color: #efdfb7; background: #fcf5e4; color: #9c854d; }
.notice.error { border-color: #e8c5b6; background: #fbefea; color: #9b6554; }
.toast { position: fixed; z-index: 150; bottom: 27px; left: calc(50% + 112px); transform: translateX(-50%); max-width: calc(100vw - 48px); background: #234838; color: #eef3df; border: 1px solid #4d6b49; border-radius: 9px; padding: 13px 20px; font-size: 12px; box-shadow: 0 6px 32px rgba(22,51,30,.17); display: flex; align-items: center; gap: 10px; }
.toast svg { width: 16px; height: 16px; color: #d6e79f; }
.list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.list-card { border: 1px solid #dfe6d5; border-radius: 11px; background: var(--white); overflow: hidden; padding: 23px; transition: box-shadow .18s, border-color .18s; }
.list-card:hover { border-color: #b7c6a5; box-shadow: var(--shadow); }
.list-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 21px; }
.list-icon { height: 40px; width: 40px; border-radius: 9px; background: #edf2e1; color: #859b65; display: flex; justify-content: center; align-items: center; }
.list-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -.6px; margin: 0 0 8px; }
.list-card p { font-size: 11px; color: #8a957d; margin-bottom: 20px; }
.list-card-footer { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #8a957d; }
.list-hero { display: flex; justify-content: space-between; gap: 25px; padding: 25px 28px; margin-bottom: 24px; border: 1px solid #dae3cb; border-radius: 12px; background: #edf2e3; }
.list-hero h1 { margin-bottom: 9px; }
.list-hero p { color: #7b8a6b; font-size: 12px; margin-bottom: 12px; max-width: 640px; }
.list-hero-aside { text-align: right; min-width: 160px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; }
.list-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 10px; color: #81906e; }
.repertoire { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.repertoire-item { padding: 18px 21px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #e9eddf; }
.repertoire-item:last-child { border-bottom: 0; }
.repertoire-item:hover { background: #fafbf5; }
.repertoire-number { width: 22px; flex: 0 0 auto; color: #9ba68b; font-size: 11px; }
.repertoire-title { flex: 1; min-width: 0; }
.repertoire-title strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: -.3px; }
.repertoire-title small { color: #909c81; font-size: 10px; }
.part-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #768b57; background: #f0f4e7; border: 1px solid #dfe7d0; border-radius: 4px; padding: 5px 9px; white-space: nowrap; }
.part-chip svg { width: 13px; height: 13px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.tab { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; padding: 0 1px 13px; color: #8a977c; font-size: 11px; display: inline-flex; align-items: center; gap: 7px; }
.tab.active { color: #446338; border-bottom-color: #7d9a5b; font-weight: 500; }
.tab .nav-count { color: #7b915b; background: #edf2e1; min-width: 18px; height: 18px; border-radius: 4px; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 24px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 21px; margin-bottom: 20px; }
.panel h2, .panel h3 { font-size: 12px; font-weight: 600; margin: 0 0 16px; }
.panel .section-title { margin-top: 0; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0e6; }
.member-row:last-child { border-bottom: 0; padding-bottom: 0; }
.member-info { flex: 1; min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.member-info strong { display: block; font-size: 11px; font-weight: 500; }
.member-info small { display: block; color: #8d9a7d; font-size: 9px; }
.member-assignment { display: block; margin-top: 5px; color: #657b56; font-size: 10px; line-height: 1.5; }
.member-actions { display: flex; align-items: center; flex: 0 0 auto; }
.member-row .badge { font-size: 8px; }
.assignment-fieldset { min-width: 0; padding: 0; margin: 23px 0 0; border: 0; }
.assignment-fieldset legend { margin-bottom: 8px; color: #4d6442; font-size: 12px; font-weight: 600; }
.assignment-fieldset > p { margin-bottom: 14px; }
.assignment-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.assignment-row { padding: 13px 14px; background: #f8faf2; border-bottom: 1px solid var(--line); }
.assignment-row:last-child { border-bottom: 0; }
.assignment-work { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.assignment-work input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; }
.assignment-work strong { display: block; color: #4b6240; font-size: 12px; font-weight: 500; }
.assignment-work small { display: block; color: #849175; font-size: 10px; margin-top: 2px; }
.assignment-part { margin: 10px 0 0 28px; }
.assignment-part .select:disabled { opacity: .5; background: #f2f4ec; }
.pilot-guide { padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; color: #687b5b; font-size: 11px; }
.pilot-guide summary { cursor: pointer; color: #4f6742; font-weight: 500; }
.pilot-guide ol { padding-left: 20px; margin-bottom: 0; }
.pilot-guide li { padding: 4px 0; }
#proposal-edition-note .button { margin-top: 10px; white-space: normal; }
.activity-row { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf0e6; font-size: 10px; color: #7b8a6c; }
.activity-row:last-child { border-bottom: 0; }
.activity-row p { margin: 0; }
.activity-row strong { color: #4f6743; font-weight: 500; }
.activity-row small { color: #a0a890; font-size: 9px; display: block; margin-top: 4px; }
.activity-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #aabc87; margin-top: 5px; }
.review-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); margin-bottom: 15px; }
.review-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.review-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0 0 6px; }
.review-card p { font-size: 11px; color: #7d8a6e; }
.review-description { background: #f5f7ee; border-left: 2px solid #c3d3a7; padding: 11px 14px; margin: 14px 0; border-radius: 0 6px 6px 0; }
.review-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-actions { display: flex; gap: 7px; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 21px; align-items: start; }
.editor-layout > section { min-width: 0; }
.editor-layout > aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.editor-layout > aside .panel { margin: 0; }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 10px 12px; border: 1px solid #dce3d1; border-radius: 9px 9px 0 0; background: var(--white); }
.editor-toolbar .button { min-height: 33px; padding: 5px 9px; }
.editor-toolbar .button.active { color: #446536; background: #e4edda; border-color: #d0dfbe; }
.toolbar-group { display: flex; gap: 3px; align-items: center; padding-right: 10px; margin-right: 5px; border-right: 1px solid var(--line); }
.toolbar-group:last-child { border-right: 0; margin-right: 0; }
.editor-stage { padding: 16px; background: #f6f8f2; border: 1px solid #dce3d1; border-top: 0; border-radius: 0 0 9px 9px; min-height: 650px; overflow: visible; }
.score-paper { background: #fff; box-shadow: 0 4px 18px rgba(27,51,28,.08); color: #191e18; min-height: 650px; width: 100%; max-width: 800px; margin: 0 auto; padding: 50px 38px; text-align: center; }
.score-paper h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 0 0 6px; }
.score-paper .score-subtitle { font-family: var(--serif); font-size: 12px; color: #60695d; margin-bottom: 35px; }
.score-paper svg { width: 100%; height: auto; display: block; }
.score-paper .staff-selected { fill: #eaf1dd; }
.note-tools { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.note-tools button { border: 1px solid #e0e5d7; background: #f7f9f0; border-radius: 5px; min-height: 37px; font-family: var(--serif); font-size: 20px; color: #5a704a; }
.note-tools button.active { color: #284b2d; background: #e0ebce; border-color: #b8cd99; }
.reader { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; background: #e4e7df; display: flex; flex-direction: column; }
.reader-toolbar { min-height: 65px; padding: 10px 23px; background: #173c32; color: #ebf0df; display: flex; align-items: center; justify-content: space-between; gap: 15px; box-shadow: 0 2px 12px rgba(16,40,25,.08); }
.reader-toolbar .button { color: #e6edda; border-color: #46664e; background: transparent; }
.reader-toolbar .button:hover { background: #2c5342; }
.reader-toolbar .button-primary { background: #d5e79d; color: #2c4a30; border-color: #d5e79d; }
.reader-title strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: -.2px; }
.reader-title small { display: block; font-size: 9px; color: #a5b9a6; }
.reader-content { overflow: auto; flex: 1; padding: 30px 18px; overscroll-behavior: contain; }
.reader-paper { display: block; margin: 0 auto; width: 100%; max-width: 820px; min-height: 1000px; background: white; box-shadow: 0 7px 25px rgba(20,40,21,.12); padding: 65px 50px; color: #191e18; }
.reader-paper svg { width: 100%; height: auto; }
.reader-paper h2 { text-align: center; font-family: var(--serif); font-weight: 400; font-size: 29px; }
.reader-bottom { background: #f5f7ef; border-top: 1px solid #d6dfcc; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 9px 20px; font-size: 11px; color: #6f8061; }
.reader-page-number { min-width: 65px; text-align: center; }
.reader-hint { margin-left: auto; font-size: 9px; color: #89987c; }
.reader-bottom .button { min-height: 33px; }
.file-drop { position: relative; text-align: center; border: 1px dashed #bfcfaa; border-radius: 9px; background: #f4f7ec; padding: 31px 22px; color: #84976d; margin: 15px 0; }
.file-drop:hover, .file-drop.dragover { background: #eaf1df; border-color: #8ba76a; }
.file-drop svg { width: 31px; height: 31px; margin-bottom: 10px; }
.file-drop strong { display: block; color: #657f4d; font-size: 12px; margin-bottom: 5px; font-weight: 500; }
.file-drop p { font-size: 10px; margin-bottom: 0; color: #98a28a; }
.file-drop input[type='file'] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.progress { height: 5px; background: #e4eadb; border-radius: 5px; overflow: hidden; margin: 12px 0; }
.progress span { display: block; height: 100%; background: #97b36b; border-radius: inherit; transition: width .2s; }
.mobile-nav, .mobile-brand, .mobile-menu-toggle { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden, [hidden] { display: none !important; }
.pilot-label { font-size: 9px; color: #8e9a7f; border: 1px solid #e1e8d7; border-radius: 4px; padding: 3px 7px; letter-spacing: .2px; }
.serif-heading { font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.75px; line-height: 1.2; margin-bottom: 13px; }
.arrangement-summary { padding: 24px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 26px; align-items: center; }
.arrangement-summary .score-cover { height: 224px; border-radius: 5px; box-shadow: 0 5px 14px rgba(45,66,31,.06); }
.arrangement-summary .cover-title { font-size: 25px; }
.reader-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.reader-features > div { padding: 8px 0; }
.reader-features svg { display: block; margin-bottom: 12px; color: #8da46c; }
.reader-features strong { display: block; font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.reader-features p { margin: 0; color: #8c9880; font-size: 10px; }
.repertoire-controls { display: flex; gap: 2px; align-items: center; }
.repertoire-controls .button-icon { width: 26px; min-height: 28px; padding: 5px; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 30px; background: linear-gradient(145deg,#f5f8ef,#e9eedf); }
.login-card { width: 100%; max-width: 490px; padding: 52px 50px; background: #fffefa; border: 1px solid #dce5ce; border-radius: 16px; box-shadow: 0 15px 70px rgba(25,55,31,.055); }
.login-card .brand-mark { background: var(--green); margin-bottom: 28px; }
.login-card .page-title { font-size: 48px; margin-bottom: 20px; }
.login-card p { color: #7d8c6e; font-size: 13px; margin-bottom: 27px; }
.score-engine-host { width: 100%; }
.draft-note { font-size: 9px; color: #8b987b; padding: 9px 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: #f2f5ea; min-height: 31px; }
.draft-note .button { min-height: 23px; padding: 2px 7px; margin-left: 3px; font-size: 9px; }
.loading { padding: 70px 20px; color: #80906c; font-size: 12px; text-align: center; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #dce5ce; border-top-color: #718e50; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1450px) {
  :root { --sidebar-width: 240px; }
  .page { padding-left: 55px; padding-right: 55px; }
  .topbar { padding-left: 55px; padding-right: 55px; }
  .score-cover { height: 190px; }
  .score-card-body { padding: 21px 22px 18px; }
  .toast { left: calc(50% + 120px); }
}
@media (max-width: 1180px) {
  :root { --sidebar-width: 204px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { margin-left: 10px; gap: 9px; font-size: 17px; }
  .page { padding: 30px 29px 45px; }
  .topbar { padding: 0 29px; }
  .score-grid { gap: 15px; }
  .score-cover { height: 149px; padding: 19px; }
  .cover-title { font-size: 19px; }
  .score-card-body { padding: 16px; }
  .score-card h3 { font-size: 18px; }
  .detail-grid { grid-template-columns: minmax(0,1fr) 245px; gap: 18px; }
  .editor-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .editor-stage { padding: 20px; }
  .score-paper { padding: 40px 25px; }
  .toast { left: calc(50% + 102px); }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 184px; }
  .brand { margin-left: 4px; font-size: 15px; }
  .brand-mark { width: 31px; height: 34px; }
  .brand small { font-size: 7px; letter-spacing: 1.6px; }
  .nav-link { font-size: 11px; gap: 10px; padding: 10px; }
  .sidebar-note { padding: 11px; font-size: 10px; }
  .sidebar-bottom { padding-left: 6px; padding-right: 6px; }
  .page { padding: 27px 24px 40px; }
  .topbar { padding: 0 24px; }
  .page-title { font-size: 34px; }
  .score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .score-cover { height: 165px; }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .detail-grid > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .list-hero { padding: 23px; }
  .editor-layout { grid-template-columns: minmax(0,1fr); }
  .editor-layout > aside { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
  .editor-layout > aside .panel { margin: 0; }
  .editor-stage { min-height: 500px; }
  .toast { left: calc(50% + 92px); }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: 66px; }
  .topbar { height: 60px; padding: 0 21px; background: var(--white); }
  .breadcrumbs { font-size: 10px; }
  .topbar-actions { gap: 10px; }
  .topbar-divider { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
  .mobile-brand .brand-mark { width: 25px; height: 28px; background: var(--green); border: 0; font-size: 21px; }
  .page { padding: 27px 21px 35px; }
  .page-heading { gap: 14px; margin-bottom: 25px; }
  .page-title { font-size: 34px; margin-bottom: 8px; }
  .page-heading p { font-size: 11px; }
  .page-heading > .button { padding: 9px 12px; font-size: 10px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.7px; }
  .toolbar { gap: 8px; }
  .toolbar .search { max-width: none; }
  .filter-row { margin-bottom: 23px; }
  .stats-grid { gap: 10px; margin-bottom: 24px; }
  .stat-card { padding: 14px 13px; gap: 9px; }
  .stat-icon { height: 30px; width: 30px; border-radius: 7px; }
  .stat-icon svg { height: 16px; width: 16px; }
  .stat-value { font-size: 23px; }
  .stat-card .muted { font-size: 9px; }
  .score-grid { gap: 14px; }
  .score-cover { height: 163px; }
  .score-card h3 { font-size: 20px; }
  .section-title h2 { font-size: 12px; }
  .list-grid { gap: 14px; }
  .list-card { padding: 20px; }
  .list-card h3 { font-size: 23px; }
  .list-hero { padding: 22px; gap: 17px; }
  .list-hero .page-title { font-size: 31px; }
  .list-hero-aside { min-width: 120px; }
  .list-hero-aside .button { font-size: 10px; padding: 8px 11px; }
  .repertoire-item { padding: 16px; gap: 10px; }
  .repertoire-title strong { font-size: 18px; }
  .repertoire-number { width: 17px; }
  .repertoire-item .part-chip { font-size: 9px; padding: 4px 6px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; min-height: 62px; padding: 7px 14px max(7px,env(safe-area-inset-bottom)); border-top: 1px solid #dce4d0; background: #fffefa; box-shadow: 0 -3px 20px rgba(38,64,30,.035); align-items: stretch; justify-content: space-around; }
  .mobile-nav a, .mobile-nav button { flex: 1; border: 0; background: transparent; padding: 2px 9px; color: #94a083; font-size: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; line-height: 1.4; position: relative; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-nav a.active, .mobile-nav button.active { color: #496b35; }
  .mobile-nav .active:before { content: ''; width: 35px; height: 2px; border-radius: 2px; background: #b2ca87; position: absolute; top: -8px; }
  .mobile-nav .nav-count { position: absolute; top: 1px; right: calc(50% - 23px); min-width: 13px; height: 13px; font-size: 7px; background: #e1ebcd; color: #638545; border: 1px solid #fffefa; }
  .toast { left: 50%; bottom: 82px; padding: 12px 17px; font-size: 11px; }
  .reader-toolbar { padding: 9px 15px; min-height: 59px; gap: 10px; }
  .reader-title strong { font-size: 17px; }
  .reader-title small { font-size: 8px; }
  .reader-toolbar .button { min-height: 32px; padding: 7px 9px; font-size: 10px; }
  .reader-content { padding: 19px 12px; }
  .reader-paper { min-height: 800px; padding: 45px 29px; }
  .reader-bottom { padding: 8px 13px max(8px,env(safe-area-inset-bottom)); gap: 17px; }
  .reader-hint { display: none; }
}
@media (max-width: 520px) {
  .pilot-label { display: none; }
  .arrangement-summary { padding: 19px; grid-template-columns: 110px minmax(0,1fr); gap: 17px; }
  .arrangement-summary .score-cover { height: 180px; padding: 15px 12px; }
  .arrangement-summary .cover-title { font-size: 20px; }
  .arrangement-summary .serif-heading { font-size: 25px; }
  .arrangement-summary .eyebrow { font-size: 7px; letter-spacing: 1px; }
  .arrangement-summary .tag, .arrangement-summary .badge { font-size: 8px; }
  .reader-features { grid-template-columns: 1fr; gap: 14px; }
  .reader-features > div { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; }
  .reader-features svg { grid-row: 1 / 3; margin-top: 3px; }
  .reader-features p { grid-column: 2; }
  .login-card { padding: 35px 28px; }
  .topbar { padding: 0 17px; }
  .breadcrumbs { gap: 7px; }
  .topbar-actions .avatar { width: 28px; height: 28px; font-size: 10px; }
  .topbar-actions .button-icon { width: 29px; min-height: 29px; }
  .page { padding: 25px 17px 30px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 17px; }
  .page-heading > div:first-child { flex: 1; min-width: 200px; }
  .page-heading > .button { margin-top: 3px; }
  .page-title { font-size: 33px; letter-spacing: -1px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: calc(100% - 48px); }
  .toolbar .select { max-width: 140px; font-size: 11px; }
  .search input { height: 41px; font-size: 12px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; margin-right: -17px; padding-right: 17px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .chip { flex: 0 0 auto; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px 11px; display: block; }
  .stat-card .stat-icon { display: none; }
  .stat-value { font-size: 25px; margin-bottom: 4px; }
  .stat-card .muted { font-size: 8px; }
  .score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .score-cover { height: 139px; padding: 16px 13px; }
  .cover-title { font-size: 17px; max-width: 130px; }
  .cover-subtitle { font-size: 6px; letter-spacing: 1.1px; }
  .cover-clef { left: 15px; bottom: 17px; font-size: 39px; }
  .score-cover:after { left: 13px; right: 13px; bottom: 26px; }
  .score-cover .badge { font-size: 7px; padding: 2px 5px; }
  .score-card-body { padding: 14px 12px 12px; }
  .score-card h3 { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
  .score-card .composer { font-size: 9px; margin-bottom: 11px; }
  .score-meta { gap: 4px; font-size: 8px; margin-bottom: 11px; }
  .score-card .tag { font-size: 7px; padding: 2px 4px; }
  .score-card-footer { font-size: 8px; gap: 4px; padding-top: 11px; align-items: flex-end; }
  .score-card-footer .badge { font-size: 7px; padding: 2px 4px; }
  .score-card-footer .avatar { width: 21px; height: 21px; font-size: 7px; }
  .score-card-footer .button-icon { width: 23px; min-height: 23px; padding: 3px; }
  .section-title { margin-top: 22px; margin-bottom: 13px; }
  .table-wrap { margin-right: -17px; border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .data-table th, .data-table td { padding-left: 15px; padding-right: 15px; }
  .list-grid { grid-template-columns: minmax(0,1fr); }
  .list-card { padding: 21px; }
  .list-card-header { margin-bottom: 16px; }
  .list-card h3 { font-size: 25px; }
  .list-hero { flex-direction: column; padding: 21px; gap: 14px; }
  .list-hero .page-title { font-size: 31px; }
  .list-hero-aside { align-items: flex-start; text-align: left; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 9px; }
  .list-hero-meta { gap: 9px; font-size: 9px; }
  .tabs { gap: 22px; overflow-x: auto; margin-right: -17px; padding-right: 17px; white-space: nowrap; }
  .tab { flex: 0 0 auto; font-size: 10px; }
  .repertoire-item { flex-wrap: wrap; gap: 10px; padding: 16px 13px; }
  .repertoire-title { flex-basis: calc(100% - 72px); }
  .repertoire-title strong { font-size: 19px; }
  .repertoire-item .part-chip { margin-left: 26px; font-size: 9px; }
  .repertoire-item .button { margin-left: auto; }
  .detail-grid > aside { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 19px; }
  .review-card { padding: 18px; }
  .review-card h3 { font-size: 21px; }
  .review-card-top { gap: 9px; }
  .review-card-footer { align-items: flex-start; flex-direction: column; }
  .review-actions { width: 100%; }
  .review-actions .button { flex: 1; }
  .dialog-overlay { padding: 16px; }
  .dialog { padding: 24px 21px 22px; max-height: calc(100vh - 32px); border-radius: 12px; }
  .dialog h2 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .input, .select, .textarea { font-size: 16px; min-height: 43px; }
  .dialog-actions { gap: 7px; }
  .dialog-actions .button { flex: 1; }
  .editor-layout > aside { grid-template-columns: 1fr; }
  .editor-toolbar { gap: 5px; padding: 8px; }
  .editor-toolbar .button { min-height: 35px; font-size: 11px; }
  .toolbar-group { padding-right: 6px; margin-right: 0; }
  .editor-stage { padding: 14px 8px; min-height: 450px; }
  .score-paper { min-width: 380px; min-height: 550px; padding: 30px 20px; }
  .score-paper h2 { font-size: 23px; }
  .reader-title { min-width: 0; }
  .reader-title strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
  .reader-toolbar { gap: 8px; padding-left: 11px; padding-right: 11px; }
  .reader-toolbar .button { padding: 7px; }
  .reader-toolbar .hide-mobile { display: none; }
  .reader-content { padding: 12px 7px; }
  .reader-paper { padding: 31px 18px; min-height: 600px; }
  .reader-paper h2 { font-size: 24px; }
  .reader-bottom { gap: 12px; }
  .reader-bottom .button { font-size: 10px; padding-left: 10px; padding-right: 10px; }
  .notice { font-size: 10px; padding: 12px; }
  .toast { max-width: calc(100vw - 28px); width: max-content; font-size: 11px; }
}
@media (max-width: 360px) {
  .score-grid { grid-template-columns: 1fr; }
  .score-cover { height: 150px; }
  .score-card h3 { font-size: 21px; }
  .score-card-body { padding: 18px; }
  .reader-title strong { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .mobile-nav, .reader-toolbar, .reader-bottom, .editor-toolbar, .editor-layout > aside, .toast, .dialog-overlay, .no-print { display: none !important; }
  .workspace { margin: 0; padding: 0; }
  .page { padding: 0; max-width: none; }
  .reader { position: static; display: block; background: #fff; }
  .reader-content, .editor-stage { padding: 0; overflow: visible; background: #fff; border: 0; }
  .reader-paper, .score-paper { width: 100%; min-height: 0; max-width: none; padding: 0; box-shadow: none; border: 0; page-break-after: always; }
  .editor-layout { display: block; }
  a[href]:after { content: none; }
}

/* Admission and account review share the same small, local visual system. */
.access-page { min-height: 100vh; background: var(--paper); }
.access-header { max-width: 1240px; margin: 0 auto; padding: 32px 48px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.access-header .brand { margin: 0; color: var(--green); }
.access-header .brand-mark { background: var(--green); border-color: var(--green); }
.access-header .brand small { color: #7d8e77; }
.access-pilot { border: 1px solid #dce4d0; background: #edf2e5; border-radius: 30px; padding: 6px 12px; color: #71815e; font-size: 10px; letter-spacing: .3px; white-space: nowrap; }
.access-layout { max-width: 1180px; margin: 0 auto; padding: 48px 48px 56px; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: 72px; }
.access-intro h1 { margin: 0 0 22px; font-family: var(--serif); font-size: 52px; line-height: 1.1; letter-spacing: -1.8px; font-weight: 400; }
.access-intro h1 em { font-weight: 400; color: #83975b; }
.access-intro > p { max-width: 360px; font-size: 13px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 30px; }
.access-score { position: relative; max-width: 430px; padding: 23px 28px 18px; color: #577145; border: 1px solid #dbe3cc; border-radius: 4px 15px 15px 4px; background: #fdfef7; box-shadow: 5px 7px 0 #e9eedf, 0 13px 35px rgba(50,74,35,.05); }
.access-score-label { display: block; font-size: 7px; letter-spacing: 1.8px; color: #a0ac8e; margin-bottom: 9px; }
.access-score > strong { font-family: var(--serif); font-size: 18px; font-weight: 400; color: #5a714b; }
.access-staff { display: flex; align-items: center; justify-content: space-around; gap: 10px; height: 75px; margin: 9px 0 6px; background: repeating-linear-gradient(to bottom,transparent 0,transparent 8px,#dae2cd 8px,#dae2cd 9px) center/100% 45px no-repeat; }
.access-staff span { font-family: var(--serif); font-size: 52px; line-height: 1; color: #708563; }
.access-staff i { font-family: var(--serif); font-size: 35px; line-height: 1; font-style: normal; color: #86996e; }
.access-staff i:nth-child(3), .access-staff i:nth-child(5) { transform: translateY(-7px); }
.access-staff i:nth-child(4) { transform: translateY(5px); }
.access-score-footer { border-top: 1px solid #e6ebdc; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 8px; color: #8d9a7f; }
.access-features { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 31px; color: #7b8c6c; font-size: 9px; }
.access-features span { display: inline-flex; gap: 7px; align-items: center; }
.access-features svg { width: 15px; height: 15px; }
.access-panel { width: 100%; border: 1px solid #dfe5d4; border-radius: 16px; background: var(--white); padding: 35px 32px; box-shadow: 0 16px 55px rgba(31,58,35,.05); }
.access-panel h2 { font-family: var(--serif); font-weight: 400; font-size: 31px; letter-spacing: -.8px; margin: 0 0 15px; }
.access-description { font-size: 12px; line-height: 1.8; color: #78866c; margin-bottom: 24px; }
.access-panel .button { min-height: 43px; font-size: 12px; white-space: normal; }
.access-panel .button-small { min-height: 30px; font-size: 10px; }
.access-panel .button-block { padding: 12px 14px; }
.access-panel .form-grid { gap: 12px; margin-bottom: 17px; }
.access-help { font-size: 10px; line-height: 1.8; color: #94a085; margin: 15px 0 0; }
.access-help + .button { margin-top: 22px; }
.access-steps { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #e9eddf; margin-top: 26px; padding-top: 19px; font-size: 9px; color: #89967a; }
.access-steps span { display: inline-flex; align-items: center; gap: 5px; }
.access-steps b { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: #edf2e4; color: #7b8d66; border-radius: 50%; font-size: 8px; font-weight: 500; }
.access-state-icon { display: flex; align-items: center; justify-content: center; width: 49px; height: 49px; border-radius: 14px; color: #81975c; background: #edf3e2; margin-bottom: 25px; }
.access-state-icon svg { width: 25px; height: 25px; }
.access-identity { display: flex; align-items: center; gap: 11px; border: 1px solid #e6ebdc; border-radius: 9px; padding: 12px; margin: 0 0 20px; }
.access-identity strong { display: block; font-size: 12px; font-weight: 500; }
.access-identity small { display: block; font-size: 10px; color: #8c9880; overflow-wrap: anywhere; }
.access-account-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; border-top: 1px solid #e8ecdf; padding-top: 15px; margin-top: 23px; font-size: 9px; color: #9ba58d; }
.access-account-footer > span { overflow-wrap: anywhere; min-width: 0; }
.access-footer { text-align: center; color: #a0aa93; font-size: 9px; padding: 0 20px 24px; }
.accounts-summary { display: flex; gap: 15px; align-items: center; padding: 20px 23px; border: 1px solid #dce5cd; border-radius: 11px; background: #edf3e3; margin-bottom: 24px; }
.accounts-summary-icon { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 41px; border-radius: 12px; background: #e0eacb; color: #7b9258; flex: 0 0 auto; }
.accounts-summary strong { font-weight: 500; font-size: 13px; color: #5b7643; }
.accounts-summary p { font-size: 10px; color: #8c9b79; line-height: 1.7; margin: 3px 0 0; }
.accounts-list { display: grid; gap: 15px; }
.account-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.account-card-heading { display: flex; align-items: center; gap: 12px; }
.account-card-heading > div { min-width: 0; }
.account-card-heading h2 { font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.account-card-heading p { font-size: 10px; color: #8e9b80; margin: 0; overflow-wrap: anywhere; }
.account-card-heading > .badge { margin-left: auto; }
.account-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 9px; color: #88967b; }
.account-meta span { display: inline-flex; align-items: center; gap: 6px; }
.account-meta svg { width: 12px; height: 12px; }
.account-reason, .account-review-note { padding: 15px 16px; background: #f7f9f1; border: 1px solid #edf0e5; border-radius: 7px; margin-top: 15px; }
.account-reason strong, .account-review-note strong { font-size: 9px; font-weight: 500; color: #809268; }
.account-reason p, .account-review-note p { font-size: 11px; line-height: 1.75; color: #6f8060; margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.account-review-note { background: transparent; border-style: dashed; }
.account-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid #edf0e5; margin-top: 20px; padding-top: 16px; }
.accounts-profile-link { display: flex; align-items: center; gap: 13px; border: 1px solid #d7e2c5; padding: 17px 20px; margin-bottom: 23px; background: #edf3e3; border-radius: 10px; color: #6b8252; }
.accounts-profile-link > span { flex: 1; }
.accounts-profile-link strong { display: block; font-size: 12px; font-weight: 500; }
.accounts-profile-link small { display: block; font-size: 10px; color: #91a078; margin-top: 3px; }
@media (max-width: 980px) {
  .access-layout { gap: 35px; padding-left: 32px; padding-right: 32px; }
  .access-header { padding-left: 32px; padding-right: 32px; }
  .access-intro h1 { font-size: 44px; }
  .access-panel { padding: 29px 25px; }
}
@media (max-width: 760px) {
  .access-header { padding: 23px 24px 10px; }
  .access-layout { grid-template-columns: minmax(0,1fr); max-width: 550px; padding: 26px 24px 35px; gap: 27px; }
  .access-intro h1 { font-size: 39px; margin-bottom: 15px; }
  .access-intro > p { margin-bottom: 0; font-size: 12px; max-width: 390px; }
  .access-score, .access-features { display: none; }
  .access-intro .eyebrow { font-size: 8px; }
  .access-panel { padding: 27px 24px; }
  .access-panel h2 { font-size: 29px; }
  .access-panel .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .access-description { margin-bottom: 20px; }
  .account-card { padding: 18px; }
  .account-card-heading { flex-wrap: wrap; gap: 10px; }
  .account-card-heading > .badge { margin-left: 42px; }
  .account-actions .button { flex: 1; }
  .accounts-summary { align-items: flex-start; padding: 17px; }
}
@media (max-width: 360px) {
  .access-header { padding: 20px 18px 10px; }
  .access-header .brand { font-size: 16px; gap: 8px; }
  .access-pilot { font-size: 8px; padding: 5px 8px; }
  .access-layout { padding: 22px 18px 30px; }
  .access-intro h1 { font-size: 35px; }
  .access-panel { padding: 23px 19px; }
  .access-steps { gap: 9px; font-size: 8px; }
}
.auth-forgot { display: block; width: fit-content; margin: -5px 0 19px auto; color: #7d8f64; font-size: 10px; }
.auth-forgot:hover, .auth-back a:hover, .auth-create a:hover, .auth-verify-link a:hover { text-decoration: underline; }
.auth-create { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 11px; color: #95a087; }
.auth-create > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #657f4b; margin: 8px 4px 0; font-weight: 500; }
.auth-create svg { width: 13px; height: 13px; }
.auth-legacy { margin-top: 24px; padding-top: 15px; border-top: 1px dashed #e7ebde; font-size: 9px; color: #9aa68b; }
.auth-legacy summary { cursor: pointer; width: fit-content; }
.auth-legacy p { margin: 10px 0 4px; font-size: 10px; }
.auth-legacy a { display: inline-flex; align-items: center; gap: 5px; color: #859874; font-size: 10px; padding: 6px 0; }
.auth-legacy svg { width: 11px; height: 11px; }
.auth-back, .auth-verify-link { margin: 21px 0 0; font-size: 10px; color: #869a70; text-align: center; }
.auth-password-help { margin: -9px 0 17px; }
.auth-signout { margin: 0; }
.access-panel .auth-signout .button { padding: 5px 8px; }
.access-panel .button-block + .button-block { margin-top: 10px; }
.access-panel input[readonly] { color: #849077; background: #f6f8ef; }
.access-identity small, .account-card-heading p, .account-reason p, .account-review-note p, .access-account-footer > span { word-break: break-word; }
.access-panel .input, .access-panel .textarea { font-size: 16px; min-height: 44px; }
.access-panel .form-field label { font-size: 11px; }
.recovery-link { font-size: 12px; line-height: 1.7; min-height: 120px; word-break: break-all; }
/* Music Nordi wordmark: local type and the original musical note. */
.brand-name { display: block; min-width: 0; line-height: 1.05; }
.brand-music { font-family: var(--serif); font-size: 1.1em; font-style: italic; font-weight: 400; letter-spacing: -.6px; }
.brand-nordi { margin-left: .12em; font-weight: 650; letter-spacing: -.7px; }
.brand .brand-name small { margin-top: 5px; font-size: 7px; letter-spacing: 1.05px; }
.access-header .brand { font-size: 22px; }
.sidebar .brand { gap: 10px; margin-left: 8px; margin-right: 8px; }
.brand-mark { flex: 0 0 auto; }
@media (max-width: 980px) {
  .sidebar .brand { gap: 8px; margin-left: 2px; margin-right: 2px; }
  .sidebar .brand .brand-name small { font-size: 6px; letter-spacing: .8px; }
}
@media (max-width: 760px) {
  .topbar .breadcrumbs { display: none; }
  .mobile-brand { flex: 0 0 auto; font-size: 16px; }
}
@media (max-width: 360px) {
  .access-header .brand { font-size: 18px; }
  .access-header .brand .brand-mark { width: 31px; height: 34px; }
  .access-header .brand .brand-name small { font-size: 6px; letter-spacing: .8px; }
}

/* The score owns its compact toolbar; the page only keeps title and review actions. */
.page.editor-page { max-width: none; padding: 14px 18px 30px; }
.editor-page .editor-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; min-width: 0; }
.editor-page .editor-back { flex: 0 0 auto; color: #637464; }
.editor-page .editor-title { flex: 1; min-width: 0; }
.editor-page .editor-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 0 2px; font: 600 19px/1.3 var(--sans); letter-spacing: -.45px; }
.editor-page .editor-title > span { display: block; color: #819078; font-size: 10px; }
.editor-page .editor-heading-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.editor-page .editor-heading-actions .badge { font-size: 9px; }
.editor-page .editor-heading-actions .button-small { min-height: 33px; }
.editor-page .editor-focus-toggle[aria-pressed='true'] { color: var(--green); background: #e2ebd5; border-color: #c8d6b8; }
.editor-page .editor-layout { display: block; }
.editor-page .editor-stage { padding: 0; min-height: 450px; border: 0; border-radius: 0; background: transparent; }
.editor-page .draft-note { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 2px 4px 7px; min-height: 24px; border: 0; background: transparent; color: #839077; font-size: 10px; }
.editor-page .draft-note .button { margin-left: 0; }
.editor-page .editor-information { margin-top: 12px; padding: 0 5px; color: #7b8973; font-size: 11px; }
.editor-page .editor-information > summary { cursor: pointer; width: fit-content; padding: 8px 0; }
.editor-page .editor-information > summary svg { width: 14px; height: 14px; margin: -2px 5px 0 0; }
.editor-page .editor-information-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 10px 0 0; }
.editor-page .editor-information-content strong { color: #61745c; font-size: 11px; }
.editor-page .editor-information-content p { margin: 5px 0 0; font-size: 11px; }
.editor-page .editor-information-content .button { margin: 5px 0 0 -10px; }
.app-shell.editor-focus > .sidebar, .app-shell.editor-focus > .mobile-nav, .app-shell.editor-focus > .workspace > .topbar { display: none; }
.app-shell.editor-focus > .workspace { margin-left: 0; padding-bottom: 0; }
.app-shell.editor-focus .editor-page { padding-top: 8px; }
@media (max-width: 760px) {
  .page.editor-page { padding: 10px 9px 22px; }
  .editor-page .editor-heading { gap: 8px; }
  .editor-page .editor-title h1 { font-size: 17px; }
}
@media (max-width: 600px) {
  .editor-page .editor-heading { flex-wrap: wrap; gap: 5px 8px; }
  .editor-page .editor-title { flex-basis: calc(100% - 52px); }
  .editor-page .editor-heading-actions { margin-left: auto; }
  .editor-page .editor-information-content { grid-template-columns: 1fr; gap: 14px; }
}
@media (pointer: coarse) {
  .editor-page .editor-heading .button { min-height: 42px; }
  .editor-page .editor-heading .button-icon { width: 42px; }
}
@media print {
  .page.editor-page { padding: 0; }
  .editor-page .editor-heading, .editor-page .draft-note, .editor-page .editor-information { display: none; }
}

/* Session exit stays available when the editor hides the application navigation. */
.session-signout { gap: 6px; min-height: 34px; padding: 5px 8px; color: #63745e; }
.session-signout svg { width: 17px; height: 17px; }
.editor-page .editor-signout { display: none; }
.app-shell.editor-focus .editor-signout { display: inline-flex; }
@media (max-width: 360px) {
  .topbar-actions { gap: 6px; }
  .topbar .session-signout { width: 34px; padding: 5px; }
  .topbar .session-signout > span { display: none; }
}
@media (pointer: coarse) {
  .topbar .session-signout { min-height: 42px; min-width: 42px; }
}

/* Keep cover ornaments in a separate upper band, clear of the score title. */
.score-card { display: flex; flex-direction: column; }
.score-card .score-card-body { flex: 1; min-width: 0; }
.score-card .score-cover, .arrangement-summary .score-cover { height: auto; min-height: 165px; padding: 20px; flex: 0 0 auto; justify-content: flex-start; }
.arrangement-summary .score-cover { min-height: 224px; }
.score-card .score-cover:before, .arrangement-summary .score-cover:before { width: 110px; height: 110px; top: -70px; right: -32px; box-shadow: 0 0 0 15px rgba(70,96,57,.035); pointer-events: none; }
.score-card .score-cover:after, .arrangement-summary .score-cover:after { top: 44px; bottom: auto; left: 20px; right: 20px; height: 18px; opacity: .11; pointer-events: none; }
.score-card .cover-subtitle, .arrangement-summary .cover-subtitle { max-width: calc(100% - 58px); font-size: 8px; line-height: 1.5; letter-spacing: 1.1px; overflow-wrap: anywhere; }
.score-card .cover-title, .arrangement-summary .cover-title { max-width: none; min-width: 0; margin-top: auto; padding-top: 40px; color: #3b513c; line-height: 1.24; white-space: normal; overflow-wrap: anywhere; }
.score-card .cover-title { font-size: 22px; }
.score-card .cover-dark .cover-title, .arrangement-summary .cover-dark .cover-title { color: #edf4dc; }
.score-card .cover-clef, .arrangement-summary .cover-clef { top: 15px; right: 17px; bottom: auto; left: auto; font-size: 30px; line-height: 1; opacity: .45; pointer-events: none; }
.score-card .cover-number { top: 19px; right: 54px; bottom: auto; font: 11px/1 var(--sans); letter-spacing: .5px; opacity: .42; pointer-events: none; }
.score-card h3 { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .score-card .score-cover, .arrangement-summary .score-cover { padding: 15px 13px; }
  .score-card .score-cover { min-height: 150px; }
  .arrangement-summary .score-cover { min-height: 180px; }
  .score-card .cover-subtitle, .arrangement-summary .cover-subtitle { max-width: calc(100% - 49px); font-size: 7px; letter-spacing: .75px; }
  .score-card .cover-title { font-size: 18px; }
  .score-card .cover-clef, .arrangement-summary .cover-clef { top: 13px; right: 12px; font-size: 27px; }
  .score-card .cover-number { top: 16px; right: 43px; font-size: 10px; }
  .score-card .score-cover:after, .arrangement-summary .score-cover:after { left: 13px; right: 13px; height: 15px; }
}
