@font-face {
    font-family: "Inter";
    src: url("fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #f6f7f4;
    --surface: #ffffff;
    --surface-subtle: #fafbfa;
    --surface-muted: #f1f3f2;
    --ink: #22252a;
    --text: var(--ink);
    --muted: #68707a;
    --line: #dfe3e6;
    --line-strong: #cbd2d7;
    --brand: #e62443;
    --brand-soft: #fff1f3;
    --brand-2: #b9872d;
    --danger: #ad3434;
    --ok: #287c45;
    --warn: #a76912;
    --focus-ring: 0 0 0 3px rgba(230, 36, 67, .18);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, .12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --control-height: 40px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea { font-family: inherit; }
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
body.menu-open { overflow: hidden; }
body.has-app-confirmation { overflow: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    transition: grid-template-columns .18s ease;
}
html.sidebar-collapsed-root .shell,
body.sidebar-collapsed .shell { grid-template-columns: 76px 1fr; }
.sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 100vh;
    overflow-x: visible;
    overflow-y: auto;
    background: #17211f;
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    transition: padding .18s ease;
}
.brand { font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.brand-logo { display: block; max-width: 170px; max-height: 74px; object-fit: contain; }
.sidebar .brand-logo { filter: brightness(0) invert(1); }
html.sidebar-collapsed-root .sidebar,
body.sidebar-collapsed .sidebar {
    overflow: visible;
    padding: 20px 12px;
}
html.sidebar-collapsed-root .brand,
body.sidebar-collapsed .brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
html.sidebar-collapsed-root .brand-logo,
body.sidebar-collapsed .brand-logo {
    max-width: 44px;
    max-height: 44px;
}
html.sidebar-collapsed-root .brand:not(:has(img)),
body.sidebar-collapsed .brand:not(:has(img)) {
    font-size: 0;
}
html.sidebar-collapsed-root .brand:not(:has(img))::first-letter,
body.sidebar-collapsed .brand:not(:has(img))::first-letter {
    font-size: 20px;
}
.ui-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav {
    flex: 1 1 auto;
    min-height: 0;
}
.nav a,
.nav-section__parent,
.nav-logout,
.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eef4f1;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
}
.nav a span,
.nav-section__parent span,
.nav-logout span,
.sidebar-toggle span { min-width: 0; overflow-wrap: anywhere; }
.nav a:hover,
.nav-section__parent:hover,
.nav a.active,
.nav-logout:hover,
.sidebar-toggle:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.nav-section {
    margin-bottom: 4px;
}
.nav-section__row {
    position: relative;
}
.nav-section__parent {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    cursor: pointer;
    padding-right: 46px;
}
.nav-section__toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    background: transparent;
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    padding: 0;
    color: #eef4f1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}
.nav-section__toggle:hover,
.nav-section__toggle:focus-visible {
    background: transparent;
    outline: none;
}
.nav-section__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e62443;
}
.nav-section__chevron .ui-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    transition: transform .16s ease;
}
.nav-section__chevron .ui-icon path,
.nav-section__chevron .ui-icon polygon,
.nav-section__chevron .ui-icon rect {
    fill: currentColor;
    stroke: none;
}
.nav-section__toggle[aria-expanded="true"] .nav-section__chevron .ui-icon {
    transform: rotate(90deg);
}
.nav-section--open {
    background: transparent;
}
.nav-section--open > .nav-section__row > .nav-section__parent,
.nav-section--current > .nav-section__row > .nav-section__parent {
    background: rgba(255,255,255,.12);
}
.nav-subnav {
    display: grid;
    gap: 2px;
    margin: 2px 0 6px 30px;
}
.nav-subnav[hidden] {
    display: none !important;
}
.nav-subnav a {
    margin-bottom: 0;
    padding: 7px 10px;
    color: rgba(238,244,241,.78);
    font-size: 13px;
}
.nav-subnav a.active {
    background: rgba(255,255,255,.16);
    color: #fff;
}
.nav-section--current > .nav-section__row > .nav-section__parent { color: #fff; }
.sidebar-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    margin: 0 0 12px;
}
.nav a,
.nav-logout,
.sidebar-toggle { position: relative; }
html.sidebar-collapsed-root .nav a,
html.sidebar-collapsed-root .nav-section__parent,
html.sidebar-collapsed-root .nav-logout,
html.sidebar-collapsed-root .sidebar-toggle,
body.sidebar-collapsed .nav a,
body.sidebar-collapsed .nav-section__parent,
body.sidebar-collapsed .nav-logout,
body.sidebar-collapsed .sidebar-toggle {
    justify-content: center;
    gap: 0;
    padding: 11px;
}
html.sidebar-collapsed-root .nav a span,
html.sidebar-collapsed-root .nav-section__parent span,
html.sidebar-collapsed-root .nav-logout span,
html.sidebar-collapsed-root .sidebar-toggle span,
html.sidebar-collapsed-root .app-version,
body.sidebar-collapsed .nav a span,
body.sidebar-collapsed .nav-section__parent span,
body.sidebar-collapsed .nav-logout span,
body.sidebar-collapsed .sidebar-toggle span,
body.sidebar-collapsed .app-version {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
html.sidebar-collapsed-root .nav-subnav,
body.sidebar-collapsed .nav-subnav {
    display: none;
}
html.sidebar-collapsed-root .nav-section--flyout,
body.sidebar-collapsed .nav-section--flyout {
    position: relative;
    z-index: 120;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav {
    display: grid !important;
    position: absolute;
    left: calc(100% - 2px);
    top: 0;
    min-width: 190px;
    max-width: 240px;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: #17211f;
    box-shadow: 0 16px 40px rgba(0,0,0,.24);
    gap: 4px;
    z-index: 130;
    pointer-events: auto;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav::before,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a {
    border-radius: 6px;
    padding: 8px 10px;
    color: #eef4f1;
    background: transparent;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a span,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a::before,
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a::after,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a::before,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a::after {
    display: none !important;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a:hover,
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a:focus-visible,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a:hover,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a:focus-visible {
    background: rgba(255,255,255,.12);
    text-decoration: none;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-subnav a.active,
body.sidebar-collapsed .nav-section--flyout > .nav-subnav a.active {
    background: rgba(255,255,255,.16);
    color: #fff;
}
html.sidebar-collapsed-root .nav-section--flyout > .nav-section__row > .nav-section__parent::before,
html.sidebar-collapsed-root .nav-section--flyout > .nav-section__row > .nav-section__parent::after,
body.sidebar-collapsed .nav-section--flyout > .nav-section__row > .nav-section__parent::before,
body.sidebar-collapsed .nav-section--flyout > .nav-section__row > .nav-section__parent::after {
    opacity: 0 !important;
    visibility: hidden !important;
}
html.sidebar-collapsed-root .nav-section__chevron,
body.sidebar-collapsed .nav-section__chevron {
    display: none;
}
html.sidebar-collapsed-root .nav-section__toggle,
body.sidebar-collapsed .nav-section__toggle {
    display: none;
}
html.sidebar-collapsed-root .nav a::after,
html.sidebar-collapsed-root .nav-section__parent::after,
html.sidebar-collapsed-root .nav-logout::after,
html.sidebar-collapsed-root .sidebar-toggle::after,
body.sidebar-collapsed .nav a::after,
body.sidebar-collapsed .nav-section__parent::after,
body.sidebar-collapsed .nav-logout::after,
body.sidebar-collapsed .sidebar-toggle::after {
    content: attr(data-nav-label);
    position: absolute;
    z-index: 80;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    min-width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #17211f;
    color: #fff;
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
    font-size: 13px;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
html.sidebar-collapsed-root .nav a::before,
html.sidebar-collapsed-root .nav-section__parent::before,
html.sidebar-collapsed-root .nav-logout::before,
html.sidebar-collapsed-root .sidebar-toggle::before,
body.sidebar-collapsed .nav a::before,
body.sidebar-collapsed .nav-section__parent::before,
body.sidebar-collapsed .nav-logout::before,
body.sidebar-collapsed .sidebar-toggle::before {
    content: '';
    position: absolute;
    z-index: 81;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #17211f;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
html.sidebar-collapsed-root .nav a:hover::after,
html.sidebar-collapsed-root .nav a:focus-visible::after,
html.sidebar-collapsed-root .nav-section__parent:hover::after,
html.sidebar-collapsed-root .nav-section__parent:focus-visible::after,
html.sidebar-collapsed-root .nav-logout:hover::after,
html.sidebar-collapsed-root .nav-logout:focus-visible::after,
html.sidebar-collapsed-root .sidebar-toggle:hover::after,
html.sidebar-collapsed-root .sidebar-toggle:focus-visible::after,
html.sidebar-collapsed-root .nav a:hover::before,
html.sidebar-collapsed-root .nav a:focus-visible::before,
html.sidebar-collapsed-root .nav-section__parent:hover::before,
html.sidebar-collapsed-root .nav-section__parent:focus-visible::before,
html.sidebar-collapsed-root .nav-logout:hover::before,
html.sidebar-collapsed-root .nav-logout:focus-visible::before,
html.sidebar-collapsed-root .sidebar-toggle:hover::before,
html.sidebar-collapsed-root .sidebar-toggle:focus-visible::before,
body.sidebar-collapsed .nav a:hover::after,
body.sidebar-collapsed .nav a:focus-visible::after,
body.sidebar-collapsed .nav-section__parent:hover::after,
body.sidebar-collapsed .nav-section__parent:focus-visible::after,
body.sidebar-collapsed .nav-logout:hover::after,
body.sidebar-collapsed .nav-logout:focus-visible::after,
body.sidebar-collapsed .sidebar-toggle:hover::after,
body.sidebar-collapsed .sidebar-toggle:focus-visible::after,
body.sidebar-collapsed .nav a:hover::before,
body.sidebar-collapsed .nav a:focus-visible::before,
body.sidebar-collapsed .nav-section__parent:hover::before,
body.sidebar-collapsed .nav-section__parent:focus-visible::before,
body.sidebar-collapsed .nav-logout:hover::before,
body.sidebar-collapsed .nav-logout:focus-visible::before,
body.sidebar-collapsed .sidebar-toggle:hover::before,
body.sidebar-collapsed .sidebar-toggle:focus-visible::before {
    opacity: 1;
    visibility: visible;
}
.sidebar-footer {
    flex: 0 0 auto;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 10px;
}
.app-version {
    padding: 4px 12px 0;
    color: rgba(238,244,241,.46);
    font-size: 11px;
    line-height: 1.3;
}
.nav-logout {
    margin-bottom: 2px;
    padding-top: 14px;
}
.nav-profile-link {
    justify-content: space-between;
    margin: 0 0 10px;
    padding: 0 0 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(238,244,241,.72);
    font-size: 13px;
}
.nav-profile-link:hover,
.nav-profile-link.active {
    color: #fff;
}
.nav-profile-text {
    min-width: 0;
}
.nav-profile-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
}
.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
html.sidebar-collapsed-root .nav a .nav-profile-avatar,
body.sidebar-collapsed .nav a .nav-profile-avatar {
    position: static;
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    overflow: hidden;
    clip: auto;
    white-space: normal;
}
.mobile-menu-btn, .mobile-menu-close, .mobile-menu-backdrop { display: none; }
.main {
    min-width: 0;
    padding: 28px;
}
.modal-embed-page {
    background: #fff;
    min-height: 100%;
}
.modal-embed-main {
    padding: 18px;
    min-height: 100%;
}
.modal-embed-main .panel {
    margin-bottom: 14px;
}
.modal-embed-main .item-editor-form {
    display: grid;
    gap: var(--space-4);
}
.modal-embed-main .item-editor-form > .panel {
    margin-bottom: 0;
}
.modal-embed-main #job-form,
.modal-embed-main .show-editor-form,
.modal-embed-main .advertising-editor-form {
    margin-bottom: var(--space-4);
}
.modal-embed-main .panel > h2:first-child,
.modal-embed-main .panel-heading-row h2 {
    font-size: 18px;
    line-height: 1.3;
}
.modal-embed-main label,
.finance-modal label,
.songs-modal label {
    font-weight: 600;
}
.page-loading {
    min-height: min(58vh, 520px);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
    color: var(--muted);
}
.page-loading strong {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 152px;
    color: var(--ink);
    font-size: 20px;
}
.page-loading p {
    margin: 0;
    font-size: 13px;
}
.page-loading--tab {
    min-height: min(42vh, 360px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.main { position: relative; }
.page-navigation-progress {
    position: sticky;
    top: 0;
    z-index: 55;
    width: 100%;
    height: 3px;
    margin: -1px 0 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(230, 36, 67, .12);
}
.page-navigation-progress::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 34%;
    border-radius: inherit;
    background: var(--brand);
    animation: page-navigation-progress 1.05s ease-in-out infinite;
}
.main.is-page-navigation-loading > :not(.page-navigation-progress) {
    opacity: .68;
    transition: opacity .16s ease;
}
@keyframes page-navigation-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}
.is-loading [data-finance-month-button] {
    opacity: .65;
}
.loading-orbit {
    width: 42px;
    height: 42px;
    border: 3px solid #dce5e2;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: loading-spin .78s linear infinite;
}
.loading-dots span {
    animation: loading-dot 1.05s ease-in-out infinite;
}
.inline-loading {
    display: inline-flex;
    align-items: baseline;
}
.loading-dots span:nth-child(2) { animation-delay: .14s; }
.loading-dots span:nth-child(3) { animation-delay: .28s; }
@keyframes loading-spin {
    to { transform: rotate(360deg); }
}
@keyframes loading-dot {
    0%, 80%, 100% { opacity: .22; }
    40% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .loading-orbit,
    .loading-dots span,
    .page-navigation-progress::after,
    [data-live-search-region].is-updating::after,
    .kanban-card.is-pending::after {
        animation: none;
    }
    .app-toast { transition: none; }
}
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: none;
    place-items: start center;
    padding: min(12vh, 96px) 16px 24px;
}
.global-search.is-open { display: grid; }
.global-search__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(20, 27, 27, .56);
    cursor: default;
}
.global-search__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(76vh, 720px);
    overflow: hidden;
    border: 1px solid #dce1df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 20, 19, .26);
}
.global-search__field {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e8e6;
}
.global-search__field > .ui-icon { width: 22px; height: 22px; color: #e62443; }
.global-search__field input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0;
    font-size: 18px;
    background: transparent;
}
.global-search__field input:focus { box-shadow: none; }
.global-search__field kbd {
    border: 1px solid #d8dddb;
    border-radius: 4px;
    padding: 2px 7px;
    color: #6b7372;
    background: #f5f7f6;
}
.global-search__field button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #343a39;
    background: #f1f3f2;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.global-search__results {
    max-height: calc(min(76vh, 720px) - 66px);
    overflow-y: auto;
    padding: 8px;
}
.global-search__group h3 {
    margin: 10px 10px 6px;
    color: #747c7a;
    font-size: 12px;
    text-transform: uppercase;
}
.global-search__result {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    color: #242928;
    text-decoration: none;
}
.global-search__result:hover,
.global-search__result.is-active { background: #f3f5f4; }
.global-search__result.is-active { box-shadow: inset 3px 0 #e62443; }
.global-search__result-label {
    overflow: hidden;
    color: #e62443;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.global-search__result-content { display: grid; min-width: 0; gap: 2px; }
.global-search__result-content strong,
.global-search__result-content small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search__result-content small { color: #747c7a; }
.global-search__empty,
.global-search__loading,
.global-search__error { padding: 36px 20px; color: #6b7372; text-align: center; }
.global-search__error { color: #a32636; }
body.global-search-open { overflow: hidden; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    color: #e62443;
    stroke-width: 1.7;
}
.notifications-dropdown {
    position: relative;
}
.notifications-dropdown summary {
    list-style: none;
}
.notifications-dropdown summary::-webkit-details-marker {
    display: none;
}
.notifications-btn {
    position: relative;
}
.notifications-btn__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e62443;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.notifications-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
    padding: 10px;
    z-index: 40;
}
.notifications-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 4px 10px;
}
.notifications-panel__header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.notifications-clear-all {
    border: 0;
    padding: 4px;
    background: transparent;
    color: #e62443;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.notifications-clear-all:hover,
.notifications-clear-all:focus-visible {
    text-decoration: underline;
}
.notifications-panel__list {
    display: grid;
    gap: 8px;
    max-height: min(420px, 70vh);
    overflow-y: auto;
}
.notifications-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.notifications-item:hover {
    border-color: #e62443;
}
.notifications-item__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 6px;
    color: inherit;
    text-decoration: none;
}
.notifications-item__dismiss {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 2px 2px 0 0;
    border: 0;
    color: var(--muted);
    background: transparent;
}
.notifications-item__dismiss:hover,
.notifications-item__dismiss:focus-visible {
    color: #e62443;
    background: #fff1f3;
}
.notifications-item__dismiss .ui-icon {
    width: 16px;
    height: 16px;
}
.notifications-item__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 999px;
    margin-top: 5px;
    background: #e62443;
}
.notifications-item.is-read .notifications-item__dot {
    background: #d7dedb;
}
.notifications-item__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.notifications-item__body strong,
.notifications-item__body span,
.notifications-item__body small {
    display: block;
}
.notifications-item__body span {
    color: var(--muted);
    line-height: 1.4;
}
.notifications-item__body small {
    color: var(--muted);
}
.notifications-empty {
    padding: 14px 10px;
    color: var(--muted);
}
h2 { margin: 24px 0 12px; font-size: 20px; }
.muted { color: var(--muted); }
.panel, .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.panel { padding: 18px; margin-bottom: 16px; }
.panel > h2:first-child { margin-top: 0; }
.panel-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
.panel-heading-row h2 {
    margin: 0;
}
.marketing-kanban-card {
    position: relative;
}
.marketing-kanban-card__reply-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    z-index: 2;
}
.marketing-kanban-card__reply-indicator--unread {
    background: #e62443;
}
.marketing-kanban-card__reply-indicator--read {
    background: #d7dedb;
}
.inline-switch {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 30px;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}
.inline-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.inline-switch > span {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #d7dedb;
    transition: background .16s ease, border-color .16s ease;
}
.inline-switch > span::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .24);
    transition: transform .16s ease;
}
.inline-switch input:checked + span {
    border-color: var(--brand);
    background: var(--brand);
}
.inline-switch input:checked + span::after {
    transform: translateX(16px);
}
.inline-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(230, 36, 67, .18);
}
.inline-switch input:disabled + span,
.inline-switch input:disabled ~ em {
    opacity: .62;
}
.inline-switch em {
    max-width: 230px;
    font-style: normal;
}
.artist-tab-panel { margin-top: 0; }
.actions.artist-youtube-actions {
    align-items: center;
    gap: 8px;
}
.artist-youtube-actions .btn {
    box-sizing: border-box;
    height: var(--control-height);
    min-height: var(--control-height);
    padding: 9px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.artist-youtube-actions .artist-youtube-actions__form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.artist-youtube-actions .field-status:empty {
    display: none;
}
.artist-youtube-actions > .field-status:not(:empty) {
    flex: 1 0 100%;
    margin: 0;
}
.modal-tab-bar { margin-top: -4px; }
.tab-bar {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 0;
}
.tab-button {
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 11px 14px 10px;
}
.tab-button:hover,
.tab-button:focus {
    color: var(--brand);
    outline: none;
}
.tab-button.active {
    background: #e62443;
    border-color: #e62443;
    color: #fff;
    position: relative;
    z-index: 1;
}
.tab-bar ~ [data-settings-tab-panel],
.tab-bar ~ [data-shows-tab-panel],
.tab-bar + .artist-tab-content,
.modal-tab-bar + .client-modal__body {
    border: 1px solid #e62443;
    border-radius: 8px;
    padding: 14px;
    background: var(--bg);
}
.artist-tab-content {
    min-height: 260px;
}
.shows-tab-content {
    margin-bottom: 16px;
}
.tab-bar ~ [data-settings-tab-panel] {
    border-top-left-radius: 0;
}
.tab-bar ~ [data-shows-tab-panel] {
    border-top-left-radius: 0;
}
.shows-summary-grid {
    margin-bottom: 16px;
}
.show-artist-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.show-artist-summary__header h2 {
    margin: 0;
}
.show-artist-summary__header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.show-artist-summary [data-summary-capture] {
    align-self: center;
}
.show-stats-table {
    margin: 0;
}
.shows-list-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.shows-list-toolbar,
.clients-list-toolbar,
.jobs-list-toolbar,
.finance-list-toolbar {
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.shows-list-toolbar > *,
.clients-list-toolbar > *,
.jobs-list-toolbar > *,
.finance-list-toolbar > *,
.calendar-toolbar > * {
    min-width: 0;
}
.page-actions {
    gap: 8px;
}
.shows-list-toolbar .page-actions {
    margin: 0;
}
.shows-list-toolbar--kanban .page-actions {
    align-items: center;
}
.shows-list-toolbar--kanban .shows-search-form[data-search-enhanced="1"] {
    align-self: flex-end;
}
.shows-list-toolbar .shows-search-form {
    margin: 0;
}
.shows-search-form {
    margin: 0 0 8px;
    max-width: 360px;
    flex: 1 1 260px;
}
.shows-search-form[data-search-enhanced="1"],
.clients-search-form[data-search-enhanced="1"] {
    max-width: none;
}
.shows-search-form[data-search-enhanced="1"] label,
.clients-search-form[data-search-enhanced="1"] label {
    margin-bottom: 0;
}
.shows-search-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.shows-search-form input {
    height: 38px;
}
.finance-filter-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    max-width: none;
    margin: 0;
}
.finance-filter-form label {
    min-width: 150px;
}
.finance-filter-form label:first-of-type {
    min-width: 240px;
    flex: 1 1 260px;
}
.finance-filter-form[data-search-enhanced="1"] label:first-of-type {
    min-width: 0;
    flex: 0 0 auto;
}
.finance-filter-form .collapsible-search-form__toggle {
    width: var(--control-height);
    height: var(--control-height);
    flex-basis: var(--control-height);
}
.finance-filter-form input,
.finance-filter-form select {
    height: var(--control-height);
}
.finance-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.finance-bulk-toolbar__summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.finance-bulk-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.finance-bulk-toolbar__actions select {
    min-width: 200px;
    height: var(--control-height);
}
.finance-list-toolbar {
    align-items: flex-end;
    flex-wrap: nowrap;
}
.finance-list-toolbar__right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    margin-left: auto;
}
.finance-list-toolbar .page-actions {
    align-items: flex-end;
    margin: 0;
    flex: 0 0 auto;
}
.finance-list-toolbar .page-actions .btn,
.finance-bulk-toolbar__actions .btn {
    height: var(--control-height);
}
.finance-table__select {
    width: 44px;
    min-width: 44px;
    text-align: center;
}
.finance-table__select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}
[data-finance-list-table] {
    table-layout: fixed;
    font-size: 13px;
    width: 100%;
    min-width: 0 !important;
}
[data-finance-list-table] th,
[data-finance-list-table] td {
    padding: 9px 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
[data-finance-list-table] th {
    font-size: 12px;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}
[data-finance-list-table] th:nth-child(1),
[data-finance-list-table] td:nth-child(1) {
    width: 40px;
}
[data-finance-list-table] th:nth-child(3),
[data-finance-list-table] td:nth-child(3) {
    width: 168px;
}
[data-finance-list-table] th:nth-child(4),
[data-finance-list-table] td:nth-child(4) {
    width: auto;
}
[data-finance-list-table] th:nth-child(5),
[data-finance-list-table] td:nth-child(5) {
    width: 76px;
    text-align: center;
}
[data-finance-list-table] th:nth-child(6),
[data-finance-list-table] td:nth-child(6) {
    width: 104px;
}
[data-finance-list-table] th:nth-child(7),
[data-finance-list-table] td:nth-child(7) {
    width: 104px;
}
[data-finance-list-table] th:nth-child(8),
[data-finance-list-table] td:nth-child(8) {
    width: 98px;
}
[data-finance-list-table] th:nth-child(9),
[data-finance-list-table] td:nth-child(9) {
    width: 68px;
    text-align: center;
}
[data-finance-list-table] td:nth-child(3) .badge,
[data-finance-list-table] td:nth-child(8) .badge {
    display: inline-flex;
    align-items: center;
    word-break: normal;
    overflow-wrap: normal;
}
[data-finance-list-table] td:nth-child(3) .badge {
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
}
[data-finance-list-table] td:nth-child(8) .badge {
    white-space: nowrap;
}
[data-finance-list-table] td:nth-child(7),
[data-finance-list-table] td:nth-child(8),
[data-finance-list-table] td:nth-child(9) {
    white-space: nowrap;
}
[data-finance-list-table] td:nth-child(4) {
    min-width: 0;
}
[data-finance-list-table] td:nth-child(2) strong {
    display: block;
    white-space: normal;
    line-height: 1.35;
}
[data-finance-list-table] td strong,
[data-finance-list-table] td a,
[data-finance-list-table] .badge,
[data-finance-list-table] .finance-value {
    max-width: 100%;
}
[data-finance-list-table] td a {
    overflow-wrap: anywhere;
    word-break: break-word;
}
[data-finance-list-table] .badge {
    white-space: normal;
    line-height: 1.2;
    padding: 5px 7px;
}
[data-finance-list-table] .finance-documents-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}
[data-finance-list-table] td small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
}
.finance-table__details {
    display: grid;
    gap: 4px;
}
.finance-origin-pix {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}
.finance-origin-pix > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.finance-origin-pix .copy-btn {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
.finance-origin-pix .copy-btn .ui-icon {
    width: 13px;
    height: 13px;
}
.finance-table__details div {
    min-width: 0;
}
.finance-table__details strong {
    font-size: 11px;
    color: var(--muted);
    margin-right: 4px;
}
.table [data-finance-row].is-selected {
    background: rgba(230, 36, 67, .05);
}
.table [data-finance-row].is-keyboard-active {
    outline: 2px solid rgba(230, 36, 67, .35);
    outline-offset: -2px;
}
.clients-list-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.clients-list-toolbar .page-actions {
    margin: 0;
}
.songs-page-actions-toolbar .page-actions {
    margin-left: auto;
}
.songs-page-actions-toolbar .btn {
    font-size: inherit;
}
.clients-search-form {
    margin: 0;
    max-width: 360px;
    flex: 1 1 260px;
}
.clients-search-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0;
}
.clients-search-form input {
    height: 38px;
}
.collapsible-search-form__label-text {
    display: none;
}
.collapsible-search-form__control {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}
.collapsible-search-form__shell {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: width .22s ease, opacity .18s ease, transform .22s ease;
}
.collapsible-search-form__shell.is-open {
    width: min(320px, 36vw);
    opacity: 1;
    transform: translateX(0);
}
.collapsible-search-form__shell input {
    width: 100%;
    min-width: 0;
}
.collapsible-search-form__toggle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
    flex: 0 0 42px;
}
.collapsible-search-form__toggle .ui-icon {
    width: 18px;
    height: 18px;
}
.shows-subtabs {
    margin: 14px 0 0;
    padding: 8px 8px 0;
    border: 1px solid #e62443;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #fff;
}
.shows-subtabs .tab-button {
    text-decoration: none;
}
.shows-subtab-content {
    border: 1px solid #e62443;
    border-radius: 0 8px 8px 8px;
    padding: 14px;
    background: var(--bg);
}
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.calendar-toolbar__nav,
.calendar-toolbar__actions,
.calendar-toolbar__search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.calendar-toolbar__actions {
    margin-left: auto;
    justify-content: flex-end;
}
.calendar-toolbar__nav strong {
    font-size: 14px;
}
.calendar-toolbar__search {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.calendar-toolbar__search input,
.calendar-toolbar__view-select select {
    height: 42px;
}
.calendar-toolbar__search-shell {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: width .22s ease, opacity .18s ease, transform .22s ease;
}
.calendar-toolbar__search-shell.is-open {
    width: min(280px, 32vw);
    opacity: 1;
    transform: translateX(0);
}
.calendar-toolbar__search input {
    width: 100%;
    min-width: 0;
}
.calendar-toolbar__view-select {
    display: inline-flex;
    align-items: center;
}
.calendar-toolbar__icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
    flex: 0 0 42px;
}
.calendar-toolbar__icon-btn .ui-icon {
    width: 18px;
    height: 18px;
}
.calendar-toolbar__icon-btn--prev .ui-icon {
    transform: rotate(180deg);
}
.calendar-toolbar__today {
    min-width: 72px;
}
.shows-tab-content.is-calendar-loading {
    opacity: .72;
    pointer-events: none;
}
.shows-tab-content.is-calendar-transition-next,
.shows-tab-content.is-calendar-transition-prev {
    animation-duration: .22s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}
.shows-tab-content.is-calendar-transition-next {
    animation-name: calendar-slide-in-next;
}
.shows-tab-content.is-calendar-transition-prev {
    animation-name: calendar-slide-in-prev;
}
@keyframes calendar-slide-in-next {
    from { opacity: .35; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes calendar-slide-in-prev {
    from { opacity: .35; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}
.calendar-month__weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.calendar-month__weekdays span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
.calendar-month__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.calendar-columns {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}
.calendar-day-card,
.calendar-column,
.calendar-day-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.calendar-day-card {
    min-height: 180px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calendar-column {
    min-height: 320px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calendar-day-panel {
    padding: 12px;
}
.calendar-day-card.is-outside {
    background: #fafafa;
    opacity: .72;
}
.calendar-day-card.is-today,
.calendar-column.is-today,
.calendar-day-panel {
    border-color: rgba(230, 36, 67, .35);
    box-shadow: 0 0 0 1px rgba(230, 36, 67, .08);
}
.calendar-day-card__header,
.calendar-column__header,
.calendar-day-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.calendar-day-card__header strong,
.calendar-column__header strong,
.calendar-day-panel__header strong {
    font-size: 14px;
}
.calendar-day-card.is-today .calendar-day-card__header strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e62443;
    color: #fff;
    flex: 0 0 30px;
}
.calendar-day-card__header span,
.calendar-column__header span,
.calendar-day-panel__header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.calendar-day-card__items,
.calendar-column__items,
.calendar-day-panel__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calendar-entry {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid #f0d4da;
    border-radius: 8px;
    background: #fff8f9;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.calendar-entry strong,
.calendar-entry small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-entry strong {
    font-size: 13px;
}
.calendar-entry small {
    color: var(--muted);
    font-size: 12px;
}
.calendar-entry:hover,
.calendar-entry:focus {
    border-color: #e62443;
    color: var(--text);
    outline: none;
}
.calendar-empty {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 12px;
    align-items: start;
    padding: 4px 2px 12px;
}
[data-jobs-kanban].kanban-board {
    align-items: stretch;
}
.kanban-status-filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(320px, calc(100vw - 36px));
    padding: 12px;
}
.kanban-status-filter fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}
.kanban-status-filter legend {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.kanban-status-filter fieldset > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.kanban-status-filter label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color .14s ease, background-color .14s ease, color .14s ease;
}
.kanban-status-filter label:has(input:checked) {
    border-color: rgba(230, 36, 67, .32);
    background: var(--brand-soft);
    color: var(--brand);
}
.kanban-status-filter input {
    width: 14px;
    height: 14px;
    accent-color: var(--brand);
}
.kanban-status-dropdown {
    position: relative;
    display: inline-flex;
}
.kanban-status-dropdown summary {
    list-style: none;
}
.kanban-status-dropdown summary::-webkit-details-marker {
    display: none;
}
.kanban-status-dropdown[open] summary {
    background: #fff5f6;
}
.kanban-status-dropdown .kanban-status-filter {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}
.kanban-view-icon {
    display: grid;
    grid-template-columns: repeat(3, 5px);
    gap: 3px;
    align-items: center;
    justify-content: center;
}
.kanban-view-icon span {
    display: block;
    width: 5px;
    height: 18px;
    border-radius: 2px;
    background: currentColor;
}
.kanban-view-icon span:nth-child(2) {
    height: 14px;
}
.kanban-view-icon span:nth-child(3) {
    height: 20px;
}
.kanban-column {
    position: relative;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 10px;
    overflow: visible;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.kanban-column::before {
    content: '';
    position: absolute;
    top: -1px;
    right: 12px;
    left: 12px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--line-strong);
}
.kanban-column[data-status="aprovado"]::before,
.kanban-column[data-status="opened"]::before,
.kanban-column[data-status="finalized"]::before { background: var(--ok); }
.kanban-column[data-status="negociacao"]::before,
.kanban-column[data-status="conversing"]::before { background: var(--warn); }
.kanban-column[data-status="reprovado"]::before,
.kanban-column[data-status="failed"]::before,
.kanban-column[data-status="cancelado"]::before { background: var(--danger); }
.kanban-column[data-status="unsubscribed"]::before,
.kanban-column[data-status="arquivado"]::before { background: #7a858d; }
.kanban-column[data-status="sent"]::before { background: #4679b8; }
.kanban-column.is-drag-over {
    transform: scale(1.025);
    border-color: var(--brand);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}
.kanban-column__header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 2px 2px 9px;
    border-bottom: 1px solid rgba(203, 210, 215, .8);
    background: var(--surface-muted);
    cursor: grab;
    user-select: none;
}
.kanban-column__header:active { cursor: grabbing; }
.kanban-column__header h2 {
    margin: 0;
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
}
.kanban-column__header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
}
.kanban-drop-message {
    display: none;
    position: absolute;
    inset: 58px 12px 12px;
    z-index: 2;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--brand);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: var(--brand);
    font-weight: 700;
    text-align: center;
    padding: 18px;
    pointer-events: none;
}
.kanban-column.is-drag-over .kanban-drop-message { display: flex; }
.kanban-column__cards {
    display: grid;
    gap: 8px;
    align-content: start;
}
.kanban-column__cards:empty::before {
    content: 'Nenhum item nesta coluna.';
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .48);
    font-size: 12px;
    text-align: center;
}
.kanban-column.is-column-dragging {
    opacity: .72;
}
.kanban-column.is-column-drop-target {
    border-color: #e62443;
    box-shadow: inset 0 0 0 2px rgba(230, 36, 67, .16);
}
.kanban-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px 42px 10px 10px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease, opacity .14s ease;
}
.kanban-card:not(.is-dragging):hover,
.kanban-card:not(.is-dragging):focus-within {
    border-color: var(--line-strong);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.kanban-card.is-dragging {
    opacity: .55;
    cursor: grabbing;
}
[data-jobs-kanban] .kanban-card {
    touch-action: none;
    user-select: none;
}
[data-jobs-kanban] .kanban-card.is-dragging {
    opacity: .22;
}
.job-kanban-drag-ghost {
    position: fixed;
    z-index: 10000;
    margin: 0;
    pointer-events: none;
    opacity: .96;
    cursor: grabbing;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .24);
    transform: rotate(.6deg) scale(1.015);
    transform-origin: center;
    transition: none;
}
.job-kanban-drag-ghost .job-action-menu__list,
.job-kanban-drag-ghost [data-tooltip]::before,
.job-kanban-drag-ghost [data-tooltip]::after {
    display: none !important;
}
.kanban-card.is-pending {
    opacity: .72;
    cursor: progress;
}
.kanban-card.is-pending::after {
    content: '';
    position: absolute;
    z-index: 8;
    right: 8px;
    bottom: 8px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(230, 36, 67, .22);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: loading-spin .7s linear infinite;
}
.kanban-card__title {
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0;
    display: block;
    width: 100%;
    margin: 0 0 5px;
    text-align: left;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
}
.kanban-card__title:hover,
.kanban-card__title:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}
.kanban-card dl {
    display: grid;
    gap: 3px;
    margin: 0;
}
.kanban-card dl > div {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 5px;
    align-items: baseline;
}
.kanban-card dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.kanban-card dd {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}
.kanban-card--completed {
    opacity: .6;
    background: #f5f6f7;
    border-color: #d8dee3;
    box-shadow: none;
}
.kanban-card--completed .kanban-card__title,
.kanban-card--completed dd {
    color: #73808a;
}
.kanban-card--completed dt {
    color: #9ba6ad;
}
.kanban-card--completed .kanban-card__user {
    filter: saturate(.45);
}
.kanban-card--completed:hover,
.kanban-card--completed:focus-within {
    opacity: .78;
}
.jobs-item--concluded {
    background: #eef9f0;
}
.jobs-item--canceled {
    background: #fff1f3;
}
.job-situation-badge--aberta {
    background: #eef3f7;
    color: #53606b;
}
.job-situation-badge--concluida {
    background: #dff6e4;
    color: #2c7a43;
}
.job-situation-badge--cancelada {
    background: #ffe1e5;
    color: #b0223b;
}
.kanban-card.jobs-item--concluded {
    background: #eef9f0;
    border-color: #cfe8d4;
    opacity: 1;
}
.kanban-card.jobs-item--concluded .kanban-card__title,
.kanban-card.jobs-item--concluded dd {
    color: #31583f;
}
.kanban-card.jobs-item--concluded dt {
    color: #5f8f6f;
}
.kanban-card.jobs-item--canceled {
    background: #fff1f3;
    border-color: #f5c7cf;
    opacity: 1;
}
.kanban-card.jobs-item--canceled .kanban-card__title,
.kanban-card.jobs-item--canceled dd {
    color: #7a3441;
}
.kanban-card.jobs-item--canceled dt {
    color: #b16d79;
}
.kanban-card.is-selected,
.table tr.is-selected td {
    background: #e9f3ff;
}
.kanban-card__actions {
    position: absolute;
    top: 0;
    right: -5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}
.job-action-menu {
    position: relative;
}
.kanban-card:has(.kanban-card__user:hover),
.kanban-card:has(.kanban-card__user:focus-visible) {
    z-index: 60;
}
.kanban-card:has(.job-action-menu__trigger:hover),
.kanban-card:has(.job-action-menu__trigger:focus-visible) {
    z-index: 70;
}
.kanban-card:has(.job-action-menu[open]) {
    z-index: 80;
}
.kanban-card:has(.job-action-menu[open]) .kanban-card__actions,
.kanban-card:has(.job-action-menu[open]) .job-action-menu,
.kanban-card:has(.job-action-menu[open]) .job-action-menu__list {
    z-index: 40;
}
.job-action-menu__trigger {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    color: #5d6775;
    font-size: 0;
    padding: 0;
    box-shadow: none;
}
.job-action-menu__dots {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.job-action-menu__dots span {
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: currentColor;
}
.job-action-menu__trigger:hover,
.job-action-menu__trigger:focus-visible {
    background: rgba(15, 23, 42, .045);
    color: #232a34;
}
.job-action-menu__list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 138px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    display: grid;
    gap: 4px;
    z-index: 35;
}
.job-action-menu__item {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    padding: 9px 10px;
    text-align: left;
    font: 600 13px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.job-action-menu__item:hover,
.job-action-menu__item:focus-visible {
    background: #f6f8fa;
}
.job-action-menu:not([open]) .job-action-menu__list {
    display: none;
}
.job-batch-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(230, 36, 67, .16);
    border-radius: 8px;
    background: #fff7f8;
}
.job-batch-toolbar[hidden] {
    display: none !important;
}
.job-batch-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.kanban-card__temperature {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(23, 33, 31, .14);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .92);
    z-index: 4;
}
.kanban-card__temperature--frio {
    background: #b7e8ff;
}
.kanban-card__temperature--morno {
    background: #ffe58a;
}
.kanban-card__temperature--quente {
    background: #e62443;
    border-color: rgba(120, 0, 18, .28);
}
.kanban-card__user {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #edf1ef;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    z-index: 3;
}
.kanban-card__user:hover,
.kanban-card__user:focus-visible {
    z-index: 50;
}
.kanban-card__user img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.kanban-card__user--mint { background: #dff5ea; color: #21684b; border-color: #b9e8cf; }
.kanban-card__user--sky { background: #dff0ff; color: #245c9f; border-color: #b9ddfb; }
.kanban-card__user--rose { background: #ffe2ea; color: #9d2444; border-color: #f7c1cf; }
.kanban-card__user--amber { background: #fff0c9; color: #805400; border-color: #f5d98e; }
.kanban-card__user--lavender { background: #eee7ff; color: #5d3fa3; border-color: #d8c9ff; }
.kanban-card__user--teal { background: #d9f3f3; color: #236a70; border-color: #b5e2e4; }
.kanban-card__user--peach { background: #ffe7d7; color: #99502a; border-color: #fac9aa; }
.kanban-card__user--slate { background: #e7ecef; color: #425462; border-color: #cdd7dd; }
.kanban-card__temperature[data-tooltip]::after,
.kanban-card__user[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    padding: 7px 9px;
    border-radius: 6px;
    background: #17211f;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.kanban-card__temperature[data-tooltip]::before,
.kanban-card__user[data-tooltip]::before {
    content: '';
    position: absolute;
    right: 10px;
    bottom: calc(100% + 2px);
    z-index: 21;
    border: 6px solid transparent;
    border-top-color: #17211f;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.kanban-card__temperature[data-tooltip]:hover::after,
.kanban-card__temperature[data-tooltip]:focus-visible::after,
.kanban-card__temperature[data-tooltip]:hover::before,
.kanban-card__temperature[data-tooltip]:focus-visible::before,
.kanban-card__user[data-tooltip]:hover::after,
.kanban-card__user[data-tooltip]:focus-visible::after,
.kanban-card__user[data-tooltip]:hover::before,
.kanban-card__user[data-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
}
.kanban-empty {
    grid-column: 1 / -1;
    min-height: 132px;
    margin: 0;
    padding: 32px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    background: var(--surface-subtle);
    text-align: center;
}
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .08);
    color: inherit;
    font-size: 12px;
    line-height: 1.3;
}
.tab-button.active .tab-count {
    background: rgba(255, 255, 255, .22);
}
.panel[data-collapsible] { padding: 0; overflow: hidden; }
.panel[data-collapsible] > h2 {
    margin: 0;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.panel[data-collapsible] > h2::after {
    content: '⌄';
    color: var(--brand);
    font-size: 22px;
    line-height: 1;
    transition: transform .16s ease;
}
.panel[data-collapsible][data-collapsed="false"] > h2::after { transform: rotate(180deg); }
.panel[data-collapsible] > h2:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}
.panel[data-collapsible][data-collapsed="true"] > :not(h2) { display: none; }
.panel[data-collapsible][data-collapsed="false"] > :not(h2) {
    margin-left: 20px;
    margin-right: 20px;
}
.panel[data-collapsible][data-collapsed="false"] > :last-child { margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.grid-span-full { grid-column: 1 / -1; }
.grid > p,
.grid-3 > p,
form > p { margin: 0 0 10px; }
.grid > p,
.grid-3 > p { margin-bottom: 0; }
.field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}
.field-pair p { margin: 0; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.form-block { margin-bottom: 10px; }
.form-fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}
.form-fieldset legend {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 0 6px;
}
.form-section {
    border-top: 1px solid var(--line);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
}
.form-section h3 {
    margin: 0 0 var(--space-3);
    font-size: 15px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select {
    min-height: var(--control-height);
}
input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }
input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: var(--focus-ring);
    outline: none;
}
input:disabled,
select:disabled,
textarea:disabled {
    background: var(--surface-muted);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 1;
}
.readonly-muted,
input[readonly].readonly-muted {
    background: #f1f3f2;
    color: var(--muted);
    border-color: #e6e9eb;
    cursor: not-allowed;
}
.participant-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}
.participant-picker-menu {
    margin-top: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.participant-picker-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--ink);
}
.participant-picker-menu summary::-webkit-details-marker {
    display: none;
}
.participant-picker-menu[open] summary {
    border-bottom: 1px solid var(--line);
}
.participant-picker-menu .participant-picker {
    padding: 10px;
    margin-top: 0;
}
.participant-picker label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}
.participant-picker input {
    width: auto;
    flex: 0 0 auto;
}
.participant-picker span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.participant-readonly {
    margin: 6px 0 0;
    padding: 9px 10px;
    border-radius: 6px;
}
.job-form-grid {
    grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
}
.job-form-grid__doc {
    max-width: 160px;
}
.job-form-grid__doc input {
    width: auto;
    min-width: 120px;
}
.job-form-grid__title {
    grid-column: auto;
}
.job-form-grid__title-row {
    position: relative;
    display: block;
}
.job-form-grid__title-row input {
    min-width: 0;
    padding-right: 42px;
}
.job-form-grid__copy-name,
.job-form-grid__copy-name.icon-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
    box-shadow: none;
    appearance: none;
}
.job-form-grid__copy-name .ui-icon {
    width: 16px;
    height: 16px;
}
.job-form-grid__copy-name:hover,
.job-form-grid__copy-name:focus-visible {
    color: var(--brand);
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}
.job-form-grid__copy-name.icon-btn:disabled {
    border: 0;
    background: transparent;
    color: var(--muted);
}
.jobs-list-toolbar {
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.jobs-list-toolbar .finance-filter-form {
    flex: 1 1 520px;
    margin-left: 0;
}
.jobs-list-toolbar .page-actions {
    margin-left: auto;
}
.jobs-summary-inline {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}
.jobs-list-toolbar--kanban {
    align-items: flex-end;
}
.jobs-list-toolbar--kanban .jobs-summary-inline {
    flex: 0 1 auto;
    margin: 0;
}
.jobs-list-toolbar--kanban .shows-search-form {
    margin: 0;
}
.jobs-list-toolbar--kanban .page-actions {
    margin: 0 0 0 auto;
}
.jobs-summary-inline .stat-card,
.jobs-kanban-summary .stat-card {
    min-width: 120px;
    padding: 10px 12px;
}
.jobs-summary-inline .stat-card span,
.jobs-kanban-summary .stat-card span {
    margin-bottom: 4px;
}
.jobs-summary-inline .stat-card strong,
.jobs-kanban-summary .stat-card strong {
    font-size: 18px;
}
.jobs-kanban-summary { margin: 0; }
.job-modal-actions {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.job-modal-actions__item {
    min-width: 118px;
    justify-content: center;
}
.modal-embed-page .job-modal-actions,
.modal-embed-page .modal-page-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    justify-content: flex-end;
    margin: var(--space-4) -18px -18px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 20px rgba(15, 23, 42, .06);
    backdrop-filter: blur(8px);
}
.modal-embed-page .modal-page-actions .btn,
.modal-embed-page .job-modal-actions .btn {
    min-width: 118px;
}
.job-production-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.job-production-grid .field-pair,
.job-production-grid .grid-span-full {
    grid-column: 1 / -1;
}
.variable-preview {
    display: block;
    margin-top: 8px;
    padding: 10px 11px;
    border: 1px solid #d6e5df;
    border-radius: 6px;
    background: #f4faf7;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
}
.variable-preview:empty { display: none; }
.variable-preview__label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.variable-preview__value {
    display: inline;
    color: var(--brand);
    font-weight: 700;
}
.budget-rich-text {
    margin-bottom: 12px;
}
fieldset.budget-rich-text {
    min-width: 0;
    margin: 20px 0;
    padding: 16px;
}
fieldset.budget-rich-text .budget-rich-text__actions {
    flex-wrap: wrap;
}
.budget-rich-text__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.budget-rich-preview {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow-x: auto;
}
.budget-rich-preview--editor {
    min-height: 120px;
    outline: none;
    cursor: text;
}
.budget-rich-preview--editor:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(230, 36, 67, 0.08);
}
.budget-rich-preview--editor:empty::before {
    content: attr(data-placeholder);
    color: var(--muted);
    pointer-events: none;
}
.budget-rich-preview p,
.budget-rich-preview div {
    margin: 0 0 10px;
}
.budget-rich-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 10px;
    font-size: 13px;
}
.budget-rich-preview th,
.budget-rich-preview td {
    padding: 6px 8px;
    border: 1px solid var(--line);
    vertical-align: top;
}
.budget-rich-preview th {
    background: #f8f8f8;
    font-weight: 700;
}
.field-status {
    display: block;
    min-height: 18px;
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
}
.field-status[data-status="success"] { color: #28794f; }
.field-status[data-status="error"] { color: #b42318; }
.finance-modal-status {
    grid-column: 1 / -1;
    min-height: 22px;
    margin: 0;
    font-weight: 700;
}
.client-field__controls {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}
.client-field__controls select { min-width: 0; }
.client-prefix-readonly {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 11px;
    background: #fafbfa;
    color: var(--muted);
    text-align: center;
}
.document-start-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: start;
    margin-bottom: 10px;
}
.document-start-field p {
    display: grid;
    grid-template-rows: auto 42px auto;
    margin: 0;
}
.document-start-field__skip {
    width: 42px;
    height: 42px;
    margin-top: calc(13px * 1.2 + 4px);
}
.repeat-list {
    display: grid;
    gap: 8px;
}
.repeat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
    align-items: center;
}
.repeat-row--with-default {
    grid-template-columns: minmax(0, 1fr) auto 42px 42px;
}
.repeat-row__default {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.repeat-row__default input {
    margin: 0;
}
.repeat-row--whatsapp-recipient {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 42px 42px;
}
.budget-payment {
    margin-top: 16px;
}
.budget-payment__status {
    align-self: end;
    min-height: 42px;
    margin: 0;
    padding-top: 20px;
}
.budget-payment__status.error-text {
    color: var(--danger);
}
.payment-installments-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.payment-installment-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) 42px 42px;
    gap: 8px;
    align-items: end;
}
.payment-installment-row p {
    margin: 0;
}
.finance-condition-panel {
    padding: 14px;
}
.finance-condition-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.finance-condition-panel__header > label {
    margin: 0;
}
.finance-condition-panel__summary {
    border: 0;
    background: transparent;
    color: #3b82f6;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}
.finance-condition-panel__editor {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}
.finance-condition-panel__editor[hidden],
.finance-condition-panel__controls [data-finance-condition-count-field][hidden],
.finance-condition-schedule[hidden] {
    display: none !important;
}
.finance-condition-panel__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: 12px;
}
.finance-condition-panel__controls p,
.finance-condition-schedule__row p {
    margin: 0;
}
.finance-condition-schedule {
    display: grid;
    gap: 10px;
}
.finance-condition-schedule__head,
.finance-condition-schedule__row {
    display: grid;
    grid-template-columns: 88px repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.finance-condition-schedule__head {
    color: var(--muted);
    font-weight: 700;
}
.finance-condition-schedule__head span:last-child {
    text-align: right;
}
.finance-condition-schedule__list {
    display: grid;
    gap: 10px;
}
.finance-condition-schedule__parcel {
    align-self: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--muted);
    padding-left: 2px;
}
.finance-condition-schedule__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}
.finance-condition-schedule__reset {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
}
.finance-condition-schedule__reset strong {
    color: #3b82f6;
}
.finance-condition-schedule__total {
    color: #66bb6a;
    font-size: 18px;
}
.combo-field {
    position: relative;
    display: block;
    min-width: 0;
}
.combo-menu {
    position: absolute;
    z-index: 15;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(20, 28, 32, .12);
}
.combo-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 11px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.combo-option:last-child { border-bottom: 0; }
.combo-option:hover, .combo-option:focus {
    background: #eef7f4;
    outline: none;
}
.combo-option.is-active {
    background: #fbecef;
}
.bank-combo-menu {
    display: block;
    z-index: 80;
}
.bank-combo-menu[hidden] {
    display: none;
}
.combo-option--other {
    color: var(--muted);
    font-weight: 600;
}
.song-project-select input {
    padding-right: 42px;
}
.song-project-select__toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}
.song-project-select__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    transform: translate(-50%, -35%);
}
.song-project-select__toggle:hover::after,
.song-project-select__toggle:focus-visible::after {
    border-top-color: var(--primary);
}
.combo-option--create {
    color: var(--primary);
    font-weight: 700;
}
.finance-tag-picker {
    display: grid;
    gap: 8px;
}
.finance-tag-picker .combo-field {
    width: 100%;
}
.finance-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
}
.finance-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #f0d4da;
    border-radius: 999px;
    background: #fff5f6;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.finance-tag__remove {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.finance-tag__remove:hover,
.finance-tag__remove:focus-visible {
    color: #e62443;
    outline: none;
}
.icon-btn {
    position: relative;
    width: var(--control-height);
    height: var(--control-height);
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 20px/1 Arial, Helvetica, sans-serif;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
a.icon-btn {
    text-decoration: none;
}
.icon-btn:disabled {
    border-color: var(--line);
    color: var(--muted);
    cursor: not-allowed;
    opacity: .65;
}
.icon-btn.danger {
    border-color: var(--danger);
    color: var(--danger);
}
.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.table-actions form {
    margin: 0;
}
.table-icon-btn {
    position: relative;
    width: 34px;
    height: 34px;
    font-size: 17px;
}
.icon-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    transform: translateX(-50%) translateY(4px);
    border-radius: 6px;
    padding: 6px 8px;
    background: var(--ink);
    color: #fff;
    font: 700 12px/1 Arial, Helvetica, sans-serif;
    opacity: 0;
    pointer-events: none;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    transition: opacity .16s ease, transform .16s ease;
}
.icon-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    z-index: 31;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.icon-btn[data-tooltip]:hover::after,
.icon-btn[data-tooltip]:focus-visible::after,
.icon-btn[data-tooltip]:hover::before,
.icon-btn[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.icon-btn[data-tooltip][data-tooltip-edge="right"]::after,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="right"]::after,
.badge[data-tooltip][data-tooltip-edge="right"]::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
}
.icon-btn[data-tooltip][data-tooltip-edge="right"]::before,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="right"]::before,
.badge[data-tooltip][data-tooltip-edge="right"]::before {
    left: auto;
    right: 10px;
    transform: translateY(4px);
}
.icon-btn[data-tooltip][data-tooltip-edge="left"]::after,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="left"]::after,
.badge[data-tooltip][data-tooltip-edge="left"]::after {
    left: 0;
    right: auto;
    transform: translateY(4px);
}
.icon-btn[data-tooltip][data-tooltip-edge="left"]::before,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="left"]::before,
.badge[data-tooltip][data-tooltip-edge="left"]::before {
    left: 10px;
    right: auto;
    transform: translateY(4px);
}
.icon-btn[data-tooltip][data-tooltip-edge="right"]:hover::after,
.icon-btn[data-tooltip][data-tooltip-edge="right"]:focus-visible::after,
.icon-btn[data-tooltip][data-tooltip-edge="right"]:hover::before,
.icon-btn[data-tooltip][data-tooltip-edge="right"]:focus-visible::before,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="right"]:hover::after,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="right"]:focus-visible::after,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="right"]:hover::before,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="right"]:focus-visible::before,
.badge[data-tooltip][data-tooltip-edge="right"]:hover::after,
.badge[data-tooltip][data-tooltip-edge="right"]:focus-visible::after,
.badge[data-tooltip][data-tooltip-edge="right"]:hover::before,
.badge[data-tooltip][data-tooltip-edge="right"]:focus-visible::before,
.icon-btn[data-tooltip][data-tooltip-edge="left"]:hover::after,
.icon-btn[data-tooltip][data-tooltip-edge="left"]:focus-visible::after,
.icon-btn[data-tooltip][data-tooltip-edge="left"]:hover::before,
.icon-btn[data-tooltip][data-tooltip-edge="left"]:focus-visible::before,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="left"]:hover::after,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="left"]:focus-visible::after,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="left"]:hover::before,
.finance-documents-indicator[data-tooltip][data-tooltip-edge="left"]:focus-visible::before,
.badge[data-tooltip][data-tooltip-edge="left"]:hover::after,
.badge[data-tooltip][data-tooltip-edge="left"]:focus-visible::after,
.badge[data-tooltip][data-tooltip-edge="left"]:hover::before,
.badge[data-tooltip][data-tooltip-edge="left"]:focus-visible::before {
    transform: translateY(0);
}
.finance-documents-indicator {
    position: relative;
    cursor: default;
}
.finance-documents-indicator[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    transform: translateX(-50%) translateY(4px);
    border-radius: 6px;
    padding: 7px 9px;
    background: var(--ink);
    color: #fff;
    font: 700 12px/1.2 Arial, Helvetica, sans-serif;
    opacity: 0;
    pointer-events: none;
    white-space: pre-line;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    overflow-wrap: anywhere;
    transition: opacity .16s ease, transform .16s ease;
}
.finance-documents-indicator[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    z-index: 31;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.finance-documents-indicator[data-tooltip]:hover::after,
.finance-documents-indicator[data-tooltip]:focus-visible::after,
.finance-documents-indicator[data-tooltip]:hover::before,
.finance-documents-indicator[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.badge[data-tooltip] {
    position: relative;
    cursor: default;
}
.badge[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    transform: translateX(-50%) translateY(4px);
    border-radius: 6px;
    padding: 6px 8px;
    background: var(--ink);
    color: #fff;
    font: 700 12px/1 Arial, Helvetica, sans-serif;
    opacity: 0;
    pointer-events: none;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    transition: opacity .16s ease, transform .16s ease;
}
.badge[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    z-index: 31;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}
.badge[data-tooltip]:hover::after,
.badge[data-tooltip]:focus-visible::after,
.badge[data-tooltip]:hover::before,
.badge[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.icon-btn[data-budget-finance-sync][data-tooltip]::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
}
.icon-btn[data-budget-finance-sync][data-tooltip]::before {
    left: auto;
    right: 14px;
    transform: translateY(4px);
}
.icon-btn[data-budget-finance-sync][data-tooltip]:hover::after,
.icon-btn[data-budget-finance-sync][data-tooltip]:focus-visible::after,
.icon-btn[data-budget-finance-sync][data-tooltip]:hover::before,
.icon-btn[data-budget-finance-sync][data-tooltip]:focus-visible::before {
    transform: translateY(0);
}
.inline-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.inline-copy > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.copy-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-color: var(--line);
    font-size: 0;
}
.copy-btn .ui-icon { width: 15px; height: 15px; }
.copy-btn:hover,
.copy-btn:focus {
    border-color: var(--brand);
    outline: none;
}
.table-icon-btn.copy-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}
.money-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.money-field > span {
    padding: 10px 11px;
    color: var(--muted);
    background: #fafbfa;
    border-right: 1px solid var(--line);
}
.money-field input {
    border: 0;
    border-radius: 0;
}
.money-field input:focus { outline: none; }
textarea { min-height: 84px; resize: vertical; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.page-actions { justify-content: flex-end; margin: 0 0 14px; }
.artist-switch-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 14px;
    flex-wrap: wrap;
}
.artist-switch-field {
    display: grid;
    gap: 4px;
    min-width: min(320px, 100%);
}
.artist-switch-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.artist-switch-field select {
    min-width: 260px;
}
.budget-actions .btn {
    min-width: 126px;
    min-height: 40px;
    justify-content: center;
}
.budget-actions__duplicate {
    margin-left: auto;
}
.btn {
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    min-height: var(--control-height);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { cursor: not-allowed; opacity: .58; filter: none; }
.btn.secondary { color: var(--brand); background: #fff; }
.btn.danger { border-color: var(--danger); background: var(--danger); }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.table th, .table td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    background: var(--surface-subtle);
}
.table tbody tr { transition: background-color .14s ease; }
.table--resizable { table-layout: auto; box-shadow: 0 0 0 1px var(--line); }
.table--resizable th { position: relative; }
.table--resizable.is-resizing-column,
.table--resizable.is-resizing-column * { cursor: col-resize !important; user-select: none; }
.column-resize-handle {
    position: absolute;
    top: 0;
    right: -5px;
    z-index: 2;
    width: 10px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
}
.column-resize-handle::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 4px;
    width: 2px;
    height: calc(100% - 16px);
    border-radius: 999px;
    background: rgba(35, 44, 49, .12);
}
.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after,
.table--resizable.is-resizing-column .column-resize-handle::after {
    background: var(--brand);
}
.table th[data-sortable-column] { cursor: pointer; user-select: none; }
.table th[data-sortable-column]::after { content: ''; color: var(--brand); font-weight: 400; }
.table th[data-sort-direction="asc"]::after { content: ' ^'; }
.table th[data-sort-direction="desc"]::after { content: ' v'; }
.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: #f8faf9; }
.clickable-row:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    background: #e8eceb;
    text-align: center;
}
.marketing-status-badge--accepted,
.marketing-status-badge--sent { background: #e7eef8; color: #365f91; }
.marketing-status-badge--delivered { background: #e4f3e9; color: #287c45; }
.marketing-status-badge--opened,
.marketing-status-badge--clicked { background: #dff1e6; color: #1f6b3a; }
.marketing-status-badge--failed,
.marketing-status-badge--bounced,
.marketing-status-badge--complained { background: #f4dfdf; color: var(--danger); }
.marketing-status-badge--unsubscribed { background: #e1e5e8; color: #4d5961; }
.badge.aprovado { background: #dff1e6; color: var(--ok); }
.badge.finalizado { background: #dde8f7; color: #245c9f; }
.badge.reprovado { background: #f4dfdf; color: var(--danger); }
.badge.negociacao { background: #f6ead7; color: var(--warn); }
.badge.cancelado { background: #f9d7d7; color: #a61b1b; }
.badge.arquivado { background: #e1e5e8; color: #4d5961; }
.badge.finance-status-pending { background: #f6ead7; color: var(--warn); }
.badge.finance-status-paid,
.badge.finance-status-received,
.badge.finance-status-transferred { background: #dff1e6; color: var(--ok); }
.badge.finance-status-overdue { background: #f4dfdf; color: var(--danger); }
.badge.finance-status-canceled { background: #e1e5e8; color: #4d5961; }
.badge.finance-type-income { background: #dff1e6; color: var(--ok); }
.badge.finance-type-payment { background: #f4dfdf; color: var(--danger); }
.badge.finance-type-transfer { background: #e1e5e8; color: #4d5961; }
.queue-health-badge--healthy { background: #dff1e6; color: var(--ok); }
.queue-health-badge--passed,
.queue-health-badge--stable { background: #dff1e6; color: var(--ok); }
.queue-health-badge--degraded { background: #f4dfdf; color: var(--danger); }
.queue-health-badge--failed,
.queue-health-badge--regressed { background: #f4dfdf; color: var(--danger); }
.queue-health-badge--collecting { background: #fff0c7; color: #765a00; }
.queue-health-badge--stale,
.queue-health-badge--missing { background: #f4dfdf; color: var(--danger); }
.queue-health-badge--informational { background: #e1e5e8; color: #4d5961; }
.performance-query-sample { max-width: 520px; white-space: normal; overflow-wrap: anywhere; }
.performance-query-sample code { white-space: normal; }
.queue-job-return {
    min-width: 220px;
    max-width: 440px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.queue-job-return span,
.queue-job-return small {
    display: block;
}
.queue-job-return small {
    margin-top: 3px;
    color: var(--muted);
}
.finance-value {
    font-weight: 700;
}
.marketing-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.marketing-artist-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}
.marketing-artist-card input {
    width: 16px;
    height: 16px;
    margin: 0;
}
.marketing-artist-card__media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f8f9;
    aspect-ratio: 16 / 9;
}
.marketing-artist-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.marketing-artist-card__empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.marketing-artist-card__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.marketing-artist-card__body small {
    color: var(--muted);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.marketing-artist-thumb {
    display: block;
    width: 120px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.marketing-asset-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto;
    gap: 8px;
    align-items: center;
}
.marketing-send-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 1fr);
    gap: 16px;
    align-items: stretch;
}
.marketing-send-layout__form {
    min-width: 0;
}
.marketing-preview {
    display: grid;
    gap: 10px;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.marketing-preview__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.marketing-preview__header h3 {
    margin: 0;
}
.marketing-preview__status {
    min-height: 20px;
    color: var(--muted);
    font-size: 13px;
}
.marketing-preview__status[data-state='error'] {
    color: var(--danger);
}
.marketing-preview__frame {
    border: 1px solid var(--line);
    width: 100%;
    min-height: 500px;
    background: #fff;
}
.songs-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 14px;
    margin-bottom: 14px;
}
.songs-form-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.songs-form-fields > p,
.songs-form-fields > .grid-span-full {
    margin: 0;
}
.songs-form-fields .grid-span-full {
    grid-column: auto;
}
.songs-links-grid {
    margin-bottom: 14px;
}
.songs-links-grid > p {
    margin: 0;
}
.songs-project-panel {
    margin-bottom: 14px;
}
.songs-project-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.songs-project-panel__cover,
.songs-project-panel__links {
    margin: 0;
}
.songs-media-panel,
.songs-player-panel,
.songs-audio-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.songs-video-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}
.songs-video-panel .songs-media-panel__bar > div {
    display: grid;
    gap: 3px;
}
.songs-video-panel .songs-media-panel__bar small {
    display: block;
}
.songs-video-panel__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.song-video-meta {
    margin-top: 10px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}
.songs-video-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.songs-video-fields > p {
    margin: 0;
}
.songs-video-dropzone {
    min-height: 132px;
}
@media (max-width: 720px) {
    .songs-video-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}
.songs-media-panel__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.songs-media-panel__bar label {
    margin: 0;
}
.songs-audio-panel__bar {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.songs-audio-panel__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}
.songs-audio-panel__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    flex-wrap: nowrap;
    max-width: 100%;
    text-align: left;
}
.songs-audio-panel__toggle-label {
    white-space: nowrap;
    font-weight: 700;
}
.songs-audio-panel__toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.songs-audio-panel__switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 72px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #d7dedb;
    transition: background .16s ease, border-color .16s ease;
}
.songs-audio-panel__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .24);
    transition: transform .16s ease;
}
.songs-audio-panel__switch small {
    position: absolute;
    top: 50%;
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    transform: translateY(-50%);
    transition: opacity .16s ease, color .16s ease;
}
.songs-audio-panel__switch-off {
    right: 10px;
    color: #6b7280;
    opacity: 1;
}
.songs-audio-panel__switch-on {
    left: 10px;
    color: #fff;
    opacity: 0;
}
.songs-audio-panel__toggle input:checked + .songs-audio-panel__switch {
    border-color: var(--brand);
    background: var(--brand);
}
.songs-audio-panel__toggle input:checked + .songs-audio-panel__switch::after {
    transform: translateX(42px);
}
.songs-audio-panel__toggle input:checked + .songs-audio-panel__switch .songs-audio-panel__switch-off {
    opacity: 0;
}
.songs-audio-panel__toggle input:checked + .songs-audio-panel__switch .songs-audio-panel__switch-on {
    opacity: 1;
}
.songs-audio-panel__toggle input:focus-visible + .songs-audio-panel__switch {
    box-shadow: 0 0 0 3px rgba(230, 36, 67, .18);
}
.songs-public-links__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.songs-public-links__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.songs-public-links__toolbar input {
    flex: 1 1 260px;
}
.songs-cover-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    display: block;
    background: #f7f8f9;
}
.songs-cover-preview--empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}
.songs-upload-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #fafbfa;
}
.songs-upload-tile::after {
    content: attr(data-upload-label);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(18, 24, 28, .72);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: opacity .16s ease;
    pointer-events: none;
}
.songs-upload-tile:hover::after,
.songs-upload-tile:focus-within::after {
    opacity: 1;
}
.songs-upload-tile input[type="file"],
.songs-upload-band input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    color: transparent;
    font-size: 0;
    cursor: pointer;
}
.songs-list-title {
    display: inline-grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    max-width: 100%;
}
.songs-list-title strong {
    min-width: 0;
}
.songs-list-text {
    display: grid;
    min-width: 0;
}
.songs-list-artists {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.songs-list-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}
.songs-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.songs-audio-dropzone {
    min-height: 0;
}
.songs-upload-band {
    position: relative;
    width: 100%;
    min-height: 180px;
    aspect-ratio: auto;
    padding: 0;
    overflow: hidden;
}
.songs-upload-band.is-hidden {
    display: none;
}
.songs-audio-band-copy {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 22px;
    text-align: center;
    gap: 6px;
}
.songs-audio-band-copy strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.35;
}
.songs-audio-band-copy small {
    color: var(--muted);
    font-size: 12px;
}
.songs-audio-panel .song-wave-player {
    margin-top: 0;
}
.songs-upload-tile.is-uploading,
.songs-audio-dropzone.is-uploading {
    position: relative;
    opacity: .9;
}
.songs-upload-tile.is-uploading::after {
    content: 'Enviando...';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.78);
    color: var(--text);
    font-weight: 700;
    opacity: 1;
}
.songs-audio-dropzone.is-uploading::after {
    content: 'Enviando áudio...';
}
.song-wave-player {
    display: grid;
    gap: 10px;
}
.song-wave-player.is-hidden {
    display: none;
}
.song-wave-player__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.song-wave-player__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.song-wave-player__actions > .btn,
.song-wave-player__actions > .icon-btn {
    min-height: 40px;
    height: 40px;
}
.song-wave-player__download {
    width: 40px;
    flex: 0 0 40px;
}
.song-wave-player__time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.song-wave-player__canvas {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f3d6dd;
    display: block;
    cursor: pointer;
    touch-action: none;
}
.song-wave-player__status {
    color: var(--muted);
    font-size: 13px;
}
.song-wave-player__status[data-state="error"] {
    color: var(--danger);
}
.song-audio-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}
.song-audio-meta span {
    white-space: normal;
}
.songs-public-link-action {
    font-size: 18px;
    line-height: 1;
}
.song-wave-player.is-empty .song-wave-player__canvas {
    opacity: .75;
}
.song-wave-player.is-seeking .song-wave-player__canvas {
    cursor: ew-resize;
}
.songs-modal {
    --songs-modal-footer-space: 108px;
    width: min(1120px, calc(100% - 28px));
    max-width: 1120px;
    height: min(90vh, 920px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}
.songs-modal .form-modal__bar {
    margin-bottom: 0;
}
.songs-modal form[data-song-form] {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
}
.songs-modal__body {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    padding-top: 14px;
    padding-right: 4px;
    padding-bottom: var(--songs-modal-footer-space);
}
.songs-modal__footer {
    justify-content: flex-end;
    margin: 0 -18px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}
.songs-modal__footer .btn,
.finance-actions .btn {
    min-width: 118px;
}
.songs-submission-toolbar {
    margin-bottom: 18px;
}
.songs-submission-link-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
.songs-submission-link-panel__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}
.songs-submission-link-panel__actions input[readonly] {
    min-width: 0;
}
@media (max-width: 920px) {
    .marketing-send-layout {
        grid-template-columns: 1fr;
    }
    .marketing-preview__frame {
        min-height: 440px;
    }
    .finance-list-toolbar {
        align-items: flex-end;
        flex-wrap: wrap;
    }
    .finance-list-toolbar__right {
        width: 100%;
        flex-wrap: wrap;
    }
    .finance-filter-form {
        margin-left: 0;
        width: 100%;
    }
    .finance-bulk-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }
    .finance-bulk-toolbar__actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .finance-bulk-toolbar__actions select,
    .finance-bulk-toolbar__actions .btn {
        flex: 1 1 180px;
    }
    .songs-media-grid {
        grid-template-columns: 1fr;
    }
    .songs-project-panel__grid {
        grid-template-columns: 1fr;
    }
    .songs-form-fields {
        grid-template-columns: 1fr;
    }
    .songs-modal {
        height: min(92vh, 920px);
    }
    .songs-submission-link-panel__actions {
        grid-template-columns: 1fr auto auto;
    }
}
@media (max-width: 1100px) {
    .finance-list-toolbar {
        align-items: flex-end;
        flex-wrap: wrap;
    }
    .finance-list-toolbar .finance-bulk-toolbar,
    .finance-list-toolbar__right {
        flex: 1 1 100%;
        width: 100%;
    }
    .finance-list-toolbar__right {
        margin-left: 0;
    }
    .finance-list-toolbar .finance-filter-form {
        flex: 1 1 auto;
    }
    .finance-list-toolbar .page-actions { margin-left: auto; }
    .finance-bulk-toolbar,
    .finance-bulk-toolbar__actions { flex-wrap: wrap; }
}
.finance-value-income {
    color: var(--ok);
}
.finance-value-payment {
    color: var(--danger);
}
.finance-value-transfer {
    color: #4d5961;
}
.finance-modal {
    --finance-modal-footer-space: 108px;
    width: min(900px, calc(100% - 28px));
    max-width: 900px;
    height: min(92vh, 920px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}
.finance-modal .form-modal__bar {
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    z-index: 2;
}
.finance-modal #finance-item-form {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
}
.finance-modal__body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-top: 14px;
    padding-right: 4px;
    padding-bottom: var(--finance-modal-footer-space);
}
.finance-modal .documents-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.grid > .finance-field-block {
    margin-bottom: 0;
}
.finance-actions {
    justify-content: flex-end;
    margin: 0 -18px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

@media (max-width: 640px) {
    .modal-embed-main {
        padding: 14px;
    }
    .modal-embed-main .item-editor-form {
        gap: 12px;
    }
    .modal-embed-main #job-form,
    .modal-embed-main .show-editor-form,
    .modal-embed-main .advertising-editor-form {
        margin-bottom: 12px;
    }
    .modal-embed-page .job-modal-actions,
    .modal-embed-page .modal-page-actions {
        margin-right: -14px;
        margin-bottom: -14px;
        margin-left: -14px;
        padding: 12px 14px;
    }
    .modal-embed-page .job-modal-actions .btn,
    .modal-embed-page .modal-page-actions .btn,
    .songs-modal__footer .btn,
    .finance-actions .btn {
        flex: 1 1 120px;
        min-width: 0;
    }
    .songs-modal__footer,
    .finance-actions {
        padding: 12px 14px;
    }
}
.finance-accounts-panel .finance-account-form {
    margin-bottom: 14px;
}
.finance-account-list {
    display: grid;
    gap: 8px;
}
.finance-account-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.finance-account-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}
.finance-account-item.is-inactive {
    opacity: .68;
}
.finance-email-history {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.finance-email-history h3 {
    margin: 0;
    font-size: 15px;
}
.finance-email-history__item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}
.finance-email-history__item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}
.finance-email-history__item p {
    margin: 8px 0 0;
}
.finance-month-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.finance-month-bar strong {
    font-size: 16px;
    text-align: center;
}
.finance-month-bar__summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
.table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.table-wrapper::-webkit-scrollbar { height: 8px; }
.table-wrapper::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line-strong); }
.table-wrapper::-webkit-scrollbar-track { background: transparent; }
.finance-table-wrapper {
    min-width: 0;
    overflow-x: clip;
}
[data-live-search-region="finance-entries"] {
    min-width: 0;
}
.finance-month-bar__summary small,
.finance-summary .stat-card small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.finance-summary .stat-card small {
    display: block;
    margin-top: 4px;
}
.finance-summary .finance-summary__value--positive {
    color: var(--ok);
}
.finance-summary .finance-summary__value--negative {
    color: var(--danger);
}
.finance-due-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.finance-due-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid #e0aa45;
    border-radius: 8px;
    background: #fff;
}
.finance-due-card--overdue { border-top-color: var(--danger); }
.finance-due-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}
.finance-due-card__header h2 {
    margin: 0 0 3px;
    font-size: 16px;
}
.finance-due-card__header small,
.finance-due-card__summary span,
.finance-due-item__copy small,
.finance-due-card__remaining { color: var(--muted); }
.finance-due-card__summary {
    flex: 0 0 auto;
    text-align: right;
}
.finance-due-card__summary strong,
.finance-due-card__summary span { display: block; }
.finance-due-card__summary strong { color: var(--danger); font-size: 16px; }
.finance-due-card__summary span { margin-top: 2px; font-size: 12px; }
.finance-due-list { display: grid; }
.finance-due-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
.finance-due-item:hover,
.finance-due-item:focus-visible { background: var(--surface-subtle); }
.finance-due-item__date { color: var(--muted); font-size: 12px; font-weight: 700; }
.finance-due-item__copy { display: grid; min-width: 0; gap: 2px; }
.finance-due-item__copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finance-due-item__copy small { font-size: 11px; }
.finance-due-item__amount { color: var(--danger); font-size: 13px; white-space: nowrap; }
.finance-due-card__remaining {
    display: block;
    padding: 9px 14px;
    font-size: 11px;
    text-align: center;
}
.finance-due-card__empty {
    margin: 0;
    padding: 22px 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0 14px;
    padding: 10px 12px;
    min-height: 60px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-subtle);
}
.pagination-lead {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination-size {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination-size label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}
.pagination-size select {
    min-width: 90px;
    height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}
.pagination-inline-filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}
.pagination-inline-filters label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.pagination-inline-filters select {
    min-width: 150px;
    height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}
.pagination-summary {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pagination-links {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}
.pagination-links .btn {
    min-height: 38px;
    padding: 8px 12px;
}
.pagination-page {
    min-width: 92px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
[data-live-search-region] {
    position: relative;
    transition: opacity .14s ease;
}
[data-live-search-region].is-updating {
    opacity: .74;
    pointer-events: none;
}
[data-live-search-region].is-updating::after {
    content: '';
    position: absolute;
    z-index: 6;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, var(--brand) 42%, transparent 84%);
    background-size: 220% 100%;
    animation: live-region-progress .9s linear infinite;
}
@keyframes live-region-progress { to { background-position: -220% 0; } }
.pagination-links .clients-search-form,
.pagination-links .shows-search-form {
    margin: 0;
    max-width: none;
    flex: 0 0 auto;
}
.pagination-links .collapsible-search-form__control {
    width: auto;
}
.pagination-links .collapsible-search-form__toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 6px;
}
.pagination-links .collapsible-search-form__shell input {
    height: 38px;
}
.btn.disabled {
    opacity: .45;
    pointer-events: none;
}

.table tbody tr > td.muted:only-child {
    height: 132px;
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--surface-subtle);
    font-size: 14px;
}
.table tbody tr > td.muted:only-child::first-line {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 640px) {
    .pagination-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        padding: 10px;
    }
    .pagination-lead,
    .pagination-size,
    .pagination-inline-filters {
        width: 100%;
    }
    .pagination-size label,
    .pagination-size select,
    .pagination-inline-filters label,
    .pagination-inline-filters select {
        min-width: 0;
        width: 100%;
    }
    .pagination-summary {
        text-align: center;
    }
    .pagination-links {
        width: 100%;
        justify-content: space-between;
    }
    .pagination-links .btn {
        flex: 1 1 0;
    }
    .pagination-page {
        flex: 0 0 auto;
    }
}
.notice {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #bcdcc7;
    border-left: 4px solid var(--ok);
    border-radius: 6px;
    margin-bottom: 16px;
    background: #e8f5ec;
    color: #1f6339;
}
.notice > span { min-width: 0; }
.notice__dismiss {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    margin: -5px -7px -5px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.notice__dismiss:hover { background: rgba(0, 0, 0, .06); }
.artist-tab-panel .notice { margin: 14px 0 16px; }
.notice.error,
.error {
    border-color: #efcaca;
    border-left-color: var(--danger);
    background: #fae8e8;
    color: #8d2929;
}
.app-feedback-region {
    position: fixed;
    z-index: 2000;
    top: 18px;
    right: 18px;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}
.app-toast {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 10px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
    color: var(--ink);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(-8px);
    transition: opacity .16s ease, transform .16s ease;
}
.app-toast.is-visible { opacity: 1; transform: translateY(0); }
.app-toast.is-leaving { opacity: 0; transform: translateX(12px); }
.app-toast__indicator { width: 8px; height: 8px; border-radius: 50%; background: #4679b8; }
.app-toast--success .app-toast__indicator { background: var(--ok); }
.app-toast--error .app-toast__indicator { background: var(--danger); }
.app-toast--warning .app-toast__indicator { background: var(--warn); }
.app-toast__message { min-width: 0; font-size: 13px; line-height: 1.4; }
.app-toast__close {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 20px;
}
.app-toast__close:hover { background: var(--surface-muted); color: var(--ink); }
.app-confirm-shell {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: none;
    place-items: center;
    padding: 18px;
}
.app-confirm-shell.is-open { display: grid; }
.app-confirm-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 29, .56); }
.app-confirm-dialog {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    width: min(460px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
}
.app-confirm-dialog__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #fae8e8;
    color: var(--danger);
    font-weight: 800;
}
.app-confirm-dialog__content h2 { margin: 0 0 6px; font-size: 19px; }
.app-confirm-dialog__content p { margin: 0; color: var(--muted); font-size: 14px; }
.app-confirm-dialog__actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}
.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login .panel { width: min(420px, 100%); }
.login.public-brand-page {
    place-items: center;
    padding: 24px 16px;
}
.login-card {
    margin: 0 auto;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(33, 18, 23, .18);
}
.login-card h1 {
    margin-top: 0;
}
.login-card .btn {
    width: 100%;
    justify-content: center;
    background: #e62443;
    border-color: #e62443;
}
.login-card a {
    color: #e62443;
}
.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}
.checkbox-field input {
    margin: 0;
}
.login-card .checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.login-card .checkbox-field input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(230, 36, 67, .45);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(20, 28, 32, .08);
    position: relative;
    cursor: pointer;
    flex: 0 0 18px;
}
.login-card .checkbox-field input[type="checkbox"]::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform .14s ease;
}
.login-card .checkbox-field input[type="checkbox"]:checked {
    background: #e62443;
    border-color: #e62443;
}
.login-card .checkbox-field input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}
.login-card .checkbox-field input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(230, 36, 67, .22);
    outline-offset: 2px;
}
.login-card .checkbox-field span {
    display: inline-block;
    line-height: 1.2;
}
.login-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: #e62443;
}
.login-loading-overlay .page-loading {
    width: min(420px, calc(100% - 32px));
    min-height: 220px;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
}
.legal-page {
    min-height: 100vh;
    padding: 28px;
    background: var(--bg);
}
.legal-content {
    max-width: 920px;
    margin: 0 auto;
    line-height: 1.65;
}
.legal-content h1 { margin-bottom: 4px; }
.legal-content h2 { margin-top: 24px; }
.section-lock { opacity: .58; }
.permission-box { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fafbfa; }
.permission-box__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}
.permission-box__head h2 {
    margin: 0 0 4px;
    font-size: 16px;
}
.permission-box__head p { margin: 0; }
.permission-box__head--sub {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.permission-tree {
    display: grid;
    gap: 10px;
}
.permission-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.permission-group > .permission-option {
    border: 0;
    border-radius: 0;
}
.permission-children {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 10px 10px 36px;
    background: #fff;
}
.permission-option {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}
.permission-option input {
    width: auto;
    flex: 0 0 auto;
}
.permission-option span {
    font-size: 14px;
    font-weight: 700;
}
.permission-option--child {
    background: #fafbfa;
}
.permission-option--child span {
    font-weight: 400;
}
.rule-list {
    display: grid;
    gap: 14px;
}
.rule-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fafbfa;
}
.inline-form { margin: 0 0 16px; }
.meta-stats-notice { margin-top: 16px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 12px;
}
.finance-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stats-grid--compact .stat-card strong { font-size: 18px; }
.stat-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfa;
    padding: 14px;
}
.stat-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}
.stat-card strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 20px;
}
.dashboard-hero {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    margin-bottom: 18px;
}
.dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
.dashboard-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dashboard-kpi {
    background: #fff;
}
.dashboard-kpi small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.dashboard-budget-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.dashboard-budget-fieldset {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}
.dashboard-budget-fieldset legend {
    padding: 0 8px;
    color: var(--brand);
    font-weight: 800;
}
.dashboard-budget-fieldset .dashboard-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}
.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.dashboard-status-card {
    background: #fff;
    border-left: 4px solid var(--brand);
}
.dashboard-status-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.dashboard-status-card em {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
}
.dashboard-status-card--aprovado { border-left-color: var(--ok); }
.dashboard-status-card--finalizado { border-left-color: #245c9f; }
.dashboard-status-card--reprovado { border-left-color: var(--danger); }
.dashboard-status-card--negociacao { border-left-color: var(--warn); }
.dashboard-status-card--cancelado { border-left-color: #a61b1b; }
.dashboard-total-line {
    margin: 14px 0 0;
    font-size: 13px;
}
.dashboard-total-line strong { color: var(--ink); }
.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.dashboard-panel {
    min-width: 0;
    overflow: hidden;
}
.dashboard-panel h2 {
    min-width: 0;
}
.dashboard-table-scroll {
    min-width: 0;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard-panel--marketing-users .dashboard-table-scroll {
    max-height: 360px;
}
.dashboard-panel--marketing-users .table {
    margin: 0;
}
.dashboard-panel--marketing-users td,
.dashboard-panel--marketing-users th {
    white-space: nowrap;
}
.dashboard-panel--states .dashboard-bar-label {
    min-width: 0;
}
.dashboard-panel--states .dashboard-bar-label span,
.dashboard-panel--states .dashboard-bar-label strong {
    min-width: 0;
}
.dashboard-panel--states .dashboard-bar-label span {
    overflow-wrap: anywhere;
}
.birthday-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.birthday-kpi small {
    color: var(--muted);
    font-size: 12px;
}
.birthday-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.birthday-panel h2 {
    margin-bottom: 14px;
}
.birthday-list {
    display: grid;
    gap: 10px;
}
.birthday-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 3px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}
.birthday-card:hover,
.birthday-card:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.birthday-card__date {
    grid-row: span 3;
    min-width: 68px;
    padding: 7px 8px;
    border-radius: 6px;
    background: #eef7f5;
    color: #1f6b62;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.birthday-card strong {
    min-width: 0;
    overflow-wrap: anywhere;
}
.birthday-card span:not(.birthday-card__date),
.birthday-card small {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.birthday-card small {
    color: var(--brand);
    font-weight: 700;
}
.birthday-empty {
    margin: 0;
    padding: 10px 0;
}
.birthday-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.birthday-month {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}
.birthday-month h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 15px;
}
.birthday-month h3 span {
    min-width: 28px;
    border-radius: 999px;
    padding: 3px 8px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    text-align: center;
}
.dashboard-bars {
    display: grid;
    gap: 12px;
}
.dashboard-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}
.dashboard-bar-label span {
    color: var(--muted);
}
.dashboard-bar {
    height: 12px;
    border-radius: 999px;
    background: #edf1ef;
    overflow: hidden;
}
.dashboard-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}
.dashboard-bar--gold span {
    background: var(--brand-2);
}
.section-subtitle {
    margin: 22px 0 12px;
    font-size: 16px;
}
.insights-panel {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4px 0 18px;
    margin: 18px 0;
}
.insights-panel__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}
.insights-panel__head label {
    width: 160px;
    margin: 0;
}
.document-upload-form {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}
.document-upload-target {
    display: grid;
    gap: 3px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    min-width: 0;
}
.document-upload-target__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.document-upload-target__label {
    font-size: 13px;
    font-weight: 700;
}
.document-upload-target__path,
.document-upload-target small {
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.document-upload-target small {
    color: var(--muted);
}
.document-upload-target__info {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--muted);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: help;
}
.document-upload-target__tooltip {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    width: min(340px, 100%);
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 6px;
    background: #24272c;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 4px 16px #0002;
}
.document-upload-target__info:hover + .document-upload-target__tooltip,
.document-upload-target__info:focus + .document-upload-target__tooltip,
.document-upload-target__tooltip:hover {
    display: block;
}
.managed-upload-tray {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}
.managed-upload-tray__shell {
    pointer-events: auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    height: min(70vh, 560px);
    max-height: min(70vh, 560px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 40px rgba(18, 34, 29, .14);
}
.managed-upload-tray__shell--minimized {
    grid-template-rows: auto;
    gap: 0;
    height: auto;
    max-height: none;
}
.managed-upload-tray__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.managed-upload-tray__title strong,
.managed-upload-tray__title small {
    display: block;
}
.managed-upload-tray__title strong {
    font-size: 14px;
}
.managed-upload-tray__title small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}
.managed-upload-tray__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.managed-upload-tray__icon-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}
.managed-upload-tray__icon-button .ui-icon {
    width: 16px;
    height: 16px;
}
.managed-upload-tray__body {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    min-height: 0;
    max-height: 100%;
    pointer-events: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
}
.managed-upload-tray__body[hidden] {
    display: none;
}
.managed-upload-tray[hidden] {
    display: none;
}
.managed-upload-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.managed-upload-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.managed-upload-card strong {
    display: block;
    font-size: 13px;
}
.managed-upload-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.managed-upload-card__status {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
}
.managed-upload-card__status[data-status="error"] {
    color: var(--danger);
}
.managed-upload-card__status[data-status="success"] {
    color: var(--ok);
}
.managed-upload-card progress {
    width: 100%;
    height: 8px;
    accent-color: var(--brand);
}
.managed-upload-card__dismiss {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.managed-upload-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.managed-upload-card__retry {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: var(--brand);
    cursor: pointer;
}
.managed-upload-card__retry:hover,
.managed-upload-card__retry:focus-visible,
.managed-upload-tray__retry-all:hover,
.managed-upload-tray__retry-all:focus-visible {
    background: rgba(230, 36, 67, .08);
}
.managed-upload-card__retry .ui-icon {
    width: 16px;
    height: 16px;
}
.managed-upload-card__cancel {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    color: var(--danger);
    font-size: 20px;
}
.managed-upload-card__cancel:hover,
.managed-upload-card__cancel:focus-visible {
    background: rgba(230, 36, 67, .08);
}
.document-dropzone {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 132px;
    border: 1px dashed var(--brand);
    border-radius: 8px;
    padding: 22px;
    background: #f8fbfa;
    color: var(--ink);
    cursor: pointer;
    text-align: center;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.documents-panel__status {
    margin: 0 0 8px;
    font-weight: 700;
}
.document-dropzone input {
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    opacity: 0;
}
.document-dropzone span {
    font-weight: 800;
}
.document-dropzone small {
    color: var(--muted);
}
.document-dropzone__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.document-upload-progress {
    width: min(320px, 100%);
    height: 8px;
    accent-color: var(--brand);
}
.document-dropzone.is-dragging {
    border-color: var(--ok);
    background: #eef8f2;
    box-shadow: inset 0 0 0 1px var(--ok);
}
.document-dropzone.is-uploading {
    border-color: var(--brand);
    background: #eef7f4;
    cursor: wait;
    opacity: .8;
    pointer-events: none;
}
.document-dropzone.is-uploading::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid rgba(15, 111, 96, .18);
    border-top-color: var(--brand);
    border-radius: 999px;
    animation: spin .8s linear infinite;
}
.document-list {
    display: grid;
    gap: 10px;
}
.document-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}
.document-item__type {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #edf1ef;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}
.document-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.document-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.document-actions .icon-btn[data-tooltip]::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
}
.document-actions .icon-btn[data-tooltip]::before {
    left: auto;
    right: 10px;
    transform: translateY(4px);
}
.document-actions .icon-btn[data-tooltip]:hover::after,
.document-actions .icon-btn[data-tooltip]:focus-visible::after,
.document-actions .icon-btn[data-tooltip]:hover::before,
.document-actions .icon-btn[data-tooltip]:focus-visible::before {
    transform: translateY(0);
}
.document-actions form {
    margin: 0;
}
.job-documents-toolbar {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
}
.job-documents-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.job-documents-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.job-documents-breadcrumbs-row {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.job-documents-breadcrumb {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}
.job-documents-breadcrumb-download {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
}
.job-documents-create-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.job-documents-create-form[hidden] {
    display: none;
}
.job-documents-sync-form {
    margin: 0;
}
.job-document-folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}
.job-document-folder-card-shell {
    position: relative;
}
.job-document-folder-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    padding-right: 40px;
    background: #fff;
    width: 100%;
}
.job-document-folder-card__download {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 999px;
}
.job-document-folder-card__icon {
    display: inline-grid;
    place-items: center;
    color: var(--brand);
}
.job-document-folder-card__content {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.job-document-folder-card strong {
    font-size: 13px;
}
.job-document-folder-card small {
    color: var(--muted);
    font-size: 11px;
}
.insights-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.insights-columns h4 {
    margin: 0 0 8px;
    font-size: 14px;
}
.insights-demographic--age { order: 10; }
.insights-demographic--gender { order: 11; }
.insights-demographic {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
}
.ranking-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.ranking-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.ranking-row:last-child { border-bottom: 0; }
.ranking-row span { overflow-wrap: anywhere; }
.ranking-row__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ranking-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ranking-dot, #cbd5e1);
    flex: 0 0 auto;
}
.ranking-row strong small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.insights-gender-card {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(180px, 1fr);
    gap: 24px;
    height: 100%;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}
.insights-gender-card__chart-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.insights-gender-card__chart {
    --gender-chart: conic-gradient(#e5e7eb 0deg 360deg);
    position: relative;
    width: 280px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--gender-chart);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.insights-gender-card__badge {
    position: absolute;
    padding: 10px 18px;
    border-radius: 12px;
    background: rgba(99, 102, 108, 0.72);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}
.insights-gender-card__stats {
    display: grid;
    gap: 18px;
    align-content: center;
}
.insights-gender-card__stat {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}
.insights-gender-card__stat-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--ranking-dot, #cbd5e1);
}
.insights-gender-card__stat-copy {
    display: grid;
    gap: 2px;
}
.insights-gender-card__stat-copy strong {
    font-size: clamp(34px, 4vw, 54px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: 0;
}
.insights-gender-card__stat-copy small {
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
}
@media (max-width: 900px) {
    .insights-gender-card {
        grid-template-columns: 1fr;
    }
    .insights-gender-card__chart {
        width: min(280px, 72vw);
    }
    .insights-gender-card__chart-wrap {
        min-height: auto;
        padding: 12px 0;
    }
    .insights-gender-card__stats {
        gap: 12px;
    }
    .insights-gender-card__stat-copy strong {
        font-size: 34px;
    }
    .insights-gender-card__stat-copy small {
        font-size: 16px;
    }
}
.media-list {
    display: grid;
    gap: 12px;
}
.media-list--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.media-list--portrait {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
}
.comment-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 12px 0 20px;
}
.comment-analysis-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}
.comment-analysis-card h4 {
    margin: 0 0 8px;
}
.wordcloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    line-height: 1.1;
}
.wordcloud span {
    color: #17211f;
    font-weight: 800;
}
.wordcloud small {
    color: var(--muted);
    font-size: .58em;
    font-weight: 700;
}
.wordcloud--small {
    gap: 6px 9px;
    margin-top: 10px;
}
.comments-details {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}
.comments-details summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 700;
}
.comment-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.comment-item {
    border-left: 3px solid var(--line);
    padding-left: 9px;
}
.comment-item strong,
.comment-item span {
    display: inline-block;
    margin-right: 6px;
    font-size: 12px;
}
.comment-item span {
    color: var(--muted);
}
.comment-item p {
    margin: 4px 0 0;
}
.media-item {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfa;
    padding: 12px;
}
.media-position {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    min-width: 34px;
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(23, 33, 31, .86);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.media-thumb {
    width: 92px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}
.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-body p {
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.45;
}
.media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}
.media-meta strong {
    color: var(--ink);
    font-size: 14px;
}
.media-item--portrait {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}
.media-item--portrait .media-visual {
    position: relative;
    width: min(100%, 240px);
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}
.media-item--portrait .media-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
}
.media-item--portrait .media-position {
    top: 8px;
    left: 8px;
    z-index: 3;
}
.media-item--portrait .media-overlay {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 78px 14px 14px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, .94) 100%);
}
.media-item--portrait .media-body {
    width: 100%;
    min-width: 0;
}
.media-item--portrait .media-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    width: 100%;
    color: rgba(255, 255, 255, .86);
    font-size: 11px;
    line-height: 1.25;
}
.media-item--portrait .media-meta > * {
    min-width: 0;
}
.media-item--portrait .media-meta > strong {
    grid-column: 1 / -1;
    color: #fff;
    font-size: 13px;
}
.media-item--portrait .media-meta > span {
    padding-left: 8px;
    border-left: 2px solid rgba(255, 255, 255, .32);
}
.media-caption {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin: 0 !important;
    color: var(--ink) !important;
}
.media-caption > span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.media-caption.is-expanded > span {
    display: inline;
    overflow: visible;
    -webkit-line-clamp: unset;
}
.media-caption__toggle {
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--brand);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.dropzone {
    border: 2px dashed #b9c4c1;
    border-radius: 8px;
    padding: 22px;
    background: #fafbfa;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}
.dropzone.is-dragover { border-color: var(--brand); background: #eef7f4; }
.asset-upload-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
}
.asset-upload-row .dropzone {
    min-height: 110px;
    display: grid;
    align-content: center;
}
.asset-upload-row .dropzone:only-child { grid-column: 1 / -1; }
.logo-preview {
    max-width: 220px;
    max-height: 110px;
    object-fit: contain;
    display: block;
    margin: 0 0 12px;
}
.letterhead-preview {
    width: 160px;
    aspect-ratio: 210 / 297;
    object-fit: cover;
    display: block;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.thumb-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.asset-thumb {
    width: 120px;
    margin: 0;
}
.asset-thumb img {
    width: 120px;
    height: 72px;
    object-fit: contain;
    display: block;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.asset-thumb--page img {
    height: 150px;
    object-fit: cover;
}
.asset-thumb figcaption {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.thumb-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}
.thumb-logo--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #59636f;
    background: #eef1f3;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.context-pre {
    max-width: 420px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--muted);
}
.change-list {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}
.change-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: var(--muted);
    font-size: 12px;
}
.change-row strong {
    color: var(--ink);
    font-size: 12px;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background: rgba(16, 22, 24, .72);
    backdrop-filter: blur(2px);
    z-index: 120;
}
.modal-backdrop.is-open { display: flex; }
.pdf-modal {
    width: min(1040px, 100%);
    height: min(86vh, 860px);
    background: #fff;
    border-radius: 8px;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.pdf-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.pdf-modal__bar strong { font-size: 16px; }
.pdf-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f4f5;
}
.form-modal {
    width: min(860px, 100%);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    scrollbar-gutter: stable;
}
.shortcuts-modal {
    width: min(620px, 100%);
}
.shortcuts-modal__body {
    display: grid;
    gap: 14px;
}
.shortcuts-modal__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
}
.shortcuts-modal__toggle input {
    width: 18px;
    height: 18px;
}
.shortcuts-modal__hint {
    color: var(--muted);
    font-size: 13px;
}
.shortcuts-modal__list {
    display: grid;
    gap: 10px;
}
.shortcuts-modal__item {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.shortcuts-modal__item div {
    min-width: 0;
}
.shortcuts-modal__item strong,
.shortcuts-modal__item small {
    display: block;
}
.shortcuts-modal__item small {
    margin-top: 3px;
    color: var(--muted);
}
.shortcuts-modal kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #f7f8f9;
    color: var(--ink);
    font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.client-modal {
    height: min(90vh, 900px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding-bottom: 18px;
}
.client-modal:has(> .modal-tab-bar) {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.team-modal {
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.client-modal--new {
    height: auto;
}
.client-modal--new.client-modal--ready {
    height: min(90vh, 900px);
}
.client-modal__body {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}
.client-modal__footer {
    justify-content: flex-end;
    margin: 14px -18px 0;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}
.client-modal__footer[hidden] {
    display: none;
}
.client-modal__footer.is-waiting-document {
    display: none;
}
.client-modal__action {
    min-width: 118px;
    justify-content: center;
}
.empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fafbfa;
    text-align: center;
    color: var(--muted);
    padding: 24px;
}
.table td.muted[colspan] {
    height: 128px;
    padding: 24px;
    color: var(--muted);
    text-align: center;
    white-space: normal;
}
.table td.muted[colspan]::before {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: var(--line-strong);
}
.form-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.form-modal__bar h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.form-modal__close {
    width: var(--control-height);
    height: var(--control-height);
    border: 0;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--ink);
    cursor: pointer;
    font: 700 24px/1 Arial, Helvetica, sans-serif;
}
.form-modal__close:hover,
.form-modal__close:focus {
    background: #e8eceb;
    outline: none;
    box-shadow: var(--focus-ring);
}
.email-modal {
    width: min(640px, 100%);
}
.user-photo-field {
    display: grid;
    gap: 6px;
}
.user-photo-field__row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.user-photo-preview {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #edf1ef;
    color: var(--brand);
    overflow: hidden;
}
.user-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-photo-preview .ui-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}
.profile-panel {
    max-width: 780px;
}
.profile-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.profile-summary h2 {
    margin: 0 0 4px;
}
.profile-summary p {
    margin: 0;
}
.profile-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #edf1ef;
    color: var(--brand);
    overflow: hidden;
    font-size: 26px;
    font-weight: 700;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-form {
    margin: 0;
}
.advertising-item-modal {
    width: min(1180px, calc(100% - 28px));
    max-width: 1180px;
    height: min(90vh, 900px);
    padding: 0;
    overflow: hidden;
}
.advertising-item-modal .form-modal__bar {
    padding: 16px 18px;
    margin-bottom: 0;
}
.advertising-item-modal iframe {
    display: block;
    width: 100%;
    height: calc(100% - 70px);
    border: 0;
    background: #fff;
}
.show-item-modal {
    width: min(1180px, calc(100% - 28px));
    max-width: 1180px;
    height: min(90vh, 900px);
    padding: 0;
    overflow: hidden;
}
.show-item-modal .form-modal__bar {
    padding: 16px 18px;
    margin-bottom: 0;
}
.show-item-modal iframe {
    display: block;
    width: 100%;
    height: calc(100% - 70px);
    border: 0;
    background: #fff;
}
.email-preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafbfa;
    padding: 14px;
    margin: 12px 0;
}
.email-preview strong {
    display: block;
    margin-bottom: 8px;
}
.email-preview p {
    margin: 0;
    color: var(--muted);
}
.public-form {
    width: min(680px, calc(100% - 28px));
    max-width: 680px;
}
.public-form--wide {
    width: min(860px, calc(100% - 28px));
    max-width: 860px;
}
.public-brand-page {
    align-items: flex-start;
    background: #e62443;
    min-height: 100vh;
    padding: 24px 16px;
}
.public-brand-shell {
    width: min(680px, 100%);
    margin: 0 auto;
}
.public-brand-shell--wide {
    width: min(860px, 100%);
}
.public-brand-logo {
    display: block;
    max-width: 190px;
    max-height: 84px;
    object-fit: contain;
    margin: 0 auto 24px;
}
.public-brand-name {
    margin: 0 auto 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}
.public-brand-shell .public-form {
    width: 100%;
}
.song-submission-progress {
    margin: 16px 0;
}

.song-submission-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    margin-top: 18px;
    color: #216e39;
    background: #e8f6ed;
    border: 1px solid #b9dfc5;
    border-radius: 6px;
    text-align: center;
}

.song-submission-success__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    color: #ffffff;
    background: #287c45;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.song-submission-success__content {
    display: grid;
    gap: 5px;
    text-align: left;
}

.song-submission-success strong {
    font-size: 20px;
}

.song-submission-success span {
    color: #3e664b;
}
.song-submission-success .song-submission-success__icon {
    color: #ffffff;
}
.song-submission-success small {
    color: #52735d;
    font-size: 12px;
}
.song-submission-progress__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 14px;
}
.song-submission-progress progress {
    display: block;
    width: 100%;
    height: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    accent-color: #e62443;
}
.song-submission-progress progress::-webkit-progress-bar {
    background: #eceff0;
    border-radius: 6px;
}
.song-submission-progress progress::-webkit-progress-value {
    background: #e62443;
    border-radius: 6px;
}
.song-submission-progress progress::-moz-progress-bar {
    background: #e62443;
    border-radius: 6px;
}
.song-submission-required {
    color: #d92d20;
    font-weight: 700;
}
.song-submission-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.song-submission-confirmations {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}
.song-submission-confirmations label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.song-submission-confirmations input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #e62443;
}
.song-submission-privacy-link {
    display: block;
    width: fit-content;
    margin-top: 3px;
}
.public-form [data-song-submission-submit] {
    margin-top: 20px;
    margin-bottom: 20px;
}
.song-submission-required-note {
    display: block;
    margin-top: 0;
    color: var(--muted);
    font-size: 12px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .app-toast { transition: none; }
    [data-live-search-region].is-updating::after,
    .kanban-card.is-pending::after { animation: none; }
}
@media (max-width: 860px) {
    .app-feedback-region {
        top: 10px;
        right: 10px;
        width: calc(100vw - 20px);
    }
    .app-confirm-dialog { padding: 18px; }
    .app-confirm-dialog__actions .btn { flex: 1 1 0; }
    html, body { width: 100%; overflow-x: hidden; }
    .shell {
        display: block;
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
    }
    .sidebar {
        position: fixed;
        z-index: 40;
        inset: 0 auto 0 0;
        width: min(82vw, 320px);
        transform: translateX(-100%);
        transition: transform .18s ease;
        box-shadow: 18px 0 42px rgba(0,0,0,.22);
    }
    html.sidebar-collapsed-root .sidebar,
    body.sidebar-collapsed .sidebar {
        width: min(82vw, 320px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 24px 18px;
    }
    html.sidebar-collapsed-root .brand,
    body.sidebar-collapsed .brand {
        display: block;
        margin-bottom: 28px;
    }
    html.sidebar-collapsed-root .brand-logo,
    body.sidebar-collapsed .brand-logo {
        max-width: 170px;
        max-height: 74px;
    }
    html.sidebar-collapsed-root .nav a,
    html.sidebar-collapsed-root .nav-section__parent,
    html.sidebar-collapsed-root .nav-logout,
    body.sidebar-collapsed .nav a,
    body.sidebar-collapsed .nav-section__parent,
    body.sidebar-collapsed .nav-logout {
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }
    html.sidebar-collapsed-root .nav a span,
    html.sidebar-collapsed-root .nav-section__parent span,
    html.sidebar-collapsed-root .nav-logout span,
    html.sidebar-collapsed-root .app-version,
    body.sidebar-collapsed .nav a span,
    body.sidebar-collapsed .nav-section__parent span,
    body.sidebar-collapsed .nav-logout span,
    body.sidebar-collapsed .app-version {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
    html.sidebar-collapsed-root .nav-subnav,
    body.sidebar-collapsed .nav-subnav {
        display: grid;
    }
    html.sidebar-collapsed-root .nav a::before,
    html.sidebar-collapsed-root .nav a::after,
    html.sidebar-collapsed-root .nav-section__parent::before,
    html.sidebar-collapsed-root .nav-section__parent::after,
    html.sidebar-collapsed-root .nav-logout::before,
    html.sidebar-collapsed-root .nav-logout::after,
    body.sidebar-collapsed .nav a::before,
    body.sidebar-collapsed .nav a::after,
    body.sidebar-collapsed .nav-section__parent::before,
    body.sidebar-collapsed .nav-section__parent::after,
    body.sidebar-collapsed .nav-logout::before,
    body.sidebar-collapsed .nav-logout::after {
        display: none;
    }
    .sidebar-toggle { display: none; }
    body.menu-open .sidebar { transform: translateX(0); }
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(16, 22, 24, .58);
    }
    body.menu-open .mobile-menu-backdrop { display: block; }
    .mobile-menu-btn {
        position: fixed;
        top: 10px;
        left: 12px;
        z-index: 30;
        width: 42px;
        height: 42px;
        margin: 0;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
        color: var(--ink);
        font: 700 24px/1 Arial, Helvetica, sans-serif;
        cursor: pointer;
        display: grid;
        place-items: center;
        box-shadow: 0 8px 22px rgba(20, 28, 32, .12);
    }
    .mobile-menu-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(255,255,255,.32);
        border-radius: 6px;
        background: transparent;
        color: #fff;
        font: 700 24px/1 Arial, Helvetica, sans-serif;
        cursor: pointer;
        display: grid;
        place-items: center;
    }
    .grid, .grid-3 { grid-template-columns: 1fr; }
    .panel,
    .table-wrapper,
    .shows-list-toolbar,
    .clients-list-toolbar,
    .jobs-list-toolbar,
    .finance-list-toolbar,
    .calendar-toolbar,
    .pagination-bar { min-width: 0; max-width: 100%; }
    .tab-bar {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
    }
    .tab-button { flex: 0 0 auto; white-space: nowrap; }
    .page-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
    .actions > * { max-width: 100%; }
    .finance-filter-form,
    .pagination-lead,
    .pagination-size,
    .pagination-inline-filters { width: 100%; }
    .finance-filter-form label,
    .finance-filter-form label:first-of-type,
    .pagination-size label,
    .pagination-inline-filters label {
        flex: 1 1 150px;
        min-width: min(150px, 100%);
    }
    .finance-filter-form input,
    .finance-filter-form select,
    .pagination-size select,
    .pagination-inline-filters select { width: 100%; min-width: 0; }
    .pagination-bar { align-items: stretch; }
    .pagination-summary { width: 100%; text-align: center; }
    .pagination-links { flex-wrap: wrap; justify-content: center; }
    .field-pair { grid-template-columns: 1fr; }
    .participant-picker { grid-template-columns: 1fr; }
    .payment-installment-row { grid-template-columns: minmax(0, 1fr) 42px 42px; }
    .payment-installment-row p { grid-column: 1 / -1; }
    .finance-condition-panel__controls,
    .finance-condition-schedule__row { grid-template-columns: 1fr; }
    .finance-condition-schedule__head { display: none; }
    .finance-condition-schedule__footer { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-grid, .dashboard-status-grid, .dashboard-budget-fieldset .dashboard-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-budget-groups, .dashboard-columns, .birthday-overview, .birthday-highlight-grid, .birthday-month-grid { grid-template-columns: 1fr; }
    .dashboard-panel--marketing-users .dashboard-table-scroll { max-height: 300px; }
    .dashboard-panel--states,
    .dashboard-panel--marketing-users { width: 100%; max-width: 100%; }
    .insights-panel__head { align-items: stretch; flex-direction: column; }
    .insights-panel__head label { width: 100%; }
    .insights-columns { grid-template-columns: 1fr; }
    .media-list--two-columns { grid-template-columns: 1fr; }
    .media-item { grid-template-columns: 1fr; }
    .media-list--portrait { grid-template-columns: 1fr; }
    .media-item--portrait .media-visual { width: min(100%, 280px); }
    .main {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        padding: 68px 14px 18px;
        overflow-x: hidden;
    }
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px 12px;
        margin-bottom: 16px;
    }
    .topbar-actions {
        justify-self: end;
        align-self: start;
    }
    .page-title {
        min-width: 0;
    }
    h1 { font-size: 24px; overflow-wrap: anywhere; }
    .panel { padding: 14px; }
    .panel[data-collapsible][data-collapsed="false"] > :not(h2) {
        margin-left: 14px;
        margin-right: 14px;
    }
    .table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table th, .table td { white-space: nowrap; }
    [data-finance-list-table] th,
    [data-finance-list-table] td {
        white-space: normal;
    }
    [data-finance-list-table] th {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    [data-finance-list-table] td:nth-child(6),
    [data-finance-list-table] td:nth-child(7),
    [data-finance-list-table] td:nth-child(8) {
        white-space: nowrap;
    }
    .repeat-row { grid-template-columns: minmax(0, 1fr) 40px 40px; }
    .repeat-row--with-default { grid-template-columns: minmax(0, 1fr) auto 40px 40px; }
    .change-row { grid-template-columns: 1fr; }
    .permission-grid { grid-template-columns: 1fr; }
    .permission-children {
        grid-template-columns: 1fr;
        padding-left: 18px;
    }
    .asset-upload-row { grid-template-columns: 1fr; }
    .document-item { grid-template-columns: 44px minmax(0, 1fr); }
    .document-item .btn { grid-column: 1 / -1; }
    .calendar-toolbar { align-items: stretch; }
    .calendar-toolbar__nav,
    .calendar-toolbar__actions,
    .calendar-toolbar__search { width: 100%; }
    .calendar-toolbar__search input,
    .calendar-toolbar__view-select {
        flex: 1 1 auto;
        min-width: 0;
    }
    .jobs-list-toolbar {
        align-items: flex-end;
    }
    .jobs-summary-inline,
    .jobs-list-toolbar .finance-filter-form,
    .jobs-list-toolbar .page-actions {
        flex: 1 1 100%;
        width: 100%;
    }
    .jobs-list-toolbar .page-actions {
        margin-left: 0;
    }
    .collapsible-search-form__shell.is-open {
        width: 100%;
    }
    .calendar-toolbar__search-shell.is-open {
        width: 100%;
    }
    .calendar-month__weekdays,
    .calendar-month__grid,
    .calendar-columns { grid-template-columns: 1fr; }
    .calendar-day-card,
    .calendar-column { min-height: 0; }
    .modal-backdrop { padding: 10px; }
    .form-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 20px);
    }
    .client-modal__footer,
    .songs-modal__footer,
    .finance-actions {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .pdf-modal { height: 92vh; }
}
@media (max-width: 640px) {
    .kanban-board { grid-template-columns: minmax(0, 1fr); }
    .kanban-column { min-height: 0; }
    .kanban-column__header { position: static; }
    .calendar-toolbar__nav { justify-content: center; }
    .finance-month-bar { align-items: stretch; }
    .finance-month-bar > .icon-btn,
    .finance-month-bar > .btn { flex: 0 0 auto; }
    .finance-month-bar__summary { order: -1; flex-basis: 100%; }
    .finance-due-overview { grid-template-columns: 1fr; }
    .finance-due-card__header { align-items: center; }
    .finance-due-item { grid-template-columns: 68px minmax(0, 1fr); }
    .finance-due-item__amount { grid-column: 2; }
}
@media (hover: none) and (pointer: coarse) {
    .icon-btn[data-tooltip]::before,
    .icon-btn[data-tooltip]::after,
    .badge[data-tooltip]::before,
    .badge[data-tooltip]::after,
    .finance-documents-indicator[data-tooltip]::before,
    .finance-documents-indicator[data-tooltip]::after,
    .kanban-card__temperature[data-tooltip]::before,
    .kanban-card__temperature[data-tooltip]::after,
    .kanban-card__user[data-tooltip]::before,
    .kanban-card__user[data-tooltip]::after { display: none; }
}

.contact-360 { display: grid; gap: 18px; }
.contact-360__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dfe4e2;
}
.contact-360__heading h2 { margin: 8px 0 4px; font-size: 26px; }
.contact-360__heading p { margin: 0; color: #68706f; }
.contact-360__actions { margin-top: 0; }
.contact-360__summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.contact-360__summary article {
    display: grid;
    min-height: 92px;
    align-content: center;
    padding: 14px;
    border: 1px solid #dde2e0;
    border-radius: 6px;
    background: #fff;
}
.contact-360__summary span,
.contact-360__summary small { color: #727a78; }
.contact-360__summary strong { margin: 2px 0; font-size: 24px; }
.contact-360__section { padding-top: 4px; }
.contact-360__section h3 { margin: 0 0 10px; font-size: 18px; }
.contact-360__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.contact-360__detail {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid #e0e5e3;
    border-radius: 6px;
}
.contact-360__detail span { color: #737b79; font-size: 12px; }
.contact-360__detail strong { overflow-wrap: anywhere; }
.contact-360__detail--wide { grid-column: 1 / -1; }
.contact-360__activity {
    overflow: hidden;
    border: 1px solid #dde2e0;
    border-radius: 6px;
    background: #fff;
}
.contact-360__activity > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    color: #252a29;
    text-decoration: none;
}
.contact-360__activity > a + a { border-top: 1px solid #e7eae9; }
.contact-360__activity > a:hover { background: #f7f8f8; }
.contact-360__activity > a > span { display: grid; min-width: 0; gap: 3px; }
.contact-360__activity > a > span:last-child { justify-items: end; text-align: right; }
.contact-360__activity strong,
.contact-360__activity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-360__activity small { color: #747c7a; }

@media (max-width: 900px) {
    .contact-360__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-360__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .global-search { padding: 10px; }
    .global-search__dialog { max-height: calc(100dvh - 20px); }
    .global-search__results { max-height: calc(100dvh - 88px); }
    .global-search__field { grid-template-columns: 20px minmax(0, 1fr) 34px; padding: 12px; }
    .global-search__field kbd { display: none; }
    .global-search__result { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
    .contact-360__heading { align-items: stretch; flex-direction: column; }
    .contact-360__actions { justify-content: stretch; }
    .contact-360__actions .btn { flex: 1 1 0; }
    .contact-360__summary,
    .contact-360__details { grid-template-columns: 1fr; }
    .contact-360__activity > a { grid-template-columns: 1fr; gap: 8px; }
    .contact-360__activity > a > span:last-child { justify-items: start; text-align: left; }
}

/* Keep the active month and column labels together while scrolling entries. */
[data-live-search-region="finance-entries"] > .finance-month-bar {
    position: sticky;
    top: 0;
    z-index: 22;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .08);
}
[data-finance-list-table] {
    overflow: visible;
}
[data-finance-list-table] thead th {
    position: sticky;
    top: var(--finance-month-header-height, 76px);
    z-index: 21;
    background: var(--surface, #fff);
    box-shadow: 0 1px 0 var(--line);
}
/* A non-scrolling main container must not capture sticky positioning on mobile. */
.main:has([data-live-search-region="finance-entries"]) {
    overflow-x: clip;
    overflow-y: visible;
}
body:has([data-live-search-region="finance-entries"]):not(.menu-open):not(.has-app-confirmation):not(.global-search-open) {
    overflow-x: clip;
    overflow-y: visible;
}

.budget-participants [hidden] { display: none !important; }
.budget-participants__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.budget-participants > .budget-participants__header { justify-content: flex-start; gap: 20px; }
.budget-participants > .budget-participants__header h2 { margin: 0 0 4px; }
.budget-participants__header small { display: block; color: var(--muted); }
.budget-participants__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.budget-participants__chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; padding: 6px 10px; background: var(--surface-muted); font-size: 13px; overflow-wrap: anywhere; }
.budget-participants__avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--muted); font-size: 10px; }
.budget-participants__more { border: 0; background: transparent; color: var(--brand); padding: 8px 0; cursor: pointer; font: inherit; font-size: 12px; }
.budget-participants-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: #fff; }
.budget-participants-dialog::backdrop { background: rgba(18, 25, 30, .45); }
.budget-participants-dialog h2 { margin: 0; font-size: 18px; }
.budget-participants-dialog__count { display: block; margin: 12px 0 5px; color: var(--muted); }
.budget-participants-dialog__options { max-height: 300px; overflow-y: auto; }
.budget-participants-dialog__option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 2px; margin: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.budget-participants-dialog__option input { width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.budget-participants-dialog__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.budget-participants-dialog__footer .actions { margin: 0; }
@media(max-width: 480px) { .budget-participants-dialog { padding: 14px; } }

/* Company context for the staged multi-organization interface. */
.organization-context{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 18px;margin-bottom:20px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.organization-context small{color:var(--muted);margin-left:auto}
@media(max-width:640px){.organization-context small{margin-left:0;width:100%}}
.organization-switch{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0}
.organization-switch label{margin:0;font-weight:600;white-space:nowrap}
.organization-switch select{width:auto;min-width:200px;max-width:100%;margin:0}
.organization-context .organization-admin-link{margin-left:auto}
.organization-context small{margin-left:0}
.platform-admin-nav{margin:20px 0}.platform-admin-nav small{padding:10px 12px;color:var(--muted)}
.platform-body{padding:24px}.platform-shell{max-width:1180px;margin:auto}
.platform-shell .panel{margin-bottom:20px}.platform-shell form p{margin:14px 0}
.platform-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-bottom:24px}
.platform-top h1{margin:4px 0}.platform-top p{margin:4px 0}.platform-top .muted{font-size:.9rem}
.platform-shell .actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.platform-shell td .actions{margin:0;flex-wrap:nowrap}.platform-shell td form{margin:0}
.platform-login{max-width:430px;margin:70px auto}
.platform-modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}
.platform-modules label,.platform-check{display:flex;align-items:center;gap:8px}
.platform-modules input,.platform-check input{width:auto}
.platform-shell fieldset{border:1px solid var(--line);border-radius:8px;padding:16px;margin-top:16px;min-width:0}
.platform-shell legend{padding:0 6px;font-weight:600}.platform-shell summary{cursor:pointer}
.platform-new-company>summary{font-weight:700;font-size:1.05rem}
.platform-table-wrap{overflow:auto}.platform-block{display:block;margin-top:4px}
.platform-member{padding:16px 0;border-top:1px solid var(--line)}
.platform-section-actions{margin-bottom:18px}
@media(max-width:640px){.platform-body{padding:14px}.organization-switch{width:100%}.organization-switch select{flex:1;min-width:0}.organization-context .organization-admin-link{margin-left:0}.platform-login{margin:24px auto}}

/* Tenant selector belongs to the persistent sidebar, directly below the brand. */
.organization-context--sidebar{display:block;flex:0 0 auto;margin:0 0 20px;padding:0;border:0;background:transparent;color:#fff;min-width:0}
.organization-context--sidebar .organization-switch{display:block;width:100%}
.organization-context--sidebar label{display:block;color:#d5dedb;font-size:12px;margin-bottom:6px;white-space:normal}
.organization-context--sidebar select{display:block;width:100%;min-width:0;background:#fff;color:var(--text);font-size:14px}
.organization-context--sidebar>span{font-size:13px;overflow-wrap:anywhere}
.organization-environment-note{margin:0 0 16px;color:var(--muted);font-size:12px}
.platform-setup-list{margin:16px 0}
.platform-setup-list>div{display:grid;grid-template-columns:minmax(160px,1fr) 3fr;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.platform-setup-list dt{font-weight:600}.platform-setup-list dd{margin:0;overflow-wrap:anywhere}
@media(min-width:861px){html.sidebar-collapsed-root .organization-context--sidebar,body.sidebar-collapsed .organization-context--sidebar{display:none}}
@media(max-width:640px){.platform-setup-list>div{grid-template-columns:1fr;gap:6px}}

/* Keep the platform heading out of the compact desktop sidebar. */
@media (min-width: 861px) {
    html.sidebar-collapsed-root .platform-admin-nav > small,
    body.sidebar-collapsed .platform-admin-nav > small {
        display: none;
    }
}

/* Registry actions share one row; the list search stays at the right edge. */
.registry-list-toolbar { align-items: center; }
.registry-list-toolbar .page-actions { width: auto; justify-content: flex-start; }
.registry-list-toolbar .clients-search-form { margin-left: auto; }
.registry-list-toolbar .clients-search-form[data-search-enhanced="1"] { flex: 0 1 auto; }
