.admin { background: #f2f6fc; min-height: 100vh; }
.admin .site-header { border-bottom: 1px solid var(--line); }
.admin .nav { min-height: 67px; }
.admin .brand img { height: auto; }
.admin-nav { display: flex; align-items: center; gap: 17px; color: #344967; font-size: .94rem; font-weight: 650; }
.admin-nav a:hover { color: var(--blue); }
.admin-main { padding-block: 35px 65px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.page-heading h1 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); letter-spacing: -.055em; line-height: 1.15; }
.page-heading p, .panel p { color: var(--muted); margin-top: 7px; word-break: keep-all; }
.admin-status { min-height: 1.45rem; margin: 5px 0; color: #17613f; font-size: .9rem; }
.button.secondary { border-color: #c5d5ee; background: #fff; color: #194676; }
.button.secondary:hover { background: #e9f2ff; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); border-radius: 13px; background: #fff; min-width: 0; padding: 17px; }
.stat:last-child { background: #132b56; color: #fff; border-color: #132b56; }
.stat span, .stat strong { display: block; }
.stat span { font-weight: 650; color: #49617f; font-size: .91rem; }
.stat:last-child span { color: #c9ddff; }
.stat strong { font-size: clamp(1.4rem, 3vw, 2.05rem); margin-top: 3px; font-variant-numeric: tabular-nums; }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 15px; margin-bottom: 15px; padding: 22px; }
.login-panel { max-width: 475px; }
.login-panel form .field { margin: 18px 0 12px; }
.panel h2 { font-size: 1.3rem; letter-spacing: -.035em; line-height: 1.2; }
.panel-heading { margin-bottom: 15px; }
.panel-tools { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.admin-inquiry summary { cursor: pointer; color: #1551be; white-space: nowrap; }
.admin-inquiry p { min-width: 145px; max-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-filter { display: flex; align-items: center; font-size: .9rem; white-space: nowrap; gap: 7px; font-weight: 650; }
.inline-input { min-height: 36px; width: auto; max-width: 100%; padding: 5px 8px; font-size: .9rem; }
select.inline-input {
  appearance: none;
  padding-right: 25px;
  background-image: linear-gradient(45deg, transparent 50%, #415a7e 50%), linear-gradient(135deg, #415a7e 50%, transparent 50%);
  background-size: 5px 5px;
  background-position: right 12px center, right 7px center;
  background-repeat: no-repeat;
}
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 9px; border-bottom: 1px solid #e6edf7; vertical-align: middle; }
th { background: #f2f6fd; color: #3e5370; font-size: .88rem; white-space: nowrap; }
td { font-size: .92rem; }
td time { white-space: nowrap; }
td small { display: block; color: #526986; font-size: .83rem; }
td strong { word-break: break-word; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-cell { text-align: center; padding-block: 24px; color: var(--muted); }
.table-controls { display: flex; align-items: center; gap: 6px; }
.table-controls input { width: 105px; }
.table-controls .button { min-height: 34px; padding: 4px 9px; white-space: nowrap; font-size: .86rem; }
.status-chip { white-space: nowrap; border-radius: 999px; padding: 4px 8px; color: #174b92; background: #e9f1ff; font-size: .85rem; font-weight: 700; }
.status-chip[data-state=installed] { color: #156247; background: #e0f6ec; }
.status-chip[data-state=cancelled], .status-chip[data-state=waitlisted] { color: #435572; background: #eef2f8; }
.promoted { display: block; color: #1558b3; font-size: .82rem; }
.phone { display: block; margin-top: 2px; white-space: nowrap; color: #174eab; }
.phone:hover { text-decoration: underline; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .admin .brand img { width: 112px; }
  .admin-main { padding-top: 27px; }
  .admin-status { font-size: .86rem; }
  .page-heading { align-items: start; }
  .page-heading .button { min-height: 35px; padding: 4px 8px; font-size: .85rem; }
  .stats { gap: 7px; }
  .stat { padding: 9px; }
  .stat span { font-size: .84rem; }
  .panel { padding: 14px; }
  .panel-tools { align-items: flex-start; flex-direction: column; }
}
