@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Crimson+Text:wght@400;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg-0: #0c1220;
  --bg-1: #1a0f08;
  --panel: rgba(34, 24, 15, 0.84);
  --panel-border: rgba(var(--trim-rgb), 0.35);
  --text: #f3ead7;
  --muted: #cabda6;
  --accent: #c8a05a;
  --accent-2: #6f8b5f;
  --trim-rgb: 193, 160, 96;
  --trim-strong-rgb: 216, 187, 127;
  --title-text: #f7e7c2;
  --status-text: #efdcb8;
  --status-label: #d9b575;
  --house-glow-rgb: 139, 30, 45;
  --house-crest-url: none;
  --house-name: '';
  --house-motto-latin: '';
  --house-label: '';
  --house-ribbon-display: none;
  --button-start: #d8bb7f;
  --button-end: #b38a44;
  --button-text: #25180c;
  --nav-badge-bg: rgba(191, 72, 59, 0.95);
  --field-bg: rgba(15, 10, 6, 0.45);
  --field-soft-bg: rgba(255, 255, 255, 0.08);
  --field-border-rgb: 193, 160, 96;
  --alert-ok-bg: rgba(61, 220, 151, 0.12);
  --alert-ok-border: rgba(61, 220, 151, 0.45);
  --alert-warn-bg: rgba(255, 107, 107, 0.12);
  --alert-warn-border: rgba(255, 107, 107, 0.45);
  --pager-bg: rgba(255, 255, 255, 0.05);
  --pager-border-rgb: 255, 255, 255;
  --table-border-rgb: 255, 255, 255;
  --table-head-bg: rgba(255, 255, 255, 0.04);
  --table-row-hover-bg: rgba(255, 255, 255, 0.04);
  --pill-ok-bg: rgba(136, 177, 111, 0.2);
  --pill-ok-border: rgba(136, 177, 111, 0.52);
  --pill-warn-bg: rgba(214, 132, 119, 0.2);
  --pill-warn-border: rgba(214, 132, 119, 0.58);
  --danger: #c25a4f;
  --ok: #88b16f;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html {
  background-color: #1a0f08;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 3.1rem;
  color: var(--text);
  font-family: 'Crimson Text', Georgia, serif;
  letter-spacing: 0.01em;
  background-color: #1a0f08;
  background:
    radial-gradient(800px 460px at -8% -8%, rgba(160, 120, 60, 0.18), transparent 70%),
    radial-gradient(880px 500px at 108% -6%, rgba(95, 120, 80, 0.2), transparent 72%),
    linear-gradient(155deg, var(--bg-0), var(--bg-1));
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(720px 420px at 12% 18%, rgba(var(--house-glow-rgb), 0.14), transparent 72%),
    radial-gradient(820px 460px at 88% 2%, rgba(var(--house-glow-rgb), 0.10), transparent 76%);
}

body.status-bar-static {
  padding-bottom: 0;
}

.status-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: linear-gradient(90deg, rgba(27, 15, 9, 0.95), rgba(44, 25, 12, 0.95));
  border-top: 1px solid rgba(var(--trim-rgb), 0.45);
  color: var(--status-text);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.38rem 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-bar-label {
  color: var(--status-label);
  font-weight: 700;
  margin-right: 0.35rem;
}

body.status-bar-static .status-bar {
  position: static;
  width: min(1100px, 94vw);
  margin: 0.2rem auto 0.9rem;
  border: 1px solid rgba(var(--trim-rgb), 0.38);
  border-radius: 10px;
}

.skip-link {
  position: absolute;
  left: 0.7rem;
  top: -3rem;
  z-index: 1000;
  background: #f3e2bf;
  color: #2c1a0a;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 0.7rem;
}

a {
  color: #e6d2ab;
}

a:visited {
  color: #e6d2ab;
}

a:hover {
  color: #f7e9ca;
}

.page {
  width: min(1100px, 94vw);
  margin: 1.25rem auto 2rem;
  animation: rise 320ms ease-out;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem 1rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--trim-rgb), 0.38);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 9, 14, 0.28), rgba(10, 9, 14, 0.78)),
    url('/assets/images/ui/TitleAndBanner_Header.png') center top / cover no-repeat;
  box-shadow: var(--shadow);
}

.topbar::after {
  content: '';
  position: absolute;
  display: var(--house-ribbon-display);
  right: 0.85rem;
  bottom: 0.55rem;
  max-width: min(52vw, 520px);
  padding: 0.28rem 0.58rem 0.24rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--trim-rgb), 0.38);
  background: rgba(9, 7, 5, 0.52);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
  color: #f7edda;
  content: var(--house-label);
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.topbar::before {
  content: '';
  position: absolute;
  right: 0.8rem;
  top: 0.55rem;
  width: 96px;
  height: 96px;
  background: var(--house-crest-url) center/contain no-repeat;
  opacity: 0.14;
  filter: drop-shadow(0 3px 8px rgba(var(--house-glow-rgb), 0.35));
  pointer-events: none;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand {
  position: relative;
  display: block;
  min-height: 2.4rem;
  padding-left: 2.95rem;
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand::before {
  content: '';
  position: absolute;
  left: 0.05rem;
  top: 0.05rem;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 10px;
  background:
    linear-gradient(165deg, rgba(10, 8, 5, 0.72), rgba(10, 8, 5, 0.2)),
    url('/assets/images/ui/PlentyOfWizards_IconSheetTrans.png') center/contain no-repeat;
  border: 1px solid rgba(var(--trim-rgb), 0.36);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}

.brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-start;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  background: rgba(var(--trim-rgb), 0.14);
  border: 1px solid rgba(var(--trim-rgb), 0.38);
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: all 140ms ease;
}

.nav a:hover {
  border-color: var(--accent);
  background: rgba(var(--trim-rgb), 0.24);
}

.nav a.active,
.nav a[aria-current="page"] {
  border-color: rgba(var(--trim-strong-rgb), 0.95);
  background: rgba(var(--trim-strong-rgb), 0.24);
  color: #fff3d4;
  box-shadow: inset 0 0 0 1px rgba(var(--trim-strong-rgb), 0.25);
}

.nav-badge {
  display: inline-block;
  margin-left: 0.4rem;
  min-width: 1.25rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: var(--nav-badge-bg);
  color: #fff4ea;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.card {
  grid-column: span 12;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.card h2, .card h3 {
  margin: 0 0 0.6rem;
  font-family: 'Cinzel', 'Times New Roman', serif;
  letter-spacing: 0.03em;
  color: var(--title-text);
}

.card p { margin: 0.35rem 0; }

.stack { display: grid; gap: 0.6rem; }

.muted { color: var(--muted); }
.mono { font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 0.88rem; }
.house-asset-previews {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.35rem 0 0.5rem;
}
.asset-preview {
  margin: 0;
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--trim-rgb), 0.24);
  background: rgba(255, 255, 255, 0.04);
}
.asset-preview figcaption {
  font-size: 0.8rem;
  opacity: 0.84;
  margin-bottom: 0.45rem;
}
.asset-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(var(--trim-rgb), 0.28);
  background: rgba(0, 0, 0, 0.26);
}
.asset-thumb.asset-crest-thumb {
  object-fit: contain;
  background: rgba(0, 0, 0, 0.34);
}
.asset-thumb.is-empty {
  opacity: 0.42;
}
.house-asset-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.asset-mini {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(var(--trim-rgb), 0.35);
  background: rgba(0, 0, 0, 0.26);
}
.asset-crest-mini {
  object-fit: contain;
}
.img-fallback {
  outline: 1px dashed rgba(var(--trim-rgb), 0.55);
  outline-offset: 1px;
}

.alert {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  border: 1px solid;
}

.alert.ok { background: var(--alert-ok-bg); border-color: var(--alert-ok-border); }
.alert.warn { background: var(--alert-warn-bg); border-color: var(--alert-warn-border); }

form { display: grid; gap: 0.6rem; }

label { font-size: 0.92rem; color: var(--muted); display: grid; gap: 0.35rem; }

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  color: var(--text);
  border-radius: 9px;
  border: 1px solid rgba(var(--field-border-rgb), 0.3);
  background: var(--field-bg);
  padding: 0.6rem 0.7rem;
}

textarea { min-height: 84px; resize: vertical; }

input[type="file"] {
  width: 100%;
  color: var(--muted);
  border-radius: 9px;
  border: 1px solid rgba(var(--field-border-rgb), 0.3);
  background: var(--field-bg);
  padding: 0.45rem 0.5rem;
}

input[type="file"]::file-selector-button {
  margin-right: 0.55rem;
  border: 1px solid rgba(var(--trim-rgb), 0.32);
  border-radius: 9px;
  padding: 0.42rem 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: var(--field-soft-bg);
  cursor: pointer;
}

input[type="file"]::-ms-browse {
  border: 1px solid rgba(var(--trim-rgb), 0.32);
  border-radius: 9px;
  padding: 0.42rem 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: var(--field-soft-bg);
  cursor: pointer;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  color: var(--button-text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:disabled,
button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  filter: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(var(--trim-strong-rgb), 0.95);
  outline-offset: 2px;
}

button.secondary {
  background: var(--field-soft-bg);
  color: var(--text);
  border: 1px solid rgba(var(--trim-rgb), 0.28);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--trim-rgb), 0.28);
  background: var(--field-soft-bg);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease;
}

.button-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  text-decoration: none;
}

button.danger {
  background: linear-gradient(135deg, #d68477, #b65449);
  color: #2e130f;
}

button.warn {
  background: linear-gradient(135deg, #f2b37f, #d47540);
  color: #2e130f;
}

.inline {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-toolbar {
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.toolbar-inline {
  margin-bottom: 0.65rem;
}

.toolbar-inline-top {
  margin-top: 0.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.actions form {
  margin: 0;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-meta {
  margin-top: 0.55rem;
}

.filter-pill-active {
  border-color: rgba(var(--trim-strong-rgb), 0.9) !important;
}

.inline-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.actions a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(var(--trim-rgb), 0.3);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(var(--trim-rgb), 0.12);
}

.actions a:hover {
  border-color: var(--accent);
}

.room-meta a,
.post-item > p a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(var(--trim-rgb), 0.3);
  padding: 0.32rem 0.58rem;
  border-radius: 8px;
  background: rgba(var(--trim-rgb), 0.12);
  display: inline-block;
}

.room-meta a:hover,
.post-item > p a:hover {
  border-color: var(--accent);
  background: rgba(var(--trim-rgb), 0.22);
}

.post-item .actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-item .actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}

.post-item .actions-row > form {
  display: inline-flex;
  margin: 0;
}

.post-item .actions-row > form > button,
.post-item .actions-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.post-item .actions-row > a,
.post-item .actions-row > form > button,
.post-item .actions-row > button {
  min-height: 2.05rem;
}

.profile-actions .actions-row {
  justify-content: flex-start;
}

.post-item .comment-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 560px;
}

.post-item .comment-inline input[type="text"] {
  flex: 1 1 auto;
  min-width: 220px;
}

.pager {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pager a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(var(--pager-border-rgb), 0.24);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--pager-bg);
}

.pager a:hover {
  border-color: var(--accent);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.post-item {
  border: 1px solid rgba(var(--trim-rgb), 0.24);
  border-radius: 10px;
  padding: 0.7rem;
  background: linear-gradient(
    180deg,
    rgba(var(--house-glow-rgb), 0.08),
    rgba(0, 0, 0, 0.2)
  );
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.post-item:hover {
  border-color: rgba(var(--trim-rgb), 0.5);
  box-shadow: 0 8px 18px rgba(var(--house-glow-rgb), 0.16);
  transform: translateY(-1px);
}

.post-item.unread-item {
  border-color: rgba(var(--trim-strong-rgb), 0.78);
  box-shadow: inset 0 0 0 1px rgba(var(--trim-strong-rgb), 0.3);
  background: rgba(var(--trim-strong-rgb), 0.08);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.person-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.55rem;
  align-items: center;
}

.person-head .avatar-sm {
  grid-row: span 2;
}

.relationship-pill {
  display: inline-block;
  border: 1px solid rgba(var(--trim-rgb), 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: linear-gradient(
    135deg,
    rgba(var(--trim-rgb), 0.18),
    rgba(var(--house-glow-rgb), 0.14)
  );
}

.contact-list {
  gap: 0.5rem;
}

.contact-item {
  transition: border-color 140ms ease, background 140ms ease;
}

.contact-item:hover {
  border-color: rgba(var(--trim-rgb), 0.52);
}

.contact-item.active {
  border-color: rgba(var(--trim-strong-rgb), 0.9);
  background: rgba(var(--trim-rgb), 0.16);
}

.author-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.author-row a {
  color: var(--text);
  text-decoration: none;
}

.author-row a:hover {
  text-decoration: underline;
}

.author-row a:visited {
  color: var(--text);
}

.author-row-tight {
  margin-bottom: 0.4rem;
}

.heading-reset {
  margin: 0;
}

.stack-top {
  margin-top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-top {
  margin-top: 0.6rem;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(var(--trim-rgb), 0.45);
  background: rgba(0, 0, 0, 0.25);
}

.avatar-lg {
  width: 108px;
  height: 108px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(var(--trim-rgb), 0.55);
  background: rgba(0, 0, 0, 0.25);
}

.post-media {
  max-width: min(620px, 100%);
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(var(--trim-rgb), 0.35);
  background: rgba(0, 0, 0, 0.2);
  display: block;
}

.room-strip-card h2 {
  margin-bottom: 0.75rem;
}

.room-strip {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
}

.room-strip.feed-room-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feed-room-strip .room-image {
  height: 92px;
}

.feed-room-strip .room-meta {
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
}

.feed-room-strip .room-meta a {
  font-size: 0.84rem;
}

.feed-room-strip .room-crest {
  width: 24px;
  height: 24px;
}

.room-card {
  position: relative;
  border: 1px solid rgba(var(--trim-rgb), 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(var(--house-glow-rgb), 0.12),
    rgba(0, 0, 0, 0.3)
  );
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.room-card:hover {
  border-color: rgba(var(--trim-strong-rgb), 0.82);
  box-shadow: 0 10px 24px rgba(var(--house-glow-rgb), 0.22);
  transform: translateY(-1px);
}

.room-image {
  width: 100%;
  height: 185px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.room-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: linear-gradient(
    180deg,
    rgba(var(--house-glow-rgb), 0.18),
    rgba(18, 12, 7, 0.96)
  );
}

.room-crest {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem;
}

.room-card-detail h3 {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
}

.room-meta-detail {
  align-items: flex-start;
}

.room-grid-large .room-image {
  height: 210px;
}

.pill {
  display: inline-block;
  margin-left: 0.55rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.42rem;
  border-radius: 999px;
  background: rgba(var(--trim-rgb), 0.22);
  border: 1px solid rgba(var(--trim-rgb), 0.5);
}
.pill-ok {
  background: var(--pill-ok-bg);
  border-color: var(--pill-ok-border);
}
.pill-warn {
  background: var(--pill-warn-bg);
  border-color: var(--pill-warn-border);
}

.kv {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.4rem 0.8rem;
}

.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table-wrap table {
  min-width: 620px;
}

th, td {
  border-bottom: 1px solid rgba(var(--table-border-rgb), 0.18);
  padding: 0.55rem;
  text-align: left;
}

th {
  background: var(--table-head-bg);
}

tbody tr:hover td {
  background: var(--table-row-hover-bg);
}

@media (min-width: 820px) {
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .room-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .room-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .room-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-image {
    height: 170px;
  }
  .room-grid-large .room-image {
    height: 240px;
  }
}

@media (max-width: 580px) {
  .kv { grid-template-columns: 1fr; }
  .page { margin-top: 0.8rem; }
  .nav a { min-height: 2.1rem; display: inline-flex; align-items: center; }
  .actions a, .actions button { min-height: 2.05rem; }
  .house-asset-previews { grid-template-columns: 1fr; }
  .room-strip.feed-room-strip { grid-template-columns: 1fr; }
  .brand {
    min-height: 2rem;
    padding-left: 2.45rem;
  }
  .brand::before {
    width: 2rem;
    height: 2rem;
    top: 0.1rem;
  }
}

@media (max-width: 980px) {
  .room-strip.feed-room-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .room-strip.feed-room-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

