/* Chat Extract — minimal, accessible styling (no framework) */

:root{
  --bg: #F4EFE6;
  --fg: #1C1C1C;
  --muted: #4F4F4F;
  --card: #FFFFFF;
  --border: rgba(0,0,0,0.12);
  --primary: #0F7A4F;
  --accent: #C24E00;
  --danger: #8A1C1C;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.35;
}

.container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

header{ padding: 20px 0 8px; }
footer{ padding: 24px 0 40px; }

.brand{ display:flex; gap:14px; align-items:center; }
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: var(--primary);
  color:#fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

h1{ margin:0; font-size: 22px; }
h2{ margin:0 0 10px; font-size: 18px; }
p{ margin: 0 0 10px; }

.subtle{ color: var(--muted); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin: 12px 0;
}

.dropzone{
  border: 2px dashed rgba(0,0,0,0.22);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  background: rgba(15,122,79,0.04);
  outline: none;
}
.dropzone:focus{
  box-shadow: 0 0 0 3px rgba(15,122,79,0.25);
}
.dropzone.dragover{
  border-color: var(--primary);
  background: rgba(15,122,79,0.08);
}
.dropzone-title{ font-weight: 700; margin-bottom: 4px; }
.dropzone-subtle{ color: var(--muted); font-size: 13px; }

.row{ display:flex; gap: 12px; }
.row-gap{ margin-top: 12px; }
.col{ flex: 1; min-width: 0; }

@media (max-width: 720px){
  .row{ flex-direction: column; }
}

.label{
  display:block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 6px;
}
.hint{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

input, select{
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  color: var(--fg);
}
input:focus, select:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(15,122,79,0.22);
  border-color: rgba(15,122,79,0.45);
}

.actions{ align-items: center; margin-top: 14px; }
.btn{
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
}
.btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-secondary{
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(15,122,79,0.35);
}

.status{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 42px;
}
.status.error{
  border-color: rgba(138,28,28,0.35);
  background: rgba(138,28,28,0.08);
  color: var(--danger);
}

.details{ margin-top: 10px; }
.details summary{ cursor:pointer; font-weight: 650; }

.preview-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 720px){
  .preview-grid{ grid-template-columns: 1fr; }
}

.kpi{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.02);
}
.kpi-label{ color: var(--muted); font-size: 12px; }
.kpi-value{ font-size: 18px; font-weight: 800; margin-top: 2px; }

.table-wrap{ overflow:auto; border-radius: 14px; border: 1px solid var(--border); }
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.table th{ background: rgba(0,0,0,0.02); font-weight: 800; }

.footer{ color: var(--muted); font-size: 12px; }

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  border:0;
}
