/* OmniRoster — mesma linguagem visual do OmniMembers: tokens --omni-*, OmniCard, OmniButton e OmniFormField.
   O tema escuro vem da redefinição dos tokens pelo shell. */
.ros-page, .ros-dialog {
    --ros-primary: var(--omni-color-primary, #6c4d9d);
    --ros-primary-soft: var(--omni-color-primary-soft, #f1ecf8);
    --ros-text: var(--omni-color-text, #252837);
    --ros-muted: color-mix(in srgb, var(--omni-color-text-muted, #727785) 85%, var(--omni-color-text, #252837));
    --ros-border: var(--omni-color-border, #e3e6ed);
    --ros-surface: var(--omni-color-surface, #fff);
    --ros-bg: var(--omni-color-page, #f6f8fb);
    --ros-danger: var(--omni-color-danger, #b53f4b);
    --ros-warning: #b45309;
    --ros-success: #15803d;
    --ros-radius: var(--omni-radius-control, 10px);
    color: var(--ros-text);
}
.ros-page { background: var(--ros-bg); }
.ros-page.omni-page { padding: 24px clamp(16px, 3vw, 40px) 48px; }
.ros-workspace { width: min(100%, 1360px); margin-inline: auto; }
.ros-workspace > * { min-width: 0; }

/* Cabeçalho */
.ros-page-header { margin-bottom: 24px; }
.ros-context { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; color: var(--ros-muted); font-size: .78rem; }
.ros-context > span:first-child { font-weight: 700; color: var(--ros-primary); }
.ros-context a { color: var(--ros-primary); font-weight: 600; text-decoration: none; }
.ros-context a:hover { text-decoration: underline; }
.ros-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ros-heading-row h1 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.2; color: var(--ros-text); overflow-wrap: anywhere; }
.ros-heading-row p { margin: 8px 0 0; color: var(--ros-muted); line-height: 1.6; max-width: 72ch; font-size: .9rem; }
.ros-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.ros-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

/* Botões e controles (OmniButton, OmniFormField) */
.ros-page .omni-button, .ros-dialog .omni-button, .ros-link-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 16px; border-radius: var(--ros-radius);
    font-size: .85rem; font-weight: 650; line-height: 1.3; white-space: normal; box-shadow: none; text-decoration: none; cursor: pointer;
}
.ros-page .omni-button-primary, .ros-dialog .omni-button-primary { background: var(--ros-primary); border: 1px solid var(--ros-primary); color: #fff; }
.ros-page .omni-button-secondary, .ros-dialog .omni-button-secondary { background: var(--ros-surface); color: var(--ros-text); border: 1px solid var(--ros-border); }
.ros-page .omni-button-secondary:hover, .ros-dialog .omni-button-secondary:hover { border-color: var(--ros-primary); color: var(--ros-primary); }
.ros-page .omni-button-danger, .ros-dialog .omni-button-danger { background: var(--ros-danger); border: 1px solid var(--ros-danger); color: #fff; }
body.dark-mode .ros-page .omni-button-primary, body.dark-mode .ros-dialog .omni-button-primary { color: var(--omni-color-page); }
.ros-link-button { border: 1px solid var(--ros-border); color: var(--ros-text); background: var(--ros-surface); }
.ros-link-button:hover, .ros-link-button.is-active { border-color: var(--ros-primary); color: var(--ros-primary); }
.ros-text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ros-primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 10px 0; min-height: 44px; text-decoration: none; }
.ros-text-button:hover { text-decoration: underline; }
.ros-text-button.is-danger { color: var(--ros-danger); }
.ros-icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ros-border); border-radius: var(--ros-radius); background: var(--ros-surface); color: var(--ros-muted); cursor: pointer; }
.ros-icon-button:hover { color: var(--ros-primary); background: var(--ros-primary-soft); }
.ros-page button:disabled, .ros-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.ros-page :is(a, button, input, select, textarea):focus-visible, .ros-dialog :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--ros-primary); outline-offset: 3px; }

.ros-page .omni-form-field, .ros-dialog .omni-form-field { margin: 0 0 16px; min-width: 0; }
.ros-page .omni-form-field > label, .ros-dialog .omni-form-field > label { display: block; font-size: .82rem; font-weight: 650; color: var(--ros-text); margin-bottom: 7px; }
.ros-page .omni-form-field > small, .ros-dialog .omni-form-field > small { display: block; margin-top: 6px; color: var(--ros-muted); font-size: .78rem; line-height: 1.5; }
.ros-page .form-control, .ros-dialog .form-control {
    width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--ros-border); border-radius: var(--ros-radius);
    background: var(--ros-surface); color: var(--ros-text); font: inherit; font-size: .88rem; box-shadow: none; line-height: 1.4;
}
.ros-page .form-control:focus, .ros-dialog .form-control:focus { border-color: var(--ros-primary); }
/* No escuro, o AdminLTE pinta select.form-control de cinza (#343a40) com seletor mais específico; aqui ele volta ao token do módulo. */
body.dark-mode :is(.ros-page, .ros-dialog) .form-control:not([type=checkbox]):not([type=radio]) { background-color: var(--ros-surface); color: var(--ros-text); border-color: var(--ros-border); }
body.dark-mode .ros-page .ros-filter-panel .form-control:not([type=checkbox]):not([type=radio]) { background-color: var(--ros-bg); }
body.dark-mode .ros-page .form-control:focus:not([type=checkbox]):not([type=radio]), body.dark-mode .ros-dialog .form-control:focus:not([type=checkbox]):not([type=radio]) { border-color: var(--ros-primary); }
.ros-page textarea.form-control, .ros-dialog textarea.form-control { min-height: 96px; resize: vertical; }
.ros-page input[type=checkbox], .ros-dialog input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ros-primary); flex-shrink: 0; margin: 0; }
.ros-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: .86rem; color: var(--ros-text); cursor: pointer; }
.ros-check > span { display: grid; gap: 2px; }
.ros-check small { color: var(--ros-muted); font-size: .78rem; }
.ros-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ros-form-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ros-span-2 { grid-column: 1 / -1; }
.ros-section-label { display: block; font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ros-muted); margin: 24px 0 14px; }
.ros-section-label:first-child { margin-top: 0; }
.ros-disclosure { border-top: 1px solid var(--ros-border); margin-top: 8px; padding-top: 8px; }
.ros-disclosure > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ros-primary); font-size: .85rem; font-weight: 650; cursor: pointer; list-style: none; }
.ros-disclosure > summary::-webkit-details-marker { display: none; }
.ros-disclosure > summary::before { content: "\f107"; font-family: FontAwesome; transition: transform .15s; }
.ros-disclosure[open] > summary::before { transform: rotate(180deg); }
.ros-disclosure > div { padding-top: 12px; }

/* Cartões */
.ros-page .ros-card { margin: 0 0 20px; border-radius: 14px; border-color: var(--ros-border); box-shadow: 0 2px 6px rgb(20 25 40 / 3%); }
.ros-page .ros-card > .omni-card-header { padding: 18px 22px; }
.ros-page .ros-card > .omni-card-body { padding: 22px; }
.ros-page .ros-card > .omni-card-footer { padding: 14px 22px; }
.ros-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ros-card-header > div { min-width: 0; }
.ros-card-header h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--ros-text); overflow-wrap: anywhere; }
.ros-card-header p { font-size: .8rem; color: var(--ros-muted); margin: 5px 0 0; }
.ros-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ros-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.ros-cards > .ros-card { margin: 0; }

/* Integrações: um cartão por módulo, chave liga/desliga e barra de salvar com alterações pendentes. */
.ros-integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: stretch; }
.ros-page .ros-integrations > .ros-card { margin: 0; height: 100%; transition: border-color .15s ease, box-shadow .15s ease; }
.ros-page .ros-integration.is-on { border-color: color-mix(in srgb, var(--ros-primary) 45%, var(--ros-border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ros-primary) 18%, transparent); }
.ros-page .ros-integration.is-muted { background: color-mix(in srgb, var(--ros-bg) 60%, var(--ros-surface)); }
.ros-integration .ros-notice { margin-bottom: 0; }
.ros-integration-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ros-integration-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ros-primary-soft); color: var(--ros-primary); font-size: 1.05rem; }
.ros-integration.is-muted .ros-integration-icon { background: var(--ros-bg); color: var(--ros-muted); }
.ros-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid var(--ros-border); border-radius: 12px; background: var(--ros-surface); font-size: .86rem; font-weight: 650; color: var(--ros-text); cursor: pointer; }
.ros-switch > input { flex: none; appearance: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: color-mix(in srgb, var(--ros-muted) 35%, var(--ros-border)); cursor: pointer; transition: background .15s ease; }
.ros-switch > input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .15s ease; }
.ros-switch > input:checked { background: var(--ros-primary); }
.ros-switch > input:checked::after { transform: translateX(18px); }
.ros-switch > input:focus-visible { outline: 2px solid var(--ros-primary); outline-offset: 3px; }
.ros-switch:has(> input:disabled) { opacity: .6; cursor: not-allowed; }
.ros-integration-link { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ros-border); border-radius: 12px; font-size: .86rem; font-weight: 650; }
.ros-savebar { position: sticky; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--ros-border); border-radius: 14px; background: var(--ros-surface); box-shadow: 0 6px 18px rgb(20 25 40 / 8%); font-size: .84rem; color: var(--ros-muted); }
.ros-savebar.is-dirty { border-color: color-mix(in srgb, var(--ros-primary) 45%, var(--ros-border)); color: var(--ros-text); font-weight: 650; }
.ros-savebar.is-dirty .fa-circle { color: var(--ros-primary); font-size: .55rem; vertical-align: middle; margin-right: 6px; }

/* Filtros e visões */
.ros-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ros-toolbar > .ros-search { flex: 1 1 260px; }
.ros-search { position: relative; min-width: 0; }
.ros-search > i { position: absolute; left: 14px; top: 15px; color: var(--ros-muted); pointer-events: none; }
.ros-page .ros-search > input { padding-left: 39px; }
.ros-segment { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; border: 1px solid var(--ros-border); border-radius: 999px; background: var(--ros-bg); }
.ros-segment > :is(button, a) { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ros-muted); min-height: 36px; padding: 4px 14px; border-radius: 999px; font-size: .8rem; font-weight: 650; cursor: pointer; text-decoration: none; }
.ros-segment > :is(button, a).is-active { background: var(--ros-primary); color: #fff; }
body.dark-mode .ros-segment > :is(button, a).is-active { color: var(--omni-color-page); }
/* Painel de filtros: campos e botão na mesma linha; o botão desce o equivalente ao rótulo para alinhar com os campos,
   mesmo quando algum campo tem dica embaixo. */
.ros-filter-panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; padding: 16px 18px; background: var(--ros-surface); border: 1px solid var(--ros-border); border-radius: 12px; margin-bottom: 20px; }
.ros-page .ros-filter-panel .omni-form-field { flex: 1 1 180px; margin: 0; }
.ros-page .ros-filter-panel .omni-form-field.ros-filter-wide { flex: 2 1 260px; }
.ros-page .ros-filter-panel .omni-form-field > label { line-height: 20px; }
.ros-page .ros-filter-panel .form-control { background-color: var(--ros-bg); }
.ros-filter-panel .ros-actions { flex: 0 0 auto; padding-top: 27px; }
.ros-results-label { color: var(--ros-muted); font-size: .82rem; margin: 0 0 12px; }
.ros-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ros-actions.is-end { justify-content: flex-end; }

/* Diretório de OS */
.ros-directory-head, .ros-directory-row { display: grid; grid-template-columns: minmax(240px, 1.6fr) 150px minmax(140px, .9fr) minmax(130px, .8fr) 24px; gap: 16px; align-items: center; }
.ros-directory-head.is-simple, .ros-directory-row.is-simple { grid-template-columns: minmax(240px, 1.6fr) 170px minmax(140px, .8fr) 24px; }
.ros-directory-head { padding: 12px 14px; color: var(--ros-muted); background: var(--ros-bg); border-radius: 8px; font-size: .73rem; font-weight: 650; }
.ros-directory-row { width: 100%; padding: 15px 14px; border-bottom: 1px solid var(--ros-border); color: var(--ros-text); text-decoration: none; background: var(--ros-surface); }
.ros-directory-row:hover { background: var(--ros-primary-soft); color: var(--ros-text); text-decoration: none; }
.ros-directory-row > i { color: var(--ros-muted); }
.ros-directory-main { display: grid; gap: 4px; min-width: 0; }
.ros-directory-main strong { font-size: .92rem; overflow-wrap: anywhere; }
.ros-directory-main small, .ros-directory-cell small { color: var(--ros-muted); font-size: .78rem; overflow-wrap: anywhere; }
.ros-directory-cell { display: grid; gap: 2px; font-size: .84rem; min-width: 0; }
.ros-number { color: var(--ros-muted); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; }

/* Chips de status */
.ros-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--ros-border); background: var(--ros-bg); color: var(--ros-muted); border-radius: 6px; line-height: 1.4; font-size: .74rem; font-weight: 650; max-width: 100%; overflow-wrap: anywhere; }
.ros-chip.is-info { color: var(--ros-primary); border-color: transparent; background: var(--ros-primary-soft); }
.ros-chip.is-success { color: var(--ros-success); border-color: transparent; background: color-mix(in srgb, var(--ros-success) 12%, var(--ros-surface)); }
.ros-chip.is-warning { color: var(--ros-warning); border-color: transparent; background: color-mix(in srgb, #f59e0b 16%, var(--ros-surface)); }
.ros-chip.is-danger { color: var(--ros-danger); border-color: color-mix(in srgb, var(--ros-danger) 30%, var(--ros-border)); background: color-mix(in srgb, var(--ros-danger) 7%, var(--ros-surface)); }
.ros-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ros-overdue { color: var(--ros-danger); font-weight: 650; }

/* Estados */
.ros-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 200px; padding: 28px 20px; gap: 9px; color: var(--ros-muted); }
.ros-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; background: var(--ros-bg); border-radius: 16px; margin-bottom: 4px; color: var(--ros-primary); font-size: 1.35rem; }
.ros-empty strong { color: var(--ros-text); font-size: .95rem; }
.ros-empty p { max-width: 380px; font-size: .85rem; margin: 0; line-height: 1.6; }
.ros-empty-actions { margin-top: 12px; }
.ros-empty.is-compact { min-height: 0; padding: 18px 12px; }
.ros-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 34px 16px; color: var(--ros-muted); font-size: .88rem; }
.ros-hint { margin: 0 0 14px; color: var(--ros-muted); font-size: .84rem; line-height: 1.6; }
.ros-notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .85rem; line-height: 1.5; margin-bottom: 16px; background: var(--ros-primary-soft); color: var(--ros-text); }
.ros-notice > i { margin-top: 3px; color: var(--ros-primary); }
.ros-notice.is-warning { background: color-mix(in srgb, #f59e0b 14%, var(--ros-surface)); }
.ros-notice.is-warning > i { color: var(--ros-warning); }
.ros-notice.is-danger { background: color-mix(in srgb, var(--ros-danger) 8%, var(--ros-surface)); }
.ros-notice.is-danger > i { color: var(--ros-danger); }

/* Etapas da OS */
.ros-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; counter-reset: step; }
.ros-steps li { position: relative; display: grid; gap: 6px; padding-top: 14px; color: var(--ros-muted); font-size: .78rem; font-weight: 650; }
.ros-steps li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 4px; background: var(--ros-border); }
.ros-steps li.is-done { color: var(--ros-text); }
.ros-steps li.is-done::before { background: color-mix(in srgb, var(--ros-primary) 55%, var(--ros-surface)); }
.ros-steps li.is-current { color: var(--ros-primary); }
.ros-steps li.is-current::before { background: var(--ros-primary); }
.ros-steps li.is-current.is-paused { color: var(--ros-warning); }
.ros-steps li.is-current.is-paused::before { background: #f59e0b; }

/* Próximo passo */
.ros-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ros-next > div:first-child { display: grid; gap: 6px; min-width: 0; max-width: 72ch; }
.ros-next-label { font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ros-primary); }
.ros-next strong { font-size: 1rem; }
.ros-next p { margin: 0; color: var(--ros-muted); font-size: .86rem; line-height: 1.6; }
.ros-more-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ros-border); }

/* Detalhe */
.ros-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 20px; align-items: start; }
.ros-detail > div { min-width: 0; }
.ros-facts { display: grid; gap: 14px; margin: 0; }
.ros-facts > div { display: grid; gap: 3px; min-width: 0; }
.ros-facts dt { color: var(--ros-muted); font-size: .76rem; font-weight: 650; }
.ros-facts dd { margin: 0; color: var(--ros-text); font-size: .88rem; overflow-wrap: anywhere; }
.ros-facts dd small { display: block; color: var(--ros-muted); }
.ros-facts.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ros-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; font-size: .9rem; }
.ros-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--ros-border); margin-bottom: 22px; }
.ros-tabs > button { border: 0; background: transparent; color: var(--ros-muted); padding: 12px 14px; border-bottom: 2px solid transparent; font-weight: 600; font-size: .85rem; min-height: 44px; cursor: pointer; }
.ros-tabs > button.is-active { color: var(--ros-primary); border-bottom-color: var(--ros-primary); }
.ros-tabs .ros-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--ros-bg); color: var(--ros-muted); font-size: .72rem; }

.ros-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ros-list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ros-border); font-size: .86rem; }
.ros-list > li:last-child { border-bottom: 0; }
.ros-list > li > div { display: grid; gap: 3px; min-width: 0; }
/* Seletor em pílula dentro de uma linha da lista (ex.: presença): não vira coluna como os outros blocos. */
.ros-list > li > .ros-segment { display: inline-flex; flex: none; flex-wrap: nowrap; }
.ros-segment > button:disabled { cursor: not-allowed; opacity: .55; }
.ros-segment > button.is-active:disabled { opacity: .8; }
@media (max-width: 640px) {
    .ros-list > li:has(> .ros-segment) { flex-wrap: wrap; }
    .ros-list > li > .ros-segment { width: 100%; }
}
.ros-list small { color: var(--ros-muted); font-size: .78rem; overflow-wrap: anywhere; }
.ros-list strong { overflow-wrap: anywhere; }

.ros-checklist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ros-checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--ros-border); border-radius: 12px; }
.ros-checklist li.is-done { background: color-mix(in srgb, var(--ros-success) 6%, var(--ros-surface)); }
.ros-checklist li > input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; }
.ros-checklist label { font-size: .88rem; font-weight: 600; margin: 0; cursor: pointer; }
.ros-checklist .form-control, .ros-checklist small { grid-column: 2; }
.ros-checklist small { color: var(--ros-muted); font-size: .78rem; }

.ros-timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--ros-border); margin-left: 8px; }
.ros-timeline li { position: relative; display: grid; gap: 3px; padding: 0 0 20px; }
.ros-timeline li::before { content: ""; position: absolute; left: -30px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ros-primary); border: 3px solid var(--ros-surface); }
.ros-timeline li.is-warning::before { background: #f59e0b; }
.ros-timeline li.is-comment::before { background: #0ea5e9; }
.ros-timeline strong { font-size: .88rem; }
.ros-timeline small { color: var(--ros-muted); font-size: .76rem; }
.ros-timeline p { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ros-bg); white-space: pre-line; overflow-wrap: anywhere; font-size: .86rem; line-height: 1.5; }
.ros-composer { display: grid; gap: 10px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--ros-border); }
.ros-composer .omni-form-field { margin: 0; }

.ros-picker-results { list-style: none; margin: -6px 0 16px; padding: 0; display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.ros-picker-results button { width: 100%; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--ros-border); border-radius: var(--ros-radius); background: var(--ros-surface); color: var(--ros-text); text-align: left; cursor: pointer; }
.ros-picker-results button:hover { border-color: var(--ros-primary); background: var(--ros-primary-soft); }
.ros-picker-results small { color: var(--ros-muted); font-size: .78rem; }
.ros-suggest { position: relative; }
.ros-suggest-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; border: 1px solid var(--ros-border); border-radius: var(--ros-radius); background: var(--ros-surface); box-shadow: 0 12px 32px rgb(20 20 40 / 16%); }
.ros-suggest-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ros-text); font-size: .9rem; cursor: pointer; }
.ros-suggest-list li i { color: var(--ros-muted); }
.ros-suggest-list li:hover, .ros-suggest-list li.is-active { background: var(--ros-primary-soft); color: var(--ros-primary); }
.ros-suggest-list li.is-static, .ros-suggest-list li.is-static:hover { cursor: default; background: none; color: var(--ros-muted); }
.ros-picker-clear { margin-top: 4px; font-size: .8rem; }
.ros-selected { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 16px; border: 1px solid transparent; border-radius: 12px; background: var(--ros-primary-soft); }
.ros-selected > span { display: grid; gap: 2px; min-width: 0; }
.ros-selected small { color: var(--ros-muted); }
.ros-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ros-table th { padding: 10px 12px; color: var(--ros-muted); background: var(--ros-bg); font-size: .73rem; font-weight: 650; text-align: left; }
.ros-table td { padding: 12px; border-bottom: 1px solid var(--ros-border); vertical-align: middle; }
.ros-table td small { display: block; color: var(--ros-muted); font-size: .76rem; }
.ros-table .is-number { text-align: right; font-variant-numeric: tabular-nums; }
.ros-table tr.is-muted td { opacity: .6; }
.ros-table-wrap { overflow-x: auto; }

.ros-page .omni-danger-zone { margin-top: 4px; }

/* Indicadores (dentro do odash-shell do DashboardHeader) */
.ros-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.ros-metric { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--ros-border); border-radius: 14px; background: var(--ros-surface); color: var(--ros-text); text-decoration: none; }
a.ros-metric:hover { border-color: var(--ros-primary); color: var(--ros-text); text-decoration: none; }
.ros-metric-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; background: var(--ros-primary-soft); color: var(--ros-primary); font-size: 1.15rem; }
.ros-metric-icon.is-warning { background: color-mix(in srgb, #f59e0b 16%, var(--ros-surface)); color: var(--ros-warning); }
.ros-metric-icon.is-danger { background: color-mix(in srgb, var(--ros-danger) 10%, var(--ros-surface)); color: var(--ros-danger); }
.ros-metric-icon.is-success { background: color-mix(in srgb, var(--ros-success) 12%, var(--ros-surface)); color: var(--ros-success); }
.ros-metric > div { display: grid; gap: 2px; min-width: 0; }
.ros-metric span { color: var(--ros-muted); font-size: .8rem; }
.ros-metric strong { font-size: 1.7rem; font-weight: 750; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ros-metric small { color: var(--ros-muted); font-size: .76rem; }
.ros-bars { display: grid; gap: 10px; }
.ros-bar { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr) 40px; gap: 12px; align-items: center; font-size: .84rem; }
.ros-bar > div { height: 8px; border-radius: 8px; background: var(--ros-bg); overflow: hidden; }
.ros-bar > div > b { display: block; height: 100%; border-radius: 8px; background: var(--ros-primary); }
.ros-bar > strong { text-align: right; font-variant-numeric: tabular-nums; }

/* Quadro e agenda */
.ros-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.ros-column { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--ros-border); border-radius: 14px; background: var(--ros-bg); }
.ros-column > header { display: grid; gap: 2px; }
.ros-column > header > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ros-column > header strong { font-size: .9rem; }
.ros-column > header small { color: var(--ros-muted); font-size: .76rem; }
.ros-column-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 10px; }
.ros-board-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--ros-border); border-radius: 12px; background: var(--ros-surface); }
.ros-board-card.is-overdue { border-left: 4px solid var(--ros-danger); }
.ros-board-card > a { color: var(--ros-text); font-weight: 650; font-size: .88rem; text-decoration: none; overflow-wrap: anywhere; }
.ros-board-card > a:hover { color: var(--ros-primary); }
.ros-board-card small { color: var(--ros-muted); font-size: .76rem; }
.ros-board-card .omni-button { min-height: 36px; padding: 6px 12px; }









.ros-checklist-editor { display: grid; gap: 8px; margin-bottom: 12px; }
.ros-checklist-editor > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.ros-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 16px; color: var(--ros-muted); font-size: .84rem; }

/* Modal nativo (dialog) */
body:has(dialog.ros-dialog[open]) { overflow: hidden; }
.ros-dialog { width: min(620px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--ros-border); border-radius: 18px; color: var(--ros-text); background: var(--ros-surface); box-shadow: 0 24px 80px rgb(20 20 40 / 25%); margin: auto; overflow: hidden; }
.ros-dialog-lg { width: min(820px, calc(100% - 32px)); }
.ros-dialog-sm { width: min(480px, calc(100% - 32px)); }
.ros-dialog::backdrop { background: rgb(20 20 35 / 48%); }
.ros-modal { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.ros-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--ros-border); }
.ros-modal-header h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ros-text); }
.ros-modal-header p { margin: 7px 0 0; font-size: .82rem; line-height: 1.6; color: var(--ros-muted); max-width: 560px; }
.ros-modal-eyebrow { display: block; font-size: .7rem; letter-spacing: .06em; color: var(--ros-primary); font-weight: 700; margin-bottom: 7px; overflow-wrap: anywhere; }
.ros-modal-body { padding: 24px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.ros-modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--ros-border); }
.ros-modal-footer .omni-button { min-width: 110px; }

@media (max-width: 1100px) {
    .ros-detail { grid-template-columns: minmax(0, 1fr); }
    .ros-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ros-heading-row { align-items: flex-start; }
}
@media (max-width: 900px) {
    .ros-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .ros-filter-panel .ros-actions { flex-basis: 100%; padding-top: 0; }
    .ros-filter-panel .ros-actions > .omni-button { width: 100%; }
    .ros-directory-head { display: none; }
    .ros-directory-row, .ros-directory-row.is-simple { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .ros-directory-row > .ros-directory-main { grid-column: 1 / -1; }
    .ros-directory-row > i { display: none; }
    .ros-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 600px) {
    .ros-page.omni-page { padding: 18px 14px 32px; }
    .ros-heading-row { flex-direction: column; gap: 16px; }
    .ros-header-actions { width: 100%; }
    .ros-header-actions > * { flex: 1 1 100%; }
    .ros-page .ros-card > .omni-card-header, .ros-page .ros-card > .omni-card-body { padding: 18px; }
    .ros-form-grid, .ros-form-grid.is-three, .ros-facts.is-two, .ros-metrics { grid-template-columns: minmax(0, 1fr); }
    .ros-next .omni-button, .ros-modal-footer > * { flex: 1 1 100%; }
    
    .ros-checklist-editor > div { grid-template-columns: minmax(0, 1fr) auto; }
    .ros-checklist-editor .ros-check { grid-column: 1; }
    .ros-board { grid-auto-columns: minmax(240px, 85vw); }
    .ros-segment { width: 100%; }
    .ros-segment > :is(button, a) { flex: 1; justify-content: center; }
    .ros-bar { grid-template-columns: minmax(0, 1fr) 40px; }
    .ros-bar > div { grid-column: 1 / -1; grid-row: 2; }
    .ros-savebar .ros-actions { width: 100%; }
    .ros-savebar .ros-actions > * { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .ros-page *, .ros-dialog * { scroll-behavior: auto; transition: none; }
}
.ros-gap-top { margin-top: 20px; }
.ros-actions.is-between { justify-content: space-between; }

/* OmniRoster: matriz, escalas, ordem do culto, cifras e ao vivo */
.ros-matrix-wrap { overflow-x: auto; border: 1px solid var(--ros-border); border-radius: 14px; background: var(--ros-surface); }
.ros-matrix { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .8rem; }
.ros-matrix th, .ros-matrix td { border-bottom: 1px solid var(--ros-border); border-right: 1px solid var(--ros-border); padding: 8px 10px; vertical-align: top; text-align: left; }
.ros-matrix thead th { position: sticky; top: 0; background: var(--ros-bg); z-index: 1; min-width: 150px; }
.ros-matrix thead th a { color: var(--ros-text); font-weight: 700; text-decoration: none; }
.ros-matrix thead th small { display: block; color: var(--ros-muted); font-weight: 600; }
.ros-matrix th.ros-matrix-row { position: sticky; left: 0; background: var(--ros-surface); z-index: 2; min-width: 190px; }
.ros-matrix th.ros-matrix-row small { display: block; color: var(--ros-muted); font-weight: 600; }
.ros-matrix td.is-open { background: color-mix(in srgb, #f59e0b 8%, var(--ros-surface)); }
.ros-matrix td.is-empty { color: var(--ros-muted); }
.ros-matrix-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 0; border: 0; background: transparent; color: var(--ros-primary); font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; }
.ros-person { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 0; }
.ros-person > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.ros-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ros-muted); }
.ros-dot.is-pending { background: #f59e0b; }
.ros-dot.is-accepted { background: var(--ros-success); }
.ros-dot.is-declined { background: var(--ros-danger); }
.ros-dot.is-replaced, .ros-dot.is-cancelled { background: var(--ros-border); }
.ros-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ros-muted); font-size: .78rem; margin: 0 0 12px; }
.ros-legend > span { display: inline-flex; align-items: center; gap: 6px; }

.ros-team-block { border: 1px solid var(--ros-border); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; background: var(--ros-surface); }
.ros-team-block > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ros-team-block > header h3 { margin: 0; font-size: .95rem; font-weight: 750; display: inline-flex; align-items: center; gap: 8px; }
.ros-team-color { width: 12px; height: 12px; border-radius: 4px; background: var(--ros-primary); }
.ros-position { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--ros-border); }
.ros-position:first-of-type { border-top: 0; }
.ros-position-name strong { display: block; font-size: .86rem; }
.ros-position-name small { color: var(--ros-muted); }
.ros-position-people { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ros-person-actions { display: inline-flex; gap: 2px; flex: none; }
.ros-person-actions button { border: 0; background: transparent; color: var(--ros-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.ros-person-actions button:hover { background: var(--ros-primary-soft); color: var(--ros-primary); }

.ros-items { list-style: none; margin: 0; padding: 0; }
.ros-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) 80px auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--ros-border); border-left: 4px solid transparent; }
.ros-item.is-header { background: var(--ros-bg); font-weight: 750; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: var(--ros-muted); }
.ros-item.is-live { background: var(--ros-primary-soft); border-left-color: var(--ros-primary); }
.ros-item time { color: var(--ros-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.ros-item strong { display: block; overflow-wrap: anywhere; }
.ros-item small { color: var(--ros-muted); display: block; overflow-wrap: anywhere; }
.ros-item-length { color: var(--ros-muted); font-variant-numeric: tabular-nums; text-align: right; }
.ros-item-tools { display: inline-flex; gap: 2px; }
/* Plano na visão do voluntário (página Minhas escalas → Ver plano) */
.ros-myplan-back { margin-bottom: 10px; font-size: .85rem; font-weight: 600; }
.ros-myplan-back a { color: var(--ros-primary); text-decoration: none; }
.ros-myplan-back a:hover { text-decoration: underline; }
.ros-myplan-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ros-myplan-header h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; color: var(--ros-text); }
.ros-myplan-header p { margin: 4px 0 0; color: var(--ros-muted); }
.ros-myplan-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--ros-border); border-left: 4px solid var(--ros-primary); border-radius: 12px; background: var(--ros-surface); }
.ros-myplan-role { display: grid; gap: 2px; min-width: 200px; flex: 1; }
.ros-myplan-role .ros-chip { justify-self: start; }
.ros-myplan-role small { color: var(--ros-muted); }
.ros-myplan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.ros-myplan-grid > aside { position: sticky; top: 16px; }
.ros-myplan-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ros-myplan-teams .ros-list > li { padding: 12px 16px; gap: 16px; }
.ros-myplan-teams .ros-person-line { gap: 12px; }
.ros-myplan-teams .ros-avatar, .ros-dialog .ros-list .ros-avatar, .ros-table .ros-avatar { width: 36px; height: 36px; font-size: .78rem; }
@media (max-width: 900px) { .ros-myplan-grid { grid-template-columns: 1fr; } .ros-myplan-grid > aside { position: static; } }

/* O shell usa Bootstrap 4, que não tem .visually-hidden: o módulo define a sua (esconde da tela, mantém para leitor de tela e teclado). */
.ros-page .visually-hidden, .ros-dialog .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.ros-file-button { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; margin: 0; border-radius: 8px; color: var(--ros-muted); cursor: pointer; }
.ros-file-button:hover { background: var(--ros-primary-soft); color: var(--ros-primary); }
.ros-file-button:focus-within { outline: 2px solid var(--ros-primary); outline-offset: 2px; }
.ros-link-button:focus-within { outline: 2px solid var(--ros-primary); outline-offset: 2px; }

.ros-chart { font-family: "Fira Mono", Consolas, "Courier New", monospace; font-size: .92rem; line-height: 1.25; overflow-x: auto; padding: 12px 0; }
.ros-chart-line { display: flex; flex-wrap: wrap; align-items: flex-end; margin-bottom: 6px; }
.ros-chart-seg { display: inline-flex; flex-direction: column; white-space: pre; }
.ros-chart-seg > b { color: var(--ros-primary); font-weight: 750; min-height: 1.2em; }
.ros-chart-comment { color: var(--ros-muted); font-style: italic; margin: 10px 0 4px; }
.ros-chart-title { font-weight: 750; font-size: 1.05rem; margin: 6px 0; }
.ros-chart-section { font-weight: 750; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; color: var(--ros-muted); margin: 12px 0 4px; }
.ros-chart.is-lyrics-only .ros-chart-seg > b { display: none; }
.ros-chart.is-large { font-size: 1.15rem; }

.ros-live { min-height: 100vh; padding: 24px clamp(16px, 4vw, 48px); background: #0f172a; color: #e2e8f0; }
.ros-live h1 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 0 0 4px; }
.ros-live-current { margin: 24px 0; padding: 24px; border-radius: 18px; background: #1e293b; border: 2px solid #6366f1; }
.ros-live-current small { color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.ros-live-current strong { display: block; font-size: clamp(1.6rem, 4vw, 3rem); margin-top: 6px; }
.ros-live-next { color: #cbd5e1; font-size: 1.1rem; }
.ros-live-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ros-live .ros-items .ros-item { border-color: #334155; }
.ros-live .ros-item.is-live { background: #312e81; border-left-color: #a5b4fc; }
.ros-live .ros-item time, .ros-live .ros-item small, .ros-live .ros-item-length { color: #94a3b8; }

.ros-public { max-width: 520px; margin: 40px auto; padding: 0 16px; }
.ros-public .ros-card { padding: 8px 4px; }

.ros-assignment-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--ros-border); border-radius: 14px; background: var(--ros-surface); }
.ros-assignment-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ros-assignment-card h3 { margin: 0; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.ros-assignment-card p { margin: 0; color: var(--ros-muted); font-size: .84rem; }
.ros-assignment-card .ros-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Minhas escalas: card da escala com data em destaque, fatos com ícone, colegas agrupados e ações no rodapé. */
.ros-my-card { position: relative; gap: 14px; padding: 18px; overflow: hidden; }
.ros-my-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ros-border); }
.ros-my-card.is-accepted::before { background: var(--ros-success); }
.ros-my-card.is-pending::before { background: #f59e0b; }
.ros-my-card.is-declined::before { background: var(--ros-danger); }
.ros-my-card.is-awaiting::before { background: var(--ros-primary); }
.ros-my-card > header { align-items: center; gap: 14px; }
.ros-my-date { display: grid; place-items: center; flex: none; width: 56px; padding: 6px 0 7px; border-radius: 12px; background: var(--ros-primary-soft); color: var(--ros-primary); line-height: 1.1; }
.ros-my-date small { font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ros-my-date strong { font-size: 1.45rem; font-weight: 800; }
.ros-my-title { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ros-my-when { color: var(--ros-primary); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.ros-my-card h3 { font-size: 1.08rem; }
.ros-my-status { flex: none; align-self: flex-start; gap: 5px; white-space: nowrap; overflow-wrap: normal; }
.ros-my-facts { list-style: none; display: grid; gap: 6px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--ros-border); }
.ros-my-facts li { display: flex; align-items: flex-start; gap: 10px; color: var(--ros-text); font-size: .84rem; line-height: 1.45; }
.ros-my-facts .fa { width: 16px; margin-top: 3px; text-align: center; color: var(--ros-muted); }
.ros-my-card .ros-my-note { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--ros-primary-soft); color: var(--ros-text); font-size: .8rem; line-height: 1.5; }
.ros-my-note .fa { margin-top: 3px; color: var(--ros-primary); }
.ros-my-team { display: grid; gap: 8px; }
.ros-my-label { color: var(--ros-muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.ros-my-team ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ros-my-team li { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 10px 3px 3px; border: 1px solid var(--ros-border); border-radius: 999px; background: var(--ros-bg); }
.ros-my-team li > span:last-child { display: grid; min-width: 0; line-height: 1.2; }
.ros-my-team li strong { font-size: .78rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-my-team li small { color: var(--ros-muted); font-size: .68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-my-team li.is-more { padding: 6px 12px; color: var(--ros-muted); font-size: .78rem; font-weight: 700; }
.ros-my-team .ros-avatar { width: 26px; height: 26px; font-size: .62rem; }
.ros-my-actions { align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ros-border); }
.ros-my-actions .ros-my-plan { margin-left: auto; }
@media (max-width: 600px) {
    .ros-my-actions > * { flex: 1 1 auto; }
    .ros-my-actions .ros-my-plan { margin-left: 0; }
}

@media (max-width: 700px) {
    .ros-position { grid-template-columns: 1fr; }
    .ros-item { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .ros-item-length { display: none; }
}

/* ===== Layout no estilo Planning Center (v2) ===== */
.ros-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.ros-layout > aside { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 16px; }
.ros-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--ros-border); }
.ros-topbar h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 650; letter-spacing: -.02em; color: var(--ros-text); }
.ros-topbar h1 a { color: var(--ros-muted); text-decoration: none; font-size: 1.1rem; }
.ros-topbar .ros-crumb { display: block; color: var(--ros-muted); font-size: .8rem; font-weight: 600; margin-bottom: 2px; }
.ros-topbar .ros-crumb a { color: inherit; text-decoration: none; }
.ros-topbar .ros-crumb a:hover { text-decoration: underline; }
.ros-topbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Pastas */
.ros-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-bottom: 24px; }
.ros-folder { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border: 1px solid var(--ros-border); border-radius: 8px; background: var(--ros-surface); color: var(--ros-text); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.ros-folder:hover { border-color: var(--ros-primary); color: var(--ros-primary); text-decoration: none; }
.ros-folder > i { color: var(--ros-muted); width: 18px; text-align: center; }
.ros-section-title { margin: 8px 0 12px; font-size: 1.05rem; font-weight: 650; color: var(--ros-text); }

/* Painel do tipo de serviço */
.ros-panel { border: 1px solid var(--ros-border); border-radius: 10px; background: var(--ros-surface); margin-bottom: 12px; overflow: hidden; }
.ros-panel > header { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; }
.ros-panel-toggle { display: inline-flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ros-text); font: inherit; font-size: .95rem; font-weight: 600; text-align: left; cursor: pointer; padding: 8px 0; }
.ros-panel-toggle i { color: var(--ros-muted); width: 12px; }
.ros-panel-body { border-top: 1px solid var(--ros-border); }
.ros-plan-rows { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ros-plan-rows th { text-align: left; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ros-muted); padding: 8px 12px; border-bottom: 1px solid var(--ros-border); font-weight: 700; }
.ros-plan-rows td { padding: 11px 12px; border-bottom: 1px solid var(--ros-border); vertical-align: middle; }
.ros-plan-rows tr:hover td { background: var(--ros-primary-soft); }
.ros-plan-rows a { color: var(--ros-text); font-weight: 600; text-decoration: none; }
.ros-plan-rows td.is-muted { color: var(--ros-muted); font-size: .8rem; }
.ros-panel-empty { padding: 22px 12px; text-align: center; color: var(--ros-muted); font-size: .86rem; }
.ros-panel-footer { display: flex; gap: 8px; padding: 10px 12px; }
.ros-small-select { min-height: 32px; padding: 4px 8px; border: 1px solid var(--ros-border); border-radius: 6px; background: var(--ros-surface); color: var(--ros-text); font-size: .8rem; font-weight: 600; }
.ros-small-button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--ros-border); border-radius: 6px; background: var(--ros-surface); color: var(--ros-text); font: inherit; font-size: .8rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.ros-small-button:hover { border-color: var(--ros-primary); color: var(--ros-primary); text-decoration: none; }

/* Calendário lateral */
.ros-cal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ros-cal header strong { font-size: 1.05rem; font-weight: 600; color: var(--ros-text); text-transform: capitalize; }
.ros-cal-nav { display: inline-flex; border: 1px solid var(--ros-border); border-radius: 6px; overflow: hidden; }
.ros-cal-nav button { width: 28px; height: 26px; border: 0; background: var(--ros-surface); color: var(--ros-muted); cursor: pointer; }
.ros-cal-nav button:hover { color: var(--ros-primary); }
.ros-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 2px; }
.ros-cal-grid > span { font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--ros-muted); padding: 4px 0 8px; text-transform: uppercase; }
.ros-cal-day { position: relative; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ros-text); font: inherit; font-size: .84rem; cursor: pointer; }
.ros-cal-day.is-other { color: var(--ros-muted); opacity: .6; }
.ros-cal-day.is-today { background: color-mix(in srgb, var(--ros-muted) 18%, transparent); }
.ros-cal-day.is-selected { background: var(--ros-primary); color: #fff; }
.ros-cal-day.has-plan { font-weight: 750; }
.ros-cal-day.has-plan::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ros-primary); }
.ros-cal-day.is-selected::after { background: #fff; }
.ros-upcoming h3 { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ros-muted); margin: 14px 0 8px; }
.ros-upcoming a { display: block; padding: 6px 0 8px 10px; border-left: 2px solid var(--ros-border); margin-bottom: 8px; color: var(--ros-text); text-decoration: none; }
.ros-upcoming a:hover { border-left-color: var(--ros-primary); text-decoration: none; }
.ros-upcoming a strong { display: block; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.ros-upcoming a span { display: flex; justify-content: space-between; gap: 8px; color: var(--ros-muted); font-size: .76rem; }
.ros-upcoming p { color: var(--ros-muted); font-size: .82rem; border-left: 2px solid var(--ros-border); padding-left: 10px; }

/* Cabeçalho do plano */
.ros-plan-head { padding-bottom: 14px; border-bottom: 1px solid var(--ros-border); }
.ros-plan-head small { color: var(--ros-muted); font-size: .8rem; font-weight: 600; }
.ros-plan-head small a { color: var(--ros-muted); text-decoration: none; }
.ros-plan-head h1 { margin: 2px 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -.02em; color: var(--ros-text); }
.ros-plan-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ros-date-nav { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ros-date-nav a, .ros-date-nav span.is-disabled { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ros-border); border-radius: 6px; color: var(--ros-text); text-decoration: none; }
.ros-date-nav span.is-disabled { opacity: .4; }
.ros-date-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border: 1px solid var(--ros-border); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ros-text); }
.ros-menu { position: relative; }
.ros-menu > summary { list-style: none; }
.ros-menu > summary::-webkit-details-marker { display: none; }
.ros-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 240px; padding: 6px; border: 1px solid var(--ros-border); border-radius: 10px; background: var(--ros-surface); box-shadow: 0 12px 30px rgb(0 0 0 / 18%); }
.ros-menu-list button, .ros-menu-list a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ros-text); font: inherit; font-size: .85rem; text-align: left; text-decoration: none; cursor: pointer; }
.ros-menu-list button:hover, .ros-menu-list a:hover { background: var(--ros-primary-soft); color: var(--ros-primary); text-decoration: none; }
.ros-menu-list .is-danger { color: var(--ros-danger); }

/* Plano: barra lateral */
.ros-plan-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; min-height: 60vh; }
.ros-plan-side { padding: 16px 16px 16px 0; border-right: 1px solid var(--ros-border); display: flex; flex-direction: column; gap: 18px; }
.ros-plan-main { padding: 0 0 0 20px; min-width: 0; }
.ros-side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1rem; font-weight: 650; color: var(--ros-text); }
.ros-side-title i { color: var(--ros-muted); }
.ros-side-box { border: 1px solid var(--ros-border); border-radius: 8px; overflow: hidden; background: var(--ros-surface); margin-bottom: 10px; }
.ros-side-box summary { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--ros-bg); color: var(--ros-muted); font-size: .8rem; font-weight: 650; cursor: pointer; list-style: none; }
.ros-side-box summary::-webkit-details-marker { display: none; }
.ros-side-box summary::before { content: "\f0da"; font-family: FontAwesome; width: 10px; transition: transform .15s; }
.ros-side-box details[open] > summary::before { transform: rotate(90deg); }
.ros-side-box .ros-team-summary { flex-direction: column; align-items: flex-start; color: var(--ros-text); font-size: .9rem; }
.ros-side-box .ros-team-summary::before { display: none; }
.ros-time-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--ros-border); }
.ros-day-badge { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ros-success); color: #fff; font-size: .7rem; font-weight: 750; }
.ros-day-badge.is-rehearsal { background: var(--ros-muted); }
.ros-time-row strong { display: block; font-size: .9rem; color: var(--ros-text); }
.ros-time-row small { color: var(--ros-muted); font-size: .72rem; text-transform: uppercase; }
.ros-counts { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 650; }
.ros-counts .is-ok { color: var(--ros-success); }
.ros-counts .is-no { color: var(--ros-danger); }
.ros-counts .is-wait { color: var(--ros-warning); }
.ros-pos-head { padding: 6px 12px; background: var(--ros-bg); color: var(--ros-muted); font-size: .76rem; font-weight: 650; border-top: 1px solid var(--ros-border); }
.ros-person-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--ros-border); font-size: .84rem; color: var(--ros-text); }
.ros-person-row a { color: inherit; text-decoration: none; }
.ros-person-row.is-pending, .ros-person-row.is-declined { color: var(--ros-muted); }
.ros-person-row .ros-person-actions { margin-left: auto; }
.ros-avatar { position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--ros-primary) 18%, var(--ros-surface)); color: var(--ros-primary); font-size: .66rem; font-weight: 750; }
.ros-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ros-surface); background: var(--ros-muted); }
/* Foto no círculo; a bolinha de status só aparece quando o avatar representa uma escala. */
.ros-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ros-avatar:not(.is-accepted, .is-pending, .is-declined, .is-replaced, .is-cancelled, .is-awaiting)::after { display: none; }
.ros-avatar.is-large { width: 56px; height: 56px; font-size: 1.1rem; }
.ros-person-line, .ros-list > li > .ros-person-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ros-person-line > div { display: grid; gap: 2px; min-width: 0; }
.ros-list > li > .ros-grow { flex: 1; }
.ros-person-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
/* Cadastro de pessoa dentro da busca e convite de acesso na ficha da pessoa. */
.ros-person-form { display: grid; gap: 4px; }
.ros-picker-filter { margin: -4px 0 14px; }
.ros-picker-create { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px dashed var(--ros-border); border-radius: var(--ros-radius); background: transparent; color: var(--ros-primary); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.ros-picker-create:hover, .ros-picker-create:focus-visible { border-color: var(--ros-primary); background: var(--ros-primary-soft); }
.ros-person-form .ros-check { margin-bottom: 12px; }
.ros-access-invite { margin: 4px 0 20px; }
.ros-access-invite .ros-notice { margin-bottom: 12px; }
.ros-access-invite-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
.ros-page .ros-access-invite-actions .omni-form-field { flex: 0 1 320px; }
.ros-page .ros-access-invite-actions .omni-form-field > label { line-height: 20px; }
.ros-access-invite-actions .ros-actions { margin-bottom: 16px; }
.ros-access-invite-actions .omni-form-field + .ros-actions { padding-top: 27px; }
.ros-person-title h2 { margin: 0; }
.ros-avatar.is-accepted::after { background: var(--ros-success); }
.ros-avatar.is-pending::after { background: #f59e0b; }
.ros-avatar.is-declined::after { background: var(--ros-danger); }
/* Inscrição em vaga aberta aguardando a liderança: cor primária. */
.ros-avatar.is-awaiting::after, .ros-dot.is-awaiting { background: var(--ros-primary); }
.ros-person-row.is-awaiting { background: color-mix(in srgb, var(--ros-primary) 6%, var(--ros-surface)); }
/* Nome com a etiqueta embaixo e, à direita, Aprovar/Recusar só com ícone (cabe no card estreito da equipe). */
.ros-person-row.is-awaiting > span:not(.ros-avatar):not(.ros-person-actions) { display: grid; justify-items: start; gap: 3px; flex: 1; min-width: 0; }
.ros-awaiting-chip { max-width: 100%; padding: 1px 8px; font-size: .68rem; line-height: 1.35; white-space: normal; overflow-wrap: normal; word-break: normal; }
.ros-person-row .ros-signup-review { display: inline-flex; gap: 6px; flex: none; }
.ros-person-row .ros-signup-review > button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--ros-border); border-radius: 50%; background: var(--ros-surface); color: var(--ros-text); cursor: pointer; }
.ros-person-row .ros-signup-review > button.is-approve { border-color: transparent; background: var(--ros-primary); color: var(--ros-surface); }
.ros-person-row .ros-signup-review > button.is-approve:hover { filter: brightness(1.1); }
.ros-person-row .ros-signup-review > button.is-reject:hover { color: var(--ros-danger); border-color: color-mix(in srgb, var(--ros-danger) 35%, var(--ros-border)); background: color-mix(in srgb, var(--ros-danger) 8%, var(--ros-surface)); }
.ros-person-row .ros-signup-review > button:disabled { cursor: not-allowed; opacity: .6; }
/* O tema escuro gerado zera o fundo dos botões de ação: repete as cores aqui. */
body.dark-mode .ros-person-row .ros-signup-review > button { border: 1px solid var(--ros-border); background: var(--ros-surface); color: var(--ros-text); }
body.dark-mode .ros-person-row .ros-signup-review > button.is-approve { border-color: transparent; background: var(--ros-primary); color: var(--omni-color-page); }
.ros-signup-notice { margin-bottom: 14px; }
.ros-signup-notice > i { color: var(--ros-primary); }

/* Plano: abas */
.ros-plan-tabs { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ros-border); margin-bottom: 16px; flex-wrap: wrap; }
.ros-plan-tabs nav { display: flex; gap: 2px; flex-wrap: wrap; }
.ros-plan-tabs nav button { min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ros-muted); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.ros-plan-tabs nav button.is-active { color: var(--ros-text); border-bottom-color: var(--ros-primary); }
.ros-plan-tabs nav.is-secondary button { font-size: .8rem; padding: 8px 10px; }

/* Ordem do culto (leitura) */
.ros-order { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ros-order th { text-align: left; padding: 8px 10px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ros-muted); border-bottom: 1px solid var(--ros-border); }
.ros-order td { padding: 10px; border-bottom: 1px solid var(--ros-border); vertical-align: top; }
.ros-order td.ros-order-length { width: 64px; color: var(--ros-muted); font-variant-numeric: tabular-nums; }
.ros-order td.ros-order-time { width: 56px; color: var(--ros-muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.ros-order tr.is-header td { background: var(--ros-bg); font-size: .76rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ros-text); padding: 8px 10px; }
.ros-order tr.is-live td { background: var(--ros-primary-soft); }
.ros-order-title strong { font-weight: 650; color: var(--ros-text); }
.ros-order-title p { margin: 4px 0 0; color: var(--ros-muted); font-size: .8rem; white-space: pre-line; }
.ros-order td.ros-order-files { width: 56px; text-align: right; color: var(--ros-muted); font-size: .8rem; white-space: nowrap; }
.ros-key { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: #1d74c9; color: #fff; font-size: .7rem; font-weight: 750; vertical-align: middle; }

/* Equipes em cartões */
.ros-team-cards { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ros-team-card { width: min(100%, 240px); border: 1px solid var(--ros-border); border-radius: 8px; background: var(--ros-surface); overflow: hidden; }
.ros-team-card > header { padding: 12px; }
.ros-team-card > header h3 { margin: 0 0 4px; font-size: .95rem; font-weight: 700; color: var(--ros-text); display: flex; align-items: center; gap: 6px; }
.ros-team-card .ros-matrix-add { margin: 2px 12px 8px; }
.ros-team-group-label { font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ros-muted); margin: 0 0 10px; }
.ros-need-input { width: 64px; min-height: 30px; padding: 2px 6px; border: 1px solid var(--ros-border); border-radius: 6px; background: var(--ros-surface); color: var(--ros-text); }

/* Ensaio */
.ros-rehearse { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--ros-border); border-radius: 8px; overflow: hidden; background: var(--ros-surface); min-height: 420px; }
.ros-rehearse-list { border-right: 1px solid var(--ros-border); }
.ros-rehearse-list > header { padding: 12px; font-weight: 650; color: var(--ros-text); border-bottom: 1px solid var(--ros-border); }
.ros-rehearse-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--ros-border); background: transparent; color: var(--ros-text); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.ros-rehearse-list button.is-active { background: color-mix(in srgb, #1d74c9 30%, var(--ros-surface)); }
.ros-rehearse-detail { padding: 18px 20px; min-width: 0; }
.ros-rehearse-detail h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 600; color: var(--ros-text); }
.ros-song-facts { color: var(--ros-muted); font-size: .84rem; line-height: 1.6; margin-bottom: 14px; }
.ros-song-facts b { color: var(--ros-text); font-weight: 600; }
.ros-materials { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ros-material-card { border: 1px solid var(--ros-border); border-radius: 6px; background: var(--ros-surface); margin-bottom: 16px; }
.ros-material-card > h4 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--ros-border); font-size: .74rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--ros-muted); }
.ros-material-card > div { padding: 6px 12px 10px; }
.ros-material { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ros-material > button, .ros-material > a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: #2f9e5d; font: inherit; font-size: .86rem; text-align: left; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.ros-material > button:hover, .ros-material > a:hover { text-decoration: underline; }
.ros-material .ros-material-remove, .ros-material .ros-material-download { margin-left: auto; color: var(--ros-muted); }
.ros-material .ros-material-download + .ros-material-remove { margin-left: 0; }
.ros-input-action { position: relative; }
.ros-input-action input { padding-right: 52px; }
.ros-input-action button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--ros-primary); color: #fff; cursor: pointer; }
.ros-input-action button:disabled { opacity: .4; cursor: default; }
.ros-input-action button:focus-visible { outline: 2px solid var(--ros-primary); outline-offset: 2px; }
.ros-dialog-xl { width: min(1100px, calc(100% - 32px)); }
.ros-modal-footer .ros-footer-start { margin-right: auto; }
.ros-modal-footer span.ros-footer-start { margin-bottom: 0; }

/* Formulários em seções numeradas: uma pergunta por bloco, com a explicação junto da escolha */
.ros-form-section { padding: 18px 0; border-top: 1px solid var(--ros-border); }
.ros-form-section:first-child { padding-top: 0; border-top: 0; }
.ros-form-section > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1rem; font-weight: 700; color: var(--ros-text); }
.ros-form-section .ros-step-number { background: var(--ros-primary-soft); color: var(--ros-primary); }
.ros-toggle-hint { margin: -4px 0 12px 54px; }
.ros-team-name { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 0 16px; }
.ros-color { height: 44px; padding: 4px; cursor: pointer; }
.ros-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; border: 0; }
.ros-choice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--ros-border); border-radius: 12px; background: var(--ros-surface); cursor: pointer; }
.ros-choice:hover { border-color: var(--ros-primary); }
.ros-choice.is-selected { border-color: var(--ros-primary); box-shadow: 0 0 0 1px var(--ros-primary); background: var(--ros-primary-soft); }
.ros-choice input { margin-top: 4px; accent-color: var(--ros-primary); }
.ros-choice:has(input:focus-visible) { outline: 2px solid var(--ros-primary); outline-offset: 2px; }
.ros-choice strong { display: block; font-size: .9rem; color: var(--ros-text); }
.ros-choice small { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.5; color: var(--ros-muted); }
.ros-position-list { display: grid; gap: 8px; margin-bottom: 8px; }
.ros-position-head, .ros-position-row { display: grid; grid-template-columns: minmax(0, 2fr) 120px 110px 64px 40px; gap: 12px; align-items: center; }
.ros-position-head { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ros-muted); }
.ros-position-row { padding: 8px 10px; border: 1px solid var(--ros-border); border-radius: 10px; background: var(--ros-surface); }
.ros-position-row.is-inactive { opacity: .6; }
.ros-position-row .form-group, .ros-position-row .omni-form-field { margin: 0; }
.ros-position-row label:not(.custom-control-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ros-position-row .ros-toggle { margin: 0; }
@media (max-width: 720px) {
    .ros-choices, .ros-team-name { grid-template-columns: 1fr; }
    .ros-position-head { display: none; }
    .ros-position-row { grid-template-columns: 1fr 1fr; }
    .ros-position-row > :first-child { grid-column: 1 / -1; }
    .ros-position-row label:not(.custom-control-label) { position: static; width: auto; height: auto; clip: auto; }
}
.ros-steps { margin-bottom: 18px; }
.ros-steps > button { display: inline-flex; align-items: center; gap: 8px; }
.ros-step-number { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ros-border); color: var(--ros-text); font-size: .72rem; font-weight: 700; }
.ros-steps > button.is-active .ros-step-number { background: var(--ros-primary); color: #fff; }
.ros-step-done { color: #2f9e5d; }
.ros-editor { min-height: 52dvh; resize: vertical; }
.ros-editor-preview { max-height: 62dvh; overflow-y: auto; }

/* Mapa vocal: solo na cor do texto, uníssono em azul e vocal aberto em vermelho (como o mapa em papel) */
.ros-page, .ros-dialog { --ros-vocal-solo: var(--ros-text); --ros-vocal-unison: #2563eb; --ros-vocal-open: #dc2626; }
body.dark-mode .ros-page, body.dark-mode .ros-dialog { --ros-vocal-unison: #60a5fa; --ros-vocal-open: #f87171; }
.ros-vocal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .86rem; font-weight: 700; }
.ros-vocal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ros-vocal-legend li span, .ros-vocal-chip span { width: 14px; height: 14px; border-radius: 3px; background: currentColor; flex: none; }
.ros-vocal-title { margin-bottom: 14px; font-weight: 700; color: #c2410c; text-decoration: underline; }
.ros-vocal-map { font-weight: 700; line-height: 1.45; font-size: .95rem; }
.ros-vocal-map.is-columns { columns: 2 280px; column-gap: 40px; }
.ros-vocal-map.is-large { font-size: 1.3rem; }
.ros-vocal-block { break-inside: avoid; margin-bottom: 1em; }
.ros-vocal-label { margin-bottom: 2px; font-size: .72em; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.is-solo { --ros-vocal: var(--ros-vocal-solo); }
.is-unison { --ros-vocal: var(--ros-vocal-unison); }
.is-open { --ros-vocal: var(--ros-vocal-open); }
.ros-vocal-block, .ros-vocal-legend li, .ros-vocal-chip { color: var(--ros-vocal); }
.ros-vocal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ros-vocal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--ros-border); border-radius: 999px; background: var(--ros-surface); font-size: .8rem; font-weight: 700; cursor: pointer; }
.ros-vocal-chip:hover { border-color: currentColor; }
.ros-vocal-chip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ros-lookup { margin-bottom: 18px; padding: 14px; border: 1px dashed var(--ros-border); border-radius: 12px; background: var(--ros-primary-soft); }
.ros-lookup .ros-hint { margin: 6px 0 0; }
.ros-lookup-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 280px; overflow-y: auto; border: 1px solid var(--ros-border); border-radius: 10px; background: var(--ros-surface); }
.ros-lookup-results li + li { border-top: 1px solid var(--ros-border); }
.ros-lookup-results > li { display: flex; align-items: center; gap: 4px; padding-right: 10px; }
.ros-lookup-results > li > button { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--ros-text); text-align: left; cursor: pointer; }
.ros-lookup-results > li > button.ros-lookup-play { flex: none; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--ros-border); color: var(--ros-primary); }
.ros-lookup-results > li > button.ros-lookup-play.is-playing { background: var(--ros-primary); border-color: var(--ros-primary); color: #fff; }
.ros-lookup-results > li > button:hover:not(:disabled), .ros-lookup-results > li > button:focus-visible { background: var(--ros-primary-soft); }
.ros-lookup-results img, .ros-lookup-cover { flex: none; width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.ros-lookup-cover { display: inline-flex; align-items: center; justify-content: center; background: var(--ros-border); color: var(--ros-muted); }
.ros-lookup-results span { min-width: 0; }
.ros-lookup-results strong { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-lookup-results small { display: block; font-size: .76rem; color: var(--ros-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-lookup-applied { margin: 10px 0 0; font-size: .82rem; color: #2f9e5d; }
.ros-lookup-applied span { display: block; margin-top: 2px; color: var(--ros-muted); font-size: .76rem; }
.ros-lookup-applied a { color: inherit; text-decoration: underline; }
.ros-lyrics-toggle { margin-bottom: 10px; }
.ros-lyrics-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.ros-lyrics-item > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ros-lyrics-item strong { font-size: .88rem; }
.ros-lyrics-item small { font-size: .76rem; color: var(--ros-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-lyrics-preview { font-style: italic; }
.ros-lyrics-item > .ros-link-button { flex: none; width: auto; white-space: nowrap; }
@media (max-width: 640px) { .ros-lyrics-item { flex-wrap: wrap; } .ros-lyrics-item > button { width: 100%; justify-content: center; } }
.ros-preview { display: flex; justify-content: center; min-height: 200px; }
.ros-preview iframe { width: 100%; height: min(75dvh, 900px); border: 0; border-radius: 8px; background: #fff; }
.ros-preview img { max-width: 100%; max-height: 75dvh; object-fit: contain; border-radius: 8px; }
.ros-upload-progress { margin-top: 12px; }
.ros-upload-progress-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .8rem; color: var(--ros-muted); }
.ros-upload-progress-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-upload-progress-label strong { flex: none; color: var(--ros-text); font-weight: 650; }
.ros-upload-progress-track { height: 6px; border-radius: 999px; background: var(--ros-border); overflow: hidden; }
.ros-upload-progress-bar { height: 100%; border-radius: inherit; background: #2f9e5d; transition: width .2s ease; }
@media (prefers-reduced-motion: reduce) { .ros-upload-progress-bar { transition: none; } }
.ros-material img { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; flex: none; }
.ros-material small { color: var(--ros-muted); font-size: .72rem; }
.ros-description { white-space: pre-line; color: var(--ros-text); font-size: .86rem; padding: 10px 12px; }

/* Player de mídia */
.ros-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; display: grid; grid-template-columns: minmax(140px, 300px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 16px; background: #111827; color: #e5e7eb; border-top: 1px solid #374151; box-shadow: 0 -8px 24px rgb(0 0 0 / 25%); }
.ros-player-track { min-width: 0; }
.ros-player small { display: block; font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; }
.ros-player strong { display: block; font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-player-track > span { display: block; font-size: .74rem; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-player-controls { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ros-wave-player { --ros-wave-played: #e5e7eb; --ros-wave-pending: #4b5563; --ros-wave-loop: rgba(167, 139, 250, .28); --ros-wave-loop-edge: #a78bfa; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #1f2937; }
.ros-wave-player audio { display: none; }
.ros-player .ros-wave-play { width: 40px; height: 40px; background: #fff; color: #111827; font-size: .95rem; box-shadow: 0 2px 8px rgb(0 0 0 / 30%); transition: transform .15s ease; }
.ros-player .ros-wave-play:hover:not(:disabled) { background: #fff; transform: scale(1.06); }
.ros-player .ros-wave-play .fa-play { margin-left: 3px; }
.ros-wave-time { flex: none; min-width: 34px; font-size: .74rem; font-variant-numeric: tabular-nums; color: #9ca3af; text-align: center; }
.ros-wave { position: relative; flex: 1; min-width: 60px; height: 40px; cursor: pointer; touch-action: none; border-radius: 6px; }
.ros-wave canvas { display: block; width: 100%; height: 100%; }
.ros-wave-player.is-loop-mode .ros-wave { cursor: col-resize; }
.ros-wave-loop-status { position: absolute; top: -20px; left: 0; padding: 1px 8px; border-radius: 999px; background: #4c1d95; color: #ede9fe; font-size: .68rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.ros-wave-player.is-loop-mode .ros-wave-loop-status:not(:empty) { opacity: 1; }
.ros-player .ros-wave-loop.is-active, .ros-player .ros-wave-repeat.is-active { background: #4c1d95; color: #ede9fe; }
.ros-player .ros-wave-repeat { position: relative; }
.ros-wave-repeat span { position: absolute; right: 5px; bottom: 5px; min-width: 12px; height: 12px; border-radius: 999px; background: #a78bfa; color: #111827; font-size: .56rem; font-weight: 800; line-height: 12px; text-align: center; opacity: 0; }
.ros-wave-repeat.is-active span { opacity: 1; }
.ros-player .ros-wave-split { font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.ros-player .ros-wave-split.is-active { background: #4c1d95; color: #ede9fe; }
.ros-wave-sides { flex: none; display: none; flex-direction: column; gap: 4px; }
.ros-wave-player.is-split .ros-wave-sides { display: flex; }
/* Separado, cada lado ganha a altura de uma onda inteira (botões alinhados com as faixas: 2 × 30 px + 4 px). */
.ros-wave-player.is-split .ros-wave { height: 64px; }
.ros-player .ros-wave-player.is-split .ros-wave-sides button { height: 30px; }
.ros-player .ros-wave-sides button { display: flex; align-items: center; justify-content: center; gap: 4px; width: auto; height: 18px; padding: 0 7px; border-radius: 999px; background: #374151; font-size: .62rem; font-weight: 800; }
.ros-player .ros-wave-sides button.is-off { opacity: .55; }
.ros-player .ros-wave-sides button.is-active { background: #4c1d95; color: #ede9fe; }
.ros-wave:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.ros-wave-player.is-loading-wave .ros-wave canvas { animation: ros-wave-pulse 1.2s ease-in-out infinite; }
@keyframes ros-wave-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ros-player .ros-wave-play { transition: none; } .ros-wave-player.is-loading-wave .ros-wave canvas { animation: none; } .ros-wave-loop-status { transition: none; } }
@media (max-width: 640px) { .ros-wave-player .ros-wave-time, .ros-wave-player .ros-wave-mute { display: none; } }
/* A barra do player é escura nos dois temas: estas regras impedem o gerador do modo escuro de inverter as cores. */
body.dark-mode .ros-wave-player { --ros-wave-played: #e5e7eb; --ros-wave-pending: #4b5563; --ros-wave-loop: rgba(167, 139, 250, .28); --ros-wave-loop-edge: #a78bfa; background: #1f2937; }
body.dark-mode .ros-player .ros-wave-loop.is-active, body.dark-mode .ros-player .ros-wave-repeat.is-active, body.dark-mode .ros-player .ros-wave-split.is-active, body.dark-mode .ros-player .ros-wave-sides button.is-active { background: #4c1d95; color: #ede9fe; }
body.dark-mode .ros-player .ros-wave-sides button { background: #374151; }
body.dark-mode .ros-wave-loop-status { background: #4c1d95; color: #ede9fe; }
body.dark-mode .ros-player .ros-wave-play, body.dark-mode .ros-player .ros-wave-play:hover:not(:disabled) { background: #fff; color: #111827; }
.ros-player-note { flex: 1; min-width: 0; text-align: center; font-size: .8rem; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-player-actions { display: flex; gap: 2px; }
.ros-player button { flex: none; border: 0; border-radius: 50%; background: transparent; color: #e5e7eb; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; }
.ros-player button:hover:not(:disabled), .ros-player button.is-active { background: #374151; }
.ros-player button:disabled { opacity: .35; cursor: default; }
.ros-player button:focus-visible, .ros-queue button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.ros-queue { position: fixed; right: 16px; bottom: 64px; z-index: 1051; width: min(92vw, 360px); max-height: min(60vh, 420px); display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #111827; color: #e5e7eb; box-shadow: 0 12px 30px rgb(0 0 0 / 35%); }
.ros-queue header { padding: 10px 14px; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; border-bottom: 1px solid #374151; }
.ros-queue ol { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.ros-queue button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ros-queue button:hover, .ros-queue button.is-active { background: #1f2937; }
.ros-queue button.is-active strong { color: #60a5fa; }
.ros-queue button > i { width: 16px; text-align: center; color: #9ca3af; }
.ros-queue button span { min-width: 0; }
.ros-queue strong { display: block; font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ros-queue small { display: block; font-size: .72rem; color: #9ca3af; }
.ros-embed { position: fixed; left: 16px; bottom: 76px; z-index: 1051; width: min(92vw, 380px); border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 12px 30px rgb(0 0 0 / 35%); }
.ros-embed header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #111827; color: #e5e7eb; font-size: .78rem; font-weight: 600; }
.ros-embed header button { border: 0; background: transparent; color: #e5e7eb; cursor: pointer; }
.ros-embed iframe { display: block; width: 100%; border: 0; }
.ros-embed-video { aspect-ratio: 16 / 9; }
.ros-embed-video iframe { height: 100%; }
.ros-has-player { padding-bottom: 76px; }

/* ToggleSwitch compartilhado dentro das telas do OmniRoster */
.ros-page .ros-toggle, .ros-dialog .ros-toggle { margin: 6px 0 12px; }
.ros-page .ros-toggle .custom-control-label, .ros-dialog .ros-toggle .custom-control-label { font-size: .86rem; font-weight: 600; color: var(--ros-text); cursor: pointer; line-height: 1.5rem; }
.ros-table .ros-toggle { margin: 0; }
/* Mesmo switch do OmniChat/OmniClass: trilho em pílula 42x24, botão branco e roxo quando ligado */
:is(.ros-page, .ros-dialog) .ros-toggle { --ros-toggle-off: #dce2ed; --ros-toggle-on: #8b5cf6; min-height: 24px; padding-left: 54px; }
body.dark-mode :is(.ros-page, .ros-dialog) .ros-toggle { --ros-toggle-off: #5f6368; }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-label { min-height: 24px; }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-label::before { top: 0; left: -54px; width: 42px; height: 24px; border: 0; border-radius: 999px; background: var(--ros-toggle-off); box-shadow: none; transition: background .18s ease; }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-label::after { top: 3px; left: -51px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / 35%); transition: transform .18s ease; }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-input:checked ~ .custom-control-label::before { border: 0; background: var(--ros-toggle-on); }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-input:checked ~ .custom-control-label::after { background: #fff; transform: translateX(18px); }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-input:focus ~ .custom-control-label::before { box-shadow: none; }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-input:focus-visible ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgb(139 92 246 / 30%); }
:is(.ros-page, .ros-dialog) .ros-toggle .custom-control-input:disabled ~ .custom-control-label { opacity: .6; cursor: not-allowed; }

@media (max-width: 1000px) {
    .ros-layout, .ros-plan-shell, .ros-rehearse, .ros-materials { grid-template-columns: 1fr; }
    .ros-layout > aside { position: static; }
    .ros-plan-side { border-right: 0; padding-right: 0; }
    .ros-plan-main { padding-left: 0; }
    .ros-rehearse-list { border-right: 0; border-bottom: 1px solid var(--ros-border); }
    .ros-player { grid-template-columns: 1fr auto; }
    .ros-player > div:first-child { display: none; }
    .ros-queue { right: 8px; left: 8px; width: auto; }
}

/* ===== Editor da ordem do culto ===== */
.ros-order-bar { position: sticky; top: 0; z-index: 5; justify-content: space-between; padding: 10px 0; background: var(--ros-bg); border-bottom: 1px solid var(--ros-border); }
.ros-order-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.ros-order-bar .ros-chip.is-warning .fa-circle { font-size: .45rem; }

.ros-edit-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ros-edit-item {
    display: grid; grid-template-columns: 36px minmax(0, 1fr) 104px auto; grid-template-areas: "kind title length tools" ". body body .";
    gap: 10px 12px; align-items: center; padding: 12px 12px 12px 10px;
    background: var(--ros-surface); border: 1px solid var(--ros-border); border-left: 4px solid var(--ros-border); border-radius: 12px;
}
.ros-edit-item:focus-within { border-color: color-mix(in srgb, var(--ros-primary) 45%, var(--ros-border)); box-shadow: 0 2px 10px color-mix(in srgb, var(--ros-primary) 10%, transparent); }
.ros-edit-item.is-song { border-left-color: #1d74c9; }
.ros-edit-item.is-moment { border-left-color: var(--ros-primary); }
.ros-edit-item.is-header { grid-template-areas: "kind title title tools"; margin-top: 14px; padding-block: 8px; background: var(--ros-bg); border-style: dashed; border-left-style: solid; border-left-color: var(--ros-muted); }
.ros-edit-items > .ros-edit-item.is-header:first-child { margin-top: 0; }

.ros-edit-kind { grid-area: kind; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ros-primary-soft); color: var(--ros-primary); font-size: .85rem; }
.ros-edit-item.is-song .ros-edit-kind { background: color-mix(in srgb, #1d74c9 12%, var(--ros-surface)); color: #1d74c9; }
.ros-edit-item.is-header .ros-edit-kind { background: transparent; color: var(--ros-muted); }

.ros-edit-title { grid-area: title; display: flex; align-items: center; gap: 10px; min-width: 0; }
.ros-edit-title .form-control { flex: 1 1 auto; min-width: 0; font-weight: 650; }
.ros-edit-title time { flex: none; color: var(--ros-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.ros-edit-item.is-header .ros-edit-title .form-control { background: transparent; border-color: transparent; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; font-weight: 750; color: var(--ros-muted); }
.ros-edit-item.is-header .ros-edit-title .form-control:hover, .ros-edit-item.is-header .ros-edit-title .form-control:focus { background: var(--ros-surface); border-color: var(--ros-border); }

.ros-edit-length { grid-area: length; position: relative; margin: 0; }
.ros-edit-length > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ros-muted); pointer-events: none; font-size: .85rem; }
.ros-edit-length .form-control { padding-left: 30px; font-variant-numeric: tabular-nums; }

.ros-edit-tools { grid-area: tools; justify-self: end; }
.ros-edit-tools button:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ros-muted); }
.ros-edit-tools button.is-danger:hover { background: color-mix(in srgb, var(--ros-danger) 10%, var(--ros-surface)); color: var(--ros-danger); }

.ros-edit-body { grid-area: body; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ros-edit-song { display: grid; grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr); gap: 8px; }
.ros-edit-body textarea { resize: vertical; min-height: 64px; }
.ros-edit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.ros-edit-meta:empty { display: none; }
.ros-edit-meta .ros-text-button { min-height: 28px; padding: 2px 0; font-size: .8rem; }
.ros-edit-meta small { color: var(--ros-muted); overflow-wrap: anywhere; }

.ros-edit-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border: 1px dashed var(--ros-border); border-radius: 12px; }
.ros-edit-add > span { margin-right: 4px; color: var(--ros-muted); font-size: .82rem; font-weight: 650; }

@media (max-width: 700px) {
    .ros-edit-item { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "kind title title" ". length tools" ". body body"; }
    .ros-edit-item.is-header { grid-template-areas: "kind title title" ". . tools"; }
    .ros-edit-length { width: 104px; }
    .ros-edit-song { grid-template-columns: minmax(0, 1fr); }
    .ros-order-bar-actions { margin-left: 0; width: 100%; }
}

/* Disponibilidade: bloqueios em cartões com data em destaque, formulário em painel e preferências em opções. */
.ros-availability.is-single { max-width: 760px; }
.ros-blockout-empty { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px dashed var(--ros-border); border-radius: 12px; background: var(--ros-bg); }
.ros-blockout-empty > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--ros-success) 12%, var(--ros-surface)); color: var(--ros-success); font-size: 1.1rem; }
.ros-blockout-empty > span { display: grid; gap: 2px; min-width: 0; }
.ros-blockout-empty strong { font-size: .9rem; }
.ros-blockout-empty small { color: var(--ros-muted); font-size: .8rem; line-height: 1.5; }

.ros-blockouts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ros-blockouts > li { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 12px; border: 1px solid var(--ros-border); border-radius: 12px; background: var(--ros-surface); }
.ros-blockouts > li.is-past { opacity: .6; }
.ros-blockout-date { display: grid; place-items: center; flex: none; width: 48px; padding: 5px 0 6px; border-radius: 10px; background: var(--ros-primary-soft); color: var(--ros-primary); line-height: 1.1; }
.ros-blockout-date small { font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.ros-blockout-date strong { font-size: 1.2rem; font-weight: 800; }
.ros-blockout-body { display: grid; gap: 5px; flex: 1; min-width: 0; }
.ros-blockout-body > strong { font-size: .88rem; overflow-wrap: anywhere; }
.ros-blockout-body > small { color: var(--ros-muted); font-size: .78rem; overflow-wrap: anywhere; }
.ros-blockout-body .ros-chip .fa { font-size: .8rem; }
.ros-icon-button.is-danger { width: 38px; height: 38px; }
.ros-icon-button.is-danger:hover { color: var(--ros-danger); background: color-mix(in srgb, var(--ros-danger) 8%, var(--ros-surface)); border-color: color-mix(in srgb, var(--ros-danger) 30%, var(--ros-border)); }
.ros-icon-button:disabled { cursor: not-allowed; opacity: .55; }

.ros-blockout-form { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--ros-border); border-radius: 14px; background: var(--ros-bg); }
.ros-blockout-form > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .95rem; font-weight: 750; color: var(--ros-text); }
.ros-blockout-form > h3 .fa { color: var(--ros-primary); }
.ros-blockout-quick { margin-bottom: 14px; }
button.ros-chip { cursor: pointer; min-height: 30px; font-family: inherit; }
button.ros-chip:hover { color: var(--ros-primary); border-color: color-mix(in srgb, var(--ros-primary) 40%, var(--ros-border)); }
.ros-blockout-kind { justify-self: start; margin-bottom: 14px; background: var(--ros-surface); }
.ros-blockout-form .ros-form-grid .form-control, .ros-blockout-form > .form-group .form-control { background: var(--ros-surface); }
.ros-hint.is-danger { color: var(--ros-danger); font-weight: 600; }
.ros-blockout-repeat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0 20px; }
.ros-blockout-repeat .ros-toggle { margin-top: 30px; }
.ros-blockout-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--ros-border); }
.ros-blockout-summary { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; margin: 0; color: var(--ros-muted); font-size: .82rem; font-weight: 600; }
.ros-blockout-summary .fa { color: var(--ros-danger); }

.ros-stepper { display: flex; align-items: center; gap: 8px; max-width: 220px; }
.ros-stepper .form-control { text-align: center; -moz-appearance: textfield; appearance: textfield; }
.ros-stepper .form-control::-webkit-inner-spin-button, .ros-stepper .form-control::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.ros-option-cards { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.ros-option-cards > legend { margin-bottom: 8px; font-size: .9rem; font-weight: 700; color: var(--ros-text); }
.ros-option-cards > label { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--ros-border); border-radius: 12px; background: var(--ros-surface); color: var(--ros-text); font-size: .86rem; font-weight: 600; cursor: pointer; }
.ros-option-cards > label:hover { border-color: color-mix(in srgb, var(--ros-primary) 40%, var(--ros-border)); }
.ros-option-cards > label.is-active { border-color: var(--ros-primary); background: var(--ros-primary-soft); box-shadow: inset 0 0 0 1px var(--ros-primary); }
.ros-option-cards > label:has(input:focus-visible) { outline: 2px solid var(--ros-primary); outline-offset: 2px; }
.ros-option-cards input { position: absolute; opacity: 0; pointer-events: none; }
.ros-option-cards > label > .fa { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--ros-bg); color: var(--ros-muted); }
.ros-option-cards > label.is-active > .fa { background: var(--ros-primary); color: var(--ros-surface); }
.ros-option-cards > .ros-hint { margin: 0; font-size: .78rem; }

@media (max-width: 600px) {
    .ros-blockout-form { padding: 14px 12px; }
    .ros-blockout-repeat { grid-template-columns: minmax(0, 1fr); }
    .ros-blockout-repeat .ros-toggle { margin-top: 6px; }
    .ros-blockout-kind { justify-self: stretch; }
    .ros-blockout-footer > * { width: 100%; }
}
