/* 4차 시안: 기존 구성 위에 적용하는 색감과 표면, 글꼴 조정 */
:root {
  --ink: #2d4138;
  --muted: #738075;
  --line: #e6e8df;
  --green: #507962;
  --rust: #b47f61;
  --sage: #91b29b;
  --salmon: #d1a78c;
  --red-bg: #f8deda;
  --green-bg: #deebd7;
  --blue-bg: #dfebfb;
  --gray-bg: #eeefeb;
}
body { background: #f7f5ef; }
.page { padding-top: 48px; }
.intro { margin-bottom: 34px; }
.eyebrow { color: #6c806f; font-weight: 500; letter-spacing: .09em; }
h1 { font-weight: 500; letter-spacing: -.055em; }
.week-picker label { color: #7b8577; }
select { border: 0; border-radius: 14px; padding: 13px 34px 13px 16px; box-shadow: 0 2px 12px #334e3c05; }
.period-band { margin-bottom: 20px; gap: 28px; }
.period-band strong { font-weight: 450; }
.period-band small { color: #66805c; }
.overview { grid-template-columns: 232px 1fr 1fr; gap: 18px; padding: 16px 0 24px; }
.total { background: #315544; border-radius: 22px; padding: 24px 18px; color: #fffdf3; }
.total h2 { color: #e0e8d7; font-weight: 400; }
.ring circle { stroke-width: 3.5; }
.ring .track { stroke: #52705b; }
.ring .fill { stroke: #c2d8b9; }
.ring-content strong { font-weight: 450; letter-spacing: -.055em; }
.ring-content b { color: #d9e7cc; }
.ring-caption, .total-result { color: #d4dfcb; }
.total-result .badge { background: #f1eee4; color: #304c38; padding: 6px 12px; }
.total-result .badge.normal { background: #e0ebd3; }
.total-result .badge.below { background: var(--red-bg); }
.total-result .badge.above { background: var(--blue-bg); }
.store { padding: 26px; border-radius: 22px; background: #eaf0e5; }
.store.bon { background: #f4e9de; }
.store { display: flex; flex-direction: column; }
.featured-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 24px 0; padding-top: 20px; border-top: 1px solid #d9e2d2; }
.featured-counts.bon { border-top-color: #e7d9cb; }
.featured-counts.bon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.featured-counts.cozy { grid-template-columns: 1fr; }
.featured-counts dt { font-size: 12px; color: #71816b; }
.featured-counts.bon dt { color: #897a68; }
.featured-counts dd { font-size: 27px; font-weight: 450; letter-spacing: -.04em; margin-top: 4px; line-height: 1.3; }
.featured-counts dd small { font-size: 13px; font-weight: 400; margin-left: 5px; }
.store .minimum { margin-top: auto; }
.store h2 { font-weight: 500; font-size: 15px; letter-spacing: .015em; }
.sales-label { margin-top: 25px; color: #6c7b68; }
.sales-number { font-weight: 450; font-size: 46px; }
.bon .sales-number { color: #705441; }
.prior { color: #75816f; }
.bon .prior { color: #8b7b69; }
.mini-metrics { margin-top: 27px; gap: 14px; }
.mini-metrics dt, .mini-metrics p { color: #71816b; }
.bon .mini-metrics dt, .bon .mini-metrics p { color: #897a68; }
.mini-metrics dd { font-weight: 450; }
.badge { border-radius: 999px; padding: 4px 9px; font-weight: 450; }
.minimum { border-top-color: #d9e2d2; padding-top: 17px; margin-top: 24px; }
.bon .minimum { border-top-color: #e7d9cb; }
.minimum-top .badge { font-size: 13px; padding: 5px 9px; }
.bullet { height: 6px; background: #dce5d5; }
.bon .bullet { background: #e7dacd; }
.bullet .tick { background: #687a60; }
.bon .bullet .tick { background: #927d68; }
.bullet-key { color: #71806b; }
.bon .bullet-key { color: #8a7967; }
.marketing-tools { margin: 8px 0 30px; padding: 7px 4px 0; }
.marketing-tools .section-top { margin-bottom: 17px; }
.marketing-tools .section-top h2 { font-size: 20px; }
.weapon-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.weapon-card { min-width: 0; border: 1px solid #e5e7dd; border-radius: 13px; background: #fffefa; }
.weapon-card.bon { background: #f4e9de; border-color: transparent; }
.weapon-card.cozy { background: #eaf0e5; border-color: transparent; }
.weapon-card summary { display: flex; gap: 12px; align-items: center; padding: 18px; list-style: none; cursor: pointer; }
.weapon-card summary::-webkit-details-marker { display: none; }
.weapon-heading { flex: 1; min-width: 0; }
.weapon-heading strong { display: block; font-size: 14px; font-weight: 450; line-height: 1.6; word-break: keep-all; }
.weapon-effect-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.weapon-effect-preview[hidden] { display: none; }
.weapon-state { border-radius: 999px; padding: 4px 8px; font-size: 11px; white-space: nowrap; background: #eeefeb; color: #677264; }
.weapon-state.active { background: var(--blue-bg); color: var(--ink); }
.weapon-state.used { background: var(--green-bg); color: var(--ink); }
.weapon-state.planned { background: #eee6d7; color: #66523b; }
.weapon-state.considering { background: #eeefeb; color: #677264; }
.weapon-schedule { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.weapon-description { font-size: 13px; color: var(--ink); line-height: 1.7; margin: 16px 0; }
.coupon-results { margin: 15px 0; padding: 14px; border-radius: 10px; background: #fffefa99; }
.coupon-results-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.coupon-results-heading span { color: var(--muted); }
.coupon-results dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 15px 0; }
.coupon-results dt { color: var(--muted); font-size: 11px; }
.coupon-results dd { margin: 5px 0 0; font-size: 24px; }
.coupon-results p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.weapon-toggle { width: 7px; height: 7px; border-right: 1px solid #7d8875; border-bottom: 1px solid #7d8875; transform: rotate(45deg); margin: -4px 3px 0 2px; flex: 0 0 auto; }
.weapon-card[open] .weapon-toggle { transform: rotate(225deg); margin-top: 3px; }
.weapon-form { padding: 0 18px 18px; border-top: 1px solid #263a310c; }
.weapon-form label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; }
.weapon-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 17px 0; }
.weapon-fields>label { min-width: 0; }
.weapon-form select, .weapon-form input, .weapon-form textarea { width: 100%; min-width: 0; max-width: 100%; margin: 0; border: 1px solid #dde2d6; border-radius: 9px; background: #fffefa; color: var(--ink); padding: 10px; font: inherit; font-size: 13px; line-height: 1.5; box-shadow: none; }
.weapon-form textarea { resize: vertical; min-height: 88px; }
.weapon-form textarea::placeholder { color: #92998b; }
.weapon-form-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.weapon-form-footer small { font-size: 11px; color: var(--muted); margin-right: auto; }
.weapon-form button { border: 0; border-radius: 8px; padding: 9px 13px; font-size: 12px; background: #315544; color: #fffefa; cursor: pointer; }
.weapon-action { border: 1px solid #c5d4c6; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 12px; color: #315544; background: #f6f8f2; cursor: pointer; white-space: nowrap; }
.weapon-action:focus-visible { outline: 2px solid #8eae88; outline-offset: 3px; }
.weapon-new { border: 1px solid #dce2d7; border-radius: 13px; background: #fffefa; margin-bottom: 12px; }
.weapon-new .weapon-form-footer [data-cancel-add], .weapon-delete-confirm [data-cancel-delete] { background: #eef0e9; color: #315544; }
.weapon-form textarea.weapon-brief { min-height: 62px; }
.weapon-form button.weapon-delete { background: #f4e2dd; color: #853e34; }
.weapon-delete-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: #853e34; font-size: 12px; }
.weapon-delete-confirm[hidden] { display: none; }
.weapon-notice { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.weapon-notice:empty { display: none; }
.weapon-save-status { font-size: 11px; color: var(--muted); }
.weapon-error { font-size: 12px; color: #924d42; margin-top: 12px; }
.weapon-card summary:focus-visible, .weapon-form input:focus-visible, .weapon-form textarea:focus-visible, .weapon-form button:focus-visible { outline: 2px solid #8eae88; outline-offset: 3px; }
@media (max-width: 760px) { .weapon-list { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .marketing-tools { margin: 8px 0 24px; padding-inline: 4px; }
  .marketing-tools .section-top h2 { font-size: 19px; }
  .weapon-list { gap: 10px; }
  .weapon-card summary { gap: 9px; padding: 16px 13px; }
  .weapon-heading strong { font-size: 13px; }
  .weapon-form { padding: 0 13px 15px; }
  .weapon-fields { grid-template-columns: 1fr; gap: 12px; }
}
.trend { background: #fffefa; border: 0; border-radius: 22px; padding: 25px 26px 22px; }
.trend .section-top { margin-bottom: 18px; }
.trend .section-top h2 { font-size: 17px; font-weight: 450; }
.trend svg { height: 170px; }
.trend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.store-trend { margin: 0; min-width: 0; }
.store-trend figcaption { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 13px; }
.trend-key { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.trend .store-trend svg { height: 180px; width: 100%; }
.units-change .badge { min-width: 54px; font-size: 13px; padding: 3px 9px; }
.change-bundle { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 12px; background: var(--gray-bg); color: #26382e; max-width: 100%; font-size: 13px; line-height: 1.5; }
.change-bundle.up { background: var(--blue-bg); }
.change-bundle.flat { background: var(--green-bg); }
.badge.down, .change-bundle.down { background: var(--red-bg); color: #222; }
.change-bundle.mixed { background: var(--gray-bg); color: #222; }
.change-bundle .units-change { font-size: 13px; font-weight: 500; }
.change-bundle .sales-change { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px 7px; font-size: 12px; }
.change-bundle .change-percent { font-size: 11px; }
.product-deltas .change-bundle { min-width: 132px; }
.compare .change-bundle { padding: 7px 9px; font-size: 12px; }
.line-key { border-radius: 2px; }
.detail { margin-top: 46px; }
.section-top h2 { font-weight: 500; }
.report-section[aria-labelledby="salesTitle"], .report-section[aria-labelledby="productsTitle"] { background: #fffefa; border-radius: 22px; padding: 30px; margin-top: 24px; }
.comparison-periods { padding-bottom: 12px; border-bottom: 1px solid var(--line); gap: 30px; }
.date-block strong { font-weight: 450; }
.compare-store h3, .product-group>h3 { font-weight: 500; }
.compare.header, .product-table thead th { color: #899282; }
.compare { padding-block: 20px; }
.compare-store .compare:last-child, .product-table tbody tr:last-child th, .product-table tbody tr:last-child td { border-bottom: 0; }
.product-group + .product-group { margin-top: 38px; }
.product-category { margin-top: 26px; }
.product-category + .product-category { margin-top: 34px; }
.category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 10px; background: #f5eee5; border-radius: 10px; }
.category-heading h4 { font-size: 15px; font-weight: 500; color: #705441; }
.category-heading>span { font-size: 12px; color: #897a68; }
.category-heading strong { font-size: 14px; font-weight: 450; color: #705441; margin-left: 6px; }
.product-table tbody th { font-weight: 450; }
.product-table tbody tr { transition: background-color .16s ease; }
.product-table tbody tr:hover { background: #f7f8f0; }
.product-expand { display: flex; align-items: center; gap: 10px; width: 100%; padding: 3px 0; border: 0; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.product-expand span { min-width: 0; overflow-wrap: anywhere; }
.product-expand i { width: 7px; height: 7px; border-right: 1px solid #84957e; border-bottom: 1px solid #84957e; transform: rotate(45deg); flex: 0 0 auto; margin: -4px 3px 0 auto; }
.product-expand[aria-expanded="true"] { color: #507962; }
.product-expand[aria-expanded="true"] i { transform: rotate(225deg); margin-top: 3px; }
.product-expand:focus-visible, .drilldown-search:focus-visible { outline: 2px solid #8eae88; outline-offset: 4px; border-radius: 4px; }
.product-table .product-detail-row[hidden] { display: none; }
.product-table .product-detail-row>td { padding: 0; border: 0; text-align: left; }
.product-table .product-detail-row:hover { background: transparent; }
.product-drilldown { padding: 20px; margin: 5px 0 20px; border: 1px solid #e5e9dd; border-radius: 14px; background: #f6f8f0; text-align: left; }
.product-group.bon .product-drilldown { background: #faf4ec; border-color: #eee3d6; }
.drilldown-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.drilldown-top h4 { font-size: 15px; font-weight: 500; letter-spacing: -.025em; }
.drilldown-search { width: 220px; max-width: 100%; border: 1px solid #dfe5d6; border-radius: 8px; background: #fffefa; padding: 9px 11px; color: var(--ink); font: inherit; font-size: 13px; }
.drilldown-columns, .drilldown-item { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.75fr) minmax(0,.75fr) minmax(0,1fr); align-items: center; gap: 14px; }
.drilldown-columns { font-size: 11px; color: var(--muted); padding-bottom: 10px; }
.drilldown-columns>span:not(:first-child) { text-align: right; }
.drilldown-items { list-style: none; padding: 0; margin: 0; }
.drilldown-item { padding: 17px 0; border-top: 1px solid #dfe5d7; }
.drilldown-item[hidden], .drilldown-empty-search[hidden] { display: none; }
.drilldown-name { min-width: 0; overflow-wrap: anywhere; }
.drilldown-name strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.drilldown-name small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.drilldown-value { text-align: right; min-width: 0; }
.drilldown-value strong { display: block; font-size: 15px; font-weight: 450; }
.drilldown-value>span { display: block; font-size: 12px; color: #788572; margin-top: 5px; }
.drilldown-delta { text-align: right; min-width: 0; }
.drilldown-delta .change-bundle { width: 100%; max-width: 150px; padding: 7px; }
.drilldown-empty, .drilldown-empty-search { font-size: 13px; color: var(--muted); padding: 12px 0; }
@media (max-width: 760px) {
  .product-drilldown { padding: 17px 14px; }
  .drilldown-columns, .drilldown-item { gap: 9px; }
}
@media (max-width: 540px) {
  .product-table .product-detail-row:not([hidden]) { display: block; padding: 0; border: 0; }
  .product-table .product-detail-row>td { width: 100%; }
  .product-table .product-detail-row>td:before { display: none; }
  .product-expand { font-size: 15px; }
  .product-drilldown { padding: 17px 12px; margin-top: 0; }
  .drilldown-search { width: 100%; font-size: 16px; }
  .drilldown-top { gap: 12px; }
  .drilldown-columns { display: none; }
  .drilldown-item { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr); gap: 13px 8px; }
  .drilldown-name { grid-column: 1 / -1; }
  .drilldown-name strong { font-size: 14px; }
  .drilldown-name small { font-size: 12px; margin-top: 3px; }
  .drilldown-value, .drilldown-delta { text-align: left; }
  .drilldown-value:before, .drilldown-delta:before { content: attr(data-label); display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
  .drilldown-value strong { font-size: 14px; }
  .drilldown-value>span { font-size: 11px; }
  .drilldown-delta .change-bundle { padding: 6px 4px; }
}
.product-sales, .product-change+.product-change { color: #788572; }
.work-grid { margin-top: 42px; border-top: 0; padding: 0 6px; }
.work-grid .report-section { margin-top: 0; }
.simple-list .list-row { border-bottom-color: #e1e5da; padding-block: 17px; }
.list-row .badge { min-width: 58px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .featured-counts.bon { grid-template-columns: 1fr 1fr; }
  .overview { grid-template-columns: 195px 1fr 1fr; gap: 14px; }
  .store { padding: 22px 18px; }
  .sales-number { font-size: 38px; }
  .store h2 { font-size: 14px; }
  .minimum-top { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .featured-counts.bon { grid-template-columns: 1fr 1fr; }
  .page { padding-top: 30px; }
  .intro { margin-bottom: 27px; }
  .overview { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 7px; }
  .total { padding: 22px 28px; grid-template-columns: 150px 1fr; column-gap: 30px; border-radius: 20px; }
  .total h2 { font-weight: 400; }
  .store { padding: 24px; border-radius: 20px; }
  .sales-number { font-size: 40px; }
  .store h2 { font-size: 14px; }
  .trend { margin-top: 0; padding: 22px 22px 16px; border-radius: 20px; }
  .trend .section-top { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .trend .section-top h2 { font-size: 16px; }
  .trend-grid { grid-template-columns: 1fr; gap: 25px; }
  .legend { gap: 12px; font-size: 11px; }
  .report-section[aria-labelledby="salesTitle"], .report-section[aria-labelledby="productsTitle"] { padding: 26px 24px; border-radius: 20px; }
  .detail { margin-top: 30px; }
  .work-grid { padding-inline: 4px; }
}
@media (max-width: 540px) {
  .page { padding: 28px 16px 48px; }
  .intro { padding-inline: 4px; }
  h1 { font-size: 28px; }
  .eyebrow { font-size: 10px; }
  .period-band { padding-inline: 4px; margin-bottom: 17px; }
  .period-band strong { font-size: 16px; }
  .overview { gap: 12px; padding-bottom: 16px; }
  .total { padding: 22px 20px; grid-template-columns: 135px 1fr; column-gap: 20px; border-radius: 19px; }
  .store { padding: 20px 16px; border-radius: 18px; }
  .store h2 { font-size: 12px; gap: 6px; }
  .sales-label { margin-top: 21px; }
  .sales-number { font-size: 31px; letter-spacing: -.06em; }
  .prior { font-size: 11px; gap: 5px; }
  .mini-metrics { margin-top: 22px; gap: 18px; }
  .mini-metrics dd { font-size: 25px; }
  .featured-counts { margin-block: 22px; gap: 15px 8px; padding-top: 18px; }
  .featured-counts dt { font-size: 11px; }
  .featured-counts dd { font-size: 25px; }
  .featured-counts dd small { font-size: 12px; margin-left: 3px; }
  .featured-counts.bon { grid-template-columns: 1fr; gap: 14px; }
  .featured-counts.bon>div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  .featured-counts.bon dt { font-size: 12px; line-height: 1.5; }
  .featured-counts.bon dd { font-size: 23px; margin-top: 0; }
  .featured-counts.cozy dt { min-height: 0; }
  .mini-metrics p { font-size: 11px; }
  .badge { padding: 3px 7px; }
  .minimum-top .badge { font-size: 12px; padding: 4px 7px; }
  .minimum-top, .bullet-key { font-size: 10px; }
  .bullet-key { line-height: 1.7; }
  .trend { padding: 22px 16px 14px; border-radius: 18px; }
  .trend .section-top { gap: 12px; }
  .legend { font-size: 10px; gap: 10px; }
  .report-section[aria-labelledby="salesTitle"], .report-section[aria-labelledby="productsTitle"] { padding: 24px 16px; border-radius: 18px; }
  .section-top h2 { font-size: 21px; }
  .comparison-periods { gap: 15px; }
  .date-block strong { font-size: 15px; }
  .date-block span { font-size: 11px; }
  .compare { padding-block: 16px; }
  .compare>span:nth-child(4):before { content: 'Change'; }
  .product-table tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .product-table tbody th { font-size: 15px; }
  .category-heading { flex-wrap: wrap; gap: 5px 10px; padding: 12px; }
  .category-heading h4 { font-size: 14px; }
  .category-heading strong { font-size: 13px; }
  .units-change .badge { min-width: 0; font-size: 12px; padding: 3px 8px; }
  .product-deltas .change-bundle { min-width: 0; width: 100%; padding: 7px 5px; border-radius: 10px; }
  .change-bundle .units-change { font-size: 12px; }
  .change-bundle .sales-change { font-size: 11px; }
  .change-bundle .change-percent { font-size: 10px; }
  .compare .change-bundle { padding: 6px; font-size: 12px; }
  .product-table tbody tr:hover { background: transparent; }
  .product-table td:before, .compare>span:before { font-size: 10px; }
  .work-grid { margin-top: 32px; gap: 30px; }
  .work-grid .report-section { margin-top: 0; }
}
.data-freshness { color: var(--muted); font-size: 12px; line-height: 1.6; margin: -12px 8px 20px; }
@media (max-width: 360px) {
  .page { padding-inline: 12px; }
  .total { grid-template-columns: 120px 1fr; padding: 20px 14px; column-gap: 12px; }
  .ring { width: 120px; height: 120px; }
  .store { padding: 18px 12px; }
  .store h2 { font-size: 11px; }
  .sales-number { font-size: 27px; }
  .report-section[aria-labelledby="salesTitle"], .report-section[aria-labelledby="productsTitle"] { padding-inline: 12px; }
  .date-block strong { font-size: 14px; }
}


.weapon-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.weapon-controls [hidden] { display: none; }
.weapon-controls a { text-decoration: none; }
.weapon-readonly { margin: 0; padding: 4px 18px 16px; border-top: 1px solid #263a310c; }
.weapon-readonly p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-page { min-height: 85vh; display: grid; place-items: center; }
.editor-sign-in { width: min(100%, 410px); padding: clamp(24px, 6vw, 44px); border: 1px solid #dce2d7; border-radius: 18px; background: #fffefa; }
.editor-sign-in h1 { margin: 8px 0; font-size: clamp(28px, 6vw, 40px); }
.editor-sign-in p, .editor-sign-in a { margin: 16px 0; font-size: 14px; line-height: 1.5; }
.editor-sign-in a { color: #315544; }
.editor-sign-in #signInStatus:empty { display: none; }
.editor-sign-in #googleButton { margin-bottom: 18px; }
