#fridgeRegistry {
  padding: 24px;
  min-width: 0;
  color: #20334a;
}
#fridgeRegistry h1 { margin: 0 0 18px; }
.fridge-controls, .fridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.fridge-controls input, .fridge-controls select, .fridge-field input,
.fridge-field textarea, .fridge-field select {
  box-sizing: border-box;
  border: 1px solid #cbd6e1;
  border-radius: 8px;
  background: white;
  color: #20334a;
  font: inherit;
  padding: 10px 12px;
  min-width: 0;
}
.fridge-controls input { flex: 1 1 320px; }
.fridge-controls select { flex: 0 1 auto; }
.fridge-controls input, .fridge-controls select,
.fridge-layout button, .fridge-card-footer button { min-height: 44px; }
.fridge-layout { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--soft); }
.fridge-layout button[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: #174baf; }
.fridge-counts { color: #52677c; line-height: 1.6; }
.fridge-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.fridge-card, .fridge-empty {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.fridge-card { display: flex; flex-direction: column; gap: 8px; }
.fridge-card h2, .fridge-card p { margin: 0; overflow-wrap: break-word; }
.fridge-serial { font-size: 20px; font-variant-numeric: tabular-nums; }
.fridge-company { font-weight: 600; }
.fridge-address { color: #52677c; line-height: 1.45; }
.fridge-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.fridge-badge { display: inline-block; border-radius: 12px; background: var(--soft); color: #52677c; padding: 4px 9px; font-size: 12px; }
.fridge-badge.linked { background: var(--green-soft); color: #136849; }
.fridge-table-wrap { max-width: 100%; overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.fridge-table { width: 100%; min-width: 780px; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.fridge-table th, .fridge-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e8edf2; vertical-align: middle; }
.fridge-table th { background: #f5f8fb; color: #52677c; }
.fridge-table th:first-child { width: 160px; }
.fridge-table th:nth-child(2) { width: 30%; }
.fridge-table th:last-child { width: 190px; }
.fridge-table tr:last-child td { border-bottom: 0; }
.fridge-table td:nth-child(2) { overflow-wrap: break-word; }
.fridge-table tbody tr { cursor: pointer; }
.fridge-table tbody tr:hover, .fridge-table tbody tr:focus-within { background: var(--blue-soft); }
.fridge-address-preview { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fridge-link { max-width: 100%; min-height: 44px; border: 0; padding: 0; background: none; color: #1d65ad; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; overflow-wrap: break-word; text-align: left; }
body:has(#fridgeRegistry:not([hidden])) .main-content { min-width: 0; }
.fridge-detail, .fridge-form { margin-top: 16px; }
.fridge-detail { border: 1px solid #dce4ed; border-radius: 10px; padding: 18px; background: white; }
.fridge-detail dl { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); gap: 8px 16px; }
.fridge-detail dt { color: #52677c; }
.fridge-detail dd { margin: 0; overflow-wrap: anywhere; }
.fridge-form { display: grid; gap: 12px; justify-items: start; }
.fridge-form > h2, .fridge-form > h3, .fridge-form > p { margin: 0; }
.fridge-field { display: grid; width: 100%; max-width: 600px; gap: 5px; font-size: 14px; }
.fridge-field textarea { min-height: 80px; resize: vertical; }
.fridge-suggestion { margin: 12px 0; padding: 12px; border: 1px solid #dce4ed; border-radius: 8px; overflow-wrap: anywhere; }
.fridge-suggestion p { margin: 5px 0; }
#drawerFridge { padding: 16px; border-top: 1px solid #e8edf2; overflow-wrap: anywhere; }
#drawerFridge h3 { font-size: 15px; margin: 14px 0 8px; }
@media (max-width: 600px) {
  #fridgeRegistry { padding: 16px 12px; }
  .fridge-controls input, .fridge-controls select { flex: 1 1 100%; width: 100%; }
  .fridge-detail dl { grid-template-columns: 1fr; gap: 4px; }
  .fridge-detail dd { margin-bottom: 10px; }
}
.fridge-mobile-nav, .fridge-back { display: none; }
@media (max-width: 760px) {
  .fridge-mobile-nav { display: inline-flex; margin: 8px 12px; }
  .fridge-back { display: inline-flex; margin-bottom: 14px; }
}
