:root {
  --fl-bg:      #e4f5d8;
  --fl-border:  #b0d890;
  --fl-text:    #385a20;
  --fl-icon-bg: #e4f5d8;
}

.app-hero{border-bottom:1px solid var(--color-border);padding:1.25rem 1.5rem 1.1rem}
.app-hero--matcha{background:var(--fl-bg);border-bottom-color:var(--fl-border)}
.app-hero__inner{margin:0 auto}
.app-hero__title{font-size:clamp(1.4rem,3vw,2rem);font-weight:800;color:var(--fl-text);letter-spacing:-.02em;margin:0 0 .5rem;line-height:1.2}
.app-hero__desc{font-size:.9rem;color:var(--color-text-secondary);max-width:660px;line-height:1.6;margin:0 0 .85rem}
.app-hero__chips{display:flex;flex-wrap:wrap;gap:.35rem}
.hero-chip{display:inline-flex;align-items:center;padding:.22rem .65rem;font-size:.72rem;font-weight:700;background:var(--color-surface);border:1.5px solid var(--fl-border);border-radius:var(--radius-full);color:var(--fl-text);white-space:nowrap}

.app-wrap {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 1rem 3rem;
}
.pane-in { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1rem; }
.pane-out { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.125rem;
}
.card-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fl-text); margin: 0 0 .75rem;
}

.field { margin-bottom: .6rem; }
.field:last-child { margin-bottom: 0; }

label.lbl {
  display: block; font-size: .7rem; font-weight: 600;
  color: var(--color-text-muted); margin-bottom: .25rem;
}

input.num-in, input.text-in, select.sel {
  width: 100%; box-sizing: border-box;
  padding: .35rem .55rem; font-size: .85rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg); color: var(--color-text);
  transition: border-color .15s;
}
input.num-in:focus, input.text-in:focus, select.sel:focus { outline: none; border-color: var(--fl-text); }

.field-row { display: flex; gap: .5rem; }
.field-row .field { flex: 1; }

/* Room cards (repeatable) */
.room-card {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: .75rem;
  margin-bottom: .75rem;
  position: relative;
}
.room-card:last-of-type { margin-bottom: 0; }
.room-card-head {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
}
.room-card-head input.text-in { flex: 1; font-weight: 600; }
.remove-room-btn {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border); background: var(--color-bg);
  color: var(--color-text-muted); font-size: .85rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0;
}
.remove-room-btn:hover { border-color: #c0392b; color: #c0392b; }

.add-room-btn {
  width: 100%; padding: .5rem; margin-top: .25rem;
  border: 1.5px dashed var(--fl-border); border-radius: var(--radius-md);
  background: var(--fl-bg); color: var(--fl-text);
  font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.add-room-btn:hover { background: var(--fl-border); }

/* Results table */
.rooms-table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
.rooms-table th {
  text-align: left; font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--color-text-muted);
  padding: .4rem .5rem; border-bottom: 1.5px solid var(--fl-border);
}
.rooms-table td {
  padding: .5rem; border-bottom: 1px dashed var(--color-border);
  color: var(--color-text);
}
.rooms-table tbody tr:last-child td { border-bottom: none; }
.rooms-table tfoot .total-row td {
  font-weight: 800; color: var(--fl-text);
  border-top: 1.5px solid var(--fl-border); border-bottom: none;
  padding-top: .6rem;
}
.rooms-table .unit-cell {
  font-weight: 700; color: var(--fl-text);
}

.hint-text {
  font-size: .78rem; color: var(--color-text-muted); line-height: 1.6; margin: 0;
}

@media (max-width: 760px) {
  .app-wrap { flex-direction: column; }
  .pane-in { width: 100%; }
  .rooms-table { font-size: .78rem; }
}
