.panel { padding: 32px 0 64px; min-height: 70vh; }
.login { padding-top: 24px; }
.user-email { color: var(--muted); font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.nav .btn-ghost { color: var(--navy); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 2px; }
.tile-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile-value { font-size: 2rem; font-weight: 750; color: var(--navy); }
.tile-value.bad { color: var(--bad); }
.tile-sub { font-size: .85rem; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab.active { color: var(--navy); border-bottom-color: var(--teal); }
.add-box { margin-bottom: 18px; }
.add-box form { display: grid; gap: 10px; margin-top: 14px; }
.add-box label { font-weight: 600; font-size: .95rem; }
.add-box textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: .95rem; }
.add-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.file-btn { display: inline-flex; align-items: center; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--navy); background: #fff; }
.table-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.table-head input { flex: 1; min-width: 200px; max-width: 360px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ctable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ctable th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); white-space: nowrap; }
.ctable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable .cname { font-weight: 650; color: var(--navy); }
.ctable .cnip { color: var(--muted); font-size: .85rem; }
.row-actions { white-space: nowrap; text-align: right; }
.link-btn { background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; font-size: .88rem; padding: 2px 4px; }
.link-btn.danger { color: var(--muted); }
.link-btn.danger:hover { color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 8px; padding: 12px 16px; }
.timeline li.critical { border-left-color: var(--bad); }
.timeline li.warning { border-left-color: var(--warn); }
.timeline .when { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.narrow-form { max-width: 560px; }
.proofs-dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: 640px; width: calc(100% - 32px); box-shadow: var(--shadow); }
.proofs-dialog::backdrop { background: rgba(15, 42, 68, .45); }
.proofs-dialog table { margin: 12px 0 16px; }
@media (max-width: 720px) {
  .ctable th:nth-child(4), .ctable td:nth-child(4), .ctable th:nth-child(6), .ctable td:nth-child(6) { display: none; }
  .user-email { display: none; }
}
.add-box summary { list-style: none; }
.add-box summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) {
  .panel { padding-top: 16px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
  .tile { padding: 10px 12px; }
  .tile-label { font-size: .62rem; letter-spacing: .03em; }
  .tile-value { font-size: 1.5rem; }
  .tile-sub { display: none; }
  .tab { padding: 10px 10px; font-size: .95rem; }
}
.proofs-dialog h2 { font-size: 1.25rem; }
@media (max-width: 720px) {
  .table-wrap { overflow: visible; }
  .ctable thead { display: none; }
  .ctable tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ctable tbody tr:last-child { border-bottom: 0; }
  .ctable td { border: 0 !important; padding: 0; }
  .ctable td:first-child { flex-basis: 100%; }
  .ctable td:nth-child(5):has(.muted) { display: none; }
  .row-actions { margin-left: auto; }
  .proofs-dialog .ctable thead { display: table-header-group; }
  .proofs-dialog .ctable tbody tr { display: table-row; padding: 0; }
  .proofs-dialog .ctable td { padding: 8px 6px; border-bottom: 1px solid var(--line) !important; }
}
