:root { font-family: Inter, system-ui, sans-serif; color: #19231e; background: #f8f8f3; }
* { box-sizing: border-box; }
body { margin: 0; }
header { min-height: 76px; background: #ebdf15; display: flex; align-items: center; justify-content: space-between; padding: 12px max(20px, calc((100vw - 900px) / 2)); font-weight: 650; gap: 14px; }
.brand { position: relative; width: 155px; height: 32px; overflow: hidden; flex: none; }
.brand img { position: absolute; width: 200px; left: -22px; top: -84px; }
main { max-width: 940px; padding: 40px 20px 64px; margin: auto; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.055em; margin: 0; }
fieldset { border: 0; padding: 0; margin: 28px 0; min-width: 0; }
legend { font-weight: 750; padding: 0; margin-bottom: 10px; }
#plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; }
label { display: grid; gap: 6px; margin-bottom: 12px; }
.plan { background: white; border: 1px solid #ccd4d1; border-radius: 12px; padding: 14px; cursor: pointer; margin: 0; }
.plan:has(:checked) { outline: 2px solid #087797; background: #eaf8fb; }
.plan input { justify-self: start; }
.plan strong { font-size: 1.3rem; }
input:not([type=radio]):not([type=checkbox]) { font: inherit; width: min(100%, 480px); padding: 11px; min-height: 44px; border: 1px solid #8c9993; border-radius: 8px; }
.option { display: flex; align-items: center; min-height: 44px; margin: 0; }
button { min-height: 44px; background: #172824; color: white; border: 0; padding: 12px 22px; border-radius: 8px; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #087797; outline-offset: 3px; }
[hidden] { display: none !important; }
select, textarea { font: inherit; width: min(100%, 480px); padding: 11px; border: 1px solid #8c9993; border-radius: 8px; }
article { background: white; padding: 16px; margin-bottom: 12px; border-radius: 12px; }
article button { margin: 0 8px 8px 0; }
.workspace { display: flex; align-items: flex-start; gap: 24px; }
.workspace-content { flex: 1; min-width: 0; }
#distribution { flex: 0 0 205px; display: grid; gap: 5px; padding: 15px; background: white; border: 1px solid #dde1d9; border-radius: 12px; }
#distribution a { padding: 10px; color: inherit; text-decoration: none; border-radius: 8px; }
#distribution a[aria-current] { background: #ebdf15; font-weight: 700; }
#filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; padding: 14px; margin-bottom: 18px; background: #eaf8fb; border-radius: 12px; }
#filters label:first-child { grid-column: 1 / -1; }
#filters input, #filters select { width: 100%; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.catalog-grid article { min-width: 0; margin: 0; border: 1px solid #dde1d9; overflow-wrap: anywhere; }
.release-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: #edf3f3; }
.release-status { display: inline-block; border-radius: 20px; padding: 5px 10px; font-size: .85rem; font-weight: 700; background: #fff2a9; }
.release-status[data-status="publicado"], .release-status[data-status="cadastrado"] { background: #d7f5e1; }
.release-status[data-status="recusado"] { background: #fce2e2; }
@media (max-width: 640px) {
  .workspace { display: block; }
  #distribution { margin-bottom: 16px; }
}
#terms-content { white-space: pre-wrap; margin-block: 12px; }

.public-site header a { color: #172824; }
.public-site main { max-width: 1100px; }
.public-hero { background: #ebdf15; padding: clamp(24px, 7vw, 78px); border-radius: 22px; margin-bottom: 50px; }
.public-hero h1 { max-width: 720px; }
.public-hero p { max-width: 460px; font-size: 1.1rem; line-height: 1.5; }
.public-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; background: #172824; color: white; border-radius: 8px; font-weight: 700; text-decoration: none; }
.public-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.public-plans article { border: 1px solid #dde1d9; margin: 0; padding: 20px; }
.public-price { font-size: 1.65rem; font-weight: 750; margin: 0; }
.public-steps { margin-top: 44px; }
.public-steps li { margin-bottom: 12px; }
.public-plans article { display: flex; flex-direction: column; align-items: flex-start; }
.public-plans ul { padding-inline-start: 19px; margin: 0 0 22px; }
.public-plans li { margin-block: 7px; }
.public-plans .public-button { margin-top: auto; }

.release-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-block: .75rem; }

/* Release workspace */
.release-workspace { background: #f3f5f7; color: #19242e; font-family: "Instrument Sans", system-ui, sans-serif; }
.release-workspace main { max-width: 1240px; padding-top: 32px; }
.release-workspace header { min-height: 64px; padding-inline: max(20px, calc((100vw - 1200px) / 2)); }
.release-workspace h1 { font-size: clamp(2rem, 4vw, 3rem); }
.release-workspace h2 { margin: 0 0 18px; letter-spacing: -.035em; }
.release-workspace #registrations { margin-bottom: 28px; }
.release-workspace #distribution { position: sticky; top: 16px; }
.release-workspace #filters { background: white; border: 1px solid #e1e7ec; gap: 12px; }
.release-workspace #filters label { margin: 0; }
.release-section { background: white; border: 1px solid #e1e7ec; border-radius: 16px; margin: 22px 0; padding: 22px; }
.release-section > legend { padding-inline: 8px; margin: 0; }
.release-fields, #track-fields > fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#release label, #release-detail label { margin: 0; font-size: .9rem; font-weight: 550; }
#release :is(input, select, textarea):not([type=checkbox]), #release-detail :is(select, textarea) { width: 100%; min-width: 0; background: #fff; border-color: #c9d4dc; }
#release :is(input, select, textarea) { color: inherit; }
#release input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: #087797; }
#release label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 10px; }
#release input[type=file]::file-selector-button { border: 0; border-radius: 5px; padding: 6px 10px; margin-right: 8px; color: #17394a; background: #e8f2f7; cursor: pointer; }
#spotify-results, #platform-options, .release-fields label:has(textarea) { grid-column: 1 / -1; }
#spotify-results:empty, #track-fields > fieldset > div:empty { display: none; }
#track-fields > fieldset { background: #f8fafc; border: 1px solid #e1e7ec; border-radius: 12px; margin: 0 0 14px; padding: 18px; }
#track-fields > fieldset:last-child { margin-bottom: 0; }
#track-fields > fieldset > :is(div, input, label:has(input[type=file]), label:has(input[type=checkbox])) { grid-column: 1 / -1; }
#track-fields > fieldset > button { justify-self: start; }
#track-fields [data-credit-list] { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: white; border: 1px solid #e1e7ec; }
#track-fields [data-credit] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#track-fields [data-credit] :is(input, select) { flex: 1 1 155px; width: auto; }
#track-fields [data-credit-list] > button { justify-self: start; }
.release-form-actions, .review-pagination, #release-detail .release-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.release-form-actions { justify-content: flex-end; }
.release-workspace .secondary-action, #add-track, #track-fields > fieldset > button { color: #16435a; background: #edf5f9; border: 1px solid #cfe0ea; padding: 8px 12px; }
.release-workspace button:disabled { opacity: .45; cursor: default; }
.review-table { overflow: auto; border: 1px solid #e1e7ec; border-radius: 14px; background: white; }
.review-table table { width: 100%; min-width: 540px; border-collapse: collapse; text-align: left; }
.review-table th { color: #43566a; background: #edf2f6; font-size: .8rem; }
.review-table :is(th, td) { padding: 12px 16px; border-bottom: 1px solid #e9edf0; }
.review-table tbody tr:hover { background: #f5fafc; }
.review-table small { display: block; color: #536476; }
.review-title { min-height: 32px; padding: 0; color: #075b78; background: transparent; text-align: left; font-weight: 700; }
.review-title:hover { text-decoration: underline; }
.review-pagination { justify-content: flex-end; margin-top: 14px; }
#release-dialog { width: min(760px, calc(100% - 24px)); max-height: 88vh; border: 1px solid #d8e2ea; border-radius: 18px; padding: 24px; color: inherit; }
#release-dialog::backdrop { background: rgb(16 32 45 / .55); }
.dialog-close { display: flex; justify-content: flex-end; }
#release-detail h3 { border-top: 1px solid #e1e7ec; padding-top: 16px; }
#release-detail dl { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 8px 16px; }
#release-detail dt { color: #43566a; }
#release-detail dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#release-detail > form { display: grid; gap: 12px; margin-top: 22px; }
#release-detail > form button { justify-self: start; }
@media (max-width: 700px) {
  .release-workspace #distribution { position: static; }
  .release-workspace .workspace { display: block; }
  .release-fields, #track-fields > fieldset { grid-template-columns: 1fr; }
  .release-section { padding: 14px; }
}
#admin-navigation { justify-content: flex-start; margin: 0 0 24px; }
#admin-navigation button { color: #16435a; background: white; border: 1px solid #cfe0ea; }
#admin-navigation button[aria-pressed=true] { color: #19242e; background: #ebdf15; border-color: #ebdf15; font-weight: 700; }
#client-dialog { width: min(700px, calc(100% - 24px)); max-height: 88vh; border: 1px solid #d8e2ea; border-radius: 18px; padding: 24px; color: inherit; }
#client-dialog::backdrop { background: rgb(16 32 45 / .55); }
#client-detail dl { display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 8px 16px; }
#client-detail dd { margin: 0; overflow-wrap: anywhere; }

/* Artist studio */
.release-workspace { --studio-line: #d7e3e9; --studio-ink: #142534; --studio-blue: #075b78; background: #eef3f5; }
.release-workspace #distribution { color: #142534; border-radius: 16px; gap: 4px; padding: 14px; }
.release-workspace #distribution h2 { font-size: .82rem; margin: 5px 10px; letter-spacing: .02em; }
.release-workspace #distribution a:hover:not([aria-current]) { background: #eef3f5; }
.release-workspace #distribution a[aria-current] { background: #ebdf15; color: #142534; }
#release-heading { font-size: clamp(1.8rem, 3.5vw, 2.65rem); line-height: 1.1; margin: 2px 0 22px; color: var(--studio-ink); }
#release { display: grid; gap: 18px; }
#release .release-section { margin: 0; border-color: var(--studio-line); padding: clamp(16px, 3vw, 28px); }
#release .release-section > h3 { font-size: 1.18rem; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #e7edf0; }
#release .release-fields { column-gap: 22px; row-gap: 18px; }
.artist-picker { grid-column: 1 / -1; display: grid; gap: 6px; }
#release .artist-picker-controls { display: flex; gap: 10px; align-items: stretch; }
#release .artist-picker-controls > *, #release [data-credit] > * { min-height: 46px; line-height: 1.25; margin: 0; }
#release .artist-picker-controls input { flex: 1; width: 0; }
#release #search-spotify { flex: 0 0 auto; }
#release [data-credit] { align-items: stretch; }
#release .release-fields :is(input, select):not([type=checkbox]), #release #track-fields > fieldset > label :is(input, select):not([type=checkbox]) { min-height: 46px; line-height: 1.25; }
.artist-picker #spotify-results { font-size: .875rem; color: #285064; }
#track-fields > fieldset { background: #f6f9fa; }
#track-fields [data-credit-list] { padding: 14px; }
#track-fields [data-credit-list] h4 { margin: 0 0 3px; font-size: .88rem; }
#track-fields [data-credit] :is(input, select):not([type=checkbox]) { width: auto; }
#add-track { margin-top: 14px; }
#release .release-form-actions { padding-block: 6px 12px; }
#release button[type=submit] { background: #ebdf15; color: #142534; font-weight: 750; }
#spotify-dialog { width: min(610px, calc(100% - 28px)); max-height: 85vh; padding: clamp(16px, 4vw, 26px); border: 1px solid var(--studio-line); border-radius: 18px; color: var(--studio-ink); box-shadow: 0 20px 65px #13253438; }
#spotify-dialog::backdrop { background: #13253499; }
.spotify-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--studio-line); }
.spotify-dialog-header h3 { margin: 0; font-size: 1.2rem; }
#spotify-status:empty { display: none; }
#spotify-options { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.release-workspace .picker-option { display: flex; align-items: center; width: 100%; gap: 12px; padding: 10px 12px; border: 1px solid var(--studio-line); border-radius: 10px; color: var(--studio-ink); background: #fff; text-align: left; font-weight: 650; }
.release-workspace .picker-option:hover { border-color: #70aec1; background: #edf8fb; }
.spotify-avatar { position: relative; overflow: hidden; display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: #dfedf1; color: var(--studio-blue); }
.spotify-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.picker-select { margin-left: auto; color: var(--studio-blue); font-size: .84rem; }
.track-results { display: grid; gap: 8px; }
@media (max-width: 560px) {
  #release .artist-picker-controls { flex-direction: column; }
  #release .artist-picker-controls input { width: 100%; }
  #release [data-credit] > :is(input, select) { flex-basis: 100%; }
  .picker-select { font-size: .75rem; }
}

.release-artists { grid-column: 1 / -1; display: grid; gap: 14px; }
.release-artists .artist-picker { margin: 0; padding: 14px; border: 1px solid var(--studio-line); border-radius: 10px; }
.release-artists legend { margin: 0; padding: 0 6px; }
#add-release-artist { justify-self: start; min-width: 44px; line-height: 1.25; }
.artist-picker-status { font-size: .875rem; color: #285064; }
.artist-picker-status:empty { display: none; }
.release-artist-role { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.release-artist-role label { flex: 1 1 200px; }
#release [data-spotify-search] { flex: 0 0 auto; }
#release [data-remove-artist] { min-width: 46px; min-height: 46px; font-size: 1.2rem; }

.catalog-grid .release-cover { position: relative; display: grid; place-items: center; overflow: hidden; color: #607884; font-size: 2rem; }
.release-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.release-status[data-status=rascunho] { background: #e8edf2; color: #384c5b; }
.draft-card { position: relative; }
.catalog-grid .draft-delete { position: absolute; top: 24px; right: 24px; margin: 0; padding: 6px; min-width: 44px; }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }
.account-grid .release-section { margin: 0; }
.account-grid h3 { margin: 0 0 18px; }
.account-grid dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.account-grid dt { color: #43566a; font-size: .88rem; }
.account-grid dd { margin: 0 0 12px; overflow-wrap: anywhere; font-weight: 650; }
#account-feedback:empty { display: none; }

.zaniolo-portal header { background: #f9dd39; }
.zaniolo-portal .brand { width: 152px; height: 58px; }
.zaniolo-portal .brand img { position: static; width: 100%; height: 100%; object-fit: contain; }

.public-header-actions { display: flex; align-items: center; gap: 8px; }
.public-header-actions a { padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.public-header-actions a.public-button { color: white; }
.public-site header { flex-wrap: wrap; }

#signup-terms.checkout-consent { padding: 12px 16px 8px; background: white; border: 1px solid #d7e3e9; border-radius: 12px; }
#signup-terms.checkout-consent legend { padding: 0 6px; margin: 0; }
#signup-terms summary { cursor: pointer; color: #075b78; }
#signup-terms .option { display: flex; justify-content: flex-start; gap: 10px; width: fit-content; margin-top: 8px; cursor: pointer; }
#signup-terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #087797;
}

.login-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.login-actions > button { min-height: 44px; margin: 0; }

#release #platform-options { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
#release :is(#platform-options, #track-fields) input[type=checkbox] { flex: 0 0 18px; margin: 0; }
#release [data-credit] > :is(input, select), #release [data-saved-artist] { min-width: 0; max-width: 100%; }
.picker-option > span { min-width: 0; overflow-wrap: anywhere; }
.review-table td { overflow-wrap: anywhere; }
.public-header-actions { flex-wrap: wrap; }
@media (max-width: 700px) {
  .release-workspace #distribution { margin-bottom: 18px; }
  #release-detail dl, #client-detail dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #release-detail dd, #client-detail dd { margin-bottom: 8px; }
  .review-pagination { justify-content: flex-start; }
}

#track-fields [data-atmos] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: 18px;
  border: 1px solid #dce6ec;
  border-radius: 10px;
  background: #fff;
}

#track-fields [data-atmos] h4,
#track-fields [data-atmos] label:has(input[type=file]) {
  grid-column: 1 / -1;
}

#track-fields [data-atmos] h4 {
  margin: 0;
}

#track-fields [data-atmos] label {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

#track-fields [data-atmos] :is(input, select) {
  min-height: 46px;
  min-width: 0;
}

@media (max-width: 640px) {
  #track-fields [data-atmos] {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
}

#distribution .distribution-toggle { display: none; }
#distribution-links { display: contents; }

@media (max-width: 760px) {
  #distribution > strong { display: none; }
  #distribution .distribution-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    color: inherit;
    background: #edf5f9;
    text-align: left;
  }
  #distribution-links { display: none; }
  #distribution .distribution-toggle[aria-expanded="true"] + #distribution-links {
    display: grid;
    gap: 4px;
    margin-top: 6px;
  }
}

#track-fields > fieldset > label:has(:is([name="track_other_recording_members"], [name="track_isrc_recording_members"])) {
  grid-column: 1 / -1;
}

#release.multi-track-release .release-artist-role label { display: none; }
#track-fields [data-copy-release-artists] { grid-column: 1 / -1; }

.converter-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.converter-form :is(h3, p) { margin: 0; }
.converter-form [role="status"]:empty { display: none; }
.converter-form [download] { display: inline-flex; align-items: center; border-radius: 8px; text-decoration: none; }

#digital-rights-term { white-space: pre-wrap; max-height: 24rem; overflow: auto; }
#digital-rights-details { display: grid; gap: 14px; margin-top: 14px; }

.public-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px max(20px, calc((100vw - 1060px) / 2)); border-top: 1px solid #ccd4d1; }
.public-footer a, .policy-page a { color: #075973; }
.policy-page { max-width: 850px; line-height: 1.65; overflow-wrap: anywhere; }
.policy-page h2 { margin-top: 2rem; line-height: 1.2; }
.policy-date { color: #45534c; }
.policy-table { overflow-x: auto; }
.policy-page table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.policy-page th, .policy-page td { padding: 10px; border: 1px solid #ccd4d1; text-align: left; vertical-align: top; }
.cookie-settings { background: transparent; color: #075973; text-decoration: underline; padding-inline: 0; }
.cookie-panel { position: fixed; z-index: 10; inset: auto 12px 12px; width: min(calc(100% - 24px), 620px); margin-inline: auto; max-height: calc(100dvh - 24px); overflow: auto; background: white; border: 1px solid #ccd4d1; border-radius: 12px; padding: 20px; box-shadow: 0 8px 30px #17282430; }
.cookie-panel h2 { margin: 0; font-size: 1.25rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
