.madu-campaigns{ display:none; }

@media (max-width:640px){
  body.madu-dashboard #main > h2.sec:first-child{
    margin:14px 0 10px;
    font-size:18px;
  }

  body.madu-dashboard .madu-tools{
    margin:0 0 10px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--card);
    box-shadow:0 1px 2px rgba(0,0,0,.04);
    overflow:hidden;
  }
  body.madu-dashboard .madu-tools > summary{
    min-height:48px;
    padding:9px 12px;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    list-style:none;
    color:var(--ink);
  }
  body.madu-dashboard .madu-tools > summary::-webkit-details-marker{ display:none; }
  body.madu-dashboard .madu-tools > summary > span:first-child{
    min-width:0;
    display:flex;
    align-items:baseline;
    gap:7px;
  }
  body.madu-dashboard .madu-tools > summary b{ font-size:13.5px; }
  body.madu-dashboard .madu-tools > summary small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted);
    font-size:11px;
  }
  body.madu-dashboard .madu-tools__action{
    margin-left:auto;
    color:var(--red);
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
  }
  body.madu-dashboard .madu-tools__body{
    padding:12px;
    border-top:1px solid var(--line);
  }
  body.madu-dashboard .madu-tools__body > *{
    max-width:none!important;
    margin:0 0 10px!important;
  }
  body.madu-dashboard .madu-tools__body > *:last-child{ margin-bottom:0!important; }

  body.madu-dashboard #main > .kpis{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0 0 12px!important;
  }
  body.madu-dashboard #main > .kpis .kpi{
    min-width:0;
    min-height:74px;
    padding:11px 8px!important;
    border-radius:13px!important;
  }
  body.madu-dashboard #main > .kpis .kpi .n{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:20px!important;
    line-height:1.15;
    letter-spacing:-.035em;
  }
  body.madu-dashboard #main > .kpis .kpi .u{ font-size:10px!important; }
  body.madu-dashboard #main > .kpis .kpi .l{
    margin-top:5px;
    font-size:10.5px!important;
    line-height:1.25;
  }

  body.madu-dashboard .madu-campaigns{
    display:block;
    margin:14px 0 20px;
  }
  body.madu-dashboard .madu-campaigns__heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
    margin:0 0 12px;
  }
  body.madu-dashboard .madu-eyebrow{
    display:block;
    margin:0 0 2px;
    color:var(--red);
    font-size:9px;
    font-weight:800;
    letter-spacing:.12em;
  }
  body.madu-dashboard .madu-campaigns h2{
    margin:0;
    color:var(--ink);
    font-size:19px;
    line-height:1.2;
    letter-spacing:-.025em;
  }
  body.madu-dashboard .madu-mode{
    flex:0 0 auto;
    display:flex;
    padding:3px;
    border-radius:10px;
    background:#e8ebef;
  }
  body.madu-dashboard .madu-mode button{
    min-height:44px;
    padding:6px 10px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:var(--muted);
    font:inherit;
    font-size:11.5px;
    font-weight:700;
    cursor:pointer;
  }
  body.madu-dashboard .madu-mode button.is-active{
    background:var(--card);
    color:var(--ink);
    box-shadow:0 1px 3px rgba(0,0,0,.1);
  }
  body.madu-dashboard .madu-search{
    min-height:44px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--card);
    transition:border-color .16s ease,box-shadow .16s ease;
  }
  body.madu-dashboard .madu-search:focus-within{
    border-color:var(--red);
    box-shadow:0 0 0 3px rgba(229,23,44,.1);
  }
  body.madu-dashboard .madu-search > span{
    color:var(--muted);
    font-size:21px;
    line-height:1;
    transform:rotate(-15deg);
  }
  body.madu-dashboard .madu-search input{
    min-width:0;
    width:100%;
    min-height:42px;
    padding:0!important;
    border:0!important;
    outline:0;
    background:transparent!important;
    color:var(--ink);
    font-size:14px!important;
    box-shadow:none!important;
  }
  body.madu-dashboard .madu-chips{
    display:flex;
    gap:7px;
    margin:9px -16px 12px;
    padding:0 16px 2px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  body.madu-dashboard .madu-chips::-webkit-scrollbar{ display:none; }
  body.madu-dashboard .madu-chip{
    flex:0 0 auto;
    min-height:44px;
    padding:7px 11px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--card);
    color:var(--muted);
    font:inherit;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
    cursor:pointer;
  }
  body.madu-dashboard .madu-chip span{
    margin-left:3px;
    color:inherit;
    font-size:10.5px;
    opacity:.75;
  }
  body.madu-dashboard .madu-chip.is-active{
    border-color:var(--ink);
    background:var(--ink);
    color:var(--bg);
  }
  body.madu-dashboard .madu-campaign-list{
    border:1px solid var(--line);
    border-radius:16px;
    background:var(--card);
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    overflow:hidden;
  }
  body.madu-dashboard .madu-result{
    min-height:38px;
    padding:0 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    color:var(--muted);
    font-size:11px;
  }
  body.madu-dashboard .madu-result b{ color:var(--ink); font-size:11.5px; }
  body.madu-dashboard .madu-campaign-row{
    width:100%;
    min-height:82px;
    padding:12px 12px 11px 14px;
    display:flex;
    align-items:center;
    gap:10px;
    border:0;
    border-bottom:1px solid var(--line);
    background:var(--card);
    color:var(--ink);
    font:inherit;
    text-align:left;
    cursor:pointer;
  }
  body.madu-dashboard .madu-campaign-row:last-child{ border-bottom:0; }
  body.madu-dashboard .madu-campaign-row:active{ background:var(--soft); }
  body.madu-dashboard .madu-campaign-row__content{
    min-width:0;
    flex:1;
    display:block;
  }
  body.madu-dashboard .madu-campaign-row__top{
    display:flex;
    align-items:center;
    gap:8px;
  }
  body.madu-dashboard .madu-campaign-row__top strong{
    min-width:0;
    flex:1;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:14.5px;
    letter-spacing:-.015em;
  }
  body.madu-dashboard .madu-status{
    flex:0 0 auto;
    max-width:96px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    padding:3px 7px;
    border-radius:7px;
    background:#f1f3f5;
    color:#4e5968;
    font-size:10px;
    font-weight:800;
  }
  body.madu-dashboard .madu-status[data-status="모집중"],
  body.madu-dashboard .madu-status[data-status="모집+진행"]{ background:#eef4ff; color:#2563eb; }
  body.madu-dashboard .madu-status[data-status="진행중"]{ background:#eafaf1; color:#087e4b; }
  body.madu-dashboard .madu-status[data-status="온보딩 확인중"]{ background:#ecfeff; color:#0e7490; }
  body.madu-dashboard .madu-status[data-status="보류"]{ background:#fff7e6; color:#a15c00; }
  body.madu-dashboard .madu-status[data-status="환불"]{ background:#fdf2f8; color:#be185d; }
  body.madu-dashboard .madu-status[data-status="완료"]{ background:#f1f3f5; color:#333d4b; }
  body.madu-dashboard .madu-campaign-row__meta{
    display:block;
    margin-top:5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--muted);
    font-size:11.5px;
  }
  body.madu-dashboard .madu-campaign-row__attention{
    display:inline-block;
    margin-top:5px;
    color:#c2410c;
    font-size:10.5px;
    font-weight:800;
  }
  body.madu-dashboard .madu-campaign-row__chevron{
    flex:0 0 auto;
    color:#b0b8c1;
    font-size:25px;
    font-weight:300;
    line-height:1;
  }
  body.madu-dashboard .madu-empty,
  body.madu-dashboard .madu-no-result{
    padding:28px 16px;
    color:var(--muted);
    font-size:13px;
    text-align:center;
  }
  body.madu-dashboard .madu-campaign-row[hidden],
  body.madu-dashboard .madu-no-result[hidden]{ display:none!important; }

  body.madu-dashboard:not(.madu-show-original) .madu-original-view{ display:none!important; }
  body.madu-dashboard.madu-show-original .madu-campaign-controls,
  body.madu-dashboard.madu-show-original .madu-campaign-list{ display:none!important; }
  body.madu-dashboard.madu-show-original .madu-original-view{ display:block; }
  body.madu-dashboard .madu-original-view > h2.sec{ margin-top:12px; }

  [data-theme="dark"] body.madu-dashboard .madu-mode{ background:#252b34; }
  [data-theme="dark"] body.madu-dashboard .madu-status{ background:#252b34; color:#c7d0db; }
}

@media (max-width:360px){
  body.madu-dashboard .madu-tools > summary small{ display:none; }
  body.madu-dashboard .madu-mode button{ padding-inline:8px; font-size:11px; }
  body.madu-dashboard #main > .kpis .kpi .n{ font-size:18px!important; }
}

@media (max-width:640px) and (prefers-reduced-motion:reduce){
  body.madu-dashboard .madu-campaign-row,
  body.madu-dashboard .madu-chip,
  body.madu-dashboard .madu-mode button{ scroll-behavior:auto; }
}
