/* Additive v3 styles; existing design tokens remain authoritative. */
.v3-recommend,.v3-analytics{margin:0 0 24px}.v3-recommend h2,.v3-analytics h2{margin:8px 0}.v3-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.v3-wide{grid-column:1/-1}.v3-field{display:flex;flex-direction:column;gap:9px}.v3-field label{font-size:13px;font-weight:600}.v3-field input,.v3-field select{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;color:var(--text)}.v3-choices{display:flex;flex-wrap:wrap;gap:8px}.v3-choice{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:10px;padding:12px 16px;cursor:pointer}.v3-choice.selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary);font-weight:700}.v3-result{border-top:1px solid var(--line);margin-top:24px;padding-top:24px}.v3-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.v3-card{border:1px solid var(--line);padding:18px;border-radius:var(--radius);display:flex;flex-direction:column;align-items:flex-start;gap:10px}.v3-card h3,.v3-card p{margin:0}.v3-card p{font-size:13px;color:var(--muted);line-height:1.65;flex:1}.v3-rank{color:var(--primary);font-size:12px;font-weight:700}.v3-statrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.v3-statrow>div{background:#fafaf9;border:1px solid var(--line);padding:16px;border-radius:12px;display:grid;gap:8px}.v3-statrow small{color:var(--muted)}.v3-statrow strong{font-size:24px}.v3-analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.v3-analytics-grid h3{margin:0 0 8px}.v3-bars{height:210px;display:flex;align-items:flex-end;gap:8px;margin-top:18px;border-bottom:1px solid var(--line)}.v3-bar-cell{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.v3-bar-cell>div{width:80%;background:var(--primary);border-radius:5px 5px 0 0;min-height:3px}.v3-bar-cell small{font-size:10px;color:var(--muted)}.v3-funnel{display:grid;gap:12px;margin-top:18px}.v3-funnel-step .between{display:flex;gap:8px;font-size:12px}.v3-funnel-step .between span{color:var(--muted)}.v3-track{height:9px;background:#f1f1f1;border-radius:8px;overflow:hidden;margin-top:6px}.v3-track>div{height:100%;background:var(--primary);border-radius:8px}.v3-insight{margin-top:24px;background:var(--primary-soft);border:1px solid #f5e2d5;border-radius:12px;padding:18px}.v3-insight strong{color:var(--text)}.v3-insight p{font-size:13px;line-height:1.8;margin:8px 0 0}@media(max-width:900px){.v3-form,.v3-cards,.v3-statrow{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-analytics-grid{grid-template-columns:1fr}}@media(max-width:600px){.v3-form,.v3-cards,.v3-statrow{grid-template-columns:1fr 1fr}.v3-analytics-grid{grid-template-columns:1fr}.v3-card{grid-column:1/-1}.v3-field{grid-column:1/-1}.v3-statrow strong{font-size:19px}}

.v3-submit-row{display:flex;justify-content:center}.v3-field input[hidden]{display:none}.v3-insight p+p{margin-top:8px}

.v3-game-screen{width:100%;border-radius:12px;overflow:hidden}.v3-game-screen .template-stage{height:220px;padding:14px 8px 0;width:100%}.v3-game-screen .sample-mobile{width:144px;min-height:210px;padding:12px}.v3-game-screen .template-top-label{display:none}.v3-insight-meta{font-size:11px;color:var(--muted);margin-top:8px}.v3-insight-policy{border-top:1px solid #f5e2d5;margin-top:14px;padding-top:12px}.v3-insight-policy summary{cursor:pointer;font-size:12px;color:var(--muted)}

.v3-summary-text{white-space:pre-wrap;font-size:13px;line-height:1.85;margin:16px 0;color:var(--text)}.v3-summary-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}

/* Dates align with their column heading. Sharing reuses the authored report. */
.event-table th:last-child,.event-table td:last-child,.brand-event-table th:last-child,.brand-event-table td:last-child{text-align:left}
.report-analysis-summary>.between{display:block}.report-analysis-summary>.between .mini-label{display:block;margin-top:10px;line-height:1.7}.report-analysis-summary{margin:24px 0 0}.report-analysis-summary textarea{width:100%;min-height:220px}
.report-sharing-note{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 24px}.report-grid{grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)!important;align-items:start}.report-grid>section{min-width:0}.shared-performance-content{margin-top:24px}.report-preview .external-logo{margin-top:24px}.report-preview .shared-performance-content .panel{padding:16px;box-shadow:none}.report-preview .v3-analytics-grid{grid-template-columns:1fr}.report-preview .v3-statrow,.report-preview .data-summary .cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.report-preview .v3-statrow strong{font-size:20px}.report-preview .v3-bars{height:140px}.report-preview .v3-analytics h2{font-size:17px}.report-preview .v3-summary-text{font-size:12px}.shared-performance-content{--primary:var(--report-brand,var(--primary-color,#b77ba2))}
@media(max-width:1100px){.report-grid{grid-template-columns:1fr!important}}

/* Keep event columns inside their panel instead of imposing desktop widths. */
.table-wrap:has(>.task-event-table){width:100%;max-width:100%;overflow-x:auto}
.task-event-table{width:100%;min-width:0;table-layout:fixed}
.task-event-table col.event-title-col{width:38%}.task-event-table col.event-channel-col{width:12%}.task-event-table col.event-stage-col{width:15%}.task-event-table col.event-task-col{width:15%}.task-event-table col.event-period-col{width:20%}
.task-event-table th:nth-child(n){width:auto}.task-event-table th,.task-event-table td{padding:18px 8px;text-align:left}.task-event-table th:last-child,.task-event-table td:last-child{white-space:normal;padding-right:0;overflow-wrap:normal;word-break:keep-all}.task-event-table th{font-size:11px}.task-event-table td{font-size:12px}.task-event-table .badge{white-space:nowrap}.task-event-table .event-cell{gap:10px}.task-event-table .event-cell>div:last-child{flex:1;min-width:0}.task-event-table .event-name{word-break:keep-all;overflow-wrap:break-word}.task-event-table .event-channel{font-size:11px}
.report-grid{grid-template-columns:minmax(0,1fr)!important}.report-grid>*{min-width:0}.report-preview-disclosure{border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff)}.report-preview-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;font-size:15px;font-weight:600;cursor:pointer;list-style:none}.report-preview-disclosure>summary::-webkit-details-marker{display:none}.report-preview-disclosure>summary:focus-visible{outline:2px solid #222;outline-offset:4px}.preview-disclosure-label{font-size:12px;font-weight:400;color:var(--muted)}.preview-disclosure-label::after{content:'펼쳐보기 ＋'}.report-preview-disclosure[open] .preview-disclosure-label::after{content:'접기 −'}.report-preview-disclosure>.report-preview{border:0;border-top:1px solid var(--line);border-radius:0 0 12px 12px;margin:0}.report-preview-disclosure>.report-preview>.panel-head{display:none}.report-sharing-preview>.report-preview-actions{margin-top:20px}
@media(max-width:700px){.task-event-table{min-width:580px}}

.filters>.event-status-filters{display:flex;flex:0 0 100%;order:2;flex-wrap:wrap;gap:8px;margin-top:4px}.event-status-filters>.chip{height:40px;display:inline-flex;align-items:center;justify-content:center;padding-top:0;padding-bottom:0}

.status-filter-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px}.status-filter-chip[aria-pressed="true"]{background:#222;border-color:#222;color:#fff}
