:root { color: #18211b; background: #eef1ed; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
.eyebrow { color: #44705a; font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #10271c; }
.login-panel { width: min(440px,100%); border-radius: 7px; padding: 42px; background: #f8f9f6; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.login-panel h1 { margin: 8px 0; font: 500 38px/1.05 Georgia, serif; }
.login-panel p { color: #667068; font-size: 14px; }
.login-panel form { display: grid; gap: 14px; margin-top: 32px; }
.login-panel label { color: #445048; font-size: 12px; font-weight: 650; }
.login-panel input { width: 100%; height: 46px; margin-top: 8px; border: 1px solid #bdc7bf; border-radius: 4px; padding: 0 12px; background: #fff; }
.login-panel button { height: 46px; border: 0; border-radius: 4px; color: #fff; background: #1d5d3c; cursor: pointer; }
.error { color: #a42c2c !important; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: 14px clamp(20px,4vw,64px); border-bottom: 1px solid #d7ddd8; background: rgba(247,249,246,.94); backdrop-filter: blur(16px); }
.topbar h1 { margin: 3px 0 0; font: 500 27px Georgia, serif; }
.top-actions { display: flex; align-items: end; gap: 16px; }
.top-actions label { display: grid; gap: 4px; color: #6d766f; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.top-actions select, .feedback-section select { min-height: 36px; border: 1px solid #c4ccc6; border-radius: 4px; padding: 0 10px; background: #fff; }
.top-actions a { color: #345745; font-size: 12px; }
.dashboard { display: grid; gap: 18px; width: min(1600px, calc(100% - 40px)); margin: 24px auto 60px; }
.metrics { display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid #d5dbd6; border-radius: 6px; background: #f9faf8; }
.metric { min-width: 0; padding: 22px; border-right: 1px solid #d5dbd6; }
.metric:last-child { border-right: 0; }
.metric span { display: block; color: #68726a; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.metric strong { display: block; margin-top: 9px; color: #193a28; font: 500 29px Georgia, serif; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(3,1fr); }
article, .feedback-section { min-width: 0; border: 1px solid #d5dbd6; border-radius: 6px; padding: 20px; background: #f9faf8; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font: 500 20px Georgia, serif; }
.section-head span { color: #7a837c; font-size: 10px; }
.table-wrap { max-height: 380px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { position: sticky; top: 0; z-index: 1; padding: 9px 8px; color: #778078; background: #f9faf8; text-align: left; text-transform: uppercase; }
td { max-width: 240px; border-top: 1px solid #e1e5e1; padding: 10px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend { min-height: 260px; display: flex; align-items: end; gap: 8px; padding-top: 18px; }
.trend-day { flex: 1; min-width: 18px; display: grid; align-content: end; gap: 6px; height: 220px; text-align: center; }
.trend-bar { min-height: 2px; border-radius: 2px 2px 0 0; background: #2e7350; }
.trend-day b { color: #385343; font-size: 10px; }
.trend-day small { color: #879088; font-size: 8px; }
.distribution { display: grid; gap: 11px; }
.distribution-row { display: grid; grid-template-columns: 100px 1fr 36px; align-items: center; gap: 10px; font-size: 11px; }
.distribution-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.distribution-track { height: 7px; border-radius: 7px; background: #e2e7e3; }
.distribution-track i { display: block; height: 100%; border-radius: inherit; background: #4a8063; }
.event-list { max-height: 380px; overflow: auto; }
.event { padding: 11px 0; border-top: 1px solid #e1e5e1; }
.event:first-child { border-top: 0; }
.event strong { display: block; color: #8f2e2e; font-size: 12px; }
.event p { margin: 4px 0; color: #58615a; font-size: 11px; }
.event small { color: #8a928c; font-size: 9px; }
.feedback-list { display: grid; gap: 12px; }
.feedback-item { display: grid; grid-template-columns: 150px minmax(220px,1fr) minmax(180px,.55fr) 130px; gap: 18px; padding: 16px; border: 1px solid #dde2de; border-radius: 5px; background: #fff; }
.feedback-meta strong, .feedback-item h3 { display: block; margin: 0 0 5px; font-size: 12px; }
.feedback-meta span, .feedback-item p, .feedback-contact { color: #657067; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.feedback-item a { color: #216443; font-size: 11px; }
.feedback-item select { width: 100%; height: 34px; border: 1px solid #c8d0ca; border-radius: 4px; background: #fff; font-size: 11px; }
.feedback-item details { margin-top: 12px; border-top: 1px solid #e1e5e1; padding-top: 10px; }
.feedback-item summary { color: #216443; font-size: 11px; cursor: pointer; }
.attached-chat { display: grid; gap: 7px; margin-top: 10px; }
.attached-chat p { margin: 0; border-radius: 4px; padding: 8px 10px; background: #f2f5f2; }
.attached-chat strong { display: block; margin-bottom: 3px; color: #244a35; }
.feedback-item.kea-item { grid-template-columns: 190px minmax(0,1fr); }
.empty { padding: 30px; color: #7d867f; text-align: center; font-size: 12px; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(3,1fr); } .metric:nth-child(3) { border-right: 0; } .grid.two, .grid.three { grid-template-columns: 1fr; } .feedback-item { grid-template-columns: 130px 1fr; } }
@media (max-width: 620px) { .topbar { align-items: flex-start; } .top-actions { flex-direction: column; align-items: flex-end; } .dashboard { width: calc(100% - 24px); } .metrics { grid-template-columns: 1fr 1fr; } .metric:nth-child(2n) { border-right: 0; } .feedback-item { grid-template-columns: 1fr; } }
