*{box-sizing:border-box}
body{margin:0;padding:14px;font-family:Arial,Helvetica,sans-serif;background:#f3f4f6;color:#0f172a}
.container{max-width:1520px;margin:0 auto}
.page-nav{display:flex;gap:12px;align-items:center;margin:0 0 18px 0;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
.page-nav a{display:inline-block;padding:14px 22px;border-radius:999px;border:1px solid #d1d5db;background:#fff;color:#0f172a;text-decoration:none;font-size:15px;line-height:1;white-space:nowrap;flex:0 0 auto;font-weight:600}
.page-nav a.active{background:#0f172a;color:#fff;border-color:#0f172a}

.filter-bar{background:#fff;border:1px solid #d9dde6;border-radius:18px;padding:12px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.icon-box{width:34px;height:34px;border-radius:10px;background:#eef2ff;display:flex;align-items:center;justify-content:center;font-size:17px}
select{height:44px;border-radius:16px;border:1px solid #d1d5db;padding:0 16px;background:#fff;font-size:15px;min-width:180px;outline:none}
.mall-select{min-width:230px}

.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.month-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:18px;padding:14px;min-height:260px}
.month-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.month-title{font-size:16px;font-weight:700}
.mall-pill{background:#0f172a;color:#fff;font-size:12px;line-height:1;border-radius:999px;padding:7px 11px;font-weight:700;white-space:nowrap}

.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}
.tab{display:block;border:1px solid #d1d5db;border-radius:999px;padding:11px 10px;text-align:center;font-size:13px;background:#fff;color:#0f172a;text-decoration:none;cursor:pointer}
.tab.active{background:#0f172a;color:#fff;border-color:#0f172a;font-weight:700}

.item{background:#fff;border:1px solid #d9dde6;border-radius:14px;padding:10px 12px;margin-bottom:10px}
.item-line{display:flex;align-items:center;justify-content:space-between;gap:10px}
.left-line{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.rank{font-weight:800;font-size:14px;white-space:nowrap}
.move{font-size:13px;font-weight:700;white-space:nowrap}
.move-up{color:#16a34a}
.move-down{color:#dc2626}
.move-same{color:#64748b}
.move-new{color:#7c3aed}
.label{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.count{font-size:14px;white-space:nowrap;color:#0f172a}
.meta{margin-top:6px;color:#64748b;font-size:12px;line-height:1.4}

.empty{background:#fff;border:1px dashed #d1d5db;border-radius:14px;padding:24px 16px;color:#64748b;text-align:center;margin-top:8px}
.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;border-radius:14px;padding:14px 16px;margin-bottom:16px}
.note{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:14px;padding:14px 16px;margin-bottom:16px}
.loading{padding:30px;text-align:center;color:#64748b}

.people-box{background:#fff;border:1px solid #d9dde6;border-radius:18px;padding:26px 20px;text-align:center}
.people-label{font-size:14px;letter-spacing:2px;color:#64748b;margin-bottom:14px}
.people-value{font-size:46px;font-weight:800;line-height:1.1;margin-bottom:14px}
.people-note{font-size:13px;color:#64748b;line-height:1.5}

.ratings-box{background:#fff;border:1px solid #d9dde6;border-radius:18px;padding:14px}
.chart-wrap{display:flex;justify-content:center;align-items:center;padding:8px 0 2px}
.legend{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:center;margin-top:10px}
.legend-item{display:flex;align-items:center;gap:8px;font-size:14px;color:#334155}
.legend-swatch{width:14px;height:14px;border-radius:3px;display:inline-block}
.ratings-summary{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ratings-summary .item2{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;font-size:13px}
.ratings-summary .label2{color:#64748b}
.ratings-summary .value2{font-weight:700;margin-top:3px}

.analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.analysis-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:22px;padding:22px}
.analysis-title{font-size:18px;font-weight:800;margin-bottom:12px;text-align:center}
.analysis-link{text-align:center;margin-top:10px}
.analysis-link a{color:#2563eb;text-decoration:none}

.page-header{font-size:28px;font-weight:800;margin:0 0 26px}
.page-subtitle{font-size:14px;color:#64748b;margin:0 0 22px}
.chart-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:22px;padding:22px}

.caption-card-grid{display:grid;grid-template-columns:1fr;gap:12px}
.caption-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:16px;padding:14px}
.caption-card-title{font-size:16px;font-weight:800;margin-bottom:10px}
.caption-meta{margin-top:10px;font-size:12px;color:#64748b}

svg text{font-family:Arial,Helvetica,sans-serif}

@media (max-width:1100px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analysis-grid{grid-template-columns:1fr}
}

@media (max-width:720px){
  .cards{grid-template-columns:1fr}
  select{width:100%;min-width:0}
  .mall-select{min-width:0}
  .people-value{font-size:38px}
}

.deep-dive-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start}
.deep-filter-card,.deep-table-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:18px;padding:14px}
.deep-filter-card h2{margin:0 0 10px;font-size:16px}
.deep-filter-form{display:grid;gap:8px;margin-bottom:10px}
.deep-filter-form label{font-size:12px;color:#64748b;font-weight:700}
.deep-filter-form select{height:38px;border-radius:10px;min-width:0;width:100%}
.deep-table-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.deep-table-head h3{margin:0;font-size:16px}
.deep-table-wrap{overflow:auto;background:#fff;border:1px solid #d9dde6;border-radius:12px}
.deep-table{border-collapse:collapse;width:100%;font-size:12px}
.deep-table th,.deep-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:center;white-space:nowrap}
.deep-table th{background:#f8fafc;font-weight:700;color:#334155;position:sticky;top:0}
.deep-table .caption-cell{text-align:left;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.deep-table .empty-cell{text-align:center;color:#64748b;padding:16px}

@media (max-width:1100px){
  .deep-dive-layout{grid-template-columns:1fr}
}

.mall-trend-list{display:grid;grid-template-columns:1fr;gap:12px;max-width:720px}
.mall-trend-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:16px;padding:14px}
.mall-trend-title{font-size:16px;font-weight:800;margin-bottom:10px}
.mall-trend-meta{margin-top:10px;font-size:12px;color:#64748b}

.restroom-summary-wrap{max-width:540px;margin:0 auto;background:#f5f6f7;border:1px solid #d9dde6;border-radius:12px;padding:12px}
.restroom-summary-header{font-size:14px;font-weight:800;margin-bottom:10px}
.restroom-summary-filter{margin-bottom:10px}
.restroom-summary-filter label{display:block;font-size:12px;font-weight:700;margin-bottom:4px}
.restroom-summary-filter select{width:100%;height:40px;border-radius:10px;min-width:0}
.restroom-summary-help{font-size:10px;color:#64748b;margin-top:6px}
.restroom-month-grid{display:grid;grid-template-columns:1fr;gap:8px}
.restroom-month-card{background:#f8fafc;border:1px solid #d9dde6;border-radius:8px;padding:8px}
.restroom-month-card h3{margin:0 0 6px;font-size:12px}
.restroom-mini-table{width:100%;border-collapse:collapse;font-size:9px;background:#fff}
.restroom-mini-table th,.restroom-mini-table td{border:1px solid #dbe3ef;padding:4px;text-align:center}
.restroom-mini-table th{color:#1d4ed8;font-weight:700;background:#f8fbff}
.restroom-mini-table td:first-child{width:42px;color:#64748b}

.top-feedback-panel{max-width:1200px}
.top-feedback-title{font-size:52px;line-height:1.1;margin:0 0 10px}
.top-feedback-subtitle{margin:0 0 14px;font-size:18px;line-height:1.35;color:#0f172a}
.top-feedback-table-wrap{overflow:auto}
.top-feedback-table{width:100%;border-collapse:collapse;font-size:18px;line-height:1.35;table-layout:fixed;background:#fff}
.top-feedback-table th,.top-feedback-table td{padding:6px 10px;border:1px solid #cbd5e1;vertical-align:top;text-align:left}
.top-feedback-table th{font-weight:700;background:#f8fafc}
.top-feedback-table th:nth-child(1),.top-feedback-table td:nth-child(1){width:30%}
.top-feedback-table th:nth-child(2),.top-feedback-table td:nth-child(2),
.top-feedback-table th:nth-child(3),.top-feedback-table td:nth-child(3),
.top-feedback-table th:nth-child(4),.top-feedback-table td:nth-child(4){width:23.33%}
.top-feedback-table td{word-break:break-word}
.top-feedback-table .restroom-name{font-weight:600}
.top-feedback-table .delta{margin-left:4px;font-weight:700}
.top-feedback-table .delta.down{color:#dc2626}
.top-feedback-table .delta.up{color:#2563eb}
.top-feedback-table .delta.same{color:#0f172a}

.snapshot-page{max-width:980px}
.snapshot-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.snapshot-header-row h2{margin:0;font-size:18px}
.snapshot-year-form select{height:32px;min-width:110px;border-radius:8px;padding:0 10px}
.snapshot-mall-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.snapshot-mall-tab{display:inline-block;padding:6px 10px;border:1px solid #d1d5db;border-radius:999px;background:#fff;color:#0f172a;text-decoration:none;font-size:11px}
.snapshot-mall-tab.active{background:#0f172a;color:#fff;border-color:#0f172a;font-weight:700}
.snapshot-card{background:#f5f0e6;border:1px solid #d1b67f;border-radius:6px;padding:10px}
.snapshot-card h1{margin:0 0 8px;text-align:center;font-size:34px}
.snapshot-card h1 span{font-size:12px;color:#64748b}
.snapshot-table{width:100%;border-collapse:collapse;margin-bottom:8px;font-size:14px}
.snapshot-table th,.snapshot-table td{border:1px solid #d3d6db;padding:6px;text-align:center}
.snapshot-table thead th{background:#e9a8b1}
.snapshot-table .positive td{background:#ecebe5}
.snapshot-table .negative td{background:#a9c8dc}
.snapshot-table .total td,.snapshot-table .total-row td{background:#f8d503;font-weight:700}
.snapshot-table td span{display:block;font-size:12px;color:#334155}
.snapshot-table .group-cell{font-weight:700}
.snapshot-month-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.snapshot-month-card{background:#f4f4f4;border:1px solid #c8c8c8;padding:8px;font-size:12px}
.snapshot-month-card h3{margin:0 0 6px;text-align:center;font-size:34px}
.snapshot-month-card h4{margin:8px 0 4px;font-size:14px}
.snapshot-month-card ol,.snapshot-month-card ul{margin:0;padding-left:18px}
.snapshot-month-card li{margin-bottom:2px}

@media (max-width:900px){
  .snapshot-month-cards{grid-template-columns:1fr}
}

.sentiment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:980px}
.sentiment-card{background:#f5f6f7;border:1px solid #d9dde6;border-radius:12px;padding:10px}
.sentiment-card h3{margin:0 0 8px;font-size:14px}
.top-feedback-mini-wrap{margin-top:16px;max-width:980px;overflow:auto}
.top-feedback-mini-wrap h3{margin:0 0 8px;font-size:16px}
.top-feedback-grid{display:grid;grid-template-columns:minmax(220px,1.3fr) repeat(3,minmax(180px,1fr));background:#fff;border:1px solid #cbd5e1;border-top:none}
.top-feedback-grid:first-of-type{border-top:1px solid #cbd5e1}
.top-feedback-cell{padding:8px 10px;border-left:1px solid #cbd5e1;text-align:center}
.top-feedback-cell:first-child{border-left:none;text-align:left}
.top-feedback-head{background:#f8fafc;font-weight:700}
.top-feedback-month small{display:block;color:#334155;font-weight:600}
.top-feedback-caption{font-weight:600}

@media (max-width:900px){
  .sentiment-grid{grid-template-columns:1fr}
  .top-feedback-grid{grid-template-columns:minmax(180px,1fr) repeat(3,minmax(140px,1fr))}
}


.topbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.topbar-user { color:#334155; font-size:14px; }
.logout-link { display:inline-block; padding:8px 12px; border-radius:10px; background:#e2e8f0; color:#0f172a; text-decoration:none; font-weight:600; }
.logout-link:hover { background:#cbd5e1; }

.upload-card{max-width:780px;background:#f5f6f7;border:1px solid #d9dde6;border-radius:18px;padding:18px}
.upload-title{margin:0 0 6px;font-size:28px}
.upload-subtitle{margin:0 0 14px;color:#64748b}
.upload-form{display:grid;gap:10px}
.upload-form label{font-size:13px;font-weight:700;color:#334155}
.upload-form textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:10px 12px;font-size:14px;font-family:Arial,Helvetica,sans-serif;resize:vertical;background:#fff}
.upload-form button{width:max-content;padding:10px 18px;border:none;border-radius:10px;background:#0f172a;color:#fff;font-weight:700;cursor:pointer}
.upload-form button:hover{background:#1e293b}
.snapshot-observations{margin-top:14px}
.snapshot-observations h3{margin:0 0 8px;font-size:16px}
.snapshot-observations-table-wrap{overflow:auto}
.snapshot-observation-table th:nth-child(1),.snapshot-observation-table td:nth-child(1){width:120px}
.snapshot-observation-table th:nth-child(2),.snapshot-observation-table td:nth-child(2),.snapshot-observation-table th:nth-child(3),.snapshot-observation-table td:nth-child(3){text-align:left;min-width:260px;word-break:break-word}
.snapshot-observation-table th:nth-child(4),.snapshot-observation-table td:nth-child(4){width:140px}
.snapshot-observation-table th:nth-child(5),.snapshot-observation-table td:nth-child(5){width:180px}
