:root {
  --ink: #233b34;
  --muted: #748078;
  --green: #174f3f;
  --green-light: #eaf1eb;
  --paper: #f7f8f4;
  --line: #e1e7df;
  --gold: #b59a62;
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c8a359;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.16;
}
h1 {
  font-size: 42px;
  margin-bottom: 13px;
}
h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
h3 {
  font-size: 14px;
  line-height: 1.45;
}
p {
  margin-bottom: 12px;
}
#app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 252px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 36px 22px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  align-items: center;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.045em;
  line-height: 1.2;
}
.brand i {
  color: var(--gold);
  font-weight: normal;
}
.brand-mark {
  width: 35px;
  height: 43px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 42px;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 9px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #97a097;
  margin: 60px 12px 15px;
  font-weight: 600;
}
.nav-item {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  margin-bottom: 7px;
  border-radius: 6px;
  color: #65716a;
  text-align: left;
  font-size: 13px;
}
.nav-item > span {
  font-size: 21px;
  line-height: 1;
  width: 23px;
}
.nav-item.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}
.nav-item:hover {
  background: #f3f5ef;
}
.nav-item b {
  font-size: 10px;
  margin-left: auto;
  border-radius: 5px;
  padding: 2px 7px;
  background: #fff;
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 10px 0;
}
.small-heading {
  font-family: var(--serif);
  font-size: 18px;
}
.sidebar-bottom p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 9px 0 20px;
}
.local-note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
  font-size: 9px;
  line-height: 1.7;
  color: #899289;
}
main {
  margin-left: 252px;
  width: calc(100% - 252px);
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7d887f;
  font-size: 11px;
  background: #fafbf8;
}
.divider {
  margin: 0 10px;
  color: #b7beb5;
}
.workspace-pill {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
  color: #586a5d;
  background: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #719c73;
  border-radius: 100%;
}
.page {
  max-width: 1480px;
  margin: auto;
  padding: 43px 42px 55px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: #8b967f;
  display: block;
  margin-bottom: 12px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.button {
  border: 1px solid #d6dfd4;
  background: #fff;
  color: var(--green);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
}
.button:hover {
  border-color: var(--green);
  background: #f4f8f2;
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: #0f3a2f;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 4px 0;
  font-size: 11px;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.intro-note {
  display: flex;
  align-items: center;
  background: #edf1e7;
  border: 1px solid #e2e8da;
  padding: 17px 22px;
  border-radius: 6px;
  margin-bottom: 26px;
  gap: 17px;
}
.intro-note > span {
  color: var(--gold);
  font-size: 25px;
}
.intro-note strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.intro-note div > span {
  display: block;
  color: #75816d;
  font-size: 11px;
  margin-top: 3px;
}
.intro-note button {
  border: 0;
  background: none;
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #657553;
}
.search-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  width: 100%;
  height: 45px;
  gap: 12px;
  padding: 0 16px;
}
.search-box > span {
  font-size: 25px;
  color: #8c988f;
  line-height: 1;
}
.search-box input {
  width: 100%;
  border: 0;
  padding: 5px 0;
  background: transparent;
  font-size: 12px;
  outline: none;
}
.result-count {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.song-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(390px, 1.3fr);
  gap: 25px;
  align-items: start;
}
.song-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.song-card {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 20px 22px;
  color: var(--ink);
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.song-card:hover {
  box-shadow: 0 4px 20px #253c3309;
  border-color: #96ae98;
}
.song-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.song-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.song-symbol {
  background: #f2f4ed;
  color: #8d9d79;
  border-radius: 5px;
  padding: 2px 10px;
  font-size: 23px;
}
.card-score {
  color: var(--green);
  font-weight: 600;
  font-size: 21px;
}
.card-score small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 3px;
}
.song-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 5px;
}
.song-card p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 15px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 9px;
  background: #f0f3ee;
  color: #72836e;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.3;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eff2ec;
  margin-top: 18px;
  padding-top: 13px;
  font-size: 9px;
  color: #849080;
}
.card-bottom > span:last-child {
  font-size: 17px;
  color: var(--green);
  line-height: 1;
}
.catalog-note {
  font-size: 10px;
  color: #849080;
  padding: 6px 3px;
  line-height: 1.8;
}
.detail-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 29px 30px;
  min-width: 0;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 10px;
}
.detail-header .eyebrow {
  margin: 0;
}
.status-badge,
.subtle-badge {
  font-size: 8px;
  color: #869178;
  background: #f2f4ec;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 400;
  white-space: nowrap;
}
.detail-panel h2 {
  font-size: 36px;
  margin-bottom: 10px;
}
.author {
  font-size: 11px;
  color: #758274;
  margin-bottom: 5px;
}
.version {
  font-size: 10px;
  color: #9aa397;
  margin-bottom: 22px;
}
.detail-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.rating-banner {
  background: #f0f4ed;
  border-radius: 5px;
  padding: 19px 21px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.overall-score {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  white-space: nowrap;
  color: var(--green);
}
.overall-score span {
  font-family: var(--sans);
  font-size: 11px;
  margin-left: 3px;
  color: #8b9980;
}
.rating-banner strong {
  font-size: 12px;
  color: var(--green);
}
.rating-banner p {
  font-size: 10px;
  color: #7b8974;
  margin: 3px 0;
}
.rating-banner small {
  font-size: 9px;
  color: #8a957f;
  display: block;
}
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 23px;
}
.score-title {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #70816f;
}
.score-title strong {
  font-size: 12px;
  color: var(--green);
}
meter {
  width: 100%;
  height: 6px;
  display: block;
  margin-top: 7px;
  border: 0;
  background: #edf1e7;
  border-radius: 4px;
  overflow: hidden;
}
meter::-webkit-meter-bar {
  height: 6px;
  background: #edf1e7;
  border: 0;
  border-radius: 4px;
}
meter::-webkit-meter-optimum-value {
  background: #6c8e65;
}
meter::-moz-meter-bar {
  background: #6c8e65;
}
.score-grid small {
  font-size: 8px;
  color: #98a28e;
}
.review-controls {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 18px;
  margin-bottom: 4px;
}
.detail-section {
  padding-top: 23px;
}
.detail-section h3 {
  font-size: 12px;
  margin-bottom: 11px;
  color: #3b5143;
  display: flex;
  gap: 10px;
  align-items: center;
}
.detail-section p {
  color: #788374;
  font-size: 11px;
  line-height: 1.9;
}
.detail-section small {
  font-size: 9px;
}
.detail-list {
  padding: 0 0 0 15px;
  margin: 0;
  color: #788374;
  font-size: 11px;
  line-height: 1.9;
}
.detail-list li {
  margin-bottom: 7px;
  padding-left: 3px;
}
.detail-list li::marker {
  color: #adba9b;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.metadata {
  display: flex;
  gap: 25px;
  font-size: 9px;
  color: #8f9987;
  margin-bottom: 10px;
}
.metadata strong {
  display: block;
  font-size: 11px;
  color: #536749;
  margin-top: 3px;
}
.notes-text {
  white-space: pre-wrap;
}
.concern {
  background: #fcfaf1;
  border: 1px solid #efe8d7;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}
.source-list {
  list-style: none;
  padding: 0;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.source-list li {
  margin-bottom: 8px;
}
.source-list a {
  text-decoration: none;
  color: #687a5b;
}
.source-list a:hover {
  text-decoration: underline;
}
.library-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.library-tabs button {
  border: 1px solid var(--line);
  background: white;
  color: #768371;
  font-size: 11px;
  padding: 10px 14px;
  border-radius: 5px;
}
.library-tabs button.selected {
  background: var(--green-light);
  border-color: #92aa90;
  color: var(--green);
}
.library-tabs span {
  font-size: 9px;
  margin-left: 6px;
  opacity: 0.65;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 35px 22px;
  border: 1px dashed #d9e1d2;
  border-radius: 7px;
  background: #fdfefb;
}
.empty > span {
  font-size: 32px;
  color: #a7b596;
  display: block;
  margin-bottom: 15px;
}
.empty h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--ink);
}
.empty p {
  font-size: 12px;
}
.full-empty {
  padding: 80px 20px;
}
.plan-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 25px;
  align-items: start;
}
.plan-list {
  display: grid;
  gap: 9px;
}
.plan-list button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  padding: 18px;
  color: var(--ink);
}
.plan-list button.selected {
  border-color: var(--green);
  background: #f0f4ed;
}
.plan-list strong {
  display: block;
  font-weight: 500;
  font-family: var(--serif);
  font-size: 20px;
}
.plan-list span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
}
.plan-sheet {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.plan-sheet-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}
.plan-sheet-header h2 {
  font-size: 32px;
}
.plan-sheet-header p {
  font-size: 12px;
  color: var(--muted);
}
.duration-total {
  text-align: right;
  color: var(--green);
}
.duration-total strong {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  display: block;
  line-height: 1.2;
}
.duration-total span {
  font-size: 10px;
  color: var(--muted);
}
.plan-notice {
  padding: 13px 16px;
  background: #f8f5ea;
  color: #8f8054;
  border-radius: 5px;
  font-size: 10px;
  margin-top: 20px;
}
.service-items {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.service-items li {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 23px 0;
}
.item-number {
  font-size: 11px;
  color: #9ca78f;
  align-self: flex-start;
  padding-top: 4px;
}
.service-item-content {
  flex: 1;
  min-width: 0;
}
.service-item-content .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.service-item-content h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 5px;
}
.service-item-content p {
  font-size: 10px;
  color: #8c9882;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.item-time {
  font-size: 10px;
  white-space: nowrap;
  color: #839177;
}
.icon-button {
  border: 0;
  background: transparent;
  font-size: 17px;
  color: #86957b;
  padding: 4px 6px;
  line-height: 1.2;
}
.icon-button:hover {
  background: #edf2e8;
  border-radius: 4px;
}
.item-buttons {
  display: flex;
  gap: 2px;
}
.danger {
  color: #a26a57;
}
.plan-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  align-items: center;
}
.profile-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 850px;
  padding: 32px;
}
.profile-intro {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 26px;
}
.profile-intro > span {
  font-size: 36px;
  color: #92a77a;
}
.profile-intro h2 {
  font-size: 29px;
}
.profile-intro p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.profile-panel h3 {
  font-size: 15px;
}
.weight-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin: 20px 0 25px;
}
.weight-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 7px;
  padding-right: 15px;
}
.weight-input input {
  border: 0;
  margin: 0;
  min-width: 0;
}
.weight-input span {
  font-size: 10px;
  color: var(--muted);
}
.profile-note {
  background: #f5f7ef;
  border-radius: 5px;
  padding: 18px;
  margin-top: 30px;
  font-size: 12px;
}
.profile-note p {
  margin: 7px 0 0;
  color: var(--muted);
}
label {
  display: block;
  font-size: 11px;
  color: #566b4e;
  font-weight: 500;
  margin-bottom: 16px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #dfe6d9;
  border-radius: 5px;
  color: var(--ink);
  padding: 11px 12px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.6;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #a0ab95;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin: 0;
  accent-color: var(--green);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #f5f7f1;
  border-radius: 5px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  position: sticky;
  bottom: -28px;
  background: white;
  padding: 15px 0 5px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 90vh;
  padding: 28px 32px;
  color: var(--ink);
  box-shadow: 0 25px 100px #173d3430;
}
dialog::backdrop {
  background: #142b2459;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 30px;
  margin-top: 20px;
}
dialog h3 {
  margin-top: 18px;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-top .eyebrow {
  margin: 0;
}
.draft-scores {
  padding: 15px 20px;
  background: var(--green-light);
  border-radius: 5px;
}
.draft-scores p {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}
#ai-error {
  color: #a45e46;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 50;
  background: var(--green);
  color: white;
  padding: 13px 22px;
  border-radius: 6px;
  box-shadow: 0 5px 25px #233b3420;
  font-size: 12px;
  max-width: 90vw;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
footer {
  padding: 20px 42px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #9aa490;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  max-width: 1480px;
  margin: auto;
}
.detail-section p,
.detail-list {
  font-size: 13px;
  line-height: 1.8;
}
.detail-section h3 {
  font-size: 13px;
}
.detail-section small {
  font-size: 10px;
}
.source-list {
  font-size: 12px;
}
.tag {
  font-size: 10px;
}
.score-title {
  font-size: 11px;
}
.score-grid small {
  font-size: 9px;
}
.author {
  font-size: 12px;
}
.version {
  font-size: 11px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar-actions .button {
  font-size: 10px;
  min-height: 32px;
  padding: 6px 11px;
}
.backup-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
#restore-error,
#confirm-restore-error {
  color: #a45e46;
}
@media (min-width: 1550px) {
  .song-list {
    grid-template-columns: 1fr 1fr;
  }
  .song-workspace {
    grid-template-columns: 1fr 1fr;
  }
  .song-card h3 {
    font-size: 23px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 30px 16px;
  }
  .brand {
    font-size: 21px;
  }
  main {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .page {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .song-workspace {
    grid-template-columns: minmax(180px, 0.65fr) minmax(310px, 1fr);
    gap: 18px;
  }
  .detail-panel {
    padding: 24px 22px;
  }
  .page-heading h1 {
    font-size: 35px;
  }
  .intro-note button {
    display: none;
  }
  .plan-layout {
    grid-template-columns: 1fr;
  }
  .plan-list {
    display: flex;
    overflow-x: auto;
  }
  .plan-list button {
    min-width: 200px;
  }
  .item-buttons {
    flex-wrap: wrap;
    width: 50px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 76px;
    padding: 27px 12px;
  }
  .brand > span:last-child,
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .brand {
    justify-content: center;
  }
  .brand-mark {
    width: auto;
  }
  .sidebar nav {
    margin-top: 40px;
  }
  .nav-item {
    font-size: 0;
    padding: 12px;
    justify-content: center;
  }
  .nav-item > span {
    font-size: 24px;
    width: auto;
  }
  .nav-item b {
    display: none;
  }
  main {
    margin-left: 76px;
    width: calc(100% - 76px);
  }
  .song-workspace {
    grid-template-columns: 1fr;
  }
  .song-list {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-note {
    grid-column: 1/-1;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading p {
    max-width: 350px;
  }
  .topbar {
    height: 64px;
  }
  .detail-panel h2 {
    font-size: 35px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .workspace-pill {
    display: none;
  }
}
@media (max-width: 550px) {
  .sidebar {
    inset: auto 0 0 0;
    width: 100%;
    height: 66px;
    padding: 5px 10px;
    border-top: 1px solid var(--line);
    border-right: 0;
    background: #fff;
  }
  .brand {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    margin: 0;
    width: 100%;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    font-size: 8px;
    gap: 4px;
    padding: 8px 4px;
    margin: 0;
    width: 24%;
    border-radius: 5px;
  }
  .nav-item > span {
    font-size: 20px;
  }
  main {
    margin-left: 0;
    width: 100%;
    padding-bottom: 66px;
  }
  .page {
    padding: 28px 18px;
  }
  .topbar {
    padding: 0 18px;
    height: 53px;
  }
  .page-heading {
    display: block;
    margin-bottom: 23px;
  }
  .page-heading .button {
    margin-top: 20px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .intro-note {
    padding: 15px;
    gap: 12px;
  }
  .intro-note div > span {
    font-size: 10px;
  }
  .song-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .song-card {
    padding: 14px;
  }
  .song-card h3 {
    font-size: 20px;
  }
  .song-card p {
    font-size: 9px;
    line-height: 1.7;
  }
  .song-card .tags {
    gap: 4px;
  }
  .song-card .tag {
    font-size: 8px;
    padding: 3px 5px;
  }
  .card-bottom {
    font-size: 8px;
    align-items: center;
  }
  .card-score {
    font-size: 18px;
  }
  .detail-panel {
    padding: 24px 20px;
  }
  .detail-header {
    flex-wrap: wrap;
  }
  .detail-panel h2 {
    font-size: 31px;
  }
  .score-grid {
    gap: 17px 14px;
  }
  .rating-banner {
    padding: 17px;
    gap: 14px;
  }
  .rating-banner small {
    font-size: 8px;
  }
  .detail-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .plan-sheet {
    padding: 22px 18px;
  }
  .service-items li {
    gap: 10px;
    flex-wrap: wrap;
  }
  .item-number {
    font-size: 10px;
  }
  .item-buttons {
    width: auto;
  }
  .item-time {
    margin-left: auto;
  }
  .service-item-content {
    min-width: 160px;
  }
  .profile-panel {
    padding: 24px 20px;
  }
  .weight-fields {
    gap: 10px;
  }
  .weight-fields label {
    font-size: 10px;
  }
  .weight-input span {
    display: none;
  }
  .profile-intro {
    gap: 12px;
  }
  .profile-intro h2 {
    font-size: 25px;
  }
  dialog {
    padding: 22px 20px;
  }
  dialog h2 {
    font-size: 27px;
  }
  footer {
    padding: 20px 18px;
    flex-direction: column;
    font-size: 8px;
  }
  .form-actions {
    bottom: -22px;
  }
  .search-row {
    gap: 10px;
  }
}
.onboarding-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 27px;
  background: #eaf0e3;
  border: 1px solid #dae4d0;
  border-radius: 7px;
  margin-bottom: 30px;
}
.onboarding-prompt h2 {
  font-size: 27px;
  margin-bottom: 9px;
}
.onboarding-prompt p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.profile-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 23px;
}
.discovery-controls {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  margin-bottom: 22px;
}
.discovery-controls label {
  flex: 1;
  margin: 0;
  font-size: 10px;
}
.discovery-controls select {
  font-size: 11px;
  padding: 8px 10px;
  margin-top: 5px;
}
.discovery-controls .text-button {
  margin-bottom: 10px;
  white-space: nowrap;
}
.church-decision {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 17px;
  padding: 17px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fafbf7;
}
.church-decision .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.church-decision strong {
  font-size: 12px;
}
.church-decision p,
.church-decision small {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
  white-space: pre-wrap;
}
.church-decision.approved {
  background: #edf5ed;
  border-color: #d6e5d2;
}
.church-decision.context {
  background: #faf7ed;
  border-color: #ece2c7;
}
.church-decision.avoid {
  background: #fcf1eb;
  border-color: #ead6c9;
}
.catalog-comparison {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 25px;
  padding: 16px;
}
.catalog-comparison summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.catalog-comparison p {
  font-size: 12px;
  margin-top: 15px;
  color: var(--muted);
}
.catalog-comparison h3 {
  margin-top: 20px;
  font-size: 12px;
}
.catalog-comparison table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
  font-size: 11px;
  text-align: left;
}
.catalog-comparison caption {
  text-align: left;
  padding-bottom: 8px;
  font-size: 10px;
  color: var(--muted);
}
.catalog-comparison th,
.catalog-comparison td {
  border-bottom: 1px solid var(--line);
  padding: 8px 5px;
  font-weight: 400;
}
.catalog-comparison thead th {
  font-weight: 600;
}
.approval-warning {
  color: #9d694c;
  background: #fcf1eb;
  padding: 14px;
  border-radius: 5px;
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.wizard-progress > span {
  border: 1px solid var(--line);
  color: var(--muted);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 100%;
  font-size: 10px;
}
.wizard-progress > span.complete {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.wizard-progress small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.mode-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
}
.mode-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
}
.mode-option input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--green);
}
.mode-option strong {
  display: block;
  font-size: 12px;
}
.mode-option small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.account-buttons,
.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
#account-error {
  color: #a45e46;
}
@media (min-width: 851px) {
  .song-list {
    max-height: 1300px;
    overflow-y: auto;
    padding: 2px 3px;
  }
}
@media (max-width: 550px) {
  .onboarding-prompt {
    display: block;
    padding: 22px 18px;
  }
  .onboarding-prompt .button {
    margin-top: 16px;
  }
  .discovery-controls {
    gap: 8px;
    flex-wrap: wrap;
  }
  .discovery-controls label {
    min-width: 95px;
  }
  .discovery-controls select {
    font-size: 10px;
    padding: 8px 5px;
  }
  .church-decision {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .profile-strip {
    flex-wrap: wrap;
    line-height: 1.8;
  }
  .topbar > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
  }
  .topbar-actions {
    gap: 5px;
    flex-shrink: 0;
  }
  .topbar-actions .button {
    font-size: 9px;
    padding: 6px 8px;
  }
}

/* Reference workspace: paper, ink, one green accent, consistent small radii. */
:root {
  --muted: #53625b;
  --gold: var(--green);
  --sans: Arial, sans-serif;
}
.nav-item > span:empty {
  display: none;
}
.song-card,
.detail-panel,
.profile-panel,
.plan-sheet,
.onboarding-prompt {
  border-radius: 4px;
  box-shadow: none;
}
.song-card:hover {
  box-shadow: none;
}
.intro-note {
  gap: 16px;
}
.account-save-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.account-save-strip > div {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.index-tools {
  margin-bottom: 24px;
}
.index-tools form {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.index-tools label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: bold;
}
.index-tools input,
.index-tools select {
  border: 1px solid #a9b7ad;
  border-radius: 4px;
  padding: 8px 12px;
  min-height: 40px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
#index-search-form label {
  flex: 1;
}
#index-filter-form label {
  flex: 1;
  min-width: 0;
}
.index-help {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0;
  max-width: 880px;
}
.index-rules {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0;
}
.index-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  background: var(--white);
}
.index-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.index-toolbar .result-count {
  margin-right: auto;
  align-self: center;
}
.index-table-wrap {
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
}
.index-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  table-layout: fixed;
}
.index-table caption {
  text-align: left;
  padding: 16px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.index-table th,
.index-table td {
  text-align: left;
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.index-table thead th {
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  background: var(--paper);
}
.index-table th:first-child {
  width: 27%;
}
.index-table th:nth-child(2) {
  width: 20%;
}
.index-table th:nth-child(3),
.index-table th:nth-child(4) {
  width: 8%;
}
.index-table th:last-child {
  width: 8%;
}
.index-table tbody th {
  font-weight: normal;
}
.index-table small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.index-title {
  color: var(--green);
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  font-weight: bold;
}
.index-title:hover {
  text-decoration: underline;
}
.index-extra {
  white-space: pre-line;
  max-height: 200px;
}
.custom-metric-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}
.custom-metric-row label {
  min-width: 0;
}
.index-lyrics {
  padding: 16px 0;
  margin-bottom: 16px;
  border-block: 1px solid var(--line);
}
.index-lyrics summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 16px;
}
@media (max-width: 850px) {
  .account-save-strip {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 550px) {
  .index-tools form {
    flex-wrap: wrap;
  }
  #index-search-form label {
    flex-basis: 100%;
  }
  #index-filter-form label {
    flex-basis: 100%;
  }
  .index-toolbar label {
    flex-basis: 100%;
  }
  .custom-metric-row {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }
}
.index-directory {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.index-directory summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 16px;
}
.index-entry-list {
  list-style: none;
  padding: 0;
  columns: 3;
  column-gap: 24px;
  max-height: 320px;
  overflow: auto;
}
.index-entry-list li {
  break-inside: avoid;
}
.index-entry-list button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--green);
}
.index-entry-list small {
  color: var(--muted);
}
@media (max-width: 550px) {
  .index-entry-list {
    columns: 1;
  }
}
.index-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.criteria-results {
  list-style: none;
  padding: 0;
}
.criteria-results li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.criteria-results small {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}
.criteria-results blockquote {
  margin: 8px 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  font-size: 12px;
}
/* Keep navigation readable on tablets and phones without decorative icons. */
@media (min-width: 551px) and (max-width: 850px) {
  .sidebar {
    width: 128px;
    padding: 24px 8px;
  }
  .nav-item {
    font-size: 12px;
    line-height: 1.4;
    padding: 12px 8px;
    min-height: 48px;
    text-align: left;
    justify-content: start;
  }
  main {
    margin-left: 128px;
    width: calc(100% - 128px);
  }
}
@media (max-width: 550px) {
  .nav-item {
    font-size: 10px;
    line-height: 1.3;
    width: 20%;
    min-height: 48px;
    justify-content: center;
  }
}

/* Collections and working reference tools use rows, not decorative tiles. */
.collection-prompt,
.library-toolbar,
.section-heading,
.selection-actions,
.plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.collection-prompt {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  font-size: 13px;
}
.collection-levels {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.collection-levels label {
  font-size: 12px;
  font-weight: bold;
}
.collection-levels select {
  display: block;
  margin-top: 8px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
}
.collection-levels p {
  margin: 8px 0 0;
}
.collection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.collection-row h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.collection-row p {
  margin-bottom: 8px;
  max-width: 600px;
}
.collection-row small,
.collection-count span {
  color: var(--muted);
  font-size: 12px;
}
.collection-count strong {
  font-size: 24px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.collection-count span {
  display: block;
}
.import-song-list {
  max-height: 360px;
  overflow: auto;
  border-block: 1px solid var(--line);
  margin: 16px 0;
}
.import-song {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.import-song input {
  width: 16px;
  margin-top: 4px;
}
.import-song small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.import-history {
  margin: 24px 0;
}
.library-toolbar {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.library-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
  font-size: 12px;
}
.song-list .pagination {
  grid-column: 1/-1;
}
.discovery-controls {
  flex-wrap: wrap;
}
.arrangement-list {
  list-style: none;
  padding: 0;
}
.arrangement-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.arrangement-list small {
  display: block;
  color: var(--muted);
  margin: 4px 0 8px;
}
.arrangement-list p {
  font-size: 12px;
  margin-bottom: 8px;
}
.arrangement-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
}
.plan-toolbar {
  justify-content: start;
  margin-bottom: 24px;
}
.plan-state {
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}
.plan-song-meta,
.plan-conditions {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.plan-conditions {
  margin-top: 8px;
  font-weight: bold;
}
@media (max-width: 850px) {
  .collection-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .collection-row > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 550px) {
  .collection-levels {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .nav-item {
    width: 16.666%;
    font-size: 10px;
    padding: 8px 2px;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .sidebar,
  .topbar,
  footer,
  .profile-strip,
  .onboarding-prompt,
  .account-save-strip,
  .page-heading,
  .plan-list,
  .plan-toolbar,
  .plan-buttons,
  .item-buttons,
  #toast,
  dialog {
    display: none !important;
  }
  main {
    margin: 0 !important;
    width: 100% !important;
  }
  .page,
  .plan-sheet {
    padding: 0;
  }
  .plan-layout {
    display: block;
  }
  .plan-sheet {
    border: 0;
    border-radius: 0;
    background: white;
  }
  .service-items li {
    break-inside: avoid;
    border-bottom: 1px solid #bbb;
  }
  .plan-notice {
    border: 1px solid #777;
    background: white;
  }
  .plan-sheet-header {
    margin-bottom: 24px;
  }
  @page {
    margin: 18mm;
  }
}
.text-statistics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.text-statistics dt {
  color: var(--muted);
  font-size: 12px;
}
.text-statistics dd {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  margin: 4px 0 0;
}
.catalog-matches {
  padding: 16px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 24px;
}
.catalog-matches h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: normal;
}
.catalog-matches ul {
  list-style: none;
  padding: 0;
}
.catalog-matches li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  align-items: center;
}
.catalog-matches small {
  display: block;
  color: var(--muted);
}
/* Quiet controls, compact provenance, and progressive song detail disclosure. */
.ai-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font:
    700 9px Arial,
    sans-serif;
  letter-spacing: 0.02em;
  border: 1px solid #526b60;
  color: #315b4b;
  border-radius: 3px;
  padding: 2px 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
  flex-shrink: 0;
}
.attribute-panel > summary,
.rating-details > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #24332e);
  padding: 10px 0;
  list-style-position: outside;
}
.attribute-panel:not([open]) {
  padding-top: 5px;
  padding-bottom: 5px;
}
.attribute-panel > p {
  margin-top: 8px;
}
.rating-details {
  margin-bottom: 14px;
}
.compact-meta {
  margin: 14px 0;
  font-size: 12px;
}
.filter-panel {
  margin: 0 0 18px;
  border-bottom: 1px solid #dedfd6;
  padding-bottom: 12px;
}
.filter-panel > summary,
.library-toolbar > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
}
.library-toolbar {
  display: block !important;
}
.library-toolbar > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.library-toolbar:not([open]) > div {
  display: none;
}
.more-menu {
  position: relative;
  font-size: 13px;
}
.more-menu > summary {
  cursor: pointer;
  padding: 8px 12px;
  list-style: none;
  border: 1px solid #d8dcd3;
  border-radius: 4px;
}
.more-menu[open] {
  background: #fff;
}
.more-menu[open] > .text-button {
  display: block;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.more-menu:not([open]) > button {
  display: none;
}
.account-save-strip {
  display: block !important;
  position: relative;
  font-size: 12px;
  border: 0;
  background: transparent;
  margin: 0 !important;
  padding: 0 !important;
}
.account-save-strip > summary {
  cursor: pointer;
  padding: 8px;
  white-space: nowrap;
}
.account-save-strip[open] > span,
.account-save-strip[open] > div {
  display: block;
  background: #fff;
  padding: 10px;
  max-width: 310px;
}
.account-save-strip:not([open]) > span,
.account-save-strip:not([open]) > div {
  display: none;
}
.attribute-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e3da;
  padding: 8px 0;
}
.attribute-row .check-label {
  margin: 0;
}
.attribute-row > div {
  display: flex;
  gap: 5px;
}
.attribute-row input {
  width: auto;
}
.connect-page {
  display: block;
  padding: 40px 20px;
  background: #f4f3ed;
}
.connect-page main.connect-card {
  margin: 0 auto;
  max-width: 610px;
  padding: 32px;
  border: 1px solid #d8dcd3;
  background: white;
  min-height: 0;
}
.connect-brand {
  font:
    20px Georgia,
    serif;
  color: #163e35;
}
.connect-card h1 {
  font-size: 34px;
  margin-top: 22px;
}
.connect-card p {
  line-height: 1.6;
}
.connection-row {
  border-top: 1px solid #ddd;
  padding: 18px 0;
}
.connect-card .check-label {
  margin: 14px 0;
}
.connect-card input[type="checkbox"] {
  width: auto;
}
@media (max-width: 700px) {
  .topbar-actions {
    gap: 6px;
    flex-wrap: wrap;
  }
  .detail-actions {
    gap: 7px;
    flex-wrap: wrap;
  }
  .connect-page main.connect-card {
    padding: 22px;
  }
  .account-save-strip[open] > span {
    max-width: 210px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
}
.more-menu .menu-items,
.sync-menu-content {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #d8dcd3;
  box-shadow: 0 8px 22px #102d2214;
  padding: 8px;
  border-radius: 4px;
  text-align: left;
}
.more-menu .menu-items .text-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  white-space: nowrap;
}
.account-save-strip .sync-menu-content {
  width: 290px;
  max-width: calc(100vw - 40px);
  padding: 16px !important;
  line-height: 1.6;
}
.sync-menu-content button {
  display: block;
  margin-top: 7px;
}
.more-menu:not([open]) > .menu-items {
  display: none;
}
.ai-mark {
  font-size: 10px;
}
.saved-index-views {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 12px 16px;
}
.saved-index-views > summary {
  cursor: pointer;
  font-weight: 600;
}
.saved-view-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
}
.saved-view-controls label {
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.saved-view-controls select {
  width: 100%;
  min-width: 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.template-list {
  padding: 0;
  list-style: none;
}
.template-list > li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.template-list > li > div {
  flex: 1 1 180px;
  min-width: 0;
}
.template-list small {
  display: block;
  color: var(--muted);
}
@media print {
  .saved-index-views { display: none; }
}
.index-filter-panel {
  border-block: 1px solid var(--line);
  margin-bottom: 16px;
  padding: 12px 0;
}
.index-filter-panel > summary {
  cursor: pointer;
  font-weight: 600;
}
.index-filter-panel[open] > summary {
  margin-bottom: 16px;
}
.template-list strong {
  overflow-wrap: anywhere;
}
