:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7f7f3;
  --surface-strong: #eceae4;
  --sidebar: #f7f7f3;
  --ink: #222222;
  --muted: #5c625e;
  --forest: #222222;
  --primary: #222222;
  --primary-hover: #2b2b2b;
  --on-primary: #ffffff;
  --link: #373842;
  --link-hover: #111111;
  --nav-active: #f1f0e7;
  --nav-active-ink: #222222;
  --accent: #877459;
  --accent-soft: #f1f0e7;
  --border: #e5e5df;
  --border-strong: #c8c7bf;
  --success: #2f6a46;
  --success-bg: #e6f1e7;
  --warning: #7c4b16;
  --warning-bg: #fff1dc;
  --danger: #a33335;
  --danger-bg: #fbeaea;
  --danger-solid: #a33335;
  --on-danger: #ffffff;
  --focus: #6f7e92;
  --header-bg: rgba(255, 255, 255, .94);
  --diagram-bg: #eceae4;
  --diagram-ink: #373842;
  --toast-bg: #222222;
  --toast-ink: #ffffff;
  --shadow-float: 0 18px 55px rgba(0, 0, 0, .16);
  --radius: 8px;
  --radius-small: 5px;
  --hero-bg: #5f6f82;
  --hero-ink: #ffffff;
  --hero-muted: #f0f2f3;
  --hero-button-bg: #ffffff;
  --hero-button-ink: #373842;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17191b;
  --surface: #202326;
  --surface-raised: #272a2e;
  --surface-soft: #2a2d31;
  --surface-strong: #34383d;
  --sidebar: #1d2023;
  --ink: #f1f1ec;
  --muted: #b9c0c4;
  --forest: #222222;
  --primary: #e6e8e8;
  --primary-hover: #ffffff;
  --on-primary: #222222;
  --link: #c2cede;
  --link-hover: #ffffff;
  --nav-active: #3c4654;
  --nav-active-ink: #f4f6fa;
  --accent: #b8a78f;
  --accent-soft: #3a3832;
  --border: #41464b;
  --border-strong: #606971;
  --success: #a7d9b4;
  --success-bg: #203c2b;
  --warning: #efc287;
  --warning-bg: #46361f;
  --danger: #f0aaaa;
  --danger-bg: #492829;
  --danger-solid: #913b3f;
  --on-danger: #ffffff;
  --focus: #b6c3d4;
  --header-bg: rgba(23, 25, 27, .94);
  --diagram-bg: #e5e5df;
  --diagram-ink: #373842;
  --toast-bg: #e6e8e8;
  --toast-ink: #222222;
  --shadow-float: 0 20px 60px rgba(0, 0, 0, .48);
  --hero-bg: #373842;
  --hero-ink: #ffffff;
  --hero-muted: #e5e7eb;
  --hero-button-bg: #f1f0e7;
  --hero-button-ink: #222222;
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--bg); color: var(--ink); scroll-padding-top: 24px; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; }
body, button, input, select, textarea { font-family: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--link-hover); }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; }
p { line-height: 1.65; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
svg .part:focus-visible, svg .diagram-part:focus-visible, svg .igt-rotate-handle:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 5px var(--focus));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--link); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-copy { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.brand-copy strong { font-size: 14px; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.brand-copy small { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.5; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }

.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, .85fr) minmax(0, 1.15fr); background: var(--bg); }
.login-card { width: min(100%, 540px); margin: auto; padding: 52px 62px; }
.login-intro { margin: 72px 0 30px; }
.login-card h1 { margin: 14px 0 18px; font-size: clamp(36px, 3.2vw, 50px); font-weight: 720; letter-spacing: -.04em; line-height: 1.24; }
.login-card .login-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.login-card form > label { margin: 17px 0 7px; }
.login-card form > input { margin: 0; }
.login-card .primary { width: 100%; margin-top: 14px; }
.login-meta { display: block; margin-top: 34px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.login-art {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: clamp(36px, 6vw, 88px);
  color: var(--hero-ink);
  background: linear-gradient(180deg, rgba(55, 56, 66, .14) 20%, rgba(55, 56, 66, .86) 100%), url('/static/one-tarp.jpg') center / cover, var(--hero-bg);
}
.login-art-copy { max-width: 650px; }
.login-art-copy > span { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: var(--hero-muted); }
.login-art h2 { margin: 18px 0; color: var(--hero-ink); font-size: clamp(34px, 4.1vw, 62px); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.login-art p { max-width: 470px; margin: 0; color: var(--hero-muted); font-size: 14px; }

#app { min-height: 100vh; min-height: 100dvh; }
aside {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 240px;
  padding: 28px 18px 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
}
.side-caption { margin: 13px 0 28px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 3px; }
.nav-group + .nav-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.nav-group-label { margin: 0 10px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin: 3px 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.nav svg { width: 20px; height: 20px; flex: none; }
.nav:hover { background: var(--surface-soft); color: var(--ink); }
.nav.active { background: var(--nav-active); border-color: var(--border); color: var(--nav-active-ink); box-shadow: inset 3px 0 0 var(--accent); }
.sidebar-bottom { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 18px 3px 0; border-top: 1px solid var(--border); font-size: 12px; }
.sidebar-bottom > div { flex: 1; min-width: 0; }
.sidebar-bottom strong, .sidebar-bottom small { display: block; overflow-wrap: anywhere; }
.sidebar-bottom small { margin-top: 3px; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--nav-active); color: var(--link); }
.avatar svg { width: 20px; height: 20px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.icon-button svg { width: 21px; height: 21px; }

main { min-width: 0; margin-left: 240px; padding: 0 32px 64px; }
.main-inner { width: 100%; max-width: 1440px; min-width: 0; margin: 0 auto; }
.page { min-width: 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; padding: 27px 0 22px; margin-bottom: 20px; }
.header-copy { min-width: 0; }
header h1 { margin: 5px 0 3px; font-size: 27px; letter-spacing: -.025em; }
#pageSubtitle { margin: 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-right { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.header-right::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
#themeToggle { white-space: nowrap; }
.mobile-account { display: none; position: relative; }
.mobile-account > summary { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--link); cursor: pointer; list-style: none; }
.mobile-account > summary::-webkit-details-marker { display: none; }
.mobile-account > summary svg { width: 22px; height: 22px; }
.mobile-account-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; width: min(280px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-raised); box-shadow: var(--shadow-float); }
.mobile-account-menu > strong { display: block; padding: 10px 11px 13px; border-bottom: 1px solid var(--border); color: var(--ink); overflow-wrap: anywhere; }
.mobile-account-menu button { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; }
.mobile-account-menu button:hover { background: var(--surface-soft); }
.mobile-account-menu .menu-danger { color: var(--danger); }

.primary, .secondary, .white-btn, .danger-button, .actions button, .user-row button, #packingList button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.primary { border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); }
.primary:hover:not(:disabled) { border-color: var(--primary-hover); background: var(--primary-hover); }
.secondary { border: 1px solid var(--border); background: var(--surface); color: var(--link); }
.secondary:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-soft); }
.compact { padding: 10px 17px; }
.white-btn { border: 1px solid var(--hero-button-bg); background: var(--hero-button-bg); color: var(--hero-button-ink); }
.white-btn:hover { border-color: #fff; background: var(--nav-active); color: var(--nav-active-ink); }
.danger-button { flex: none; border: 1px solid var(--danger-solid); background: var(--danger-solid); color: var(--on-danger); }
.danger-button:hover { filter: brightness(.9); }
.text-button { min-height: 44px; padding: 6px 2px; border: 0; background: transparent; color: var(--link); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; margin: 14px 0; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.45; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
label > input, label > select, label > textarea { margin-top: 7px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 20px; flex: none; margin: 0; padding: 0; accent-color: var(--primary); }
select { padding-right: 32px; }
.form-grid { max-width: 460px; }
.form-grid .primary { margin-top: 8px; }
.inline-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.inline-form > label { flex: 1 1 170px; min-width: 0; margin: 0; }
.inline-form > input, .inline-form > select { flex: 1 1 150px; }
.inline-form > button { flex: none; }
#packingForm > label { flex: 0 0 auto; align-self: center; margin: 0; }
#packingGear { flex: 2 1 260px; }
#packingQty { flex: 0 1 110px; }
.form-error { margin: 14px 0; padding: 11px 13px; border: 1px solid var(--danger); border-radius: 6px; background: var(--danger-bg); color: var(--danger); font-size: 13px; line-height: 1.55; }

.panel, .scene-card, .parts-card, .stat-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel { padding: 24px; }
.panel > h2:first-child { margin-top: 0; }
.panel > p { color: var(--muted); }
.section-head, .scene-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-width: 0; }
.section-head > *, .scene-title > * { min-width: 0; }
.section-head h2, .scene-title h3 { margin: 6px 0; }
.section-head h2 { font-size: 23px; letter-spacing: -.02em; }
.section-head h2 small { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 500; }
.section-head p { margin: 7px 0 0; }
.scene-title { align-items: center; }
.scene-title h3 { font-size: 17px; }
.scene-title > span { color: var(--muted); font-size: 11px; }
.page-heading { margin-bottom: 20px; }
.page-heading h2, .preview-heading h2 { margin: 6px 0 7px; font-size: 25px; }
.page-heading p { max-width: 780px; }
.empty { padding: 22px 0; color: var(--muted); font-size: 13px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 226px; overflow: hidden; border-radius: 8px; background: var(--hero-bg); color: var(--hero-ink); }
.hero-content { padding: 30px 34px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .13); color: var(--hero-muted); font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.hero h2 { margin: 13px 0 9px; color: var(--hero-ink); font-size: 31px; font-weight: 650; letter-spacing: -.025em; line-height: 1.22; }
.hero p { max-width: 430px; margin: 0 0 16px; color: var(--hero-muted); font-size: 13px; }
.hero-photo { min-height: 226px; background: linear-gradient(90deg, var(--hero-bg) 0%, rgba(55, 56, 66, .35) 36%, rgba(55, 56, 66, 0) 70%), url('/static/one-tarp.jpg') center / cover, var(--hero-bg); }
.tag.dark { background: var(--nav-active); color: var(--nav-active-ink); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.stat-card { position: relative; min-height: 120px; padding: 17px 18px; }
.stats [role="button"] { cursor: pointer; }
.stats [role="button"]:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.stats small, .stats span { display: block; color: var(--muted); font-size: 11px; }
.stats strong { display: block; margin: 6px 0 3px; font-size: 29px; font-weight: 720; letter-spacing: -.03em; }
.stat-out { border-top: 3px solid var(--accent); padding-top: 15px; }
.overview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.product-library { padding-top: 22px; }

.preset-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; margin-top: 18px; }
.preset-group { min-width: 0; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.preset-group h3 { margin: 0 0 11px; font-size: 14px; }
.preset-buttons { display: grid; gap: 6px; }
.preset-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; background: var(--surface); color: var(--ink); text-align: left; font-size: 12px; }
.preset-option > span { flex: none; color: var(--muted); }
.preset-option:hover { border-color: var(--border-strong); }
.preset-option.selected { border-color: var(--primary); background: var(--nav-active); color: var(--nav-active-ink); }
#hiddenPresets { margin-top: 14px; }
#hiddenPresets > details { border-top: 1px solid var(--border); }
#hiddenPresets summary { display: flex; align-items: center; min-height: 44px; color: var(--muted); cursor: pointer; font-size: 12px; }
.hidden-preset-list { display: grid; gap: 5px; padding-bottom: 10px; }
.hidden-preset-list > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.preset-detail { margin-top: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); scroll-margin-top: 24px; }
.preset-detail-header { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: center; gap: 24px; }
.preset-detail-header h3 { margin: 7px 0; font-size: 21px; }
.preset-detail-header p { color: var(--muted); font-size: 13px; }
.preset-image { display: block; width: 100%; height: 190px; border: 1px solid var(--border); border-radius: 8px; background: #fff; object-fit: contain; }
.preset-items { display: grid; gap: 2px; }
.preset-item { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.preset-item > span:not(.gear-thumb) { flex: 1; min-width: 160px; }
.preset-item small { color: var(--muted); line-height: 1.6; }
.preset-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.preset-actions label { width: 110px; flex: none; margin: 0; }
#hidePreset { margin-right: auto; color: var(--danger); }
#addPreset { margin-left: auto; }

.inventory-tools { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.search-control { flex: 1 1 340px; max-width: 620px; margin: 0; }
.search-control > span { display: block; margin-bottom: 7px; }
.search-control input { margin: 0; }
.inventory-transfer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
#selectionCount { font-weight: 650; }
.inventory-tree { display: grid; gap: 10px; min-width: 0; }
.inventory-tree details { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.inventory-tree summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 13px 17px; cursor: pointer; list-style: none; }
.inventory-tree summary::-webkit-details-marker { display: none; }
.inventory-tree summary::after { content: "›"; flex: none; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .16s ease; }
.inventory-tree details[open] > summary::after { transform: rotate(90deg); }
.inventory-tree summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.inventory-brand-content, .inventory-products, .inventory-product-body { display: grid; gap: 8px; min-width: 0; padding: 0 12px 12px; }
.inventory-category { background: var(--surface-soft) !important; }
.inventory-product summary { padding: 11px 14px; }
.inventory-product-body h4 { margin: 8px 4px; color: var(--muted); font-size: 12px; }
.inventory-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.inventory-tree .gear-card { background: var(--surface-soft); }
.inventory-empty { margin: 5px; font-size: 12px; }
.inventory-summary-content { display: flex; align-items: center; gap: 12px; min-width: 0; }
.inventory-summary-content > span:last-child { min-width: 0; }
.gear-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gear-card { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.gear-card > label { display: grid; place-items: center; align-self: center; width: 40px; height: 44px; flex: none; margin: 0; }
.gear-card > div:not(.gear-icon) { flex: 1 1 180px; min-width: 130px; }
.gear-card h3 { margin: 0 0 5px; font-size: 14px; }
.gear-card p { margin: 3px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.gear-card > button { min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--link); font-size: 12px; }
.gear-card > button:hover { border-color: var(--border); background: var(--surface); }
.gear-card > button[data-delete] { color: var(--danger); }
.gear-icon { display: grid; place-items: center; width: 55px; height: 55px; flex: none; border-radius: 6px; background: var(--surface-soft); font-size: 23px; }
.gear-icon img { width: 100%; height: 100%; border-radius: 9px; object-fit: contain; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 30px; padding: 20px 22px; border: 1px solid var(--danger); border-radius: var(--radius); background: var(--danger-bg); }
.danger-zone h2 { margin: 5px 0; color: var(--danger); font-size: 18px; }
.danger-zone p { max-width: 720px; margin: 0; color: var(--danger); font-size: 12px; }

.category-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.category-buttons .active-category, .preview-tabs .active-category { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.plan-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.plan-card > label:not(.plan-check) { margin-bottom: 7px; }
.plan-card > select { margin-bottom: 14px; }
.plan-card a { display: inline-block; min-height: 44px; padding: 11px 0; font-size: 12px; }
.plan-check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 0 15px; color: var(--ink); cursor: pointer; }
.plan-check b, .plan-check small { display: block; }
.plan-check b { font-size: 16px; }
.plan-check small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.packing-panel { margin-bottom: 18px; }
.packing-panel h2 { margin: 6px 0; }
#packingList:empty { display: none; }
.plan-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: start; gap: 16px; }
.plan-layout > * { min-width: 0; }
.plan-summary { position: sticky; top: 18px; }
.plan-summary h2, .plan-detail h2 { margin: 7px 0; }
.plan-detail { margin-bottom: 16px; }
.plan-detail .tarp-preview { display: block; width: 100%; max-height: 300px; margin-bottom: 10px; border-radius: 6px; background: #fff; object-fit: contain; }
.product-preview { border: 1px solid var(--border); }
.table-diagram { display: block; width: 100%; margin: 15px 0; border-radius: 6px; background: var(--diagram-bg); }
.diagram-part { cursor: pointer; }
.diagram-part:hover, .diagram-part.selected { filter: drop-shadow(0 0 5px var(--accent)); }
.detail-list { margin-top: 16px; }
.summary-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.summary-line:last-child { border-bottom: 0; }
.summary-line > div { flex: 1 1 150px; min-width: 0; }
.summary-line > span:not(.gear-thumb):not(.status-ok):not(.status-warn) { min-width: 0; }
.summary-line b, .summary-line small { display: block; }
.summary-line small { margin-top: 4px; color: var(--muted); line-height: 1.55; }
.summary-line.selected { border-radius: 8px; background: var(--accent-soft); }
.status-warn, .status-ok { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 8px; border-radius: 999px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.status-warn { background: var(--warning-bg); color: var(--warning); }
.status-ok { background: var(--success-bg); color: var(--success); }
.register { flex: none; white-space: nowrap; }
#packingList [data-remove-packing], [data-trip-delete], [data-trip-remove], [data-delete-user] { color: var(--danger); }
.trip-create-panel > h2 { font-size: 18px; }
#tripsList { margin-top: 18px; }
.trip-detail { max-width: none; margin-top: 18px; }
.trip-detail .summary-line small { display: block; }
.trip-detail .summary-line button { margin: 2px; }
.trip-detail .section-head { align-items: center; }

.preview-heading { margin-bottom: 16px; }
.preview-tabs { display: grid; gap: 9px; margin: 16px 0; }
.preview-tab-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.preview-group-label { flex: 0 0 76px; color: var(--muted); font-size: 11px; font-weight: 750; }
.preview-tabs button { font-weight: 650; }
.preview-select-wrap { display: none; margin: 16px 0; }
.trip-add-preview { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px; padding: 18px 20px; }
.trip-add-preview label { flex: 1 1 240px; max-width: 420px; margin: 0; }
.trip-add-preview small { flex: 1 0 100%; color: var(--muted); font-size: 11px; }
.assembly-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 20px 0; }
.assembly-header h2 { margin: 12px 0 9px; font-size: 31px; line-height: 1.15; }
.assembly-header p, .assembly-header a { font-size: 12px; }
.assembly-header p { max-width: 600px; color: var(--muted); }
.assembly-summary { display: grid; gap: 6px; min-width: 280px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.assembly-summary small, .assembly-summary span { color: var(--muted); font-size: 11px; }
.assembly-summary label { margin: 0; }
.assembly-summary select { min-width: 240px; font-size: 12px; }
.assembly-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.scene-card, .parts-card { padding: 20px; }
.scene { position: relative; min-width: 0; margin-top: 14px; }
.scene svg { display: block; width: 100%; border-radius: 6px; background: #fff; }
.part { cursor: pointer; }
.part:hover, .part.selected { filter: drop-shadow(0 0 7px #b8742d) brightness(1.08); }
.photo-part path { fill: transparent; stroke: transparent; stroke-width: 10; }
.photo-part:hover path, .photo-part.selected path { fill: rgba(184, 116, 45, .22); stroke: #b8742d; }
.photo-line path { fill: none; stroke: transparent; stroke-width: 30; stroke-linecap: round; }
.photo-line:hover path, .photo-line.selected path { stroke: #b8742d; stroke-opacity: .88; stroke-width: 12; }
.photo-part:hover, .photo-part.selected, .photo-line:hover, .photo-line.selected { filter: none; }
.rope-set .rope-visible { fill: none; stroke: #343c34; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.rope-set .rope-hit { fill: none; stroke: transparent; stroke-width: 24; stroke-linecap: round; }
.rope-set:hover .rope-visible, .rope-set.selected .rope-visible { stroke: #b8742d; stroke-width: 7; }
.rope-set:hover, .rope-set.selected { filter: none; }
.scene[data-variant="four"] .poles-short-side, .scene[data-variant="tall"] .poles-short-inner, .scene[data-variant="tall"] .poles-short-side, .scene[data-variant="short"] .poles-short-inner, .scene[data-variant="short"] .poles-tall { display: none; }
.scene[data-variant="four"] .two-pole-scene, .scene:not([data-variant="four"]) .four-pole-scene { display: none; }
.tooltip { position: absolute; left: 3%; bottom: 7%; z-index: 2; max-width: 90%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-raised); box-shadow: var(--shadow-float); font-size: 12px; pointer-events: none; }
.tooltip b { display: block; margin-bottom: 5px; }
.tooltip span { color: var(--muted); }
.scene-note { color: var(--muted); font-size: 11px; line-height: 1.65; }
.part-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 62px; padding: 11px 5px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.part-row:hover, .part-row.active { background: var(--surface-soft); }
.part-row > span:not(.gear-thumb) { min-width: 0; }
.part-row strong, .part-row small { display: block; }
.part-row small { margin-top: 4px; color: var(--muted); }
.part-row .qty { flex: none; margin-left: auto; font-size: 11px; }

.igt-panel, .tent-preview { max-width: none; }
.igt-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin: 12px 0; }
.igt-toolbar label { margin: 0; }
.igt-grid { display: grid; grid-template-columns: repeat(var(--igt-units), minmax(0, 1fr)); gap: 7px; margin: 20px 0; padding: 9px; border: 4px solid #263a30; border-radius: 13px; background: #52685b; }
.igt-unit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; min-width: 0; }
.igt-slot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; padding: 8px; border: 1px solid #c4d1c5; border-radius: 7px; background: #f1f4ee; color: #263c30; }
.igt-slot.occupied { background: #d7e2d5; }
.igt-slot span, .igt-slot small { color: #52665a; font-size: 10px; }
.igt-slot select { padding: 8px; background: #fff; color: #1d2923; border-color: #b7c7b9; font-size: 11px; }
.igt-warning { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--warning); border-radius: 6px; background: var(--warning-bg); color: var(--warning); font-size: 13px; line-height: 1.65; }
.igt-designs { margin: 18px 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }
.igt-design-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-top: 12px; }
.igt-design-card { min-width: 0; min-height: 44px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.igt-design-card:hover { border-color: var(--border-strong); }
.igt-design-card.selected { border-color: var(--primary); background: var(--nav-active); box-shadow: inset 0 0 0 1px var(--primary); }
.igt-design-card strong, .igt-design-card small { display: block; }
.igt-design-card strong { margin-top: 8px; font-size: 13px; }
.igt-design-card small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.igt-design-thumb, .igt-design-visual { display: block; width: 100%; border-radius: 8px; background: var(--diagram-bg); }
.igt-design-thumb { height: 104px; }
.igt-design-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.igt-design-detail > * { min-width: 0; }
.igt-design-visual { max-height: 390px; }
.igt-design-detail p { color: var(--muted); font-size: 12px; }
.igt-design-requirement { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.igt-design-requirement > span { flex: 1 1 160px; }
.igt-design-requirement b { text-align: right; }
.igt-design-requirement.missing { color: var(--danger); }
.igt-plan-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-width: 0; color: var(--ink); }
.igt-plan-head > * { min-width: 0; }
.igt-plan-head b, .igt-plan-head small { display: block; }
.igt-plan-head small { margin-top: 4px; color: var(--muted); }
.igt-plan-head > span { color: var(--muted); font-size: 11px; }
.igt-top-plan { margin: 20px 0 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }
.igt-plan-svg { display: block; width: 100%; height: auto; max-height: 68vh; margin: 14px auto; border-radius: 6px; background: var(--diagram-bg); }
.igt-top-plan > p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.igt-reference { margin: 12px 0 16px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.igt-reference summary, .igt-photo-detail summary, .extra-frame summary, .tent-preview details > summary { display: flex; align-items: center; min-height: 46px; color: var(--link); cursor: pointer; font-size: 13px; font-weight: 700; }
.igt-reference img { display: block; width: 100%; max-height: 380px; margin: 12px 0; border-radius: 9px; background: #fff; object-fit: contain; }
.igt-reference p, .igt-reference a { color: var(--muted); font-size: 12px; }
.igt-photo-detail { margin: 12px 0 20px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; }
.igt-3d-panel { margin: 20px 0 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.igt-3d-canvas { width: 100%; height: clamp(340px, 38vw, 460px); margin: 14px 0 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); touch-action: none; }
.igt-3d-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.igt-3d-canvas canvas:active { cursor: grabbing; }
.igt-view-buttons { display: flex; flex: none; gap: 7px; }
.igt-view-buttons button { padding: 8px 12px; }
.igt-palette { margin: 12px 0; padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.igt-palette-items { display: flex; gap: 10px; max-width: 100%; margin-top: 8px; padding: 8px 2px 5px; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.igt-palette-item { display: flex; align-items: center; gap: 9px; flex: 0 0 215px; min-width: 0; min-height: 80px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; cursor: grab; touch-action: manipulation; user-select: none; }
.igt-palette-item.selected { outline: 3px solid var(--focus); outline-offset: 1px; }
.igt-palette-item img { width: 58px; height: 58px; flex: none; border-radius: 6px; background: #f2f5ef; object-fit: contain; pointer-events: none; }
.igt-palette-item span { min-width: 0; pointer-events: none; }
.igt-palette-item b, .igt-palette-item small { display: block; line-height: 1.35; }
.igt-palette-item b { font-size: 12px; }
.igt-palette-item small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.igt-drag-ghost { position: fixed; z-index: 9999; padding: 8px 11px; border-radius: 7px; background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--shadow-float); font-size: 12px; pointer-events: none; }
.igt-draggable { cursor: grab; touch-action: none; user-select: none; }
.igt-draggable.dragging { cursor: grabbing; opacity: .72; filter: drop-shadow(0 5px 5px rgba(20, 39, 29, .5)); }
.igt-rotate-handle { cursor: pointer; touch-action: manipulation; }
.igt-rotate-handle:hover circle, .igt-rotate-handle:focus circle { fill: #d9efdf; stroke: #28573a; }
.igt-corner-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.igt-corner-actions button { flex: 1 1 auto; }
.extension-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.extension-placement { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.extension-placement b { font-size: 13px; }
.extension-placement label { margin: 9px 0; }
.extra-frame { min-width: 0; margin: 12px 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.extra-frame details { margin-top: 10px; }
.igt-parts { margin: 14px 0 4px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.igt-parts > b, .igt-parts > small { display: block; }
.igt-parts > small { margin-top: 9px; color: var(--muted); }
.igt-part-row { display: grid; grid-template-columns: 42px minmax(100px, 1fr) minmax(0, 2fr); align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.igt-part-row strong { text-align: right; font-weight: 500; }
.igt-part-row.missing { color: var(--danger); }
.igt-art { max-width: 100%; margin: 18px 0 8px; padding: 16px; overflow: auto; border-radius: 13px; background: #c5b8a2; color: #263c30; overscroll-behavior-inline: contain; }
.igt-art-row { display: flex; align-items: stretch; gap: 4px; min-width: 500px; }
.igt-art-frame { display: grid; grid-template-columns: repeat(var(--igt-halves), minmax(0, 1fr)); flex: 1; gap: 2px; min-width: 350px; padding: 6px; border: 4px solid #1e2824; border-radius: 6px; background: #313d39; box-shadow: 0 5px 12px rgba(0, 0, 0, .2); }
.igt-art-span { min-width: 0; }
.igt-art-tile, .igt-art-empty { position: relative; display: flex; align-items: center; justify-content: center; height: 145px; min-width: 0; overflow: hidden; border: 1px solid #86918d; background: linear-gradient(125deg, #ebede8, #b6c0ba); color: #263c30; }
.igt-art-tile.bamboo { background: repeating-linear-gradient(90deg, #d9ba80 0 18px, #cca46b 19px 20px); }
.igt-art-tile.black { background: #303b37; color: #fff; }
.igt-art-tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.igt-art-tile span { position: absolute; right: 0; bottom: 0; left: 0; max-height: 42px; overflow: hidden; padding: 5px; background: rgba(23, 42, 34, .88); color: #fff; text-align: center; font-size: 10px; line-height: 1.35; }
.igt-art-empty { border: 1px dashed #929e92; background: rgba(221, 225, 217, .55); color: #52665a; font-size: 12px; }
.igt-art-side { display: flex; align-items: center; width: 80px; flex: none; }
.igt-art-side .igt-art-tile { width: 100%; height: 110px; border-radius: 50%; }
.igt-art-long { min-width: 350px; margin: 5px 84px 0; }
.igt-art-long .igt-art-tile { height: 72px; }
.igt-art .extension { border: 3px solid #68786f; }
.tent-preview > img { display: block; width: 100%; max-height: 400px; margin: 18px 0; border-radius: 6px; background: #fff; object-fit: contain; }
.tent-owned { margin: 10px 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.tent-preview details { margin-top: 18px; }
.tent-preview .summary-line { justify-content: space-between; }

.gear-thumb { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 68px; width: 68px; height: 68px; overflow: hidden; border: 1px solid #d9e1d8; border-radius: 6px; background: #fff; color: #5f6e64; text-align: center; font-size: 10px; line-height: 1.35; }
.gear-thumb img { display: block; width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.gear-thumb.small { flex-basis: 54px; width: 54px; height: 54px; }
.gear-thumb.tiny { flex-basis: 42px; width: 42px; height: 42px; }
.summary-line > .gear-thumb, .igt-part-row > .gear-thumb { flex: none; margin: 0; }

.inventory-brand > summary { background: var(--surface); font-size: 15px; }
.inventory-brand[open] > summary { border-bottom: 1px solid var(--border); }
.gear-card > label { width: 44px; }
.igt-art-tile.metal { background: linear-gradient(125deg, #ebede8, #b6c0ba); color: #263c30; }
.status-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.35; vertical-align: middle; white-space: nowrap; }
.status-planned { background: var(--accent-soft); color: var(--warning); }
.status-out { background: var(--warning-bg); color: var(--warning); }
.status-returned { background: var(--success-bg); color: var(--success); }
.trip-list-main > b, .trip-item > div > b { display: inline-block; margin-right: 6px; }
.trip-list-row .trip-list-main { flex: 1 1 260px; }
.summary-line > .row-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.trip-state-summary { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; padding: 12px; border-radius: 6px; background: var(--surface-soft); }
.trip-bulk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
#toast[data-type="error"] { background: var(--danger-solid); color: var(--on-danger); }

.account-panel { max-width: 760px; }
.account-identity { display: flex; align-items: center; gap: 14px; }
.account-identity .avatar { width: 48px; height: 48px; }
.account-identity small, .account-identity strong, .account-identity span { display: block; }
.account-identity small, .account-identity span { color: var(--muted); }
.account-identity strong { margin: 3px 0; font-size: 18px; }
.users-panel { max-width: 1000px; }
.user-form { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.user-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.user-row > span { min-width: 0; }
.user-row > span:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.user-row small { color: var(--muted); }
.actions button:not(.primary), .user-row button, #packingList button { border: 1px solid var(--border); background: var(--surface-soft); color: var(--link); }
.actions button:not(.primary):hover, .user-row button:hover, #packingList button:hover { background: var(--surface-strong); }
.association-list { display: grid; gap: 8px; max-height: 45vh; margin: 15px 0; overflow: auto; overscroll-behavior: contain; }
.association-option { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-soft); cursor: pointer; }
.association-option span { display: grid; gap: 3px; min-width: 0; }
.association-option small { color: var(--muted); }

dialog { width: min(480px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-float); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(12, 25, 18, .64); backdrop-filter: blur(3px); }
dialog h2:first-child, dialog form > h2:first-child { margin-top: 0; }
dialog p { color: var(--muted); }
#gearDialog, #associationDialog, #statDialog { width: min(580px, calc(100vw - 32px)); }
#statContent { max-width: 100%; overflow-wrap: anywhere; }
#statContent h3 { margin: 18px 0 6px; }
#statContent p { color: var(--muted); }
.actions { position: sticky; bottom: -24px; z-index: 2; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin: 24px -24px -24px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface-raised); }
#toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: none; max-width: min(420px, calc(100vw - 32px)); padding: 13px 17px; border-radius: 8px; background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--shadow-float); font-size: 13px; line-height: 1.5; }

html[data-theme="dark"] .igt-plan-svg text[fill="#405146"],
html[data-theme="dark"] .igt-plan-svg text[fill="#53665b"],
html[data-theme="dark"] .igt-design-visual text[fill="#4e6654"],
html[data-theme="dark"] .igt-design-thumb text[fill="#4e6654"],
html[data-theme="dark"] .igt-design-visual text[fill="#53695c"],
html[data-theme="dark"] .igt-design-thumb text[fill="#53695c"],
html[data-theme="dark"] .igt-design-visual text[fill="#687e70"],
html[data-theme="dark"] .igt-design-thumb text[fill="#687e70"] { fill: var(--diagram-ink); }
html[data-theme="dark"] .igt-plan-svg text[fill="#788b7e"] { fill: #52665a; }
html[data-theme="dark"] .igt-plan-svg text[fill="#bd252d"],
html[data-theme="dark"] .igt-design-visual text[fill="#cf4145"],
html[data-theme="dark"] .igt-design-thumb text[fill="#cf4145"] { fill: #9f2029; }
html[data-theme="dark"] .igt-plan-svg text[fill="#d4ded7"],
html[data-theme="dark"] .igt-plan-svg text[fill="#fff"],
html[data-theme="dark"] .igt-design-visual text[fill="#fff"],
html[data-theme="dark"] .igt-design-thumb text[fill="#fff"] { fill: #f7faf5; }

@media (max-width: 1399px) and (min-width: 1100px) {
  main { padding-right: 26px; padding-left: 26px; }
  .hero-content { padding: 28px; }
  .preset-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
  .header-right { display: none; }
  .assembly-grid, .plan-layout { grid-template-columns: minmax(0, 1fr); }
  .plan-summary { position: static; }
  .gear-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .igt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) and (max-width: 1099px) {
  aside { width: 84px; padding: 24px 11px 18px; }
  aside .brand { justify-content: center; }
  aside .brand-copy, .side-caption, .nav-group-label, .nav-label, .sidebar-bottom > div, .sidebar-bottom .avatar { display: none; }
  .sidebar-nav { padding: 2px 0; }
  .nav { justify-content: center; min-height: 50px; padding: 12px; }
  .nav svg { width: 22px; height: 22px; }
  .nav.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav-group + .nav-group { margin-top: 14px; padding-top: 14px; }
  .sidebar-bottom { justify-content: center; padding: 14px 0 0; }
  main { margin-left: 84px; padding: 0 24px 56px; }
  .login-card { padding: 44px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preset-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-parts { grid-template-columns: minmax(0, 1fr); }
  .assembly-summary { min-width: 260px; }
}

@media (max-width: 900px) {
  .login { grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); }
  .login-card { padding: 40px; }
  .login-art { padding: 36px; }
  .preset-detail-header { grid-template-columns: minmax(160px, 200px) minmax(0, 1fr); gap: 18px; }
  .igt-design-detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 94px; }
  body { font-size: 14px; }
  input, select, textarea { font-size: 16px; }
  .login { display: block; min-height: 100dvh; }
  .login-card { width: 100%; max-width: none; min-height: 100dvh; padding: 30px 24px calc(30px + env(safe-area-inset-bottom)); }
  .login-intro { margin: 52px 0 30px; }
  .login-card h1 { font-size: clamp(33px, 9.5vw, 43px); }
  .login-art { display: none; }
  aside {
    inset: auto 0 0;
    z-index: 50;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    border-right: 0;
    background: var(--sidebar);
  }
  aside > .brand, .side-caption, .sidebar-bottom, .nav-group-secondary, .nav-group-label { display: none; }
  .sidebar-nav { width: 100%; height: 100%; min-height: 0; padding: 0; overflow: visible; }
  .nav-group-primary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; height: 100%; }
  .nav { flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 54px; height: 100%; margin: 0; padding: 5px 2px; border-radius: 6px; text-align: center; font-size: 11px; line-height: 1.2; }
  .nav svg { width: 21px; height: 21px; }
  .nav.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav-label { display: inline; max-width: 100%; }
  main { margin: 0; padding: 0 max(16px, env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  header { position: sticky; top: 0; z-index: 35; gap: 8px; margin: 0 0 18px; padding: calc(10px + env(safe-area-inset-top)) 0 11px; border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .header-copy > .eyebrow { display: none; }
  header h1 { margin: 0 0 2px; font-size: 21px; }
  #pageSubtitle { max-width: 43vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
  .header-actions { gap: 6px; }
  #themeToggle { min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .mobile-account { display: block; }
  .page-heading { margin-bottom: 16px; }
  .page-heading h2, .preview-heading h2 { font-size: 23px; }
  .panel { padding: 18px; }
  .section-head { gap: 10px; }
  .section-head h2 { font-size: 21px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-content { padding: 26px 24px; }
  .hero h2 { font-size: 29px; }
  .hero-photo { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0 18px; }
  .stat-card { min-height: 112px; padding: 14px; }
  .stat-out { padding-top: 12px; }
  .stats strong { font-size: 27px; }
  .overview-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .overview-actions button { width: 100%; padding-right: 10px; padding-left: 10px; }
  .preset-groups { grid-template-columns: minmax(0, 1fr); }
  .preset-detail { padding: 16px; }
  .preset-detail-header { grid-template-columns: minmax(0, 1fr); }
  .preset-image { height: 220px; }
  .preset-item { gap: 10px; }
  .preset-item > span:not(.gear-thumb) { flex-basis: calc(100% - 78px); min-width: 0; }
  .preset-item > button { margin-left: auto; }
  .preset-actions { align-items: flex-end; }
  #hidePreset { margin-right: 0; }
  #addPreset { margin-left: auto; }
  .inventory-tools { align-items: stretch; }
  .search-control { flex-basis: 100%; max-width: none; }
  .inventory-transfer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .inventory-transfer button { padding-right: 9px; padding-left: 9px; }
  .inventory-tree summary { padding: 12px; }
  .inventory-brand-content, .inventory-products, .inventory-product-body { padding: 0 7px 8px; }
  .inventory-parts { grid-template-columns: minmax(0, 1fr); }
  .gear-list { grid-template-columns: minmax(0, 1fr); }
  .gear-card { gap: 8px; padding: 11px; }
  .gear-card > div:not(.gear-icon) { flex-basis: calc(100% - 130px); min-width: 110px; }
  .gear-card > button { flex: 1 1 auto; }
  .danger-zone { align-items: stretch; padding: 18px; }
  .danger-button { width: 100%; }
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .plan-card { padding: 18px; }
  .inline-form { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .inline-form > label, .inline-form > input, .inline-form > select, .inline-form > button { width: 100%; }
  #packingForm { grid-template-columns: minmax(0, 1fr) 96px; align-items: end; }
  #packingForm > label { align-self: end; margin: 0 0 12px; }
  #packingForm > label[for="packingGear"] { grid-column: 1; grid-row: 1; }
  #packingGear { grid-column: 1; grid-row: 2; }
  #packingForm > label[for="packingQty"] { grid-column: 2; grid-row: 1; }
  #packingQty { grid-column: 2; grid-row: 2; }
  #packingForm > button { grid-column: 1 / -1; }
  .summary-line { align-items: flex-start; }
  .summary-line > div { flex-basis: calc(100% - 76px); }
  .summary-line > button { margin-left: auto; }
  .trip-detail .section-head { align-items: flex-start; }
  .preview-tabs { display: none; }
  .preview-select-wrap { display: block; }
  .trip-add-preview { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: 16px; }
  .trip-add-preview label { max-width: none; }
  .assembly-header { align-items: stretch; }
  .assembly-header h2 { font-size: 28px; }
  .assembly-summary { min-width: 0; }
  .assembly-summary select { min-width: 0; }
  .scene-card, .parts-card { padding: 14px; }
  .part-row { min-height: 66px; }
  .igt-toolbar { grid-template-columns: minmax(0, 1fr); }
  .igt-grid { grid-template-columns: minmax(0, 1fr); padding: 7px; }
  .igt-designs, .igt-top-plan, .igt-3d-panel { padding: 13px; }
  .igt-design-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .igt-design-card { padding: 7px; }
  .igt-design-thumb { height: 92px; }
  .igt-design-requirement { display: block; }
  .igt-design-requirement b { display: block; margin-top: 4px; text-align: left; }
  .igt-3d-canvas { height: 320px; }
  .igt-plan-svg { max-height: none; }
  .igt-view-buttons { flex-wrap: wrap; }
  .igt-art { padding: 10px; }
  .igt-art-row { min-width: 460px; }
  .igt-art-tile, .igt-art-empty { height: 112px; }
  .igt-part-row { grid-template-columns: 42px minmax(0, 1fr); }
  .igt-part-row strong { grid-column: 2; margin: 0; text-align: left; }
  .extension-grid { grid-template-columns: minmax(0, 1fr); }
  .gear-thumb { flex-basis: 58px; width: 58px; height: 58px; }
  .gear-thumb.small { flex-basis: 48px; width: 48px; height: 48px; }
  .gear-thumb.tiny { flex-basis: 42px; width: 42px; height: 42px; }
  .user-row { align-items: flex-start; }
  dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 15px; }
  #gearDialog, #associationDialog, #statDialog { width: calc(100vw - 24px); }
  .actions { bottom: -20px; margin: 22px -20px -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .actions > button { flex: 1 1 120px; }
  #toast { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); left: 16px; max-width: none; }
}

@media (max-width: 420px) {
  .login-card { padding-right: 20px; padding-left: 20px; }
  .brand-copy strong { font-size: 13px; }
  .hero-content { padding: 24px 20px; }
  .hero h2 { font-size: 27px; }
  .stats small, .stats span { font-size: 10px; }
  .stat-card { padding-right: 12px; padding-left: 12px; }
  .overview-actions { grid-template-columns: minmax(0, 1fr); }
  .preset-actions > button { flex: 1 1 130px; }
  #hidePreset { order: 3; }
  .igt-3d-canvas { height: 280px; }
  .igt-design-card strong { font-size: 12px; }
  .igt-design-card small { font-size: 10px; }
}

@media (max-width: 767px) and (orientation: landscape) {
  aside { height: calc(62px + env(safe-area-inset-bottom)); padding-top: 4px; }
  .nav { min-height: 50px; flex-direction: row; gap: 5px; }
  main { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  header { padding-top: calc(7px + env(safe-area-inset-top)); padding-bottom: 8px; }
  #pageSubtitle { display: none; }
  .login-card { min-height: auto; padding-top: 24px; }
  .login-intro { margin: 28px 0 20px; }
  .login-card h1 { font-size: 32px; }
  .login-meta { margin-top: 22px; }
  .igt-3d-canvas { height: 250px; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (pointer: coarse) {
  button, select, summary, [role="button"] { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
  .igt-palette-item { min-height: 88px; cursor: default; touch-action: pan-x pan-y; }
  .igt-palette-items { padding-bottom: 10px; }
}

.page-heading { display: none; }
.preset-groups { align-items: start; }
.preset-group { padding: 0; overflow: hidden; }
.preset-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 16px; color: var(--ink); cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.preset-group > summary::-webkit-details-marker { display: none; }
.preset-group > summary::after { content: "+"; color: var(--muted); font-size: 18px; font-weight: 400; }
.preset-group[open] > summary::after { content: "−"; }
.preset-group > summary small { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.preset-group .preset-buttons { padding: 0 12px 12px; }
#presetProducts:empty { display: none; }
#presetProducts { scroll-margin-top: 24px; }
.igt-warning-summary { display: block; width: 100%; margin: 0 0 16px; text-align: left; cursor: pointer; }
.igt-status-summary { margin: 0 0 16px; }
#toast { pointer-events: none; }
.inventory-summary-content :is(b, small), .trip-list-main > b, .trip-item :is(b, small), .summary-line :is(b, small) { max-width: 100%; overflow-wrap: anywhere; }
.igt-palette-item { flex-basis: min(215px, 100%); }
.igt-plan-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }

@media (max-width: 767px) {
  #pageSubtitle { display: none; }
  .igt-plan-scroll .igt-plan-svg { width: var(--igt-plan-min); min-width: var(--igt-plan-min); max-width: none; }
  .igt-designs { display: flex; flex-direction: column; }
  .igt-design-detail { order: 1; }
  .igt-design-cards { order: 2; }
}

@media (max-height: 500px) and (pointer: coarse) {
  aside { padding-left: max(11px, env(safe-area-inset-left)); }
  main { padding-right: max(24px, env(safe-area-inset-right)); padding-left: max(24px, env(safe-area-inset-left)); }
  header { padding-top: 10px; padding-bottom: 10px; }
  .igt-3d-canvas { height: 250px; }
}

@media (pointer: coarse) {
  .igt-3d-canvas, .igt-3d-canvas canvas, .igt-draggable { touch-action: pan-y; }
}

.trip-set-options { margin: -6px 0 18px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.trip-set-choice { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; color: var(--ink); cursor: pointer; font-size: 13px; }
.trip-set-choice input { width: 18px; height: 18px; min-height: 18px; margin: 0; flex: none; accent-color: var(--primary); }
.trip-set-options small { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.trip-set-parent { padding-left: 11px; border-left: 3px solid var(--primary); }
.trip-set-part { margin-left: 24px; padding-left: 11px; border-radius: 9px; background: var(--surface-soft); }
.trip-set-note { color: var(--muted); font-size: 11px; white-space: nowrap; }
@media (max-width: 767px) {
  .trip-set-part { margin-left: 0; }
  .trip-set-note { white-space: normal; }
}

.auth-switch { display: block; margin: 12px auto 0; }
.brand-fieldset { min-width: 0; margin: 20px 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.brand-fieldset legend { padding: 0 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.brand-fieldset > p { margin: 4px 0 12px; font-size: 12px; }
.brand-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.brand-option { display: flex; align-items: flex-start; gap: 9px; min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; }
.brand-option:has(input:checked) { border-color: var(--primary); background: var(--nav-active); }
.brand-option input { width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.brand-option span { min-width: 0; }
.brand-option b, .brand-option small { display: block; overflow-wrap: anywhere; }
.brand-option small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.user-brand-fieldset, .user-preferences { flex-basis: 100%; }
.user-preferences { margin-top: 10px; }
.user-preferences > summary { min-height: 44px; color: var(--link); cursor: pointer; font-size: 12px; }
.user-preferences .brand-options { margin: 12px 0; }
.language-control { width: auto; margin: 0; }
.language-control select { width: auto; min-width: 106px; }
.scope-note { margin: 6px 0 0; color: var(--link); font-size: 12px; font-weight: 650; }
@media (max-width: 767px) {
  .language-control select { min-width: 84px; padding-right: 7px; padding-left: 7px; font-size: 12px; }
}
@media (max-width: 420px) {
  #languageSelect { width: 80px; min-width: 0; }
  #themeToggle { min-width: 44px; padding: 8px; font-size: 0; }
  #themeToggle::before { content: "◐"; font-size: 18px; }
}

.plan-accessories,.coord-accessories { border: 1px solid var(--border); border-radius: 6px; margin: 14px 0; padding: 10px 12px; }
.plan-accessories legend,.coord-accessories legend { padding: 0 5px; font-size: 13px; font-weight: 700; }
.plan-accessories label,.coord-accessories label { display: flex; align-items: center; gap: 8px; min-height: 44px; line-height: 1.4; }
.plan-accessories small,.coord-accessories small { display: block; color: var(--muted); line-height: 1.6; }
.trip-storage-summary { margin: 14px 0; border-left: 3px solid var(--accent); }

.tarp-storage { margin-top: 18px; }
.tarp-storage > summary { min-height: 44px; color: var(--link); cursor: pointer; font-weight: 700; }
.tarp-storage > p { margin-bottom: 0; }
.lamp-preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lamp-preview-grid > * { min-width: 0; }
.lamp-preview-grid .igt-3d-canvas { height: 430px; }
@media (max-width: 900px) {
  .lamp-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .lamp-preview-grid .igt-3d-canvas { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.gear-thumb-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #eef3eb; color: #526b5b; }
.gear-thumb-fallback[hidden] { display: none; }
.gear-icon { width: 38px; height: 38px; overflow: visible; }
.gear-thumb.small .gear-icon { width: 32px; height: 32px; }
.gear-thumb.tiny .gear-icon { width: 28px; height: 28px; }

.gear-thumb.preset-icon { width: 100%; height: 190px; flex-basis: auto; border-radius: 8px; }
.preset-icon .gear-icon { width: 96px; height: 96px; }

.preset-image-link { display: block; border-radius: 8px; cursor: pointer; }
.preset-image-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.preset-image-placeholder { display: block; }

.lamp-preview-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lamp-reference-panel { margin: 0; }
.lamp-reference-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr); gap: 20px; align-items: start; margin-top: 16px; }
.lamp-photo-figure { min-width: 0; margin: 0; }
.lamp-photo-frame { position: relative; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.lamp-photo-frame > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.lamp-photo-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; }
.lamp-photo-regions { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.lamp-photo-regions [data-lamp-region] { opacity: 0; transition: opacity .16s ease; }
.lamp-photo-regions [data-lamp-region].is-active { opacity: 1; }
.lamp-photo-regions path, .lamp-photo-regions rect { fill: none; stroke: #6b4f00; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lamp-photo-regions rect { stroke-dasharray: 10 7; }
.lamp-part-controls { min-width: 0; }
.lamp-part-controls > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.lamp-part-buttons { display: grid; gap: 9px; }
.lamp-part-button { display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; gap: 10px; align-items: center; width: 100%; min-height: 64px; margin: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left; touch-action: manipulation; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.lamp-part-button:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.lamp-part-button.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.lamp-part-button[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.lamp-part-index { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-strong); color: var(--ink); font-size: 11px; font-weight: 750; }
.lamp-part-button.is-active .lamp-part-index { background: var(--primary); color: var(--on-primary); }
.lamp-part-copy { min-width: 0; }
.lamp-part-copy b, .lamp-part-copy small { display: block; overflow-wrap: anywhere; }
.lamp-part-copy b { font-size: 13px; line-height: 1.45; }
.lamp-part-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.lamp-part-pin { width: 12px; height: 12px; border: 2px solid var(--border-strong); border-radius: 50%; }
.lamp-part-button[aria-pressed="true"] .lamp-part-pin { border-color: var(--primary); background: var(--primary); }
.lamp-part-controls > .lamp-part-status { min-height: 40px; margin: 12px 0 0; color: var(--link); }
.lamp-reference-note { margin: 16px 0 6px; font-size: 12px; }
.lamp-official-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.lamp-preview-grid > .lamp-3d-panel { margin: 0; }
.lamp-preview-grid .igt-3d-canvas { height: clamp(340px, 43vw, 480px); }

@media (max-width: 900px) {
  .lamp-reference-layout { grid-template-columns: minmax(0, 1fr); }
  .lamp-preview-grid .igt-3d-canvas { height: 360px; }
}

@media (max-width: 767px) {
  .lamp-reference-panel { padding: 16px; }
  .lamp-reference-layout { gap: 16px; margin-top: 12px; }
  .lamp-part-button { min-height: 60px; }
  .lamp-preview-grid .igt-3d-canvas { height: 320px; }
}

@media (max-width: 420px) {
  .lamp-preview-grid .igt-3d-canvas { height: 280px; }
}

@media (pointer: coarse) {
  .lamp-part-button { min-height: 56px; }
}

#tripGroupDialog, #groupManagerDialog { width: min(780px, calc(100vw - 32px)); }
#groupManagerList { display: grid; gap: 10px; max-height: 48vh; margin-top: 14px; overflow: auto; overscroll-behavior: contain; }
.group-manager-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.group-manager-head > div { min-width: 0; }
.group-manager-append { margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.group-manager-append .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: end; }
.group-manager-append button[type="submit"] { grid-column: 1 / -1; }
.trip-group-item { align-items: flex-start; gap: 12px; }
.trip-group-gear-field { display: grid; flex: 1 1 260px; gap: 4px; min-width: 0; }
.trip-group-gear-field select { width: 100%; min-width: 0; min-height: 44px; }
.trip-group-gear-field small { overflow-wrap: anywhere; }
.trip-group-qty { width: 88px; min-height: 44px; }
.group-manager-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .trip-group-item .trip-group-gear-field { flex-basis: 100%; }
  .group-manager-append .inline-form { grid-template-columns: minmax(0, 1fr); }
  .group-manager-row .row-actions { width: 100%; justify-content: flex-start; }
  #groupManagerList { max-height: 52vh; }
}
