:root{font:16px system-ui,sans-serif;color:#16304a;background:#eef5f8;--navy:#102746;--teal:#54dbc0;--line:#d4e3ea}
*{box-sizing:border-box}body{margin:0}header{background:#f7fbfd;color:var(--navy);border-bottom:1px solid var(--line)}.wrap{width:min(1080px,calc(100% - 32px));margin:auto}.bar,.brand,.hero,.section-head,.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.bar{min-height:126px;padding-block:10px}.brand{display:inline-flex;flex:0 1 auto;min-width:0;gap:clamp(10px,2vw,20px);color:#243f60;text-decoration:none;justify-content:flex-start}.brand img{display:block;flex:none;width:clamp(76px,14vw,104px);height:auto}.brand-wordmark{display:grid;gap:5px;padding-left:clamp(10px,2vw,18px);border-left:1px solid #c4ddd9}.brand-wordmark strong{font:700 clamp(17px,3vw,28px)/1.05 system-ui,sans-serif}.brand .brand-wordmark>span{color:#355968;font:600 clamp(11px,2vw,13px)/1.25 system-ui,sans-serif}.bar #account{min-width:0;overflow-wrap:anywhere}.bar #account{font-size:.84rem;color:#355968}.hero{margin:30px 0 20px;padding:clamp(20px,5vw,45px);background:var(--navy);color:#f6fbff;border-radius:22px}.hero p{margin:8px 0 0;color:#dce9f6}.hero .eyebrow{color:var(--teal);font-weight:650}.hero h1{font-size:clamp(2rem,6vw,3.3rem);line-height:1.04;margin:10px 0;letter-spacing:-.05em}
button,input,select,textarea{font:inherit}button{border:none;border-radius:10px;background:var(--teal);color:#102746;padding:11px 16px;font-weight:700;cursor:pointer}button:disabled{opacity:.6;cursor:wait}button.quiet,nav button{background:#e5f0f3}nav{display:flex;gap:8px}nav button[aria-pressed=true]{background:var(--navy);color:white}button:focus-visible,a:focus-visible{outline:3px solid #007f72;outline-offset:3px}.section-head{flex-wrap:wrap;margin:7px 0 14px}.section-head h2,.modal-head h2,h3{margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px;padding-bottom:30px}.card,.empty{background:white;border:1px solid var(--line);border-radius:16px;padding:18px;min-width:0;overflow-wrap:anywhere}.empty{grid-column:1/-1}.card p{margin:7px 0}.muted{color:#466176;font-size:.91rem}.tag{display:inline-block;background:#e5f0f3;border-radius:20px;padding:4px 10px;font-size:.83rem;margin:0 0 8px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.offer{border-top:1px solid var(--line);padding:9px 0}.detail{margin-bottom:30px}.history{padding-left:20px}dialog{width:min(525px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:20px;color:var(--navy)}dialog::backdrop{background:#102746bb}label{display:block;margin:12px 0}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #8fa9b9;border-radius:8px;padding:9px;background:white;color:inherit;margin-top:4px}.section-head select{width:auto;max-width:100%}fieldset{border:1px solid var(--line);margin:12px 0;border-radius:8px}fieldset label{margin:4px 0}#error{color:#a52222}#notice{margin:8px 0;color:#245768}#notice:empty{margin:0}
@media(max-width:570px){.hero{align-items:flex-start;flex-direction:column}.bar{gap:8px}.bar #account{text-align:right}.hero button{width:100%}}

[hidden]{display:none!important}#account button{padding:6px 9px;margin-left:4px;font-size:.82rem}

#home-hero { flex-wrap: wrap; overflow-wrap: anywhere; }
.home-copy { flex: 1 1 280px; min-width: 0; }
.home-photo { display: block; width: min(100%, 330px); max-height: 230px; object-fit: cover; border-radius: 14px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-actions:has(> :not([hidden])) { width: 100%; }
.home-actions:not(:has(> :not([hidden]))) { display: none; }
.home-banner { margin: 0 0 16px; padding: 16px 20px; border-radius: 12px; background: #e2f2ff; color: #153956; font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-preview { margin-top: 16px; }
.home-preview .hero { margin: 8px 0; padding: 18px; align-items: flex-start; flex-direction: column; overflow-wrap: anywhere; }
.home-preview h1 { font-size: 1.55rem; }
.home-preview .home-copy { flex: auto; }

.machine-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.machine-gallery:empty { display: none; }
.machine-gallery img { width: 120px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #edf3f5; border-radius: 8px; }

#home-hero { background:#fbfdff; color:var(--navy); border:1px solid var(--line); padding:clamp(18px,4vw,42px); }
#home-hero .eyebrow { color:#007369; }
#home-hero .home-description { color:#38566d; }
#home-hero h1 { max-width:16ch; }
.home-actions { align-items:flex-start; }
.quick-order { display:grid; grid-template-columns:1.4fr 1.1fr 1fr auto; align-items:end; gap:12px; width:100%; }
.quick-order label { margin:0; font-size:.9rem; font-weight:650; }
.quick-order button { min-height:44px; }
#join-provider { margin-top:3px; }
.offer { margin:10px 0; padding:14px; border:1px solid var(--line); border-radius:12px; }
.offer-price { display:block; font-size:1.28rem; line-height:1.2; }
.order-feedback { background:#e4f6f1; border-radius:9px; padding:10px 14px; }
@media(max-width:740px) {
  .quick-order { grid-template-columns:1fr 1fr; }
  .quick-order label:first-child,.quick-order button { grid-column:1/-1; }
  #home-hero .home-photo { order:2; }
}

header .brand:focus-visible { outline-color: #007f72; }
@media(max-width:470px) { .bar { min-height:92px; } }

.project-card { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 20px; padding:18px 22px; border:1px solid var(--line); border-left:4px solid #5aa197; border-radius:12px; background:#f7fbfd; }
.project-card h2 { margin:0 0 6px; font-size:clamp(1.05rem,2vw,1.3rem); }
.project-card p { margin:4px 0; }
.project-card button { flex:none; }
@media(max-width:600px) { .project-card { align-items:flex-start; flex-direction:column; gap:10px; } }

header { background:#fff; }
.bar { min-height:92px; }
.brand img { width:clamp(62px,10vw,78px); }
.brand-wordmark { border-color:#d8e7ee; }
.brand-wordmark strong { color:var(--navy); font-size:clamp(1rem,3vw,1.55rem); }
body { background:#eef5fa; }
#home-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  gap:0;
  margin:24px 0 16px;
  padding:0;
  border:none;
  background:#d8eaf7;
  border-radius:24px;
  overflow:hidden;
  overflow-wrap:normal;
}
#home-hero .home-copy { padding:clamp(24px,4.5vw,52px); }
#home-hero h1 { margin:0; max-width:12ch; font-size:clamp(2rem,4.3vw,3.85rem); }
#home-hero .home-description { margin:15px 0 0; color:#284a62; font-size:clamp(1rem,1.8vw,1.25rem); }
#home-hero .home-photo {
  width:100%;
  height:100%;
  max-height:none;
  min-height:0;
  aspect-ratio:1.63;
  object-fit:cover;
  object-position:50% 52%;
  border-radius:0;
  order:0;
}
#home-hero:not(:has(.home-photo:not([hidden]))) .home-copy,
#home-hero .home-actions { grid-column:1/-1; }
#home-hero .home-actions { background:white; padding:18px clamp(18px,3vw,30px); gap:10px; }
.quick-order { gap:14px; }
.quick-order select,.quick-order input { min-height:44px; background:#f6faff; border-color:#b1c6d5; }
.quick-order button { background:#145479; color:#fff; }
.quick-order button:hover { background:#0e4261; }
#join-provider { margin:0; }
.project-card { border-left:1px solid var(--line); border-radius:16px; background:#f7fbfe; }
#home-hero.signed-in { display:block; background:transparent; }
#home-hero.signed-in .home-photo { display:none; }
#home-hero.signed-in .home-copy { padding:5px 0 12px; }
#home-hero.signed-in h1 { font-size:clamp(1.6rem,3.4vw,2.4rem); max-width:none; }
#home-hero.signed-in .home-description { display:none; }
#home-hero.signed-in .home-actions { padding:0; background:transparent; }
@media(max-width:680px) {
  #home-hero { grid-template-columns:minmax(0,1fr); margin-top:14px; }
  #home-hero .home-copy { padding:20px; }
  #home-hero h1 { max-width:16ch; }
  #home-hero .home-description { margin-top:8px; }
  #home-hero .home-photo { height:clamp(136px,42vw,236px); }
  #home-hero .home-actions { padding:14px; }
  .quick-order { gap:8px; }
}

#home-hero {background:#d8edff}
#home-hero .home-photo {object-position:center}
#equipment-categories {margin:26px 0}
#equipment-categories h2 {font-size:clamp(1.45rem,3vw,2.4rem);margin:0 0 14px}
.equipment-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.equipment-category {display:block;text-align:left;padding:0;overflow:hidden;border-radius:12px;background:#fff;color:#102442;border:1px solid #c7dcee}
.equipment-category:hover,.equipment-category:focus-visible {border-color:#2465a1;background:#eaf5ff}
.equipment-category img {display:block;width:100%;height:auto;aspect-ratio:1.65;object-fit:cover}
.equipment-category strong {display:block;padding:12px}
.positioning {margin:22px 0 0;padding:14px 18px;background:#e8f4ff;border-radius:12px;line-height:1.55}
@media(max-width:680px){.equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:460px){.bar{flex-wrap:wrap}.header-actions{justify-content:flex-start}}
.bot-panel {margin:14px 0}
.bot-panel h3 {margin:0 0 12px}
.bot-channels {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.bot-channel {border:1px solid var(--line);border-radius:12px;padding:12px;background:#f5faff}
.bot-channel p {margin:6px 0 8px}
@media(max-width:420px){.bot-channels{grid-template-columns:1fr}}
