/* Cardume — painel do dono (Operação). Complementa cardume.css. */

/* ------------------------------------------------------------- estrutura */
.op { display: grid; gap: 22px; min-width: 0; transition: opacity 0.2s ease; }
.op > * { min-width: 0; }
.op .kpis, .op .banner { margin-bottom: 0; }
.op.op-loading { opacity: 0.55; pointer-events: none; }
.op.op-loading .op-tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); background-size: 200% 100%; animation: op-bar 1s linear infinite; border-radius: 2px; }
.op-small { font-size: 13px; }
.op-nowrap { white-space: nowrap; }
.op-rise { animation: op-rise 0.42s cubic-bezier(.2, .8, .2, 1) both; }
.op-rise:nth-child(3) { animation-delay: 0.04s; }
.op-rise:nth-child(4) { animation-delay: 0.08s; }
.op-rise:nth-child(5) { animation-delay: 0.12s; }
.op-rise:nth-child(n + 6) { animation-delay: 0.16s; }
@keyframes op-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes op-bar { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes op-grow { from { transform: scaleX(0); } }

/* ------------------------------------------------------------------ abas */
.op-tabs { position: relative; margin: -4px 0 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.op-tabs::-webkit-scrollbar { display: none; }
.op-tabs-track { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.op-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.op-tabs a svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: 0.8; }
.op-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.op-tabs a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 24px -10px rgba(46, 242, 200, 0.6); }
.op-tabs a.on svg { color: var(--teal); opacity: 1; }

/* ------------------------------------------------------------ cabecalhos */
.op-section { display: grid; gap: 16px; }
.op-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.op-section-head h2 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.op-section-head p { margin: 4px 0 0; font-size: 14px; }
.op-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel-head { flex-wrap: wrap; }
.op-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; justify-self: start; transition: color 0.2s, transform 0.2s; }
.op-back svg { width: 16px; height: 16px; }
.op-back:hover { color: var(--text); transform: translateX(-2px); }

/* -------------------------------------------------------------- kpis */
.op-kpi { position: relative; overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.op-kpi::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grad); opacity: 0; transition: opacity 0.25s; }
.op-kpi:hover { border-color: var(--line-2); }
.op-kpi:hover::after { opacity: 0.7; }
.op-kpi .value { font-size: clamp(24px, 2.4vw, 30px); overflow-wrap: anywhere; }
.op-kpi-foot { margin: 6px 0 0; font-size: 13px; color: var(--faint); }
.op-kpi-text { font-size: 22px; }
.op-kpi-btn { margin-top: 10px; }

/* ----------------------------------------------------------- graficos */
.op-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.op-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.op-grid-2 > * { min-width: 0; }

/* -------------------------------------------------------------- funil */
.op-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.op-funnel li { display: grid; gap: 8px; }
.op-funnel-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.op-funnel-head .faint { font-size: 13px; }
.op-funnel-num b { font-family: var(--display); font-size: 17px; }
.op-funnel-num .muted { font-size: 13px; }
.op-funnel-bar { height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.op-funnel-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; animation: op-grow 0.8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 0.12s); }
.op-funnel li:nth-child(2) .op-funnel-bar span { opacity: 0.85; }
.op-funnel li:nth-child(3) .op-funnel-bar span { opacity: 0.7; }
.op-funnel-step { color: var(--faint); font-size: 12.5px; padding-left: 14px; position: relative; }
.op-funnel-step::before { content: "↳"; position: absolute; left: 0; color: var(--teal); }

/* -------------------------------------------------- aprovacao e tiles */
.op-approval { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.op-stat { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); min-width: 0; }
.op-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.op-stat-value { font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; }
.op-stat-foot { font-size: 12.5px; color: var(--faint); }
.op-meter { margin-top: 6px; height: 6px; }
.op-meter.ok span { background: linear-gradient(90deg, var(--teal), var(--ok)); }
.op-meter.warn span { background: linear-gradient(90deg, var(--gold), var(--warn)); }
.op-meter.bad span { background: linear-gradient(90deg, var(--warn), var(--coral)); }

.op-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.op-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-width: 0; transition: border-color 0.25s, transform 0.25s; }
.op-tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.op-tile > div { display: grid; min-width: 0; }
.op-tile small { color: var(--muted); font-size: 13px; }
.op-tile b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.op-tile-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(46, 242, 200, 0.1); color: var(--teal); }
.op-tile-ic.warn { background: rgba(255, 181, 71, 0.1); color: var(--warn); }
.op-tile-ic svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------- tabelas */
.op-table td.num, .op-table th.num { text-align: right; }
.op-table tbody tr { transition: background 0.15s; }
.op-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.op-table td { overflow-wrap: anywhere; }
.op-id { font-size: 11.5px; }
.op-row-actions { text-align: right; white-space: nowrap; }
.op-row-actions .btn + .btn { margin-left: 6px; }
.op-link-strong { font-weight: 600; color: var(--text); background-image: linear-gradient(var(--teal), var(--teal)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.25s, color 0.2s; }
.op-link-strong:hover { color: var(--teal); background-size: 100% 1px; }
.op-scroll { max-height: 360px; overflow-y: auto; }
.op-delta { font-weight: 700; }
.op-delta.pos { color: var(--ok); }
.op-delta.neg { color: var(--coral); }
.op-code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 8px; background: rgba(46, 242, 200, 0.08); color: var(--teal); border: 1px dashed rgba(46, 242, 200, 0.35); letter-spacing: 0.04em; white-space: nowrap; display: inline-block; }

/* ------------------------------------------------------------- filtros */
.op-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 16px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.op-filters .field { margin: 0; min-width: 140px; }
.op-filters .input { height: 42px; }
.op-filters .op-grow { flex: 1 1 220px; }
.op-filter-actions { display: flex; gap: 8px; }
.op-filter-actions .btn { --h: 42px; }

/* -------------------------------------------------------------- vazios */
.op-empty { padding: 44px 20px; background: radial-gradient(60% 80% at 50% 0%, rgba(46, 242, 200, 0.05), transparent 70%); }
.op-empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 14px; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--teal); animation: op-float 4s ease-in-out infinite; }
.op-empty-ic svg { width: 26px; height: 26px; }
.op-empty .btn { margin-top: 2px; }
@keyframes op-float { 50% { transform: translateY(-4px); } }

/* -------------------------------------------------------------- ofertas */
.op-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.op-offer { --accent: var(--teal); position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; min-width: 0; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; animation: op-rise 0.42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 0.04s); }
.op-offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); opacity: 0.9; }
.op-offer:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8); }
.op-offer-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.op-offer-head > div:first-child { min-width: 0; }
.op-offer-head h3 { margin: 0; font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.op-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.op-offer-price { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.op-offer-price small { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.op-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.op-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); white-space: nowrap; }
.op-chip svg { width: 13px; height: 13px; }
.op-chip.drip { color: #c6b3ff; border-color: rgba(155, 107, 255, 0.35); background: rgba(155, 107, 255, 0.08); }
.op-offer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.op-offer-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); min-width: 0; }
.op-offer-stats dt { font-size: 12px; color: var(--faint); }
.op-offer-stats dd { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.op-offer-meta { margin: 0; font-size: 12.5px; }
.op-url { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); min-width: 0; }
.op-url code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.op-url .btn { --h: 32px; padding: 0 12px; font-size: 13px; flex: 0 0 auto; }
.op-offer-edit { margin-top: auto; align-self: flex-start; }
.op-copied { color: var(--ok) !important; border-color: rgba(46, 229, 157, 0.45) !important; }

/* -------------------------------------------------------------- modais */
.modal.op-wide { width: min(780px, 100%); }
.op-modal-sub { margin: 0 0 18px; }
.op-fieldset { margin: 0 0 16px; padding: 16px 16px 2px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); min-width: 0; }
.op-fieldset legend { padding: 0 8px; margin-left: -4px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; color: var(--text); }
.op-legend-hint { margin: -2px 0 12px; font-size: 13px; color: var(--faint); }
.op-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.op-checks { display: grid; gap: 0; }
.op-checks .check { margin: 2px 0 10px; }
.op-inline-options { display: flex; flex-wrap: wrap; gap: 8px; }
.op-inline-options .option { padding: 10px 14px; flex: 0 1 auto; }
.op-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.op-prefix { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.op-prefix:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(46, 242, 200, 0.12); }
.op-prefix span { display: grid; place-items: center; padding: 0 4px 0 14px; color: var(--faint); font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.op-prefix .input { border: 0; background: transparent; box-shadow: none; padding-left: 2px; min-width: 0; }
.op-prefix .input:focus { box-shadow: none; }
.op-color { display: flex; align-items: center; gap: 12px; height: 48px; }
.op-color input[type="color"] { width: 48px; height: 48px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.op-color output { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--muted); text-transform: uppercase; }
.op-upper { text-transform: uppercase; letter-spacing: 0.04em; }
.op-file { height: auto; padding: 10px 12px; cursor: pointer; }
.op-file::file-selector-button { margin-right: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font-weight: 600; cursor: pointer; }
.op-tall { min-height: 160px; }
.op-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #ffd9a3; background: rgba(255, 181, 71, 0.08); border: 1px solid rgba(255, 181, 71, 0.35); }
.op-note svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--warn); }
.op-drip-preview { margin: -6px 0 14px; color: #c6b3ff; }

.op-progress { display: grid; gap: 6px; margin-top: 4px; }
.op-progress-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.op-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); background-size: 200% 100%; animation: op-bar 1.2s linear infinite; transition: width 0.25s ease; }
.op-progress.done .op-progress-bar span { animation: none; background: linear-gradient(90deg, var(--teal), var(--ok)); }
.op-progress-text { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- cursos */
.op-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.op-course { display: flex; flex-direction: column; gap: 14px; padding: 14px 14px 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); min-width: 0; transition: border-color 0.25s, transform 0.25s; animation: op-rise 0.42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 0.04s); }
.op-course:hover { border-color: var(--line-2); transform: translateY(-2px); }
.op-course > .btn { align-self: flex-start; margin: auto 4px 0; }
.op-course-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--grad-soft); border: 1px solid var(--line); }
.op-course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.op-course:hover .op-course-cover img { transform: scale(1.03); }
.op-course-cover.sm { width: 168px; flex: 0 0 168px; }
.op-cover-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal); background: radial-gradient(70% 70% at 30% 20%, rgba(46, 242, 200, 0.18), transparent 70%), radial-gradient(70% 70% at 80% 90%, rgba(155, 107, 255, 0.2), transparent 70%); }
.op-cover-ph svg { width: 34px; height: 34px; opacity: 0.85; }
.op-course-body { display: grid; gap: 6px; padding: 0 4px; min-width: 0; }
.op-course-body .op-badges { justify-content: flex-start; }
.op-course-body h3 { margin: 2px 0 0; font-family: var(--display); font-size: 17px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.op-course-body p { margin: 0; }

.op-course-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.op-course-info { flex: 1 1 260px; min-width: 0; display: grid; gap: 6px; }
.op-course-info .op-badges { justify-content: flex-start; }
.op-course-info h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.op-course-info p { margin: 0; }
.op-course-actions, .op-client-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.op-module { animation-delay: calc(var(--i, 0) * 0.05s); }
.op-module-head h3 { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.op-module-n { font-family: var(--body); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
.op-module-empty { margin: 0 0 12px; font-size: 14px; }
.op-lessons { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.op-lesson { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.op-lesson:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.op-lesson-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--teal); background: rgba(46, 242, 200, 0.08); border: 1px solid rgba(46, 242, 200, 0.25); }
.op-lesson-main { display: grid; gap: 8px; min-width: 0; }
.op-lesson-main > b { overflow-wrap: anywhere; line-height: 1.35; }
.op-lesson-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.op-lesson-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.op-materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.op-materials li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 0; }
.op-materials li > svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--muted); }
.op-materials li > span { min-width: 0; overflow-wrap: anywhere; }
.op-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; margin-left: auto; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--faint); cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.op-icon-btn svg { width: 15px; height: 15px; }
.op-icon-btn:hover { color: #ff9aa4; background: rgba(255, 93, 108, 0.1); border-color: rgba(255, 93, 108, 0.3); }
.op-add-lesson { border-style: dashed; }

/* ------------------------------------------------------------- clientes */
.op-alert { border-color: rgba(255, 181, 71, 0.35); background: linear-gradient(180deg, rgba(255, 181, 71, 0.06), transparent 60%), var(--panel); }
.op-alert h2 { display: flex; align-items: center; gap: 8px; }
.op-alert h2 svg { width: 18px; height: 18px; color: var(--warn); }
.op-alert > p { margin: -4px 0 12px; }
.op-del-list, .op-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-del-list li, .op-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.op-del-list li > div:first-child, .op-list li > div:first-child { min-width: 0; flex: 1 1 200px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.op-del-list p { margin: 4px 0 0; }
.op-del-side, .op-list-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.op-search { padding: 10px; }
.op-search .field { min-width: 0; }

.op-client-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.op-avatar { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #03121a; font-family: var(--display); font-size: 24px; font-weight: 700; box-shadow: var(--glow); }
.op-client-info { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.op-client-info h2 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; overflow-wrap: anywhere; }
.op-client-info p { margin: 0; overflow-wrap: anywhere; }
.op-client-info a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.op-grant { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.op-grant .field { margin: 0; flex: 1 1 200px; min-width: 0; }
.op-grant .btn { --h: 48px; }
.op-chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.op-chan { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.op-chan > div:first-child { display: grid; min-width: 0; overflow-wrap: anywhere; }

/* ----------------------------------------------------------- responsivo */
@media (max-width: 1080px) {
  .op-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .op-charts, .op-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .op { gap: 18px; }
  .op-tabs { max-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .op-lesson { grid-template-columns: 28px minmax(0, 1fr); }
  .op-lesson-n { width: 28px; height: 28px; }
  .op-lesson-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .op-tiles { grid-template-columns: minmax(0, 1fr); }
  .op-approval { grid-template-columns: minmax(0, 1fr); }
  .op-stat { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
  .op-stat-label { grid-column: 1; }
  .op-stat-value { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; }
  .op-stat-foot { grid-column: 1; }
  .op-meter { grid-column: 1 / -1; }
  .op-row-3 { grid-template-columns: minmax(0, 1fr); }
  .op-filters { padding: 12px; }
  .op-filters .field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .op-filters .op-grow { flex-basis: 100%; }
  .op-filter-actions { flex: 1 1 100%; }
  .op-filter-actions .btn { flex: 1 1 0; }
  .op-search .op-grow { flex-basis: 0; flex-grow: 1; }
  .op-search .op-filter-actions { flex: 0 0 auto; }
  .op-course-cover.sm { width: 100%; flex-basis: 100%; }
  .op-course-actions .btn, .op-client-actions .btn { flex: 1 1 auto; }
  .op-section-head .op-head-actions { width: 100%; }
  .op-section-head .op-head-actions .btn { flex: 1 1 auto; }
  .op-fieldset { padding: 14px 12px 2px; }
  .modal.op-wide { padding: 22px 16px; }
  .op-url { flex-wrap: wrap; padding: 8px; }
  .op-url code { flex-basis: 100%; padding: 2px 4px 4px; }
  .op-url .btn { flex: 1 1 0; }
  .op-grant .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .op-rise, .op-offer, .op-course, .op-funnel-bar span, .op-empty-ic { animation: none !important; }
}

/* Tabelas: valores sem quebra e largura minima (rolam dentro do .table-wrap no celular). */
.op-table td.num, .op-table th.num { white-space: nowrap; }
@media (max-width: 860px) { .op-table { min-width: 680px; } }

/* Standalone: filtros em chip, cobranca e envios */
a.op-chip { text-decoration: none; }
a.op-chip:hover { color: var(--text); border-color: var(--line-2); }
.op-chip.on { color: #03121a; background: var(--teal); border-color: var(--teal); font-weight: 600; }
.op-break { word-break: break-all; max-width: 260px; }
.op-billing { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.op-billing .option span { display: grid; gap: 2px; }
.op-billing .option small { color: var(--muted); font-weight: 400; }
.op-was { font-size: 18px; font-weight: 500; color: var(--faint); text-decoration: line-through; }
.op-row-3 { align-items: start; }
.op-bump-slot { padding: 12px; border-radius: 12px; border: 1px dashed var(--line-2); margin-bottom: 10px; }

/* Aparencia da area de membros */
.look-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; margin-bottom: 18px; }
#look-editor h3 { font-size: 15px; margin: 4px 0 12px; }
.look-list { display: grid; gap: 10px; margin-bottom: 10px; }
.look-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; grid-template-areas: "label icon actions" "url url url"; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.look-row [data-menu-field="label"] { grid-area: label; }
.look-row [data-menu-field="url"] { grid-area: url; }
.look-row [data-menu-field="icon"] { grid-area: icon; }
.look-row .look-row-actions { grid-area: actions; }
.look-banner-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.look-row-actions { display: flex; gap: 4px; }
.look-banner { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; }
.look-banner-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.look-banner-foot { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.look-label { font-size: 13px; font-weight: 600; }
.look-img-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.look-img-row .input { flex: 1 1 180px; }
.look-thumb { width: 120px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; font-size: 11px; color: var(--faint); }
.look-color { height: 44px; padding: 4px; }
@media (max-width: 860px) {
  .look-grid, .look-banner-imgs { grid-template-columns: 1fr; }
  .look-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "url url" "icon actions"; }
  .look-banner-fields, .look-banner-foot { grid-template-columns: 1fr; }
}
