.hm-mod-layout {
  --hm-ink: #182331;
  --hm-muted: #546375;
  --hm-line: #dce2e8;
  --hm-orange: #a45105;
  --hm-pale: #fff4e7;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: stretch;
  min-height: min(72vh, 760px);
  color: var(--hm-ink);
  background: #f8fafc;
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.55;
  overflow: hidden;
}
.hm-mod-layout * { box-sizing: border-box; }
.hm-mod-layout h2, .hm-mod-layout h3, .hm-mod-layout h4, .hm-mod-layout p { margin: 0; }
.hm-mod-layout button { font: inherit; cursor: pointer; }
.hm-mod-layout button:focus-visible { outline: 2px solid #bf680e; outline-offset: -2px; }
.hm-mod-rail { min-width: 0; border-right: 1px solid var(--hm-line); background: #fff; }
.hm-mod-rail-title {
  padding: 15px 18px; background: #f3f5f8; border-bottom: 1px solid var(--hm-line);
  font-weight: 700; font-size: 1rem;
}
.hm-mod-nav { display: block; padding: 5px 0 22px; }
.hm-mod-group { display: grid; }
.hm-mod-group-name {
  padding: 14px 16px 4px; color: var(--hm-muted); font-weight: 600; font-size: .78rem;
}
.hm-mod-layout .hm-mod-link {
  min-height: 36px; width: 100%; text-align: left; background: #fff;
  border: 0; border-inline-start: 3px solid transparent; border-radius: 0;
  color: #344154; padding: 7px 12px 7px 20px; font-size: .9rem;
}
.hm-mod-layout .hm-mod-link:hover, .hm-mod-layout .hm-mod-tile:hover { background: #fbf7f2; }
.hm-mod-layout .hm-mod-link[aria-current="page"] {
  border-color: #ef8200; color: #924602; background: var(--hm-pale); font-weight: 650;
}
.hm-mod-main { min-width: 0; padding: 23px clamp(14px,2.4vw,38px) 32px; }
.hm-mod-head { display: grid; gap: 5px; margin-bottom: 20px; }
.hm-mod-crumb { display: flex; gap: 9px; color: var(--hm-muted); font-size: .8rem; }
.hm-mod-slash { color: #97a2b0; }
.hm-mod-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hm-mod-layout h2 { font-size: clamp(1.3rem,2vw,1.6rem); font-weight: 700; letter-spacing: -.025em; }
.hm-mod-planned {
  display: inline-block; border: 1px solid #dadfe5; background: #f1f3f5; color: #56606d;
  padding: 1px 7px; border-radius: 4px; font-size: .76rem;
}
.hm-mod-head p { font-size: .94rem; color: var(--hm-muted); }
.hm-mod-card {
  padding: 0; margin: 0 0 16px; background: #fff; border: 1px solid var(--hm-line); border-radius: 6px;
}
.hm-mod-card-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 6px 18px; padding: 12px 16px; border-bottom: 1px solid var(--hm-line);
}
.hm-mod-layout h3 { font-size: 1rem; font-weight: 650; }
.hm-mod-source { font-size: .8rem; color: var(--hm-muted); }
.hm-mod-defs {
  margin: 0; display: grid; grid-template-columns: 92px minmax(0,1fr);
  align-items: start; gap: 13px 12px; padding: 17px 16px; font-size: .91rem;
}
.hm-mod-defs dt { color: var(--hm-muted); padding-block: 2px; }
.hm-mod-defs dd { margin: 0; padding-block: 2px; }
.hm-mod-fields { display: flex; flex-wrap: wrap; gap: 7px; }
.hm-mod-field {
  display: inline-block; border-radius: 4px; border: 1px solid #e5e9ed; background: #f7f9fa;
  color: #394759; padding: 1px 7px; font-size: .84rem;
}
.hm-mod-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,225px),1fr));
  gap: 10px; padding: 14px 16px;
}
.hm-mod-layout .hm-mod-tile {
  text-align: left; align-self: stretch; display: grid; align-content: start; gap: 4px;
  padding: 11px 13px; background: #fff; border: 1px solid var(--hm-line); border-radius: 5px;
  min-width: 0; color: var(--hm-ink);
}
.hm-mod-tile strong { color: var(--hm-orange); font-size: .94rem; }
.hm-mod-tile span { font-size: .84rem; color: var(--hm-muted); }
.hm-mod-layout .hm-mod-action {
  border: 1px solid #bf6107; color: #fff; background: #ac5205; border-radius: 5px;
  font-size: .91rem; font-weight: 600; padding: 7px 15px;
}
.hm-mod-layout .hm-mod-action:hover { background: #934503; }
.hm-mod-empty { text-align: center; padding: clamp(32px,5vw,72px) 16px; }
.hm-mod-empty h4 { font-size: 1.03rem; }
.hm-mod-empty p { margin: 5px auto 12px; color: var(--hm-muted); font-size: .9rem; }
.hm-mod-scroll { overflow-x: auto; }
.hm-mod-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hm-mod-table th, .hm-mod-table td { text-align: left; padding: 10px 14px; white-space: nowrap; }
.hm-mod-table th { color: #475569; background: #f8fafc; font-weight: 600; }
.hm-mod-table tr + tr td { border-top: 1px solid #edf0f3; }
.hm-mod-table small { display: block; color: var(--hm-muted); }
.hm-mod-layout .hm-mod-text-action {
  background: none; border: 0; color: var(--hm-orange); text-decoration: underline;
  text-underline-offset: 3px; font-size: .87rem; padding: 4px 0;
}
@media (max-width: 760px) {
  .hm-mod-layout { display: block; min-height: 0; }
  .hm-mod-rail { border-right: 0; border-bottom: 1px solid var(--hm-line); }
  .hm-mod-rail-title { padding: 8px 12px; font-size: .9rem; }
  .hm-mod-nav { display: flex; gap: 2px; overflow-x: auto; padding: 3px 5px; }
  .hm-mod-group { display: flex; flex: 0 0 auto; }
  .hm-mod-group-name { display: none; }
  .hm-mod-layout .hm-mod-link {
    width: auto; padding: 6px 10px; border: 0; border-bottom: 2px solid transparent; white-space: nowrap;
  }
  .hm-mod-layout .hm-mod-link[aria-current="page"] { border-bottom-color: #ef8200; }
  .hm-mod-main { padding: 16px 10px; }
  .hm-mod-head { margin-bottom: 15px; }
  .hm-mod-defs { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .hm-mod-defs dd + dt { margin-top: 6px; }
  .hm-mod-grid { padding: 10px; }
}
