/* dist/styles.css */
:root {
  --bg:#f7f8f5;
  --white:#fff;
  --ink:#181e1a;
  --muted:#737970;
  --line:#dfe3dc;
  --green:#174d38;
  --lime:#d4ee87;
  --pale:#e0f1ae;
  --red:#a64532;
  --radius:13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #96ba57;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 2.65vw, 41px);
  line-height: 1.16;
  letter-spacing: -1.5px;
  font-weight: 750;
  margin-bottom: 10px;
}
h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.65px;
  margin-bottom: 15px;
}
h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.3px;
  margin-bottom: 9px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar {
  width: 224px;
  background: var(--white);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 24px 15px 18px;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 27px;
  margin: 3px 9px 39px;
  white-space: nowrap;
}
.brand > span:last-child {
  color: var(--green);
}
.brand-mark {
  width: 28px;
  height: 27px;
  position: relative;
  margin-right: 9px;
  display: flex;
  align-items: center;
  gap: 2px;
  transform: skewY(-13deg);
}
.brand-mark i {
  width: 8px;
  height: 23px;
  background: var(--green);
  border-radius: 2px;
}
.brand-mark i:nth-child(2) {
  height: 16px;
  background: #85a762;
  transform: translateY(-6px);
}
.brand-mark i:last-child {
  height: 22px;
  background: #b5d974;
  transform: translateY(4px);
}
nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  min-height: 45px;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
}
.nav-item:hover {
  background: #f2f4ed;
}
.nav-item.active {
  background: var(--lime);
  font-weight: 650;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  background: #fff9;
  padding: 0 5px;
  border-radius: 4px;
}
.nav-count:empty {
  display: none;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom > .nav-item {
  font-size: 12px;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 8px 13px;
}
.sidebar-bottom > small {
  display: block;
  font-size: 10px;
  padding-left: 8px;
}
.community-note {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #65785c;
  padding: 16px 9px 26px;
  font-size: 11px;
  line-height: 1.6;
}
.main-shell {
  margin-left: 224px;
}
.topbar {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
  gap: 16px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 21px;
}
.location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
.pilot-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
}
.pilot-label > span {
  width: 6px;
  height: 6px;
  background: #91aa69;
  border-radius: 100%;
}
.role-switch {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.role-switch > span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.role-switch select {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  max-width: 150px;
  padding: 0 12px 0 0;
}
.avatar {
  width: 38px;
  height: 38px;
  background: var(--avatar,var(--green));
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: .2px;
}
.avatar.small {
  width: 29px;
  height: 29px;
  font-size: 9px;
}
.avatar-button {
  padding: 0;
}
.mobile-menu,
.mobile-brand {
  display: none;
}
main {
  max-width: 1536px;
  margin: auto;
  padding: 20px 34px 45px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 15px;
  color: #6a716a;
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.3;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--green);
  color: white;
}
.btn.primary:hover {
  background: #0e3c29;
}
.btn.secondary {
  background: white;
  border-color: var(--line);
}
.btn.secondary:hover {
  background: #f0f3ea;
}
.btn.soft {
  background: var(--lime);
  color: #25442c;
}
.btn.danger-outline {
  border-color: #e8c9c1;
  color: var(--red);
  background: white;
}
.btn.danger {
  background: var(--red);
  color: white;
}
.btn.full {
  width: 100%;
}
.community-banner {
  height: 250px;
  border-radius: 15px;
  background: var(--pale);
  display: flex;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.community-banner > div {
  padding: 30px 32px;
  position: relative;
  z-index: 1;
  width: 61%;
}
.community-banner h2 {
  font-size: clamp(23px, 2.4vw, 35px);
  line-height: 1.13;
  letter-spacing: -1px;
  margin: 0 0 13px;
  font-weight: 750;
}
.community-banner p {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.community-banner img {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 0;
  margin-bottom: 28px;
  background: #ffffff30;
}
.stats-strip > button {
  display: flex;
  gap: 23px;
  align-items: center;
  padding: 0 26px;
  text-align: left;
  border-right: 1px solid var(--line);
  color: #2c4336;
}
.stats-strip > button:last-child {
  border: 0;
}
.stats-strip span {
  font-size: 12px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.stats-strip strong {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.8px;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .95fr);
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 27px 0 17px;
}
.section-heading h2 {
  margin: 0;
}
.overview-columns .section-heading {
  margin-top: 0;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 0;
}
.house-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.house-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff9;
  padding: 16px;
  border-radius: 11px;
  text-align: left;
  width: 100%;
  min-height: 88px;
  transition: border-color .15s;
}
.house-row:hover {
  border-color: #a6b499;
}
.house-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  border-radius: 10px;
  flex-shrink: 0;
}
.peach {
  background: #ffe0d4;
  color: #b5482d;
}
.sage {
  background: #e1eaca;
  color: #496137;
}
.sand {
  background: #f2e6c6;
  color: #8e7131;
}
.house-name {
  min-width: 120px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.house-name strong {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -.2px;
}
.house-name small {
  font-size: 11px;
}
.house-progress {
  width: 93px;
  flex-shrink: 0;
}
.house-progress strong {
  font-size: 15px;
}
.house-progress strong span {
  color: #899081;
  font-weight: 400;
}
.progress {
  display: flex;
  gap: 3px;
  height: 8px;
  margin-top: 8px;
}
.progress i {
  background: #e7eae3;
  flex: 1;
  border-radius: 4px;
}
.progress i.filled {
  background: #bbdf70;
}
.avatar-stack {
  display: flex;
  padding-left: 5px;
}
.avatar-stack .avatar {
  margin-left: -5px;
  border: 2px solid var(--bg);
}
.house-hint {
  max-width: 115px;
  font-size: 10px;
  line-height: 1.35;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.house-row > svg:last-child {
  color: #87917e;
}
.next-section {
  border-left: 1px solid var(--line);
  padding-left: 23px;
}
.next-section > .section-heading > svg {
  color: #a4c857;
}
.next-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  background: #ffffff80;
}
.next-item {
  display: flex;
  gap: 14px;
  margin-bottom: 15px;
  align-items: center;
}
.next-item h3 {
  font-size: 17px;
  margin: 3px 0 9px;
}
.next-item small {
  font-size: 11px;
}
.product-photo {
  background-image: url(./assets/equipment.png);
  background-size: 300% 200%;
  background-position: var(--px) var(--py);
  aspect-ratio: 1.5;
  width: 100%;
  background-repeat: no-repeat;
  background-color: #e9e9df;
}
.product-photo.thumb {
  width: 79px;
  min-width: 79px;
  height: 79px;
  aspect-ratio: 1;
  border-radius: 9px;
}
.product-photo.illustrated {
  background-image: none;
  background: #e9ede2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #758469;
}
.illustrated span {
  font-size: 11px;
}
.tiny {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.muted {
  color: var(--muted);
}
.green-text {
  color: var(--green);
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.item-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 13px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.item-card:hover {
  transform: translateY(-3px);
  border-color: #b7c5ad;
}
.photo-button {
  display: block;
  width: 100%;
  padding: 0;
}
.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fffE;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.favorite.selected {
  color: #a64532;
  background: #ffe9e2;
}
.favorite.selected svg {
  fill: #a6453225;
}
.item-body {
  padding: 15px 17px 12px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 5px;
  padding: 5px 8px;
  background: #f0f2ed;
  color: #5b6855;
  font-weight: 600;
  white-space: nowrap;
}
.status.green {
  background: #edf4e3;
  color: #53713a;
}
.status.amber {
  background: #fbefd5;
  color: #9b741d;
}
.status.muted {
  background: #eee;
  color: #777;
}
.status i {
  height: 5px;
  width: 5px;
  background: currentColor;
  border-radius: 50%;
}
.item-body .status {
  font-size: 9px;
  padding: 3px 6px;
}
.item-body small {
  font-size: 10px;
}
.text-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.3px;
  text-align: left;
  display: block;
  padding: 0;
  margin: 12px 0 5px;
}
.item-body p {
  margin-bottom: 14px;
  font-size: 11px;
}
.item-footer {
  border-top: 1px solid #edf0e9;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.person-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 0;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 22px 34px;
  color: #899080;
  font-size: 10px;
}
.app-footer b {
  font-weight: 400;
  margin-left: 10px;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  color: #7e8777;
}
.search input {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--ink);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5c6556;
  cursor: pointer;
}
.check-label input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}
.category-tabs,
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 20px;
  overflow: auto;
}
.category-tabs button,
.tabs button {
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}
.category-tabs .active,
.tabs .active {
  background: var(--green);
  color: white;
}
.results-label {
  display: flex;
  justify-content: space-between;
  color: #7c8376;
  font-size: 11px;
  margin: 0 0 17px;
}
.empty {
  border: 1px dashed #cbd4c3;
  padding: 36px 20px;
  text-align: center;
  border-radius: 12px;
  color: #718065;
  width: 100%;
}
.empty h3 {
  color: var(--ink);
  margin: 12px 0 7px;
}
.empty p {
  font-size: 13px;
}
.loan-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.loan-row {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.loan-row:last-child {
  border: 0;
}
.loan-row:hover {
  background: #f7f9f3;
}
.loan-row .thumb {
  width: 63px;
  min-width: 63px;
  height: 63px;
}
.loan-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.loan-name strong {
  font-size: 15px;
}
.loan-name small {
  font-size: 11px;
}
.loan-dates {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f7767;
  min-width: 140px;
}
.loan-row > .status {
  min-width: 125px;
  justify-content: center;
}
.info-strip {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #6e7d62;
  padding: 18px;
  background: #eef2e7;
  border-radius: 9px;
}
.house-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.house-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
}
.house-cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.house-cover > svg {
  transform: rotate(-8deg);
  stroke-width: 1.2;
}
.house-cover > span {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
}
.house-card-body {
  padding: 21px;
}
.house-card h2 {
  font-size: 19px;
  margin-bottom: 0;
}
.house-card p {
  font-size: 12px;
  color: var(--muted);
  min-height: 55px;
  margin-top: 14px;
}
.house-card .between .status {
  font-size: 8px;
}
.house-card .full {
  margin-top: 20px;
}
.callout {
  background: #f0f2eb;
  border-radius: 11px;
  padding: 22px;
  margin: 25px 0;
  color: #68715f;
}
.callout p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.7;
}
.callout h3 {
  color: #33442b;
}
.back-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin-bottom: 25px;
  color: #6e7e63;
  font-size: 12px;
}
.back-link > svg {
  transform: rotate(180deg);
}
.house-detail-top {
  display: flex;
  align-items: center;
  gap: 21px;
}
.house-detail-top > div {
  flex: 1;
}
.house-detail-top h1 {
  font-size: 34px;
}
.house-detail-top p {
  color: var(--muted);
  margin: 0;
}
.house-symbol.large {
  width: 78px;
  height: 78px;
  border-radius: 16px;
}
.house-meta {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid var(--line);
  padding: 25px 0 20px;
  font-size: 12px;
  color: #6f7b64;
}
.house-meta > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.member-line {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 19px 0 5px;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.kit-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  padding: 25px;
}
.kit-room {
  display: block;
  margin: 24px 0 8px;
  font-size: 10px;
}
.kit-card h2 {
  margin-bottom: 9px;
}
.kit-card p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 26px;
}
.kit-card .between strong {
  font-size: 12px;
}
.kit-card .progress {
  height: 10px;
  margin-top: 11px;
}
.kit-missing {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #6f7964;
  margin: 18px 0 25px;
}
.points-hero {
  background: var(--pale);
  padding: 35px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 35px;
}
.points-hero > div:first-child {
  display: grid;
  grid-template-columns: 60px auto;
  align-items: center;
}
.points-hero strong {
  font-size: 65px;
  line-height: 1.2;
  letter-spacing: -3px;
}
.points-hero h2 {
  grid-column: 2;
  margin-bottom: 4px;
  font-size: 19px;
}
.points-hero p {
  grid-column: 2;
  font-size: 12px;
  margin-bottom: 0;
  color: #607a3f;
}
.points-hero > div:last-child {
  align-self: center;
}
.points-hero > div:last-child p {
  margin: 12px 0;
}
.bar {
  height: 9px;
  border-radius: 10px;
  background: #c6d99f;
  margin: 15px 0;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  gap: 20px;
}
.rule-row small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.profile-card {
  display: flex;
  gap: 25px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  align-items: center;
}
.profile-card > .avatar {
  width: 85px;
  height: 85px;
  font-size: 25px;
}
.profile-card > div {
  flex: 1;
}
.profile-card h2 {
  margin-bottom: 6px;
}
.profile-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 35px 0 40px;
}
.profile-stats > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 0 25px;
  border-left: 1px solid var(--line);
  color: var(--green);
}
.profile-stats > div:first-child {
  padding-left: 0;
  border: 0;
}
.profile-stats strong {
  font-size: 30px;
  color: var(--ink);
}
.profile-stats span {
  font-size: 11px;
  color: var(--muted);
}
.profile-stats strong small {
  font-weight: 400;
}
.review-row {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.review-row p {
  margin: 5px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.pilot-notice {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #eaf0df;
  border: 1px solid #d7e2c8;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 28px;
  color: #50683b;
}
.pilot-notice strong {
  font-size: 14px;
  color: #294823;
}
.pilot-notice p {
  margin: 6px 0 0;
  font-size: 12px;
}
.scenario-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.scenario {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}
.scenario:last-child {
  border: 0;
}
.scenario-no {
  font-size: 20px;
  letter-spacing: -.7px;
  color: #a0ad93;
  line-height: 1.3;
}
.scenario > div {
  flex: 1;
  min-width: 0;
}
.scenario h3 {
  margin: 0;
  font-size: 15px;
}
.scenario p {
  margin: 10px 0 15px;
  font-size: 12px;
  color: var(--muted);
  max-width: 750px;
}
.scenario-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.scenario-controls select {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0 12px;
}
.scenario textarea {
  width: 100%;
  min-height: 57px;
  resize: vertical;
  padding: 11px 13px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.comparison article {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.comparison h3 {
  margin-top: 16px;
}
.comparison ol {
  padding-left: 20px;
  font-size: 13px;
  line-height: 2.2;
  color: #67725e;
}
.comparison p {
  font-size: 12px;
  margin: 15px 0 0;
  color: var(--muted);
}
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 22px;
  margin: 20px 0;
}
.lab-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 25px;
}
.lab-footer small {
  width: 100%;
  margin-top: 5px;
}
.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0e23194d;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  width: 560px;
  max-width: 100%;
  max-height: calc(100dvh - 50px);
  background: var(--bg);
  border-radius: 17px;
  box-shadow: 0 25px 90px #0d291b30;
  overflow: auto;
}
.modal.wide {
  width: 700px;
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.modal-heading h2 {
  margin: 0;
  font-size: 21px;
}
.icon-button {
  width: 33px;
  height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}
.icon-button:hover {
  background: #e9ede3;
}
.modal-body {
  padding: 24px 26px;
}
.modal-body > .page-heading {
  display: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 17px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d3dbc9;
  background: white;
  border-radius: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  min-height: 42px;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-note {
  font-size: 11px;
  line-height: 1.6;
  color: #7d8575;
  margin: 14px 0 0;
}
.form-error {
  font-size: 12px;
  color: #a13b2c;
  margin: 0 0 15px;
}
.form-error:empty {
  display: none;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 4px;
}
.item-detail .detail-photo {
  height: 240px;
  aspect-ratio: 1.5;
  border-radius: 10px;
  margin-bottom: 20px;
}
.item-detail > p {
  font-size: 13px;
  margin: 20px 0;
  line-height: 1.7;
  color: #68715f;
}
.owner-line {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  margin: 20px 0;
}
.owner-line > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.owner-line strong {
  font-size: 13px;
}
.owner-line small {
  font-size: 11px;
}
.availability-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 20px;
}
.availability-note strong {
  color: #8a6d28;
  margin-right: 5px;
}
.availability-note span {
  background: #f8edce;
  padding: 4px 8px;
  border-radius: 5px;
}
.item-detail form h3 {
  margin-top: 23px;
}
.loan-detail-head {
  display: flex;
  gap: 19px;
  align-items: center;
}
.loan-detail-head h3 {
  font-size: 22px;
  margin: 8px 0;
}
.loan-detail-head p {
  font-size: 13px;
  margin: 0;
  color: #7a826f;
}
.two-people {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
  gap: 12px;
}
.two-people > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.two-people > div > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.flow-steps {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  margin: 24px 0;
}
.flow-steps > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #9ba28f;
}
.flow-steps svg {
  box-sizing: content-box;
  padding: 5px;
  background: #e6e9e0;
  border-radius: 50%;
  color: #c2c9b7;
}
.flow-steps .done {
  color: #436131;
}
.flow-steps .done svg {
  background: #d3e9b4;
  color: #365928;
}
.record {
  border-left: 3px solid #bbd58e;
  padding: 12px 15px;
  margin: 15px 0;
  background: #eff3e9;
  font-size: 12px;
}
.record.warning {
  border-color: #d3a07b;
  background: #f8ecde;
}
.record p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #6f7964;
}
.history {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 11px;
  color: #6b7860;
}
.history summary {
  cursor: pointer;
  color: #455f37;
  font-weight: 600;
}
.history p {
  margin: 12px 0 0;
}
.check-box {
  background: #eef2e7;
  padding: 15px;
  border-radius: 7px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.quota-list {
  margin: 20px 0;
}
.quota-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.quota-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quota-row strong {
  font-size: 13px;
}
.quota-row small {
  font-size: 11px;
}
.quota-row .btn {
  min-height: 33px;
  padding: 7px 10px;
  font-size: 11px;
}
.quota-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ebe2;
  color: #9aa58c;
  border-radius: 50%;
  flex-shrink: 0;
}
.quota-check.done {
  background: #e0edcc;
  color: #63883e;
}
.unlock-panel {
  background: #eff1ea;
  border-radius: 10px;
  padding: 20px;
  margin: 25px 0;
}
.unlock-panel.unlocked {
  background: #e1efc6;
}
.unlock-panel h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}
.unlock-panel p {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 11px 0 0;
  font-size: 12px;
  color: #5e744b;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  background: #183f2e;
  color: white;
  padding: 14px 21px;
  font-size: 13px;
  border-radius: 10px;
  max-width: min(600px, 90vw);
  box-shadow: 0 8px 25px #0002;
  transition: transform .2s, opacity .2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .community-banner {
    height: 280px;
  }
  .community-banner > div {
    padding: 35px 38px;
  }
  .community-banner h2 {
    font-size: 38px;
  }
  .community-banner p {
    font-size: 15px;
  }
  .house-row {
    min-height: 92px;
  }
  .product-photo {
    aspect-ratio: 1.7;
  }
}
@media (max-width: 1300px) {
  .house-hint {
    display: none;
  }
  .house-row .avatar-stack {
    display: none;
  }
  .house-name {
    min-width: 105px;
  }
  .sidebar {
    width: 210px;
  }
  .main-shell {
    margin-left: 210px;
  }
  main {
    padding: 14px 27px 40px;
  }
  .topbar {
    padding-inline: 27px;
  }
  .community-banner > div {
    width: 65%;
    padding: 27px;
  }
  .community-banner img {
    width: 43%;
  }
  .community-banner h2 {
    font-size: 29px;
  }
  .house-row {
    gap: 11px;
    padding: 14px;
  }
  .house-progress {
    width: 80px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .item-grid {
    gap: 17px;
  }
  .loan-dates {
    min-width: 115px;
  }
  .loan-row {
    gap: 12px;
    padding: 16px;
  }
  .house-card-grid {
    gap: 16px;
  }
  .house-card-body {
    padding: 18px;
  }
  .house-card .between {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .house-card-body > .between:nth-last-child(2) {
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 185px;
    padding-inline: 10px;
  }
  .brand {
    font-size: 23px;
    margin-inline: 8px;
  }
  .brand-mark {
    width: 22px;
    margin-right: 6px;
  }
  .brand-mark i {
    width: 6px;
  }
  .main-shell {
    margin-left: 185px;
  }
  .nav-item {
    font-size: 13px;
    gap: 11px;
    padding-inline: 12px;
  }
  .community-banner {
    height: 245px;
  }
  .community-banner > div {
    padding: 27px 24px;
    width: 70%;
  }
  .community-banner h2 {
    font-size: 27px;
  }
  .community-banner p {
    font-size: 12px;
  }
  .community-banner img {
    width: 41%;
    object-position: center;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .overview-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .next-section {
    border: 0;
    padding: 0;
  }
  .next-card {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .next-card .next-item {
    flex: 1;
    margin: 0;
  }
  .next-card > .btn {
    width: auto;
  }
  .next-section .section-heading {
    margin-bottom: 12px;
  }
  .house-hint {
    display: flex;
    max-width: 150px;
  }
  .house-row .avatar-stack {
    display: flex;
  }
  .stats-strip > button {
    padding: 0 20px;
    gap: 15px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-items .item-card:last-child {
    display: none;
  }
  .house-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .location {
    display: none;
  }
  .loan-row {
    flex-wrap: wrap;
  }
  .loan-name {
    min-width: 200px;
  }
  .loan-row > .status {
    margin-left: auto;
  }
  .loan-row > svg:last-child {
    display: none;
  }
  .loan-dates {
    margin-left: 76px;
    min-width: initial;
  }
  .loan-row > .thumb {
    align-self: flex-start;
  }
  .loan-row > .loan-name {
    flex-basis: 60%;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 13px;
  }
  .catalog-toolbar .search {
    flex-basis: 100%;
  }
  .results-label > span:last-child {
    max-width: 230px;
    text-align: right;
  }
  .points-hero {
    padding: 27px;
    gap: 22px;
  }
  .points-hero strong {
    font-size: 50px;
  }
  .points-hero > div:first-child {
    grid-template-columns: 45px auto;
  }
  .points-hero > div:first-child > svg {
    width: 31px;
  }
  .points-hero h2 {
    font-size: 16px;
  }
  .kit-card {
    padding: 21px;
  }
  .topbar-right {
    gap: 13px;
  }
  .role-switch {
    padding-left: 10px;
  }
  .pilot-label {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 13px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 230px;
    box-shadow: 10px 0 40px #1a2a1820;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .mobile-brand {
    display: block;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.8px;
    margin-right: auto;
  }
  .pilot-label {
    display: none;
  }
  .role-switch {
    border: 0;
    padding: 0;
  }
  .role-switch > span {
    font-size: 8px;
  }
  .role-switch select {
    font-size: 10px;
    max-width: 120px;
  }
  .topbar-right {
    gap: 9px;
  }
  .topbar-right .avatar {
    width: 31px;
    height: 31px;
    font-size: 10px;
  }
  main {
    padding: 25px 18px 35px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
    max-width: 300px;
    line-height: 1.15;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 300px;
  }
  .page-heading > .btn {
    font-size: 0;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    gap: 0;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .page-heading > .btn svg {
    width: 20px;
    height: 20px;
  }
  .community-banner {
    height: auto;
    min-height: 285px;
  }
  .community-banner > div {
    padding: 25px 22px;
    width: 100%;
    z-index: 1;
  }
  .community-banner h2 {
    font-size: 27px;
    max-width: 320px;
    line-height: 1.12;
  }
  .community-banner p {
    max-width: 215px;
    font-size: 11px;
    margin: 14px 0 23px;
  }
  .community-banner img {
    width: 58%;
    height: 180px;
    top: auto;
    bottom: 0;
    right: -30px;
    object-fit: contain;
    z-index: 0;
  }
  .community-banner .btn {
    font-size: 11px;
    padding: 11px 13px;
    max-width: 160px;
  }
  .stats-strip {
    padding: 15px 0;
    margin-bottom: 26px;
  }
  .stats-strip > button {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    padding: 0 13px;
  }
  .stats-strip > button > svg {
    width: 22px;
    height: 22px;
  }
  .stats-strip span {
    font-size: 9px;
    line-height: 1.4;
  }
  .stats-strip strong {
    font-size: 25px;
    margin-bottom: 2px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .text-button {
    font-size: 10px;
    gap: 5px;
  }
  .house-row {
    padding: 14px 12px;
    gap: 10px;
    min-height: 82px;
  }
  .house-name {
    min-width: 90px;
  }
  .house-name strong {
    font-size: 12px;
  }
  .house-name small {
    font-size: 10px;
  }
  .house-progress {
    width: 70px;
  }
  .house-hint,
  .house-row .avatar-stack {
    display: none;
  }
  .house-row > .house-symbol {
    width: 35px;
    height: 35px;
  }
  .house-row > .house-symbol svg {
    width: 22px;
  }
  .house-row > svg:last-child {
    width: 13px;
  }
  .next-card {
    padding: 15px;
    gap: 10px;
  }
  .next-card .thumb {
    width: 58px;
    min-width: 58px;
    height: 58px;
  }
  .next-item {
    gap: 10px;
  }
  .next-item h3 {
    font-size: 15px;
  }
  .next-item small {
    font-size: 10px;
  }
  .next-card > .btn {
    font-size: 0;
    width: 37px;
    height: 37px;
    min-height: 37px;
    padding: 0;
    gap: 0;
  }
  .next-card > .btn svg {
    width: 19px;
  }
  .next-item .tiny {
    font-size: 10px;
  }
  .item-grid {
    gap: 12px;
  }
  .item-body {
    padding: 12px 11px 9px;
  }
  .item-body .between {
    gap: 3px;
  }
  .item-body .between small {
    font-size: 8px;
  }
  .item-body .status {
    font-size: 8px;
    padding: 3px 4px;
  }
  .text-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 10px 0 7px;
  }
  .item-body p {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .item-footer {
    padding-top: 9px;
  }
  .person-link {
    font-size: 10px;
    gap: 5px;
  }
  .person-link .avatar.small {
    width: 23px;
    height: 23px;
    font-size: 8px;
  }
  .item-footer > .tiny {
    font-size: 9px;
  }
  .favorite {
    width: 27px;
    height: 27px;
    top: 8px;
    right: 8px;
  }
  .favorite svg {
    width: 16px;
  }
  .product-photo {
    aspect-ratio: 1.15;
  }
  .app-footer {
    padding: 18px;
    font-size: 9px;
    flex-direction: column;
  }
  .catalog-toolbar {
    margin-bottom: 18px;
  }
  .catalog-toolbar .check-label {
    font-size: 11px;
  }
  .catalog-toolbar > .btn {
    margin-left: auto;
    font-size: 11px;
    padding: 8px 11px;
    min-height: 34px;
  }
  .category-tabs button,
  .tabs button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .results-label {
    font-size: 9px;
    align-items: center;
  }
  .results-label > span:last-child {
    max-width: 180px;
  }
  .house-card-grid {
    grid-template-columns: 1fr;
  }
  .house-cover {
    height: 130px;
  }
  .house-card .between {
    flex-direction: row;
    align-items: center;
  }
  .house-card h2 {
    font-size: 20px;
  }
  .house-card p {
    min-height: 0;
  }
  .house-detail-top {
    flex-wrap: wrap;
    gap: 15px;
  }
  .house-detail-top h1 {
    font-size: 28px;
  }
  .house-detail-top p {
    font-size: 12px;
  }
  .house-detail-top > .status {
    margin-left: 73px;
  }
  .house-symbol.large {
    width: 58px;
    height: 58px;
  }
  .house-symbol.large svg {
    width: 30px;
  }
  .house-meta {
    gap: 13px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .member-line {
    gap: 13px;
  }
  .kit-grid {
    grid-template-columns: 1fr;
  }
  .kit-card {
    padding: 23px;
  }
  .kit-card h2 {
    font-size: 25px;
  }
  .kit-room {
    margin-top: 20px;
  }
  .loan-row {
    padding: 15px;
    gap: 10px;
  }
  .loan-row > .thumb {
    width: 53px;
    min-width: 53px;
    height: 53px;
  }
  .loan-name {
    min-width: 0;
    flex-basis: 70%;
  }
  .loan-name strong {
    font-size: 14px;
  }
  .loan-name small {
    font-size: 10px;
  }
  .loan-dates {
    font-size: 10px;
    margin-left: 63px;
  }
  .loan-row > .status {
    min-width: 0;
    font-size: 9px;
  }
  .info-strip {
    font-size: 11px;
    align-items: flex-start;
    padding: 16px;
  }
  .points-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }
  .points-hero > div:first-child {
    grid-template-columns: 52px auto;
  }
  .points-hero strong {
    font-size: 58px;
  }
  .points-hero > div:last-child h3 {
    font-size: 16px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .profile-card {
    padding: 23px 20px;
    flex-wrap: wrap;
    gap: 17px;
  }
  .profile-card > .avatar {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }
  .profile-card > div {
    min-width: 180px;
  }
  .profile-card h2 {
    font-size: 21px;
  }
  .profile-card p {
    font-size: 12px;
  }
  .profile-stats {
    gap: 10px;
  }
  .profile-stats > div {
    padding-left: 12px;
  }
  .profile-stats strong {
    font-size: 26px;
  }
  .profile-stats span {
    font-size: 9px;
  }
  .pilot-notice {
    padding: 18px;
    align-items: flex-start;
    gap: 12px;
  }
  .pilot-notice p {
    font-size: 11px;
  }
  .scenario {
    padding: 19px 15px;
    gap: 13px;
  }
  .scenario-no {
    font-size: 17px;
  }
  .scenario h3 {
    font-size: 14px;
  }
  .scenario .between {
    align-items: flex-start;
  }
  .scenario .between small {
    font-size: 9px;
    white-space: nowrap;
  }
  .scenario p {
    font-size: 11px;
  }
  .scenario-controls {
    gap: 8px;
    flex-wrap: wrap;
  }
  .scenario-controls .btn {
    min-height: 34px;
    font-size: 11px;
    padding: 8px 12px;
  }
  .scenario-controls select {
    font-size: 10px;
    min-height: 34px;
    max-width: 165px;
  }
  .comparison,
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .comparison article {
    padding: 22px;
  }
  .lab-footer .btn {
    font-size: 11px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal-heading {
    padding: 18px 19px;
  }
  .modal-heading h2 {
    font-size: 18px;
  }
  .modal-body {
    padding: 20px 19px;
  }
  .item-detail .detail-photo {
    height: 200px;
  }
  .form-grid {
    gap: 10px;
  }
  .field {
    font-size: 11px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 14px;
    padding: 11px 10px;
    min-width: 0;
  }
  .field input[type=date] {
    max-width: 100%;
  }
  .two-people {
    gap: 8px;
  }
  .two-people > div > span {
    font-size: 10px;
    gap: 5px;
  }
  .two-people .avatar {
    width: 25px;
    height: 25px;
    font-size: 8px;
  }
  .quota-row {
    gap: 9px;
  }
  .quota-row strong {
    font-size: 12px;
  }
  .quota-row small {
    font-size: 10px;
  }
  .quota-row .btn {
    font-size: 10px;
    padding: 6px 8px;
  }
  .quota-check {
    width: 24px;
    height: 24px;
  }
  .modal-actions .btn {
    font-size: 12px;
  }
  .home-items .product-photo {
    aspect-ratio: 1.1;
  }
  .app-footer span:last-child {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.icon-button.mobile-menu {
  display: none;
}
.community-banner img {
  mix-blend-mode: normal;
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 20%);
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 20%);
}
@media (max-width: 760px) {
  .icon-button.mobile-menu {
    display: inline-flex;
  }
  .community-banner img {
    mask-image:
      linear-gradient(
        to right,
        transparent,
        #000 28%);
    -webkit-mask-image:
      linear-gradient(
        to right,
        transparent,
        #000 28%);
  }
}
.owner-line > .avatar {
  flex: 0 0 38px;
}
.owner-line > span:not(.avatar) {
  flex: 1;
}
.product-photo {
  position: relative;
  overflow: hidden;
  background-image: none;
}
.product-photo:not(.illustrated)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 1;
  background-image: url(./assets/equipment.png);
  background-size: 300% 200%;
  background-position: var(--px) var(--py);
}
.sidebar-close {
  display: none;
}
@media (max-width: 760px) {
  .sidebar-close {
    display: flex;
    position: absolute;
    right: 5px;
    top: 66px;
    width: 25px;
    height: 25px;
  }
  .sidebar .brand {
    margin-bottom: 43px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .role-switch select {
    font-size: 11px;
  }
}
[hidden] {
  display: none !important;
}
.group-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf0e6;
  border: 1px solid #dce3d5;
  border-radius: 16px;
  padding: 26px 30px;
  margin-bottom: 28px;
  gap: 30px;
}
.group-intro strong {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.7px;
}
.group-intro p {
  max-width: 430px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.group-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.group-tags span {
  font-size: 10px;
  background: #f1f2ed;
  border-radius: 5px;
  padding: 5px 7px;
  color: #536050;
}
.house-card h2 {
  margin-top: 12px;
}
.house-card .btn.full {
  margin-top: 22px;
}
.group-management {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0;
}
.group-management small {
  margin-left: auto;
  color: var(--muted);
}
.member-chip {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 9px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
}
.member-chip small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.member-line {
  flex-wrap: wrap;
}
.request-panel {
  padding: 20px;
  background: #f5f3e9;
  border-radius: 12px;
  margin: 20px 0;
}
.request-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #dddcca;
  padding: 12px 0;
}
.request-row > span,
.request-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.locked-group {
  padding: 50px 25px;
  background: #f0f2eb;
  text-align: center;
  border-radius: 16px;
}
.locked-group > svg {
  color: var(--green);
}
.locked-group p {
  max-width: 450px;
  margin: 15px auto 25px;
  line-height: 1.7;
}
.setting-help {
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 16px;
  background: #f4f5f0;
  border-radius: 10px;
}
.setting-help p {
  margin: 7px 0;
}
.pricing-fields {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.pricing-fields legend {
  font-size: 17px;
  font-weight: 700;
  padding: 0 7px;
}
.field-label {
  font-weight: 600;
  font-size: 12px;
  margin: 17px 0 12px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 12px 0 20px;
}
.checkbox-grid .check-label {
  align-items: flex-start;
  font-size: 12px;
}
.item-price {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin: 12px 0 9px;
  color: var(--green);
}
.item-price strong {
  font-size: 15px;
}
.item-price small {
  font-weight: 400;
  font-size: 10px;
}
.item-price > span {
  font-size: 9px;
  color: var(--muted);
}
.checkout-options h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 25px 0 17px;
}
.coverage-option {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d6dfd1;
  border-radius: 12px;
  background: #f3f6ee;
  align-items: center;
  margin: 12px 0 20px;
}
.coverage-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.coverage-option span {
  flex: 1;
}
.coverage-option strong {
  font-size: 13px;
  display: block;
}
.coverage-option small {
  display: block;
  font-size: 11px;
  color: #5d6659;
  margin-top: 6px;
  line-height: 1.5;
}
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px;
  margin: 18px 0;
}
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0;
}
.price-line strong {
  white-space: nowrap;
}
.price-line.total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
  font-size: 15px;
}
.price-line.due {
  margin: 15px -19px -3px;
  padding: 15px 19px;
  background: #f0f4e8;
  font-size: 14px;
  color: var(--green);
}
.quote-card .form-note {
  margin-bottom: 0;
  line-height: 1.6;
}
.simulation-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #f4f0e5;
  color: #73613c;
  font-size: 11px;
  line-height: 1.65;
  padding: 12px 15px;
  border-radius: 8px;
  margin: 15px 0 22px;
}
.simulation-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.order-panel {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  margin: 22px 0;
}
.order-panel > .simulation-note {
  margin: 0 0 20px;
}
.order-panel h3 {
  font-size: 17px;
}
.order-panel > .between {
  gap: 10px;
  flex-wrap: wrap;
}
.order-breakdown summary {
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}
.delivery-summary small,
.delivery-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 5px 0;
}
.delivery-summary strong {
  font-size: 12px;
  display: block;
  line-height: 1.5;
}
.coverage-warning {
  font-size: 11px;
  line-height: 1.6;
  padding: 10px;
  background: #f8eee7;
  color: #855b3a;
  border-radius: 6px;
}
.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0;
}
.payment-actions .btn {
  font-size: 13px;
}
.money-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0 38px;
}
.money-stats article {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.money-stats small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.money-stats strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  margin-top: 12px;
  color: var(--green);
}
.transaction-list {
  margin: 20px 0 30px;
}
.transaction-row {
  display: flex;
  width: 100%;
  padding: 20px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  align-items: center;
  gap: 15px;
  text-align: left;
}
.transaction-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9efe5;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.transaction-row > span:nth-child(2) {
  flex: 1;
}
.transaction-row strong {
  display: block;
  font-size: 14px;
}
.transaction-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.transaction-row:hover {
  background: white;
}
.integration-panel {
  margin: 35px 0;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.integration-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.integration-grid h3 {
  font-size: 17px;
  margin-top: 20px;
}
.integration-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.sidebar nav {
  gap: 3px;
}
.sidebar .nav-item {
  padding-top: 10px;
  padding-bottom: 10px;
}
.sidebar-bottom {
  margin-top: 20px;
}
@media (max-width: 1050px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .group-intro {
    gap: 25px;
  }
  .money-stats strong {
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .group-intro {
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
    gap: 16px;
  }
  .group-intro strong {
    font-size: 25px;
  }
  .group-intro p {
    font-size: 12px;
  }
  .group-tags {
    margin-bottom: 10px;
  }
  .group-tags span {
    font-size: 9px;
  }
  .house-detail-top > .btn,
  .house-detail-top > .status {
    margin-left: 0;
  }
  .house-detail-top > div {
    flex: 1;
    min-width: 220px;
  }
  .group-management .btn {
    font-size: 11px;
  }
  .group-management small {
    width: 100%;
    margin: 0;
  }
  .member-chip {
    font-size: 11px;
  }
  .request-row {
    flex-wrap: wrap;
  }
  .pricing-fields {
    padding: 15px;
    margin: 17px 0;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .item-price {
    flex-wrap: wrap;
    gap: 2px;
    margin: 10px 0 7px;
  }
  .item-price strong {
    font-size: 12px;
  }
  .item-price > span {
    font-size: 8px;
  }
  .coverage-option {
    padding: 12px;
    gap: 8px;
  }
  .coverage-option strong {
    font-size: 12px;
  }
  .quote-card {
    padding: 14px;
  }
  .price-line {
    font-size: 11px;
    gap: 10px;
  }
  .price-line.total {
    font-size: 13px;
  }
  .price-line.due {
    margin-left: -14px;
    margin-right: -14px;
    padding: 12px 14px;
    font-size: 12px;
  }
  .order-panel {
    padding: 13px;
  }
  .order-panel h3 {
    font-size: 15px;
  }
  .order-breakdown summary {
    font-size: 11px;
  }
  .money-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0 30px;
  }
  .money-stats article {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .money-stats strong {
    font-size: 24px;
    margin: 0;
    white-space: nowrap;
  }
  .money-stats small {
    max-width: 150px;
    line-height: 1.5;
  }
  .transaction-row {
    gap: 9px;
    flex-wrap: wrap;
    padding: 18px 4px;
  }
  .transaction-row strong {
    font-size: 12px;
  }
  .transaction-row small {
    font-size: 10px;
    line-height: 1.5;
  }
  .transaction-row > span:nth-child(3) {
    margin-left: 51px;
  }
  .transaction-row > svg:last-child {
    margin-left: auto;
  }
  .transaction-icon {
    width: 36px;
    height: 36px;
  }
  .integration-grid article {
    padding: 20px;
  }
  .simulation-note {
    font-size: 10px;
  }
  .group-management {
    margin-top: 18px;
  }
  .sidebar-bottom .community-note {
    display: none;
  }
}

/* src/app.css */
.main-shell .topbar {
  justify-content: flex-end;
}
.mobile-menu {
  display: none;
}
.live-email {
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .83rem;
  color: var(--muted);
}
.live-actions,
.photo-actions,
.draft-submit,
.live-auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.live-panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.live-panel h2 {
  margin-top: 0;
}
.live-panel p {
  line-height: 1.5;
}
.live-intro {
  margin-top: 1.5rem;
  max-width: 45rem;
}
.live-intro .btn {
  margin-top: .5rem;
}
.live-drafts {
  margin: 0 0 1.5rem;
}
.loan-row .loan-name {
  min-width: 0;
  flex: 1;
}
.live-dialog {
  width: min(35rem, calc(100vw - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: var(--bg);
  color: inherit;
  box-shadow: 0 25px 90px #0d291b30;
  overflow: auto;
}
.live-dialog.wide {
  width: min(44rem, calc(100vw - 1.5rem));
}
.live-dialog::backdrop {
  background: #0e23194d;
  backdrop-filter: blur(5px);
}
.live-auth-links {
  margin-top: 1rem;
}
.form-error:empty,
.draft-status:empty {
  display: none;
}
.back-link {
  display: inline-block;
  margin: .25rem 0 1rem;
  color: var(--green);
  font-weight: 600;
}
.draft-photos,
.draft-details {
  margin-bottom: 1rem;
  max-width: 54rem;
}
.draft-photos h2 {
  margin: 0;
}
.draft-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.draft-photo {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.draft-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background: var(--bg);
}
.draft-photo .check-label,
.draft-photo > p {
  padding: .55rem .65rem;
}
.photo-tile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 0 .65rem .65rem;
  min-height: 2rem;
  font-size: .83rem;
}
.photo-actions label,
.photo-tile-actions label {
  position: relative;
  cursor: pointer;
}
.photo-actions input[type=file],
.photo-tile-actions input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}
.photo-actions label:focus-within,
.photo-tile-actions label:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.disabled,
button:disabled {
  opacity: .6;
  cursor: default;
}
.draft-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .3rem 1rem;
}
.field-source {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  margin: -.45rem 0 .8rem;
}
.draft-accessories {
  margin: 1rem 0;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.draft-accessories label {
  display: flex;
  margin: .25rem 0;
}
.draft-status {
  color: var(--green);
}
.draft-submit,
.compact-form > button {
  margin-top: 1rem;
}
.compact-form {
  max-width: 39rem;
}
.compact-form h2 {
  margin-top: 1.2rem;
}
.live-product-photo {
  width: 100%;
  object-fit: cover;
  display: block;
}
.item-body h3 button {
  text-align: left;
  font-weight: inherit;
  padding: 0;
}
.live-item-gallery {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
}
.live-item-gallery img {
  height: clamp(8rem, 32vw, 15rem);
  max-width: 85vw;
  object-fit: contain;
  border-radius: 8px;
}
.live-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#loan-request {
  margin-top: 1.4rem;
}
.live-dialog .modal-body > section + section {
  margin-top: .9rem;
}
@media (max-width: 760px) {
  .main-shell .topbar {
    justify-content: space-between;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    visibility: visible;
  }
  .live-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 465px) {
  .draft-fields {
    grid-template-columns: 1fr;
  }
  .live-panel {
    padding: 1rem;
  }
  .draft-gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }
  .photo-actions .btn {
    min-height: 44px;
  }
}
