.dashboard { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 26px 28px 18px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; }
.dashboard-heading .eyebrow { margin: 0 0 4px; }
.dashboard-heading h1 { margin: 0; font-size: 27px; font-weight: 600; }
.device-summary { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.monitor-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.summary-item { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: #10151dcc; }
.summary-item span { color: var(--muted); font-size: 12px; }
.summary-item strong { font-size: 26px; font-weight: 550; }
.summary-item[data-status='developing'] strong { color: var(--blue); }
.summary-item[data-status='confirmation'] strong { color: var(--amber); }
.summary-item[data-status='completed'] strong { color: var(--green); }
.monitor-notice { margin: 0; padding: 8px 12px; background: #ffd28308; border: 1px solid #ffd28340; border-radius: 8px; color: var(--amber); font-size: 12px; }
.projects-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.projects-heading h2 { margin: 0; font-weight: 550; font-size: 14px; }
.projects-heading span { color: var(--muted); font-size: 12px; }
.project-list { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.project-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 17px; padding: 21px 17px 14px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(160deg, #17212f, #10151d 65%); overflow: hidden; }
.project-card[data-status='confirmation'] { border-color: #ffd28355; background: linear-gradient(160deg, #2b2519, #10151d 65%); }
.project-card[data-status='completed'] { border-color: #60e3ab30; }
.project-card[data-status='offline'], .project-card[data-status='unavailable'] { background: #10151d; }
.project-device { margin: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-name { margin: 0; font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; }
.project-state[data-status='developing'] { color: var(--blue); }
.project-state[data-status='confirmation'] { color: var(--amber); }
.project-state[data-status='completed'] { color: var(--green); }
.project-state[data-status='error'] { color: var(--red); }
.project-state-icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; flex: 0 0 auto; }
.project-topic { min-height: 0; flex: 1; overflow: hidden; }
.project-topic small { color: var(--muted); font-size: 11px; }
.project-topic p { margin: 5px 0 0; color: #cad2dd; font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; overflow-wrap: anywhere; }
.project-footer { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 11px; }
.project-link { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--blue); text-decoration: none; font-size: 12px; border-top: 1px solid var(--border); }
.project-link:hover { color: #b2dcff; }
.project-link[aria-disabled='true'] { color: var(--muted); }
.visibility-note { margin: 0; font-size: 11px; color: var(--muted); }
.monitor-empty { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.monitor-empty h2 { margin: 0 0 8px; font-size: 19px; font-weight: 550; }
.monitor-empty p { color: var(--muted); font-size: 13px; max-width: 380px; }
.monitor-empty a { text-decoration: none; color: var(--blue); }
@media (max-width: 1050px) {
  .dashboard { gap: 14px; padding: 18px; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .project-card { padding: 12px; gap: 4px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto; }
  .project-device { grid-column: 1; font-size: 10px; }
  .project-name { grid-row: 2; font-size: 15px; }
  .project-state { grid-column: 2; grid-row: 1 / 3; font-size: 12px; }
  .project-state-icon { width: 22px; height: 22px; font-size: 12px; }
  .project-topic { grid-column: 1 / -1; }
  .project-topic small { display: none; }
  .project-topic p { margin: 0; font-size: 11px; -webkit-line-clamp: 1; }
  .project-footer { flex-direction: row; align-self: center; gap: 8px; font-size: 10px; white-space: nowrap; }
  .project-link { border: 0; grid-column: 2; min-height: 32px; font-size: 11px; }
}
@media (max-width: 640px) {
  .dashboard { padding: 12px 12px max(10px, env(safe-area-inset-bottom)); gap: 10px; }
  .dashboard-heading { align-items: center; }
  .dashboard-heading .eyebrow { display: none; }
  .dashboard-heading h1 { font-size: 20px; }
  .device-summary { font-size: 10px; }
  .monitor-summary { gap: 6px; }
  .summary-item { flex-direction: column; gap: 0; padding: 6px 3px; border-radius: 8px; }
  .summary-item span { font-size: 10px; }
  .summary-item strong { font-size: 22px; line-height: 1.3; }
  .projects-heading h2 { font-size: 12px; }
  .projects-heading span, .visibility-note { font-size: 10px; }
  .project-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .project-card { padding: 7px 11px 3px; gap: 0 8px; border-radius: 10px; grid-template-rows: auto auto 1fr; }
  .project-name { font-size: 13px; }
  .project-state { font-size: 11px; gap: 6px; }
  .project-topic { display: none; }
  .project-footer { gap: 6px; font-size: 9px; overflow: hidden; }
  .project-link { min-height: 30px; font-size: 10px; }
  .monitor-notice { padding: 5px 8px; font-size: 10px; }
}
@media (max-height: 650px) {
  .dashboard { gap: 7px; padding-top: 8px; padding-bottom: 8px; }
  .dashboard-heading .eyebrow { display: none; }
  .dashboard-heading h1 { font-size: 20px; }
  .summary-item { padding-top: 5px; padding-bottom: 5px; }
  .project-card { gap: 2px; padding-top: 6px; }
  .project-state-icon { display: none; }
  .project-topic { display: none; }
}
