:root {
  --teal: #0d9488;
  --teal-d: #0f766e;
  --teal-soft: #e6f4f1;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --pale: #e6f4f1;
  --side: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
}
.shell {
  background: #fff;
  min-height: 100vh;
}
a { color: var(--teal); text-decoration: none; }
.topbar {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-row-tools { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; width: 100%; }
.top-row-main { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; }
.top-row-main .brand { position: absolute; left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) {
  .topbar { flex-direction: row !important; align-items: center; padding: 8px 12px; }
  .top-row-tools { position: absolute; width: 0; height: 0; overflow: visible; }
  .top-row-tools .user-menu { pointer-events: auto; }
  .top-row-tools .nav-dots { display: none; }
  .top-row-tools > .type-scale,
  .top-row-tools > .lang { display: none; }
  .top-row-main { width: 100%; }
  .top-row-main .brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .menu-tools { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
  .menu-tools .type-scale { margin: 0; }
  .menu-tools .lang-switch { margin: 0; }
}
.top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}
.topbar .type-scale { margin-right: 12px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.brand img { height: 56px; width: auto; max-width: 340px; object-fit: contain; object-position: left center; }
.lang { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; }
.lang-bar { width: 1px; height: 18px; background: #cbd5e1; display: inline-block; }
.lang-switch a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 0;
}
.lang-switch a.on {
  background: var(--teal);
  color: #fff;
}
.user-menu { position: relative; }
.user-menu-btn {
  background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
}
.user-menu-btn .chev { font-size: 12px; color: var(--muted); }
.user-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); min-width: 180px; padding: 8px 0; z-index: 20;
}
.user-menu-list a { display: block; padding: 8px 16px; color: var(--ink); font-size: 14px; margin: 0; }
.user-menu-list a:hover { background: var(--teal-soft); color: var(--teal-d); }
.layout { display: flex; min-height: calc(100vh - 72px); }
.sidebar {
  width: 240px;
  padding: 16px 0 24px;
  flex-shrink: 0;
  background: var(--side);
  border-right: 1px solid var(--line);
}
.sidebar .brand { display: block; padding: 4px 20px 16px; }
.sidebar a { display: block; color: var(--ink); padding: 8px 20px; border-radius: 0; }
.sidebar a.active,
.sidebar a:hover {
  background: var(--teal-soft);
  color: var(--teal-d);
}
.side-actions { padding: 8px 8px 16px; }
.sidebar .btn,
.sidebar .side-add {
  display: block;
  text-align: center;
  width: 100%;
  color: #fff !important;
  border-radius: 8px;
}
.btn { color: #fff; border-radius: 8px; }
.nav-unit {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 0 8px 4px;
}
.sidebar a.nav-unit.active,
.sidebar a.nav-unit:hover {
  background: var(--teal-soft);
  border-radius: 8px;
}
.nav-street {
  display: block;
  font-weight: 600;
  color: var(--teal-d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}
.form-narrow { max-width: 720px; margin: 0 auto; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 16px 0;
}
.toggle-label { font-size: 14px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-ui {
  position: absolute; inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
}
.switch-ui::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .15s;
}
.switch input:checked + .switch-ui { background: var(--teal); }
.switch input:checked + .switch-ui::after { left: 23px; }
.main { flex: 1; min-width: 0; max-width: 100%; padding: 24px 40px 40px; background: #fff; }
.main-inner { width: 100%; max-width: 1600px; margin: 0 auto; overflow-x: auto; }
h1 { margin: 0 0 18px; font-size: 22px; }
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}
.btn:hover { background: var(--teal-d); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: #b91c1c; border: 1px solid #fecaca; }
.card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--line); }
body.public .shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #1a2a28 url("/assets/img/login-bg.jpg") center / cover no-repeat fixed;
}
body.public.apply-page .shell {
  background: #e8f0ee;
}
body.public.apply-page .topbar,
body.public.apply-page .footer {
  background: #fff;
  backdrop-filter: none;
}
body.public.apply-done-page .shell {
  background:
    linear-gradient(180deg, rgba(13,148,136,.28) 0%, rgba(255,255,255,.55) 42%, rgba(255,248,230,.7) 100%),
    radial-gradient(ellipse at 70% 0%, #ffe08a 0%, transparent 46%),
    linear-gradient(120deg, #1f6f68 0%, #3aa39a 40%, #f3e2b0 100%);
  background-attachment: fixed;
}
.done-mark {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 28px; font-weight: 700; line-height: 56px; text-align: center;
}
.done-go { margin-top: 20px; }
.apply-flags { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.flag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--teal); color: var(--teal-d);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-size: 14px;
  background: #fff;
}
.flag input { accent-color: var(--teal); width: auto; }
.flag:has(input:checked) { background: var(--teal); color: #fff; }
.flag-ico { font-size: 16px; line-height: 1; }
.done-illu { width: 160px; height: 90px; margin: 0 auto 8px; display: block; }
.apply-luck { font-size: 1.35em; font-weight: 700; color: var(--teal-d); margin: 0 0 8px; }
body.public .topbar,
body.public .footer {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.4);
}
body.public .main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  background: transparent;
  padding: 32px 16px;
  font-size: calc(16px * var(--type, 1));
}
.login-stack {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  box-shadow: 0 24px 60px rgba(15, 40, 36, .28);
  border: 0;
}
.login-hero-card { background: #fff; }
.forgot-link { font-size: 14px; white-space: nowrap; }
.units-home { max-width: 760px; margin: 0 auto; text-align: left; }
.unit-list { display: flex; flex-direction: column; gap: 10px; }
.unit-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  color: inherit; background: #fff;
}
.unit-row:hover { border-color: var(--teal); background: var(--teal-soft); }
.unit-row img, .unit-ph {
  width: 88px; height: 64px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0; background: #e8eef0;
}
.unit-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.unit-copy strong { color: var(--teal-d); font-size: calc(16px * var(--type, 1)); }
.unit-meta, .unit-addr { font-size: 13px; color: var(--muted); }
label { display: block; font-size: 13px; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
.field.highlight input { border-color: #0d9488; background: #f0fdfa; }
.field.highlight > label { background: #f0fdfa; }
.pw-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--muted);
}
.pw-eye:hover { color: var(--teal-d); }
.pw-wrap input { padding-right: 40px; }
.field { position: relative; margin: 14px 0; }
.field > label {
  position: absolute !important; left: 12px !important; top: 14px !important; margin: 0 !important;
  color: #9ca3af !important; font-size: 14px !important; pointer-events: none !important;
  background: transparent !important; padding: 0 4px !important; transition: .15s ease !important;
  z-index: 2 !important; display: block !important;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label,
.field input.is-filled + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -8px !important; font-size: 12px !important; color: #0d9488 !important; background: #fff !important;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label,
.field input.is-filled + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field.select > label {
  top: -8px !important;
  font-size: 12px !important;
  color: var(--teal-d) !important;
  background: #fff !important;
  padding: 0 4px !important;
  z-index: 1 !important;
}
.file-name { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.field input, .field select, .field textarea { background: #fff !important; }
  -webkit-box-shadow: 0 0 0 32px #fff inset;
  box-shadow: 0 0 0 32px #fff inset;
  transition: background-color 9999s ease-out;
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.row { display: flex; gap: 12px; }
@media (max-width: 640px) {
  .row { flex-wrap: wrap; }
  .row > .field { flex: 1 1 calc(50% - 6px); min-width: 140px; }
  .row > div[style*="display:flex"] { flex: 1 1 100% !important; min-width: 0; margin-bottom: 8px; }
  .row > div > .field.select { flex: 0 0 110px !important; }
  .row > div > .field { flex: 1 !important; min-width: 0; }
  textarea[name="listing_title"] { min-height: 4.5em; }
}
.row > * { flex: 1; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.flash { background: var(--teal-soft); color: var(--teal-d); padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px; background: #fff; border-top: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 12px; }
.fmt-req { color:#b91c1c; font-weight:700; }
.toggle { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.board {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  width: 100%;
}
.board > .col { flex: 1 1 400px; min-width: 400px; max-width: 500px; padding-bottom: 20px; }
.board::-webkit-scrollbar { height: 8px; }
.board::-webkit-scrollbar-thumb { background: #cbd5d8; border-radius: 4px; }
.col {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 200px;
  min-width: 300px;
}
.col.short { background: var(--pale); }
.col h2 { font-size: 1.15rem; font-weight: 750; margin: 0 0 12px; color: var(--teal-d); letter-spacing: -0.02em; text-align: center; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 168px; display: flex; flex-direction: column; margin-bottom: 10px; }
.app-card .actions { margin-top: auto; display: flex; gap: 6px; align-items: center; }
.unit-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.unit-head img { width: 88px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.unit-head h1 { margin: 0 0 2px; font-size: 20px; line-height: 1.2; }
.unit-head .meta { margin: 0; line-height: 1.35; }
.unit-head > div { flex: 1; min-width: 0; }
.unit-head .linkrow { margin: 4px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.unit-head .linkrow input { width: auto; min-width: 240px; flex: 1; max-width: 480px; padding: 6px 10px; }
.unit-head .linkrow .spacer { flex: 1; min-width: 8px; }
.icon-copy {
  width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.icon-copy:hover { border-color: var(--teal); color: var(--teal); }
.tip { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; cursor: help; position: relative; }
.tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0; top: 22px;
  max-width: 280px;
  background: var(--teal-soft);
  color: var(--teal-d);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
}
.how {
  margin: 32px 0 8px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--teal-soft);
  border-radius: 16px;
}
.how-step { display: flex; align-items: center; gap: 16px; flex: 1; }
.how-ico { width: 72px; height: 72px; flex-shrink: 0; display: block; }
.how strong { display: block; font-size: 20px; }
.how-step span { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.how-arrow { width: 48px; height: 48px; flex: 0 0 48px; display: block; }
@media (max-width: 1200px) {
  /* board flex preserved */
  .how { flex-direction: column; align-items: stretch; }
  .how-arrow { transform: rotate(90deg); align-self: center; }
}
@media (max-width: 900px) {
  /* board flex preserved */
  .layout { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(84vw, 320px);
    z-index: 40; transform: translateX(-105%); transition: transform .2s ease;
    border-right: 1px solid var(--line); box-shadow: 8px 0 24px rgba(0,0,0,.08);
    overflow-y: auto; padding-top: 48px;
  }
  .sidebar.is-open { transform: translateX(0); }
  .main { padding: 12px; }
  .topbar { position: sticky; top: 0; z-index: 25; min-height: 48px; padding: calc(6px + env(safe-area-inset-top)) 10px 6px; background: #fff; }
  .brand img { height: 26px !important; max-width: 100px !important; }

  .ts-a { width: 11px; }
  .ts-a.sm { font-size: 10px !important; }
  .ts-a.lg { font-size: 14px !important; }
  .lang { gap: 8px; }
  .lang-switch { gap: 4px; }
  .lang-switch a { font-size: 11px; padding: 2px 5px; }
  .lang-bar { height: 12px; }
  .unit-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .unit-head img { width: 96px; height: 72px; }
  .unit-head h1 { font-size: 18px; }
  .unit-head .linkrow { gap: 8px; }
  .unit-head .linkrow input { min-width: 0; max-width: none; flex: 1 1 100%; }
  .unit-head .spacer { display: none; }
  .how { padding: 16px; }
  .how-ico { width: 56px; height: 56px; }
  .how strong { font-size: 16px; }
}

.apply-wrap { width: 100%; max-width: 520px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.apply-wide { max-width: 640px; }
.apply-hero { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.apply-lead { font-size: 0.94em; margin: 8px 0 12px; }
.apply-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.apply-pills span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.apply-cta { width: 100%; }
.apply-flags { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }
.apply-flags label { font-size: 14px; }
.apply-done { text-align: center; padding: 48px 24px; }
.app-ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #e8eef0; display: block; }
.app-card .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.app-card .chips span { font-size: 11px; background: var(--teal-soft); color: var(--teal-d); border-radius: 999px; padding: 2px 8px; }
.flag-block { display:flex; width:100%; margin:8px 0 16px; border-radius:12px; }
.flag.ico-only { width: 44px; height: 44px; padding: 0; justify-content: center; position: relative; }
.flag.ico-only input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flag.ico-only svg { color: var(--teal); }
.flag.ico-only:has(input:checked) svg { color: #fff; }
.p2-fields { display: none; margin-top: 12px; }
.p2-box:has(#p2_on:checked) .p2-fields { display: block; }
.chip-ico { display: inline-flex; color: var(--teal); background: transparent; padding: 2px; }
.chip-ico svg { width: 20px; height: 20px; }
.p2-toggle { display:flex; align-items:center; gap:8px; font-size:14px; margin:8px 0; cursor:pointer; }
.p2-toggle input { width:auto; accent-color: var(--teal); }
.flag-lead { font-size:14px; margin:0 0 8px; color:var(--ink); }
.apply-flags { display:flex; justify-content:space-between; gap:10px; width:100%; }
.flag.ico-only { flex:1; max-width:none; width:auto; height:52px; }
.apply-flags { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px; width: 100%; }
.flag.ico-only {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  flex-direction: column;
  gap: 2px;
  padding: 6px 2px 5px;
  border-radius: 12px;
}
.flag.ico-only svg { width: 22px; height: 22px; }
.flag.ico-only span {
  font-size: 10px;
  line-height: 1.15;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.flag.ico-only:has(input:checked) span { color: #fff; }
@media (max-width: 380px) {
  .flag.ico-only span { font-size: 9px; }
  .flag.ico-only svg { width: 18px; height: 18px; }
}
.apply-wide { max-width: 720px; }
body.public.apply-page .apply-wrap { padding: 16px 20px 14px; }
body.public.apply-page .apply-wrap h1 { font-size: 1.375em; margin: 0 0 4px; }
body.public.apply-page .apply-wrap .hint { margin: 0 0 8px; font-size: 0.82em; }
body.public.apply-page .field { margin: 8px 0; }
body.public.apply-page .field input,
body.public.apply-page .field textarea { padding: 12px 10px 6px; }
body.public.apply-page textarea { min-height: 52px; }
.addr-row { align-items: stretch; }
.addr-row .grow { flex: 2.2 1 180px; }
.addr-row .zip { flex: 0 0 88px; max-width: 88px; }
.field.tight { flex: 0 1 110px; }
.apply-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.photo-prev { display: flex; align-items: center; gap: 8px; }
.photo-prev.is-empty { display: none; }
.photo-prev .app-ava { width: 56px; height: 56px; }
.flag-lead { margin: 4px 0 6px; }
.apply-flags { margin: 4px 0 8px; }
.addr-row .grow { flex: 1.2 1 140px; }
.addr-row .zip { flex: 0 0 80px; max-width: 80px; }
.addr-row .field:last-child { flex: 1.6 1 160px; }
.apply-photo { flex-direction: column; align-items: flex-start; }
.photo-prev { margin-top: 8px; }
.apply-photo { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px; width:100%; }
.apply-photo .hint { width:100%; margin:0; }
.apply-photo input[type=file] { flex:1 1 180px; margin:0; }
.apply-photo .photo-prev { display:flex; align-items:center; gap:8px; margin:0; }
.apply-photo .photo-prev.is-empty { display:none; }
.subh { font-size: 16px; margin: 14px 0 8px; }
.yn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.yn span { flex: 1 1 220px; }
.yn label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.yn input { width: auto; accent-color: var(--teal); }
.can-pay { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; margin:12px 0; }
.can-pay input { width:auto; accent-color: var(--teal); }
.can-pay { display:inline-flex; align-items:center; gap:8px; justify-content:flex-start; }
.can-pay { display:flex; justify-content:flex-end; align-items:center; gap:8px; width:100%; }
.doc-line a { color: var(--teal); }
.same-ll-toggle { display:flex; align-items:center; gap:8px; margin:0 0 8px; font-size:14px; }
.same-ll-toggle input { width:auto; accent-color:var(--teal); }
.same-ll:has(#same_ll:checked) .p2-ll-fields { display:none; }
.app-card { min-height: 232px; }
.app-card .app-job, .app-card .app-contact { display: block; min-height: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card .chips { min-height: 28px; align-items: center; }
.chip-ico.is-off { visibility: hidden; }
.app-ava-ph { display: block; }
.app-card .actions { width: 100%; display: flex; gap: 8px; align-items: stretch; }
.app-card .actions form { flex: 1 1 0; min-width: 0; margin: 0; }
.app-card .actions .btn { width: 100%; min-height: 40px; padding: 8px 10px; }
.app-card .actions.rej { flex-wrap: wrap; }
.app-card .rej-meta { flex: 1 1 140px; display: flex; flex-direction: column; justify-content: center; font-size: 12px; color: var(--muted); line-height: 1.35; min-width: 0; }
.app-card .actions.rej form { flex: 1 1 90px; }
.app-top { display: flex; align-items: flex-start; gap: 12px; }
.rent-burden {
  flex: 0 0 auto;
  min-width: 52px;
  min-height: 48px;
  text-align: center;
  background: var(--teal-soft);
  color: var(--teal-d);
  border-radius: 10px;
  padding: 6px 6px 4px;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rent-burden .rb-val { display: inline-block; font-size: calc(28px * var(--card-type, 1)); font-weight: 800; letter-spacing: -0.03em; color: var(--teal-d); line-height: 1; background: #ffffff !important; border: 1px solid #0d9488; border-radius: 999px; padding: 4px 10px; }
.rent-burden .rb-lab { display: block; font-size: 9px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--teal-d); opacity: .7; max-width: 72px; margin-top: 1px; }
.rent-burden.is-empty { background: transparent; color: #94a3b8; }
.rent-burden.is-empty .rb-val { font-size: 18px; font-weight: 700; color: #94a3b8; background: transparent !important; border: none; padding: 0; }
.app-ava, .app-ava-ph { width: 56px; height: 56px; flex: 0 0 56px; }
.app-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.app-meta strong, .app-meta .app-job, .app-meta .app-contact, .app-card .app-job, .app-card .app-contact { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.app-card .chips { margin-top: 14px; padding-top: 4px; }
.app-card { min-height: 0; padding: 14px 14px 12px; gap: 8px; }
.app-card .actions { margin-top: 8px; }
.app-ava, .app-ava-ph { width: 72px; height: 72px; flex: 0 0 72px; }
.app-meta strong { font-size: 17px; line-height: 1.25; }
.app-card .app-job, .app-card .app-contact { font-size: 14px; color: #334155; min-height: 1.3em; }
.app-card .chips { margin-top: 6px; padding-top: 0; min-height: 32px; gap: 8px; }
.chip-ico svg { width: 26px; height: 26px; }
.app-card .rej-meta { font-size: 13px; }
.col { display: flex; flex-direction: column; min-height: 0; }
.col-body { max-height: calc(5 * 228px); overflow-y: auto; overflow-x: hidden; padding-right: 16px; }
.col-body::-webkit-scrollbar { width: 8px; }
.col-body::-webkit-scrollbar-thumb { background: #cbd5d8; border-radius: 8px; }
.chip-ico { border: 0; background: transparent; cursor: default; padding: 0; }
.chip-ico[onclick] { cursor: pointer; }
.chip-ico.is-off { opacity: 0.28; visibility: visible; }
.chip-ico.is-new { animation: glow 1.2s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 6px #0d9488); transform: scale(1.08); } }
.app-meta .chips { margin-top: 6px; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 40; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 12px; padding: 20px; width: min(440px, 92vw); }
.modal-box .chk { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.app-card .actions .btn { font-size: 13px; padding: 8px 6px; }
.app-card .actions { flex-wrap: nowrap; }
.app-card .actions > * { flex: 1 1 0 !important; min-width: 0; margin: 0; }
.app-card .actions > .btn, .app-card .actions form .btn { width: 100%; text-align: center; }
.app-card .actions .btn { width: 100%; white-space: normal; line-height: 1.2; }
.modal-box .chk { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; }
.modal-box .chk input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--teal); }
.modal-box .chk a { margin-left: 6px; }
.doc-row { margin: 14px 0; }
.doc-row > label { display: block; font-weight: 600; margin-bottom: 6px; }
.doc-row-ctrl { display: flex; align-items: center; gap: 12px; }
.doc-row-ctrl input[type=file] { flex: 0 1 280px; max-width: 280px; }
.doc-tpl { white-space: nowrap; font-weight: 600; }
.doc-row-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.doc-row-ctrl input[type=file] { flex: 1 1 auto; max-width: none; min-width: 0; }
.doc-tpl { margin-left: auto; flex: 0 0 auto; }
.col-body { max-height: calc(3 * 248px); }
.app-card { position: relative; }
.drag-h { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #94a3b8; cursor: grab; padding: 4px; line-height: 0; touch-action: none; }
.drag-h:active { cursor: grabbing; }
.app-card.dragging { opacity: .55; }
.app-card .chips { display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.app-card .rej-meta { font-size: 11px; line-height: 1.25; flex: 0 1 118px; }
.app-card .actions.rej .btn { min-height: 34px; padding: 6px 8px; font-size: 12px; }
.emp-link { font-weight: 700; color: var(--teal-d, #0f766e); text-decoration: underline; }
.app-contact a { color: inherit; }
.modal-wide { width: min(560px, 94vw); max-height: 88vh; overflow: auto; }
.docs-ava { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 8px 0; }
.docs-check { list-style: none; padding: 0; }
.docs-check li.has::before { content: "☑ "; color: #0d9488; }
.docs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 12px 0; }
.docs-fields dt { color: #64748b; font-size: 12px; }
.docs-fields dd { margin: 0 0 8px; }
.docs-fields dd.missing { color: #94a3b8; }
.notes-box { border: 2px solid #cbd5e1; border-radius: 8px; min-height: 160px; padding: 12px; margin-top: 8px; }
.docs-check .docs-summary { margin-bottom: 14px; }
.modal-box { width: min(420px, 92vw); }
.char-count { display: block; text-align: right; font-size: 11px; color: #94a3b8; margin-top: 4px; }
textarea[name=notes] { min-height: 52px; resize: vertical; }
.notes-body { white-space: pre-wrap; margin: 8px 0 16px; line-height: 1.45; }
.app-card .rej-meta { font-size: 10px; line-height: 1.2; flex: 0 1 96px; max-width: 108px; }
.app-card .actions.rej { flex-wrap: nowrap; gap: 6px; align-items: center; }
.app-card .actions.rej form { flex: 1 1 0; min-width: 0; }
.app-card .actions.rej .btn { min-height: 32px; padding: 5px 6px; font-size: 11px; width: 100%; }
.apply-pills { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.apply-pills span { flex: 1 1 0; text-align: center; }
.app-card .rej-meta { flex: 0 0 auto; max-width: none; min-width: 92px; }
.app-card .rej-meta span { display: block; white-space: nowrap; font-size: 10px; line-height: 1.25; }
.top3-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.top3-link .crown { flex: 0 0 auto; }
.unit-head-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.top3-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: #c9a227; color: #fff !important; text-decoration: none;
  font-size: calc(16px * var(--type, 1)); font-weight: 700; letter-spacing: .02em;
  padding: calc(10px * var(--type, 1)) calc(16px * var(--type, 1)); border-radius: 10px; box-shadow: 0 2px 0 rgba(146,112,16,.28);
}
.top3-btn:hover { filter: brightness(1.06); color: #fff !important; }
@media (max-width: 720px) {
  .ho-walk-row .ho-state { margin-top: 2px; align-self: start; }

  .unit-head-main { flex-direction: column; align-items: stretch; }
  .top3-btn { justify-content: center; }
}
.top3-btn.is-off { opacity: .38; cursor: default; pointer-events: none; box-shadow: none; }
.nav-burger, .nav-dots, .drawer-close { display: none; }
.user-menu-head { display: none; }
@media (max-width: 900px) {
  .nav-burger, .nav-dots {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 4px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0;
  }
  .nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-dots { gap: 3px; }
  .nav-dots span { display: block; width: 4px; height: 4px; background: var(--ink); border-radius: 50%; }
  .user-menu-btn { display: none; }
  .drawer-close {
    display: block; position: absolute; top: 8px; right: 10px;
    border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted);
  }
  .nav-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 30;
  }
  .user-menu-list.is-open, .user-menu-list:not([hidden]) {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(84vw, 320px); min-width: 0; border: 0; border-radius: 0;
    box-shadow: -8px 0 24px rgba(0,0,0,.08); padding: 56px 0 16px; z-index: 50;
    background: #fff; pointer-events: auto;
  }
  .user-menu-head { display: block; font-weight: 700; padding: 0 20px 16px; }
  body.nav-lock { overflow: hidden; }
}
@media (min-width: 901px) {
  .nav-burger, .nav-dots, .drawer-close, .nav-mask { display: none !important; }
  .menu-tools { display: none !important; }
  .topbar { flex-direction: row; align-items: center; }
  .top-row-tools { display: flex; order: 2; width: auto; margin-left: auto; align-items: center; gap: 16px; }
  .top-row-main { order: 1; width: auto; }
  .top-row-main .brand { position: static; transform: none; }
  .user-menu-btn { display: inline-flex; }
}
.unit-idrow { display: flex; align-items: flex-start; gap: 12px; }
.unit-copy { min-width: 0; flex: 1; }
.unit-copy .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.icon-edit { display: inline-flex; color: var(--teal); margin-left: 4px; }
.link-field { position: relative; flex: 1 1 240px; min-width: 0; max-width: 480px; }
.link-field input { width: 100%; max-width: none !important; padding-right: 40px !important; }
.link-field .icon-copy {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent;
}
.unit-head-main { justify-content: flex-end; }
@media (max-width: 900px) {
  .unit-head { flex-direction: column; align-items: stretch; }
  .unit-idrow { align-items: flex-start; }
  .unit-head img { width: 72px; height: 72px; }
  .unit-head-main { width: 100%; }
  .link-field { flex: 1 1 100%; max-width: none; }
  .app-card .chips { flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
  .app-card .chips .chip-ico svg { width: 22px; height: 22px; }
}
.unit-head .linkrow { width: 100%; }
.unit-head .link-field { flex: 1 1 100%; max-width: none; width: 100%; display: block; }
.tip:hover::after { left: auto; right: 0; max-width: min(280px, calc(100vw - 24px)); width: max-content; max-width: min(280px, 72vw); }
@media (max-width: 900px) {
  .col-body { max-height: calc(3 * 210px); overflow-y: auto; }
  .unit-head .linkrow { display: block; }
  .unit-head .linkrow .link-field { margin-top: 6px; width: 100%; }
}
.unit-head .linkrow { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.unit-head .tip { position: static; }
.unit-head .tip:hover::after {
  left: 0;
  right: 0;
  top: 28px;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}
.unit-head .link-field {
  flex: 1 1 100%;
  width: 100%;
  max-width: none !important;
  position: relative;
  display: block;
}
.unit-head .link-field input {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  padding-right: 42px !important;
}
.unit-head .link-field .icon-copy {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}
.unit-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.unit-head > div { flex: none; min-width: 0; }
.unit-idrow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.unit-copy { flex: 1 1 auto; min-width: 0; }
.unit-copy h1 { overflow-wrap: anywhere; word-break: normal; }
.unit-copy .meta { display: block; }
.unit-head .top3-btn { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 720px) {
  .unit-idrow { flex-wrap: wrap; }
  .unit-head .top3-btn { width: 100%; margin-left: 0; justify-content: center; }
}
.app-card .chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.app-card .chips .chip-ico { flex: 0 0 auto; }
.app-card .chips .chip-ico svg { width: 22px; height: 22px; }
@media (min-width: 1400px) {
  .app-card .chips .chip-ico svg { width: 26px; height: 26px; }
}
.app-card .chips { width: 100%; box-sizing: border-box; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  background: var(--teal); color: #fff !important; font-weight: 700;
  font-size: calc(16px * var(--type, 1));
  padding: calc(10px * var(--type, 1)) calc(16px * var(--type, 1)); border-radius: 10px; text-decoration: none;
}
.cal-btn:hover { filter: brightness(1.06); color: #fff !important; }
.unit-idrow .cal-btn, .unit-idrow .top3-btn { margin-left: 0; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cal-head h1 { margin: 0; }
@media (max-width: 720px) {
  .cal-head { flex-direction: column; align-items: stretch; }
  .cal-head h1 { white-space: nowrap; }
  .cal-head .btn { white-space: nowrap; text-align: center; }
}

.cal-day { margin: 20px 0 8px; font-size: 16px; }
.cal-event { border-left: 6px solid var(--teal); padding: 8px 12px; margin: 0 0 8px; background: #f8fafc; border-radius: 0 8px 8px 0; display: grid; gap: 2px; }
.cal-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cal-daybox { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; padding: 8px 12px; }
.cal-win { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.slot { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.tenant-flag { border: 0; cursor: pointer; font: inherit; }
.tenant-flag.is-new { animation: glow 1.2s ease-in-out infinite; }
.form-wide { max-width: 820px; }
@media (max-width: 720px) {
  .cal-grid3 { grid-template-columns: 1fr; }
  .unit-idrow .cal-btn { width: 100%; justify-content: center; }
}
.form-wide { margin: 0 auto; }
.lab, .lab-stack { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.lab-stack input, .lab-stack select { margin-top: 4px; }
.cal-pick { margin: 0 0 16px; }
.cal-win .icon-del {
  width: 36px; height: 36px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; color: #b91c1c; font-size: 22px; line-height: 1;
}
.cal-add { margin-top: 8px; }
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 16px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 8px; overflow-x: auto; }
.week-col { min-height: 220px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.week-col h2 { font-size: 13px; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 6px; }
.cal-switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.switch { position: relative; width: 48px; height: 26px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: #e2e8f0; border-radius: 999px; cursor: pointer;
  transition: background .2s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}
.switch .slider::before {
  content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.owner-invite-btn { text-align: center !important; }
.switch-lab { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cal-win select { width: auto; min-width: 64px; }
@media (max-width: 900px) {
  .week-grid { grid-template-columns: 1fr 1fr; }
}
.cal-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.cal-wrap { max-width: 1100px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; overflow: visible; }
.week-col { min-height: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 0 8px; }
.week-col h2 {
  margin: 0 0 8px; padding: 8px 8px 6px; background: var(--teal-soft); color: var(--teal-d);
  border-radius: 12px 12px 0 0; font-size: 13px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.week-col h2 small { font-weight: 500; color: var(--muted); }
.week-col.is-today h2 { background: var(--teal); color: #fff; }
.week-col.is-today h2 small { color: #e6f4f1; }
.week-col .cal-event { margin: 0 6px 6px; font-size: 12px; }
@media (max-width: 900px) {
  .cal-grid4 { grid-template-columns: 1fr 1fr; }
  .week-grid { grid-template-columns: 1fr 1fr; }
}
.cal-sec { margin-top: 18px; }
.lab.cal-sec { margin-top: 18px; }
.lab-stack .tip { display: inline-flex; margin-left: 6px; vertical-align: middle; }
.cal-grid4 .lab-stack:nth-child(n+3) .tip:hover::after { left: auto; right: 0; }
.unit-swatches { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.unit-swatch {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink) !important;
  border: 2px solid transparent; font-weight: 600;
}
.unit-swatch.on { border-color: var(--teal-d); box-shadow: 0 0 0 1px var(--teal); }
.week-col .cal-event { border-left: 0; border-radius: 8px; padding: 6px 8px; }
.unit-swatches { max-height: 168px; overflow-y: auto; padding-right: 4px; }
.unit-swatches::-webkit-scrollbar { width: 8px; }
.unit-swatches::-webkit-scrollbar-thumb { background: #cbd5d8; border-radius: 8px; }
.slot-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 6px; padding: 0 10px 8px; }
.slot-day summary { cursor: pointer; font-weight: 700; padding: 8px 4px; list-style: none; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { margin: 0; padding: 0; border: 0; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
  display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-weight: 600;
}
.slot input:checked + span { background: var(--teal); color: #fff; border-color: var(--teal); }
@media (max-width: 600px) {
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.week-col h2 { position: relative; }
.cal-print { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: #0f766e; color: #fff; border-radius: 8px; opacity: 1; }
.cal-print:hover { background: #115e59; }
.week-col.is-today .cal-print { background: #fff; color: #0f766e; }
.day-body { display: flex; gap: 6px; min-height: 200px; padding: 0 6px 8px; }
.day-lanes { position: relative; flex-shrink: 0; min-height: 200px; }
.day-lane { position: absolute; width: 5px; border-radius: 4px; opacity: .95; }
.day-events { flex: 1; min-width: 0; }
.cal-wrap { max-width: 1480px; width: 100%; }
.week-grid { gap: 10px; }
.week-col { min-width: 0; }
.week-col .cal-event { font-size: 13px; }
.week-col .cal-event span { display: block; overflow: hidden; text-overflow: ellipsis; }
.cal-wrap { max-width: 1100px; width: 100%; }
.week-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}
.week-col { min-width: 158px; box-sizing: border-box; }
.day-events .cal-event { width: 100%; box-sizing: border-box; }
@media (max-width: 900px) {
  .week-grid { flex-wrap: nowrap; }
}
.cal-who { display: block; font-size: 13px; font-weight: 600; }
.cal-who a { color: inherit; }
.week-col .cal-event .hint { font-size: 12px; font-weight: 400; }
.slot-block { margin: 10px 0; line-height: 1.35; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; }
.admin-tools {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 16px;
}
.admin-tools input[type="search"] {
  flex: 1 1 240px; min-width: 180px; margin: 0;
}
.admin-tools select { flex: 0 0 auto; min-width: 160px; margin: 0; width: auto; }
.admin-tools .btn { width: auto; }
.page-head h1 { margin: 0; }
.client-cards { display: none; }
.client-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 12px; }
.client-card strong { display: block; margin: 0 0 4px; }
.client-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.client-acts form { margin: 0; }
.client-acts .btn { width: auto; }
@media (max-width: 800px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .btn { width: 100%; text-align: center; }
  .admin-table { display: none; }
  .client-cards { display: block; }
  .client-acts .btn { flex: 1; min-width: 30%; }
}
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.modal[hidden] { display: none !important; }
.modal-box { background: #fff; border-radius: 12px; padding: 20px; max-width: 420px; width: 100%; }
.client-card { padding: 10px 12px; margin: 0 0 8px; }
.client-card .hint { margin: 0 0 2px; font-size: 12px; }
.client-card strong { font-size: 14px; margin: 0; }
.client-card p { margin: 2px 0; font-size: 13px; }
.client-acts { margin-top: 8px; gap: 6px; }
.client-acts .btn { padding: 6px 8px; font-size: 13px; }
.login-pitch { margin: 0 0 14px; color: var(--muted); line-height: 1.4; }
.login-hero { margin: 0; }
.login-kicker {
  margin: 0 0 16px; font-weight: 800; color: var(--ink);
  line-height: 1.2; text-align: center;
}
.login-kicker-lead { display: block; font-size: 1.5em; }
.login-kicker-rest { display: block; font-size: 1.25em; margin-top: 2px; }
.login-steps { list-style: none; margin: 0 0 12px; padding: 0 0 0 10px; display: grid; gap: 10px; }
.login-steps li { display: flex; align-items: flex-start; gap: 10px; }
.login-num {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.login-steps strong { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.login-steps em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 1px; }
.login-pills { display: flex; gap: 6px; }
.login-pills span {
  flex: 1 1 0; text-align: center; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 4px; font-size: 11px; font-weight: 600; color: var(--teal-d); background: var(--teal-soft);
}
.login-reg { text-align: center; margin: 16px 0 0; }
.login-pitch { margin: 0 0 16px; line-height: 1.35; }
.login-pitch strong { display: block; color: var(--ink); font-size: 1.05rem; margin: 0 0 4px; }
.login-pitch span { display: block; color: var(--muted); }
.field label .req, sup.req { color: #c23b3b; font-size: .95em; font-weight: 700; margin-left: 3px; vertical-align: super; line-height: 0; }
.owner-invite-btn { white-space: nowrap; font-size: 13px; padding: 8px 12px; }
@media (max-width: 800px) {
  .owner-invite-btn { width: 100%; }
}
@media (max-width: 720px) {
  .unit-idrow {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .unit-head img {
    width: 64px;
    height: 52px;
    flex: 0 0 64px;
  }
  .unit-copy {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  .unit-copy h1 { font-size: 16px; }
  .unit-idrow .top3-btn,
  .unit-idrow .cal-btn {
    flex: 1 1 100%;
    width: 100%;
  }
  .unit-idrow .cal-switch {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
  }
  .unit-idrow .owner-invite-btn {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    font-size: 12px;
    padding: 6px 8px;
    white-space: nowrap;
  }
}
@media (max-width: 720px) {
  .cal-win {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  .cal-win select {
    min-width: 0;
    width: 3.4rem;
    flex: 0 0 3.4rem;
    padding: 8px 2px;
    font-size: 14px;
  }
  .cal-win .icon-del {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin-left: auto;
  }
  .cal-daybox { padding: 8px; }
}
.unit-idrow .cal-switch {
  align-items: center;
  align-self: center;
  height: 36px;
  margin: 0;
}
.unit-idrow .owner-invite-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  align-self: center;
}
.unit-idrow .cal-switch .switch { flex-shrink: 0; }
.unit-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
}
.unit-tools .cal-switch,
.unit-tools .owner-invite-btn {
  height: 36px;
  margin: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.unit-tools .owner-invite-btn { padding: 0 10px; font-size: 12px; text-align: center; }
@media (min-width: 721px) {
  .unit-tools { width: auto; flex: 0 0 auto; }
}

.slot-more-wrap{margin:12px 0 4px;text-align:center}
.slot-more{width:100%}
.slot-day[hidden]{display:none}
.slot-day summary .hint{display:inline;margin:0;font-weight:400}

.app-meta strong { display:inline-flex; align-items:center; gap:6px; }
.tenant-crown { display:inline-flex; flex:0 0 auto; line-height:0; }
.app-card .actions.is-tenant { align-items:stretch; }
.app-card .tenant-flag {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  flex:1 1 0; min-width:0; min-height:40px; padding:6px 8px;
  background:#c9a227; color:#fff; font-weight:700; font-size:12px; line-height:1.15;
  text-align:center; border-radius:10px; white-space:normal;
}
.app-card .tenant-flag .crown { width:16px; height:16px; flex:0 0 auto; }

.board-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:4px 0 24px; }
.board-wipe { display:inline-flex; align-items:center; gap:8px; margin:0; }
.wipe-apps-btn { color: #b91c1c; border-color: #fecaca; }
.wipe-apps-btn:hover { background: #fef2f2; }

.nav-acc { margin: 0 8px 6px; border-radius: 10px; overflow: hidden; }
.nav-acc.is-open { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.nav-acc-head {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; cursor: pointer; color: var(--ink);
}
.nav-acc-head:hover { background: var(--teal-soft); }
.nav-plz { display: block; font-weight: 700; color: var(--teal-d); font-size: 13px; }
.nav-acc .nav-street { display: block; font-weight: 600; color: var(--ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-acc-body { padding: 0 4px 8px 4px; }
.sidebar a.nav-sub {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 7px; border-radius: 8px; color: var(--ink); font-size: 13px;
  text-align: left;
}
.nav-ico { width: 16px; height: 16px; flex: 0 0 16px; display: block; margin: 0; }
.sidebar a.nav-sub.active, .sidebar a.nav-sub:hover { background: var(--teal-soft); color: var(--teal-d); }
.nav-sub.is-off { color: var(--muted); cursor: default; }

.wipe-tip { position: relative; }
.wipe-tip:hover::after { left: auto; right: 0; top: 22px; width: min(320px, 70vw); }

.how-help-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--teal-d);
  border-radius: 999px; padding: 6px 12px 6px 6px; font-weight: 600; cursor: pointer;
}
.how-help-btn span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.how-help-btn:hover { border-color: var(--teal); }
.help-box { max-width: 560px; max-height: min(86vh, 720px); overflow: auto; }
.help-box h3 { margin: 16px 0 8px; font-size: 14px; color: var(--teal-d); }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.help-list li { display: grid; grid-template-columns: 168px 1fr; gap: 12px; align-items: center; }
.help-list li > :first-child {
  width: 168px; min-height: 40px; justify-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; text-align: center;
}
.help-list li > div { min-width: 0; }
.help-list li strong { display: block; font-size: 13px; }
.help-list li > div span { font-size: 12px; color: var(--muted); }
.help-list .chip-ico { margin: 0 auto; }
.help-mini {
  pointer-events: none; width: 168px; max-width: 168px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px !important; line-height: 1.2; padding: 8px 10px !important; min-height: 40px;
  white-space: normal; text-align: center;
}
.help-grip { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; color: #94a3b8; }

.help-list .btn { color: #fff; background: var(--teal); border-color: var(--teal); }
.help-list .btn.ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.help-list .wipe-apps-btn { color: #b91c1c; border-color: #fecaca; background: #fff; }
.help-list .tenant-flag { color: #fff; }
.help-rb { width: 56px !important; min-height: 48px; flex-direction: column; background: #ecfdf5; border-radius: 10px; padding: 4px 6px; margin: 0 auto; }
.help-rb .rb-val, .help-rb .rb-lab { display:block; text-align:center; }
.help-rb .rb-val { font-size: 16px; color: var(--teal-d); }
.help-head-btn { pointer-events: none; width: 168px; justify-content: center; font-size: 13px; padding: 8px 10px; color:#fff !important; }
.help-switch { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.help-switch .switch { position: relative; width: 48px; height: 26px; background: var(--teal); border-radius: 999px; display: inline-block; box-shadow: inset 0 1px 3px rgba(0,0,0,.1); }
.help-switch .slider { position: absolute; top: 3px; left: 25px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.15); }

.dash-tour-dim { position: fixed; inset: 0; background: rgba(127,29,29,.18); z-index: 70; pointer-events: none; }
.dash-tour-hl {
  position: absolute; z-index: 75; pointer-events: none;
  background: rgba(225,29,72,.22); border: 2px solid #e11d48; border-radius: 12px;
  box-shadow: 0 0 0 6px rgba(225,29,72,.12);
}
.dash-tour {
  position: absolute; z-index: 80; background: #e11d48; color: #fff;
  border-radius: 14px; padding: 16px 36px 16px 18px; box-shadow: 0 12px 32px rgba(225,29,72,.35);
}
.dash-tour::before {
  content: ""; position: absolute; top: -8px; left: var(--arrow, 28px);
  transform: translateX(-50%);
  border: 8px solid transparent; border-bottom-color: #e11d48; border-top-width: 0;
}
.dash-tour p { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 700; }
.dash-tour-n {
  display: inline-block; font-size: 22px; font-weight: 800; line-height: 1; margin: 0 0 8px;
  border-bottom: 2px solid rgba(255,255,255,.7); padding-bottom: 2px;
}
.dash-tour-x {
  position: absolute; top: 8px; right: 8px; border: 0; background: transparent;
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}

.topbar, .topbar .lang, .topbar .user-menu-btn { font-size: 14px; }
.type-scale {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  margin-right:12px; color:var(--ink);
  flex: 0 0 148px; width: 148px; max-width: 148px;
  font-size: 14px !important;
}
.type-scale input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 88px !important; min-width: 88px; max-width: 88px; height: 16px;
  margin: 0; padding: 0; flex: 0 0 88px; background: transparent;
}
.type-scale input[type=range]::-webkit-slider-runnable-track {
  height: 4px; background: #d1d5db; border-radius: 99px; border: 0;
}
.type-scale input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -6px;
  border-radius: 50%; background: var(--teal); border: 0; cursor: pointer;
}
.type-scale input[type=range]::-moz-range-track {
  height: 4px; background: #d1d5db; border-radius: 99px; border: 0;
}
.type-scale input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 0; cursor: pointer;
}
.ts-a { font-weight:700; line-height:1; display:inline-block; width: 14px; text-align:center; }
.ts-a.sm { font-size:11px !important; }
.ts-a.lg { font-size:18px !important; }
.main-inner { font-size: calc(16px * var(--type, 1)); }
.how-step, .how-arrow, .how-ico { color: var(--teal); }
.app-card { font-size: calc(14px * var(--card-type, 1)); }
.app-card .app-meta strong { font-size: calc(17px * var(--card-type, 1)); }
.app-card .app-job, .app-card .app-contact { font-size: calc(13px * var(--card-type, 1)); }
.sidebar { font-size: calc(13px * var(--type, 1)); }
.nav-plz, .nav-acc .nav-street, .nav-sub { font-size: calc(13px * var(--type, 1)); }
.ava-zoom { border:0; background:none; padding:0; cursor:zoom-in; border-radius:50%; }

.tf-box { max-width: 520px; }
.tf-h { margin: 16px 0 8px; font-size: 15px; color: var(--teal-d); }
.tf-h:first-child { margin-top: 0; }
.tf-grid {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 8px 16px;
  margin: 0 0 8px;
  align-items: start;
}
.tf-grid dt { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.tf-grid dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-word; }
.tf-grid dd a { font-weight: 700; }

.ava-lightbox {
  position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:90;
  display:flex; align-items:center; justify-content:center;
}
.ava-lightbox[hidden] { display:none !important; }
.ava-circle {
  width:min(72vw, 72vh, 420px); height:min(72vw, 72vh, 420px);
  border-radius:50%; overflow:hidden; background:#111; box-shadow:0 16px 40px rgba(0,0,0,.35);
}
.ava-circle img { width:100%; height:100%; object-fit:cover; display:block; }
.ava-x {
  position:fixed; top:16px; right:18px; border:0; background:rgba(0,0,0,.45); color:#fff;
  width:36px; height:36px; border-radius:50%; font-size:22px; cursor:pointer; z-index:91;
}
.brand-h { font-size:18px; margin:24px 0 8px; }
.brand-box { margin:0 0 16px; }
.logo-stage {
  position:relative; width:100%; max-width:520px; height:200px; overflow:hidden;
  border:1px solid var(--line); border-radius:12px; background:#f8fafc; cursor:grab;
}
.logo-stage img {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  max-width:none; height:auto; width:auto; max-height:none; user-select:none; pointer-events:none;
}
.logo-tools { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin:10px 0; }
.logo-clear { display:flex; align-items:center; gap:8px; margin:8px 0 16px; }
.color-row { display:flex; align-items:center; gap:10px; margin:0 0 16px; }
.color-row input[type=color] { width:44px; height:32px; padding:0; border:1px solid var(--line); background:#fff; }
.zoom-lab { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
@media (max-width: 720px) {
  .ava-circle { width:min(92vw, 92vw); height:min(92vw, 92vw); }
}

@media (max-width: 600px) {
  .topbar { display: flex !important; align-items: center !important; }
  .top-left { margin-right: 0 !important; align-items: center; }
  .topbar > .type-scale { margin-left: auto !important; margin-right: auto !important; width: 5.4rem !important; max-width: 5.4rem; }
  .topbar > .type-scale input[type=range] { width: 3.2rem !important; min-width: 3.2rem; max-width: 3.2rem; flex-basis: 3.2rem; }
  .topbar > .lang { margin-left: 0 !important; align-items: center; }
}
.reset-row { display:flex; align-items:center; gap:8px; margin:8px 0 14px; font-size:14px; color:var(--ink); }
.reset-row input { width:16px; height:16px; margin:0; accent-color:var(--teal); flex:0 0 16px; }

#logo-zoom { accent-color: var(--teal); }
.zoom-lab input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent;
}
.zoom-lab input[type=range]::-webkit-slider-runnable-track {
  height: 4px; background: var(--teal-soft); border-radius: 99px;
}
.zoom-lab input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px;
  border-radius: 50%; background: var(--teal); border: 0; cursor: pointer;
}
.zoom-lab input[type=range]::-moz-range-track {
  height: 4px; background: var(--teal-soft); border-radius: 99px; border: 0;
}
.zoom-lab input[type=range]::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--teal);
}

.btn.is-locked, button.btn.is-locked[disabled] {
  opacity: .42; filter: grayscale(.15);
  cursor: not-allowed; pointer-events: none;
}

/* Handover slice 1 — large tap targets, mobile first */
.ho-page { max-width: 40rem; margin: 0 auto; width: 100%; }
.listing-acc.ho-acc { max-width: none !important; width: 100% !important; }
.ho-addr { margin: 0 0 .35rem; }
.ho-h2 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.ho-start { display: grid; gap: .9rem; margin: 1.2rem 0 2rem; }
.ho-kind { border: 0; padding: 0; margin: 0; display: grid; gap: .65rem; }
.ho-kind legend { font-weight: 700; margin-bottom: .2rem; }
.ho-choice { display: flex; align-items: center; gap: .75rem; min-height: 3.1rem; padding: .7rem 1rem; border: 1px solid var(--line, #d7e3e0); border-radius: 14px; background: #fff; font-weight: 600; }
.ho-choice input[type=radio] { width: 1.2rem; height: 1.2rem; }
.ho-choice .ho-file { display: none; }
.ho-choice .ho-upload { margin-left: auto; flex: none; }
.ho-choice span { flex: 1; }
.ho-back { display: flex; justify-content: flex-start; margin: 1.4rem 0 0; }
.ho-back .btn { width: auto; min-width: 7rem; }
.ho-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.4rem; flex-wrap: wrap; }
.ho-foot .ho-back { margin: 0; }
.ho-foot .ho-next { flex: 1;  margin-left: auto; display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.ho-foot .btn, .ho-foot .ho-cta { width: auto; }
.ho-compare { border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 14px; padding: .8rem; margin: 0 0 1rem; }
.ho-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .5rem 0 1rem; }
.ho-photos img, .ho-zoom img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; background: #e2e8f0; display: block; }
.ho-zoom { border: 0; padding: 0; background: transparent; display: block; width: 100%; cursor: zoom-in; }
.ho-cam-form { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 .8rem; }
.ho-cam { position: relative; width: 3.4rem; height: 3.4rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--teal-d); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ho-cam svg { width: 1.7rem; height: 1.7rem; }
.ho-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ho-cam-preview { width: 4.5rem; height: 3.4rem; object-fit: cover; border-radius: 10px; }
.ho-shot-preview { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px; background: #e2e8f0; }
.ho-shot-note { display: grid; gap: .35rem; margin: .8rem 0 0; font-weight: 600; }
.ho-shot-note textarea { min-height: 9rem; font: inherit; font-weight: 400; }
#ho-ai-indicator, #me-ai-indicator { display: inline-block; }
#ho-ai-indicator.spinning, #me-ai-indicator.spinning { animation: ho-spin 0.8s linear infinite; transform-origin: center center; }
@keyframes ho-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ho-meters { margin-top: .35rem; }
.ho-meters .ho-shot { min-width: 0; }
.ho-meter-row .ho-zoom { width: 4.6rem; flex: none; }
.ho-meter-row .ho-zoom img { height: 3.4rem; }
.ho-light { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border: 0; padding: 0; background: #0f172a; }
.ho-light[open] { display: flex; flex-direction: column; overflow: hidden; }
.ho-light:not([open]) { display: none; }
.ho-light-foot { flex: none; background: #0f172a; color: #f8fafc; }
.ho-light-line { margin: 0; font-size: .92rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-light-line:empty { display: none; }
.ho-light-meta { flex: 1; min-width: 0; }
.ho-light-body { flex: 1; min-height: 0; overflow: auto; }
.ho-light img { width: 100%; max-width: 100%; height: auto; object-fit: contain; background: #0f172a; display: block; }
.ho-light-note { margin: .15rem 0 0; color: #f8fafc; white-space: pre-wrap; line-height: 1.35; max-height: 4.6rem; overflow: auto; }
.ho-light-note:empty { display: none; }
.ho-shot-actions { display: flex; gap: .4rem; margin-left: auto; }
.ho-light-foot { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .65rem 1rem max(.7rem, env(safe-area-inset-bottom)); }
.ho-light-foot .btn { flex: none; }
.ho-meter-lines { display: flex; align-items: stretch; gap: .35rem; min-width: 0; }
.ho-meter-lines .ho-trash { width: 2.65rem; min-width: 2.65rem; height: 2.65rem; min-height: 2.65rem; align-self: center; border-radius: 10px; padding: 0; }
.ho-meter-lines .ho-trash svg { width: 1.25rem; height: 1.25rem; }
.ho-del-foot { justify-content: space-between; }
.ho-meteredit { width: min(640px, calc(100vw - 1.5rem)) !important; }
@media (min-width: 768px) { .ho-meteredit { width: min(640px, calc(100vw - 4rem)) !important; } }
.ho-pop-ask[open] { display: flex; }
@media (max-width: 720px) {
  .ho-pop-ask[open]:not(.ho-meteredit) {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: min(18rem, calc(100vw - 2rem)) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background: #fff !important;
  }
  .ho-pop-ask .ho-pop-bar { min-height: 0; font-size: 1rem; padding: .9rem 1rem .4rem; border-bottom: 0; }
  .ho-pop-ask .ho-pop-foot { position: static; }
}
.ho-meter-vals { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.ho-meter-vals .ho-shot-meta { display: block; line-height: 1.25; }
.ho-meters .ho-shot { gap: .3rem; }
.ho-walk-main a { color: inherit; }
.ho-room-link { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--teal-d); text-align: left; cursor: pointer; text-decoration: underline; }
.ho-pop-open { display: inline; border: 0; background: transparent; padding: 0; margin: 0 .35rem 0 0; color: var(--teal); font-weight: 700; text-decoration: underline; cursor: pointer; }
.ho-pop { width: min(640px, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); border: 0; border-radius: 16px; padding: 0; overflow: hidden; background: #fff; }
.ho-pop[open] { display: flex; flex-direction: column; }
.ho-pop:not([open]) { display: none; }
.ho-pop::backdrop { background: rgba(15, 23, 42, .45); }
.ho-pop-sheet { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #fff; }
.ho-pop-bar { display: flex; align-items: center; gap: .5rem; padding: 1rem 1rem .4rem; flex: none; background: #fff; color: #0f172a; }
.ho-pop-bar strong { line-height: 1.3; color: #0f172a; }
.ho-pop-body { overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 1rem .5rem; flex: 1 1 auto; min-height: 0; }
.ho-pop-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid #e2e8f0; background: #fff; }
.ho-pop-foot .btn { width: auto; }
.ho-pop-foot-end { justify-content: flex-end; }
.ho-pop.ho-pop-ask,
.ho-pop.ho-pop-ask[open] {
  position: fixed !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(22rem, calc(100vw - 2rem)) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.ho-pop-ask .ho-pop-sheet { flex: 0 0 auto !important; height: auto !important; min-height: 0 !important; border-radius: 16px; }
.ho-pop-ask .ho-pop-bar { min-height: 0 !important; font-size: 1rem; padding: .85rem 1rem .15rem; border-bottom: 0; position: static; }
.ho-pop-ask .ho-pop-foot { position: static !important; border-top: 0; padding: .65rem 1rem .9rem; }
@media (max-width: 720px) {
  .ho-pop[open] {
    position: fixed !important;
    inset: auto !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100svh !important;
    max-height: 100svh !important;
    margin: 0 !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 12px 10px 16px !important;
  }
  .ho-pop-sheet {
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  }
  .ho-pop-bar {
    padding: 1rem 1rem .8rem;
    min-height: 3.5rem;
    font-size: 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .ho-pop-foot {
    padding: .9rem 1rem 1rem;
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}
#send-ask.ho-pop[open] {
  height: fit-content !important;
  max-height: none !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 520px !important;
  max-width: 96% !important;
  padding: 0 !important;
  margin: 0 !important;
}
#send-ask .ho-pop-sheet { width: 100% !important; padding: 0 !important; margin: 0 !important; height: auto !important; }
#send-ask .ho-pop-foot { padding: 8px 12px 16px !important; margin: 0 !important; min-height: 0 !important; border-top: 0 !important; }
#send-ask .ho-pop-sheet { width: 100% !important; padding: 0 !important; margin: 0 !important; }
#send-ask .ho-pop-sheet {
  flex: 0 0 auto !important;
  height: auto !important;
}
.ho-meter-add { display: grid; gap: .4rem; margin: .4rem 0 .8rem; }
.ho-defects { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .6rem; }
.ho-defects label { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .6rem; background: #fff; font-size: .85rem; }
.ho-def-hint { margin: 0 0 .45rem; }
.ho-def-groups, .ho-def-subs, .ho-def-picked { display: flex; flex-wrap: wrap; gap: .35rem; }
.ho-def-groups { margin-bottom: .45rem; }
.ho-def-group { flex: 0 1 auto; min-height: 2.35rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .25rem .5rem; font: inherit; font-size: .82rem; font-weight: 700; color: #0f172a; } .ho-def-kind { flex: 0 1 auto; min-height: 2.35rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .25rem .5rem; font: inherit; font-size: .82rem; font-weight: 400; color: #0f172a; }
.ho-def-group.is-on, .ho-def-kind.is-on { background: var(--teal); color: #fff; border-color: var(--teal); }
.ho-def-subs { margin: 0 0 .55rem; padding: .45rem; border-radius: 12px; background: #f4f7f6; }
.ho-def-subs[hidden] { display: none !important; }
.ho-def-picked { margin-top: .15rem; }
.ho-def-picked:empty { display: none; }
.ho-def-tag { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.2rem; border-radius: 999px; background: var(--teal-soft); color: #0f172a; padding: .2rem .7rem; font-size: .85rem; }
.ho-def-tag input { position: absolute; opacity: 0; pointer-events: none; }
.ho-shot { margin: 0; display: grid; gap: .35rem; }
.ho-shot { align-items: start; }
.ho-shot-frame { position: relative; align-self: start; width: 100%; height: auto; }
.ho-shot-frame .ho-zoom { display: block; width: 100%; line-height: 0; }
.ho-shot-del { position: absolute; right: .28rem; bottom: .28rem; z-index: 2; margin: 0; }
.ho-shot-del .ho-trash { width: 1.7rem; min-width: 1.7rem; height: 1.7rem; min-height: 1.7rem; padding: 0; border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(15,23,42,.18); }
.ho-shot-del .ho-trash svg { width: .95rem; height: .95rem; }

.ho-shot form { margin: 0; }
.ho-shot-row { display: flex; align-items: center; justify-content: space-between; gap: .35rem; min-width: 0; min-height: 1.7rem; }
.ho-shot-row .hint, .ho-shot-meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; color: #334155; font-size: .78rem; line-height: 1.2; }
.ho-trash { color: #b91c1c; }
.ho-mark-wrap { position: relative; }
.ho-mark-canvas { width: 100%; height: auto; border-radius: 10px; touch-action: none; background: #fff; display: block; }
.ho-mark-undo { position: absolute; right: .45rem; bottom: .45rem; z-index: 2; min-height: 2.4rem; padding: .35rem .7rem; background: rgba(255,255,255,.92); }
.ho-shot-row-end { justify-content: flex-end; }
.ho-photos .ho-shot-meta { display: block; margin: .15rem 0 0; color: #334155; }
.ho-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ho-actions .btn { min-height: 3rem; flex: 1; }
.ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ho-list a { display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--line, #d7e3e0); border-radius: 14px; background: #fff; text-decoration: none; color: inherit; }
.ho-list .muted { color: #64748b; font-size: .9rem; }
.ho-warn { background: #fef3c7; color: #92400e; }
.ho-form .field { margin-bottom: .85rem; }
@media (min-width: 720px) {
  .ho-cta { width: auto; }
  .ho-actions .btn { flex: none; }
}

.ho-h3 { font-size: 1rem; margin: 0; }
.ho-sec-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .4rem 0 .5rem; }
.ho-sec-head .ho-cam-form { margin: 0; }
.ho-head-cam { position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--teal-d); font-weight: 700; cursor: pointer; }
.ho-head-cam svg { width: 1.25rem; height: 1.25rem; }
.ho-head-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ho-allok { margin: .4rem 0 .8rem; }
.ho-ok { background: #0f766e; color: #fff; }
.ho-room.is-ok { border-color: #99f6e4; background: #f0fdfa; }
.ho-rooms { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.ho-room { border: 1px solid var(--line,#d7e3e0); border-radius: 14px; padding: .7rem; background: #fff; display: grid; gap: .45rem; }
.ho-room-name { display: flex; gap: .4rem; }
.ho-room-name input { flex: 1; min-height: 2.8rem; border-radius: 12px; border: 1px solid var(--line,#d7e3e0); padding: 0 .7rem; }
.ho-room-acts { display: flex; flex-wrap: wrap; gap: .35rem; }
.ho-room-acts .btn { min-height: 2.8rem; }
.ho-cat { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ho-chip { min-height: 2.8rem; }
.ho-custom { display: grid; gap: .5rem; }
@media (min-width: 720px) {
  .ho-custom { grid-template-columns: 1fr auto; align-items: end; }
}

.ho-acc { border: 1px solid var(--line,#d7e3e0); border-radius: 16px; background: #fff; padding: 0 1rem 1rem; margin: 1rem 0; overflow: hidden; max-width: 100%; box-sizing: border-box; }
.ho-acc summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; padding: 1rem 0 .6rem; }
.ho-acc[open] > summary { background: var(--teal-soft, #e6f4f1); margin: 0 -1rem 0; padding: 1rem 1rem .6rem; border-radius: 16px 16px 0 0; }
.ho-acc summary::-webkit-details-marker { display: none; }
.ho-acc summary::after { content: "▾"; float: right; color: #0f766e; }
.ho-acc:not([open]) summary::after { content: "▸"; }
.ho-check { display: flex; align-items: center; gap: .6rem; min-height: 2.8rem; margin: .4rem 0 1rem; font-weight: 600; }
.ho-check input { width: 1.15rem; height: 1.15rem; }

.ho-two { display: grid; gap: .6rem; }
.ho-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .6rem 0 1rem; }
.ho-steps li { padding: .35rem .6rem; border-radius: 999px; background: #f1f5f9; font-size: .85rem; }
.ho-steps li.is-now { background: #ccfbf1; font-weight: 700; }
.ho-done { margin: .35rem 0; }
.ho-done a { margin-left: .5rem; }
.ho-source { margin: .5rem 0; }
.ho-file { display: grid; gap: .35rem; font-weight: 600; }
@media (min-width: 720px) { .ho-two { grid-template-columns: 1fr 1fr; } }

.ho-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: 1.4rem; }
.ho-head h1 { margin: 0; }
/* Master icon class - consistent across all pages */
.ho-icon, a.ho-icon, button.ho-icon { 
  position: relative !important; 
  width: 2.2rem !important; 
  height: 2.2rem !important; 
  min-width: 2.2rem !important; 
  min-height: 2.2rem !important; 
  border: 1px solid #cbd5e1 !important; 
  border-radius: 10px !important; 
  background: #fff !important; 
  color: var(--teal-d) !important; 
  display: inline-flex !important; 
  align-items: center !important; 
  justify-content: center !important; 
  cursor: pointer !important; 
  text-decoration: none !important; 
  padding: 0 !important; 
  box-sizing: border-box !important; 
}
.ho-icon svg, a.ho-icon svg, button.ho-icon svg { width: 1.1rem !important; height: 1.1rem !important; pointer-events: none !important; }
.ho-icon:hover, a.ho-icon:hover, button.ho-icon:hover { border-color: var(--teal) !important; }
.ho-icon input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ho-walk-acts { display: flex; align-items: center; gap: .35rem; grid-area: acts; }
.ho-walk-acts .ho-cam-form { margin: 0; }
.ho-walk-acts .ho-icon,
.ho-done-btn { box-sizing: border-box; height: 2.65rem; min-height: 2.65rem; }
.ho-done-form { grid-area: done; display: flex; align-items: stretch; justify-content: flex-end; margin: 0; }
.ho-done-btn { border: 1px solid #e2e8f0; background: #f8fafc; color: #94a3b8; border-radius: 12px; width: 100%; padding: 0 .7rem; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ho-done-btn.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ho-walk-row { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "state main grip" "state acts done"; gap: .3rem .4rem; align-items: center; padding: .65rem .45rem .65rem .6rem; touch-action: pan-y; min-height: 5.4rem; }
.ho-walk-row.is-open { background: #fff; box-shadow: inset 4px 0 0 #d6d3d1; }
.ho-walk-row.is-ok { background: var(--teal-soft); box-shadow: inset 4px 0 0 var(--teal); border-color: var(--teal-soft); }
.ho-state { width: 2.4rem; height: 2.4rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid #d6d3d1; color: transparent; background: #fff; flex: none; align-self: start; margin-top: 4px; }
.ho-state svg { width: 1.3rem; height: 1.3rem; }
.ho-walk-row.is-open .ho-state { background: #f8fafc; border-color: #cbd5e1; color: #94a3b8; }
.ho-walk-row.is-ok .ho-state { border-color: var(--teal); background: var(--teal); color: #fff; }
.ho-walk-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .05rem; }
.ho-room-link { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; }
.ho-details-label { color: var(--muted, #64748b); font-size: .75rem; font-weight: 600; line-height: 1.1; }
.ho-walk-main .hint { font-size: .75rem; line-height: 1.2; }
.ho-walk-row .ho-grip { grid-area: grip; justify-self: end; width: 2.15rem; height: 2.15rem; min-width: 2.15rem; min-height: 2.15rem; border: 1px solid #cbd5e1; background: #e2e8f0; border-radius: 8px; color: #334155; touch-action: none; cursor: grab; display: flex; align-items: center; justify-content: center; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ho-walk-row .ho-grip svg { width: 13px; height: 13px; pointer-events: none; }
.ho-walk-row .ho-grip:active { cursor: grabbing; background: #cbd5e1; }
.ho-walk-row.dragging { opacity: 1; z-index: 4; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .2); }
.ho-walk-row form { margin: 0; }
html.ho-dragging, html.ho-dragging body { overflow: hidden !important; touch-action: none; overscroll-behavior: none; }
.ho-pad { margin: 0 0 1.2rem; }
.ho-canvas { width: 100%; height: 180px; border: 1px dashed #94a3b8; border-radius: 14px; background: #fff; touch-action: none; display: block; }
.ho-list li { display: flex; gap: .5rem; align-items: center; }
.ho-list li a:first-child { flex: 1; }
@media (max-width: 720px) {
  .ho-walk-row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; grid-template-areas: "state main grip" "state acts done"; padding: .55rem .35rem .55rem .45rem; }
  .ho-state { grid-area: state; align-self: center; }
  .ho-walk-main { grid-area: main; align-self: center; }
  .ho-walk-acts { grid-area: acts; }
  .ho-done-form { grid-area: done; }
  .ho-walk-acts .ho-icon { width: 2.65rem; min-width: 2.65rem; }
}

.ho-note-form textarea { min-height: 3.4rem; height: 3.4rem; resize: vertical; padding-top: .85rem; }

.ho-keys { margin: .8rem 0 1.2rem; }
.ho-key-card { padding: .55rem .4rem .55rem .5rem; }
.ho-key-card .ho-ok-form { grid-area: done; justify-self: end; }
.ho-key-list { margin: 0 0 .6rem; padding-left: 1.1rem; }

.ho-key-addlink { border: 0; background: none; color: var(--teal-d); font-weight: 700; padding: .2rem 0 .6rem; text-decoration: underline; }
.ho-key-entry + #ho-keyshot .ho-pop-bar { margin: 0; }

.ho-key-addbtn { display: block; margin-left: auto; min-height: 2.2rem; padding: .25rem .7rem; font-size: .85rem; margin-top: .15rem; margin-bottom: .4rem; }

#ho-keyshot .ho-pop-bar.ho-sec-head { width: 100%; }
#ho-keyshot .ho-head-cam { flex: 0 0 auto; white-space: nowrap; font-size: .82rem; min-height: 2.4rem; padding: 0 .6rem; }
#ho-keyshot .ho-key-addbtn { display: flex; margin-left: auto; width: auto; }

.ho-archive { margin-top: 1.2rem; padding: 1.1rem 1rem 1.2rem; display: grid; gap: .9rem; }
.ho-archive-state { margin: 0; font-weight: 650; }
.ho-archive .btn { width: auto; justify-self: start; }

.ho-list .ho-cardline { display: flex; align-items: center; gap: .6rem; }
.ho-cardacts { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.ho-cardacts .btn { width: auto; min-height: 2.4rem; padding: .3rem .7rem; }
.ho-cardacts .ho-trash { width: 2.2rem; min-width: 2.2rem; height: 2.2rem; min-height: 2.2rem; }

.ho-listcard { display: flex; align-items: center; gap: .45rem; padding: .7rem .7rem .7rem .9rem; border: 1px solid var(--line, #d7e3e0); border-radius: 14px; background: #fff; }
.ho-listcard a:first-child { flex: 1; border: 0; padding: 0; background: none; }
.ho-listcard .btn { width: auto; min-height: 2.3rem; padding: .25rem .65rem; }
.ho-listcard .ho-icon { width: 2.2rem !important; min-width: 2.2rem !important; height: 2.2rem !important; min-height: 2.2rem !important; border: 1px solid #cbd5e1 !important; border-radius: 10px !important; background: #fff !important; }

.ho-kind { display: inline-flex; align-items: center; gap: .45rem; }
.ho-kind-icon { width: 1.7rem; height: 1.7rem; color: var(--teal-d); flex: none; }
.ho-kind-icon.is-sm { width: .95rem; height: .95rem; }

.ho-draftbox { margin: 1rem 0 1.2rem; padding: .85rem .85rem .95rem; border-radius: 16px; background: var(--teal-soft); }
.ho-draftbox .ho-h2 { margin-top: 0; }
.ho-draftbox .ho-listcard { background: #fff; }

.ho-overview { display: flex; flex-direction: column; min-height: calc(100dvh - 5.6rem); }
.ho-archscroll { flex: 1; min-height: 8rem; overflow: auto; -webkit-overflow-scrolling: touch; }

.persons { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; margin: .35rem 0 .85rem; padding: .55rem .7rem; border-radius: 12px; background: #f0fdfa; }
.persons span { font-weight: 400; font-size: 14px; }
.persons-step { display: flex; align-items: center; gap: .35rem; }
.persons-step input { width: 3rem; text-align: center; min-height: 2.6rem; border: 1px solid var(--line); border-radius: 10px; }

.chip-grp { display: inline-flex; align-items: center; gap: .55rem; }
.chip-grp + .chip-grp { margin-left: auto; }
.app-card .chips { justify-content: flex-start; gap: 0; width: 100%; }
.app-card .chip-ico svg { width: 30px; height: 30px; }
.app-card .chips .chip-n { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--teal); background: #fff; color: var(--teal-d); font-weight: 750; font-size: 1.05rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; opacity: 1; }

@media (max-width: 640px) {
  body.public.apply-page .row { flex-wrap: wrap; }
  body.public.apply-page .row > .field { flex: 1 1 calc(50% - 8px); min-width: 8.5rem; }
  body.public.apply-page .addr-row > .field.grow,
  body.public.apply-page .row > .field:has(input[name=income]),
  body.public.apply-page .row > .field:has(input[name=employer_url]) { flex: 1 1 100%; }
  body.public.apply-page .field label { white-space: normal; line-height: 1.2; }
}
.apply-photo { margin-top: 1.15rem; flex-direction: row; align-items: center; gap: .7rem; }
.apply-photo .hint { margin: 0; width: auto; font-size: 14px; }
.photo-ava img[hidden], .photo-ava svg[hidden] { display: none !important; }
.photo-ava { position: relative; display: block; width: 64px; height: 64px; cursor: pointer; }
.photo-ava input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.photo-ava .app-ava { width: 64px; height: 64px; position: absolute; inset: 0; }
.photo-ava img { display: none; }
.photo-ava.is-set img { display: block; }
.photo-ava.is-set svg { display: none; }
.photo-pick { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.7rem; padding: 0 .85rem; border: 1px dashed var(--teal); border-radius: 12px; color: var(--teal-d); font-weight: 700; background: #f4fbfa; cursor: pointer; }
.photo-pick svg { width: 1.2rem; height: 1.2rem; }
.photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.app-card .chips .chip-n.is-off { opacity: .28; border-color: var(--teal); }

.chip-fill svg path { fill: #fff; }

.chip-grp > button.chip-ico { margin-left: .45rem; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.chip-grp > button.chip-ico svg { display: block; margin: auto; }
.app-card .chips .chip-grp { padding: 2px 8px; align-items: center; justify-content: center; }

.app-card .chips .chip-grp + .chip-grp { width: 58px; min-width: 58px; height: 34px; padding: 0; border-radius: 12px; background: var(--teal-soft); display: inline-flex; align-items: center; justify-content: center; }
.app-card .chips .chip-grp + .chip-grp .chip-ico { margin: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.app-card .chips .chip-grp + .chip-grp svg { width: 22px; height: 22px; display: block; }

.chip-grp .chip-ico:not(.is-off):not(.chip-n) svg :is(path, rect, circle, ellipse) { fill: #fff; }

.cal-wrap { display: flex; flex-direction: column; max-width: none; min-height: calc(100dvh - 132px); max-height: calc(100dvh - 118px); }
.cal-wrap .week-grid { flex: 1; min-height: 0; align-items: stretch; }
.cal-wrap .week-col { display: flex; flex-direction: column; height: 100%; min-height: 0; max-height: 100%; }
.cal-wrap .week-col .day-body { flex: 1; min-height: 0; overflow-y: auto; }
@media (max-height: 700px) {
  .cal-wrap { min-height: 520px; max-height: none; }
  .cal-wrap .week-col { min-height: 420px; }
}

.cal-wrap .week-grid { align-items: stretch; }
.cal-wrap .week-col { height: auto; align-self: stretch; }
.cal-wrap .day-body { overflow: hidden; }
.cal-wrap .day-events { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.cal-wrap .cal-row { display: flex; gap: 4px; margin: 0 6px 6px; }
.cal-wrap .cal-row .cal-event { position: static; flex: 1; width: auto; height: auto; min-width: 0; margin: 0; overflow: visible; }

.cal-event .cal-who, .cal-event .hint { font-size: 11px; }
.cal-event.is-multi .cal-who + .cal-who { margin-top: 4px; }

.cal-time { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-time-actions { display: flex; gap: 8px; margin-left: auto; }
.cal-time-actions form { margin: 0; }
.cal-cancel { border: 0; background: transparent; color: #9a3412; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }

.cal-place { display: block; margin: 2px 0 8px; }


.ho-start.ho-two { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; margin: 1.2rem 0 1.6rem; }
.ho-start.ho-two form { display: block; width: 100%; margin: 0; }
.ho-start-btn { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; text-align: center; min-height: 58px; padding: 14px 10px; font-size: 1.15rem; font-weight: 700; background: var(--teal); color: #fff; }
.ho-start-btn:hover { background: var(--teal-d); color: #fff; }

.ho-party-note { background: var(--teal-soft); color: #134e4a; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.ho-parties { display: grid; gap: 12px; }
.ho-party { border: 1px solid #dbe7e4; border-radius: 12px; padding: 12px 14px 4px; background: #fff; }
.ho-party .ho-h3 { margin: 0 0 8px; }
.ho-party .lab-stack { margin-bottom: 10px; }

.card.ho-walk-row.ho-key-card { background: #ccfbf1; border: 2px solid #0f766e; box-shadow: none; }
.card.ho-walk-row.ho-key-card.is-open { background: #ccfbf1; box-shadow: none; }
.card.ho-walk-row.ho-key-card .ho-state { background: var(--teal); border-color: var(--teal); color: #fff; }
.ho-key-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.ho-keys { margin-top: 16px; }

.card.ho-walk-row.ho-key-card, .card.ho-walk-row.ho-key-card.is-open { border: 1px solid #e7e5e4; box-shadow: none; }
.card.ho-walk-row.ho-key-card.is-open .ho-state { background: #f8fafc; border-color: #cbd5e1; color: #94a3b8; }

.card.ho-walk-row.ho-key-card,
.card.ho-walk-row.ho-key-card.is-open,
.card.ho-walk-row.ho-key-card.is-ok { background: #fff; border: 1px dashed var(--teal); box-shadow: none; }

.ho-status { display: flex; align-items: center; gap: 6px; }
.ho-marks { display: inline-flex; align-items: center; gap: 4px; color: #94a3b8; }
.ho-marks svg { width: 1.35em; height: 1.35em; display: block; }

.ho-top { margin: 0; line-height: 1.25; }
.ho-top + .ho-top { margin-top: 1px; }
@media (max-width: 900px) { .ho-page { margin-top: -4px; } }

.ho-page .ho-head { margin-top: .9rem; }

@media (max-width: 900px) {
  .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; }
  .main { padding-bottom: 108px; }
  .ho-foot { position: fixed; left: 0; right: 0; bottom: calc(36px + env(safe-area-inset-bottom)); z-index: 24; margin: 0; padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); }
}

.ho-meter-mail { margin-top: 6px; }
.ho-meter-mailform textarea { min-height: 64px; }

.ho-meter-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; }
.ho-meter-card .ho-shot-frame { width: 92px; }
.ho-meter-card .ho-meter-lines, .ho-meter-card .ho-shot-row, .ho-meter-card .ho-meter-mail { grid-column: 2; }
.ho-meter-card .ho-shot-meta { display: block; white-space: normal; }

.ho-meters { display: flex; flex-direction: column; gap: 12px; }
.ho-meters .ho-meter-card { width: 100%; grid-template-columns: 110px minmax(0, 1fr); }
.ho-meters .ho-meter-mail { width: auto; justify-self: start; white-space: nowrap; }

.ho-photos.ho-meters { display: flex; flex-direction: column; gap: 12px; }
.ho-photos.ho-meters .ho-meter-card { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; }
.ho-photos.ho-meters .ho-meter-photo { width: 140px; }
.ho-photos.ho-meters .ho-meter-photo img { width: 140px; height: 140px; object-fit: cover; }
.ho-photos.ho-meters .ho-meter-send { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ho-photos.ho-meters .ho-meter-mail { white-space: nowrap; }

.ho-photos.ho-meters .ho-meter-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ho-photos.ho-meters .ho-meter-send { align-items: center; text-align: center; }

.ho-photos.ho-meters .ho-meter-card { align-items: center; padding: 8px 0; border-bottom: 1px solid #e7e5e4; }
.ho-photos.ho-meters .ho-meter-send { min-width: 9rem; }

.ho-photos.ho-meters .ho-meter-send { align-items: stretch; text-align: left; }
.ho-photos.ho-meters .ho-meter-mail { align-self: center; }

.ho-photos.ho-meters .ho-meter-card { grid-template-columns: 140px minmax(7.5rem, 1fr) minmax(11rem, 14rem); }
.ho-photos.ho-meters .ho-meter-lines { grid-column: 2; min-width: 0; }
.ho-photos.ho-meters .ho-meter-send { grid-column: 3; min-width: 0; max-width: 14rem; }
.ho-photos.ho-meters .ho-meter-send .ho-shot-meta { overflow-wrap: anywhere; }

.ho-photos.ho-meters .ho-meter-photo { position: relative; }
.ho-photos.ho-meters .ho-meter-lines .ho-shot-meta { white-space: normal; overflow: visible; text-overflow: unset; }
.ho-photos.ho-meters .ho-meter-card { grid-template-columns: 140px minmax(9rem, 1fr) minmax(11rem, 14rem); }

.ho-photos.ho-meters .ho-meter-photo .ho-shot-frame { width: 140px; position: relative; }
.ho-photos.ho-meters .ho-shot-del { right: .28rem; left: auto; }
.ho-meter-foot-r { display: flex; gap: 8px; margin-left: auto; }
.ho-mail-ro { margin: 0 0 6px; }

.ho-mail-ro { text-align: left; }
.ho-mail-ro strong { margin-right: .35rem; }
.ho-meter-del { margin: 6px 0 0; }
.ho-meter-delbtn { min-height: 36px; padding: 0 10px; }
@media (max-width: 720px) {
  .ho-photos.ho-meters .ho-meter-card { grid-template-columns: 110px minmax(0, 1fr); }
  .ho-photos.ho-meters .ho-meter-photo, .ho-photos.ho-meters .ho-meter-photo .ho-shot-frame, .ho-photos.ho-meters .ho-meter-photo img { width: 110px; height: 110px; }
  .ho-photos.ho-meters .ho-meter-send { grid-column: 1 / -1; max-width: none; }
}

.ho-meter-kind { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ho-meter-del { margin: 0; }
.ho-meter-del .ho-trash { width: 2rem; min-width: 2rem; height: 2rem; min-height: 2rem; }
.ho-photos.ho-meters .ho-meter-card { align-items: center; }
.ho-photos.ho-meters .ho-meter-send .btn { width: auto; }
@media (max-width: 720px) {
  .ho-photos.ho-meters .ho-meter-card { align-items: start; gap: 10px; }
  .ho-photos.ho-meters .ho-meter-send { align-items: flex-start; padding-top: 4px; }
}

.ho-foot { display: flex; width: 100%; gap: 8px; align-items: center; justify-content: space-between; position: static; flex-wrap: nowrap; }
.ho-foot .ho-back { margin: 0; }
.ho-foot .ho-back .btn { height: 44px !important; min-height: 44px !important; max-height: 44px !important; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; box-sizing: border-box; }
.ho-foot .ho-right { display: flex; gap: 8px; align-items: center; }
.ho-foot .ho-preview { width: 44px !important; min-width: 44px !important; max-width: 44px !important; height: 44px !important; min-height: 44px !important; max-height: 44px !important; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; aspect-ratio: 1; border-radius: 8px; }
.ho-foot .ho-next { margin: 0; }
.ho-foot .ho-next .btn, .ho-foot .ho-next .ho-cta { width: auto; min-width: 160px; height: 44px !important; min-height: 44px !important; max-height: 44px !important; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; box-sizing: border-box; }

.app-meta { position: relative; }
.app-meta strong[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: 1.3em;
  z-index: 8;
  max-width: 260px;
  white-space: normal;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
}

.app-name-tip { position: fixed; white-space: pre-line; z-index: 80; max-width: 280px; background: var(--teal-soft); color: var(--teal-d); font-size: 12px; line-height: 1.35; padding: 6px 8px; border-radius: 8px; pointer-events: none; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.app-name-tip[hidden] { display: none; }

.app-name-tip { display: none; }
.app-name-tip.is-on { display: block; z-index: 200; }

#notes-modal .form-actions { display: flex; justify-content: flex-end; }

.ho-canvas { height: 320px; }
@media (max-width: 700px) {
  .ho-canvas { height: 180px; }
}
@media (orientation: landscape) and (max-width: 1200px) {
  .ho-canvas { height: 180px; }
}

.konto-tabs { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.konto-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.konto-tabs a.is-on { background: var(--teal); color: #fff; border-color: var(--teal); }
.konto-share, .konto-invite { display: grid; gap: 8px; margin-bottom: 18px; }
.konto-assign { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.konto-assign span { flex: 1; min-width: 180px; }

.konto-assign select { max-width: 280px; }
.konto-invite .btn, .konto-share .btn { width: auto; }

.konto-share .form-actions, .konto-invite .form-actions { display: flex; justify-content: flex-end; }
.konto-share .form-actions .btn, .konto-invite .form-actions .btn { width: auto; }
.konto-switch { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.konto-switch > span { flex: 1; font-size: 14px; }
.konto-switch > span:last-child { text-align: right; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 48px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; background: #e5e7eb; border-radius: 999px; }
.switch span:before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span:before { transform: translateX(20px); }
@media (max-width: 700px) {
  .konto-switch { flex-wrap: wrap; justify-content: center; }
  .konto-switch > span { flex: 1 1 100%; text-align: center; }
  .konto-switch > span:first-child { order: 2; }
  .switch { order: 1; }
  .konto-switch > span:last-child { order: 0; }
}

.konto-switch .switch span { background: var(--teal); }
.konto-switch .switch input:checked + span { background: #e5e7eb; }
.konto-switch .switch span:before { left: auto; right: 3px; }
.konto-switch .switch input:checked + span:before { transform: translateX(-20px); }
@media (max-width: 700px) {
  .konto-switch > span:first-child { order: 0; }
  .konto-switch .switch { order: 1; }
  .konto-switch > span:last-child { order: 2; }
}

.konto-opt { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; line-height: 1.35; }
.konto-opt input { margin-top: 3px; }

.konto-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 420px; margin: 0 0 6px; }
.konto-opt span { text-align: left; }
.konto-opt input { margin: 0; }

.konto-opt { display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; max-width: none; }
.konto-opt input { order: -1; margin-top: 3px; flex: 0 0 auto; }

.konto-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 8px; align-items: center; margin: 8px 0 12px; }
.konto-grid span { text-align: left; }
.konto-grid label { text-align: left; }
.konto-grid input { margin: 0; }

.konto-assign { display: grid; grid-template-columns: 1fr; gap: 8px; }
.konto-assign span, .konto-assign select { width: 100%; max-width: none; min-width: 0; }
.konto-assign button { justify-self: end; }

.konto-assign { grid-template-columns: 1fr auto; align-items: center; }
.konto-assign span { grid-column: 1 / -1; }
.konto-assign select { width: auto; min-width: 0; grid-column: auto; }
.konto-assign button { justify-self: end; grid-column: auto; }

.konto-staff .ho-listcard { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; width: 100%; gap: 8px; }
.konto-staff .ho-listcard > div { display: contents; }
.konto-staff .ho-listcard strong { text-align: left; }
.konto-staff .ho-listcard .muted { text-align: center; }
.konto-staff .ho-listcard form { justify-self: end; }

.konto-staff { padding-left: 0; padding-right: 0; width: 100%; }
.konto-staff .ho-listcard { grid-template-columns: 1fr 1fr 1fr; width: 100%; box-sizing: border-box; }
.konto-staff .ho-listcard .muted { text-align: center; }
.konto-staff .ho-listcard form { justify-self: end; }

.konto-assign { margin: 0 0 22px; }

.konto-acts { display: flex; gap: 6px; justify-content: flex-end; }
.app-name-tip { max-width: 320px; }

.konto-acts .ho-icon, .konto-acts .ho-trash { width: 2rem; min-width: 2rem; height: 2rem; min-height: 2rem; border-radius: 10px; }
.konto-acts .ho-icon svg, .konto-acts .ho-trash svg { width: 1rem; height: 1rem; }

.form-actions { display: flex; justify-content: flex-end; }
.form-actions .btn { width: auto; }
.form-actions.actions-split { justify-content: space-between; }

.app-note { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); font: inherit; font-size: 13px; line-height: 1.35; cursor: pointer; }

.app-note { cursor: pointer; color: #334155; }

.ho-pop-body { display: flex; flex-direction: column; }
.ho-photos-sec { order: -1; }
.ho-def-card { margin: 8px 0; padding: 8px; border: 1px solid var(--line, #d7e3e0); border-radius: 12px; }
.ho-def-card textarea { width: 100%; margin-top: 6px; }
.ho-def-photo { display: block; margin-top: 6px; font-size: 13px; }

.ho-def-photo { position: relative; display: inline-block; margin-top: 8px; }
.ho-def-ph { width: 92px; height: 72px; border-radius: 12px; background: #eef3f2; color: var(--teal-d); display: flex; align-items: center; justify-content: center; }
.ho-def-ph svg { width: 28px; height: 28px; }
.ho-def-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.ho-def-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.ho-def-shots { display: flex; gap: 6px; flex-wrap: nowrap; margin-top: 8px; }
.ho-def-shots img { width: 92px; height: 72px; object-fit: cover; border-radius: 12px; }

.ho-def-card .ho-def-shots, .ho-def-card .ho-def-photo { display: inline-flex; vertical-align: top; }
.ho-def-card .ho-def-shots { margin: 8px 6px 0 0; }
.ho-def-photo { margin-top: 8px; }

.ho-def-card { display: block; }
.ho-def-body { display: flex; gap: 12px; align-items: flex-start; } .ho-def-body .ho-note-wrap { flex: 0 0 40%; max-width: 40%; } .ho-task-send { display: block; text-align: right; margin-top: 8px; }
.ho-def-card .ho-def-photo { order: 1; }
.ho-def-card .ho-def-shots { order: 2; margin: 8px 0 0 6px; }

.ho-block { margin: 12px 0; padding: 12px; border: 1px solid #d5e4e1; border-radius: 16px; background: #fff; }

.ho-def-shots figure { margin: 0; width: 92px; flex: 0 0 92px; }
.ho-def-shots figcaption { font-size: 12px; line-height: 1.3; }

.ho-def-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ho-def-del { flex: 0 0 auto; }

.ho-def-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.ho-def-head .ho-def-tag { width: auto; }
.ho-def-del { width: 2.2rem; height: 2.2rem; margin-left: auto; }

.ho-def-card .ho-task-mail { order: 3; margin-left: auto; align-self: center; white-space: nowrap; }
.ho-def-shot { position: relative; display: block; }
.ho-def-shot-del { position: absolute; right: 4px; bottom: 4px; width: 1.7rem; height: 1.7rem; background: #fff; }

.ho-def-shot-del { position: absolute; right: 3px; bottom: 3px; width: 1.15rem; min-width: 1.15rem; height: 1.15rem; min-height: 1.15rem; padding: 0; border-radius: 6px; background: rgba(255,255,255,.92); }
.ho-def-shot-del svg { width: .7rem; height: .7rem; }
.ho-photos.ho-meters { width: 100%; }
.ho-photos.ho-meters .ho-meter-card { width: 100%; }
.ho-photos.ho-meters .ho-meter-send { justify-self: end; align-items: flex-end; margin-left: auto; }
.ho-photos.ho-meters .ho-meter-send .btn { margin-left: auto; }

.ho-task-send { order: 3; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.ho-task-prev { margin: 0 0 10px; }
.ho-task-prev img { width: 100%; height: auto; border-radius: 12px; }
.ho-task-prev figcaption { font-size: 14px; margin-top: 4px; }

.ho-def-quick { color: var(--teal); }

.ho-walk-acts { gap: .75rem; }
.ho-walk-acts .ho-icon, .ho-done-btn { height: 2.45rem; min-height: 2.45rem; }
.ho-done-form { margin-left: auto; display: flex; align-items: center; }
.ho-done-btn { width: auto; min-width: 5.5rem; }

.ho-walk-acts .ho-icon,
.ho-done-btn { height: 2.65rem; min-height: 2.65rem; max-height: 2.65rem; align-self: center; }
.ho-done-form, .ho-key-card .ho-ok-form { align-self: center; }
.card.ho-walk-row.ho-key-card.is-ok { background: var(--teal-soft); }

.ho-walk-acts { align-items: flex-end; }
button.ho-def-quick { margin: 0; padding: 0; line-height: 0; }
.ho-done-form { align-items: flex-end; height: auto; }
.ho-done-btn { height: 2.65rem; min-height: 2.65rem; max-height: 2.65rem; padding-top: 0; padding-bottom: 0; line-height: 1; }

.ho-walk-row .ho-walk-acts,
.ho-walk-row .ho-done-form { align-items: flex-end; }
.ho-walk-row .ho-walk-acts .ho-icon,
.ho-walk-row .ho-done-btn { box-sizing: border-box; height: 2.65rem; min-height: 2.65rem; max-height: 2.65rem; margin: 0; padding: 0 .7rem; line-height: 1; appearance: none; }
.ho-walk-row .ho-walk-acts .ho-icon { width: 2.65rem; min-width: 2.65rem; padding: 0; }
.ho-walk-row .ho-done-btn { width: auto; min-width: 5.6rem; }

.card.ho-walk-row.ho-key-card.is-ok { background: var(--teal-soft); }

.ho-pop-body > .ho-block:first-child,
.ho-photos-sec { margin-top: 0; }
.ho-pop-bar { padding-bottom: .2rem; }
#ho-shotpop .ho-pop-foot { display: flex; gap: 8px; }
#ho-shotpop .ho-pop-foot .btn:last-child { margin-left: auto; }

.ho-photos-sec { margin-top: 0 !important; padding-top: 4px; }
.ho-photos-sec .ho-sec-head { margin-top: 0; }
.ho-pop-body { padding-top: 0; }

.ho-shot-foot-r, .ho-meter-foot-r { margin-left: auto; display: flex; gap: 8px; }

.ho-def-card { align-items: flex-end; }
.ho-task-send { margin-top: auto; margin-left: auto; align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ho-task-send .ho-shot-meta, .ho-meter-send .ho-shot-meta { font-size: 12px; line-height: 1.2; }
.ho-photos.ho-meters .ho-meter-card { align-items: end; }
.ho-photos.ho-meters .ho-meter-send { align-self: end; align-items: flex-end; text-align: right; }

.ho-mail-room { margin: 10px 0 4px; font-size: 1.15rem; font-weight: 700; }

.ho-def-card { align-items: flex-start; }
.ho-def-card .ho-def-photo, .ho-def-card .ho-def-shots { align-self: flex-start; align-items: flex-start; }
.ho-def-shot { width: 92px; height: 72px; overflow: hidden; border-radius: 12px; }
.ho-def-shot img { width: 100%; height: 100%; object-fit: cover; }
.ho-def-shot-del { right: 4px; bottom: 4px; width: 1.3rem; min-width: 1.3rem; height: 1.3rem; min-height: 1.3rem; }

.ho-def-shots { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 8px; width: 100%; overflow-x: auto; }
.ho-def-shots .ho-def-photo { order: 0; margin: 0; }
.ho-def-shots figure { margin: 0; }

.ho-book { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.ho-book-chip { border: 1px solid #d5e4e1; background: #f8fbfa; color: #0f172a; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; }

.ho-book-label { margin: 4px 0 2px; }
.ho-book:empty, .ho-book:empty + .ho-book-label { display: none; }

.ho-book-label:has(+ .ho-book:empty) { display: none; }

.ho-book-chip { display: inline-flex; align-items: center; gap: 4px; }
.ho-book-chip button { border: 0; background: transparent; font: inherit; font-size: 13px; }
.ho-book-x { color: #64748b; font-size: 16px; line-height: 1; }

.ho-task-send .ho-shot-meta, .ho-meter-send .ho-shot-meta { font-size: 11px; line-height: 1.25; color: #64748b; }

.ho-meter-photo, .ho-meter-photo .ho-shot-frame, .ho-meter-photo .ho-zoom, .ho-meter-photo img { width: 92px; height: 72px; }
.ho-meter-photo img { object-fit: cover; border-radius: 12px; }
.ho-def-shot .ho-zoom { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.ho-def-shot .ho-zoom img { width: 100%; height: 100%; object-fit: cover; }
.ho-meter-edit { width: 1.7rem; height: 1.7rem; }

.ho-photos.ho-meters .ho-meter-card { grid-template-columns: 92px minmax(0, 1fr) auto !important; align-items: start; }
.ho-photos.ho-meters .ho-meter-photo,
.ho-photos.ho-meters .ho-meter-photo .ho-shot-frame,
.ho-photos.ho-meters .ho-meter-photo .ho-zoom,
.ho-photos.ho-meters .ho-meter-photo img { width: 92px !important; height: 72px !important; }
.ho-meter-lines { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.ho-meter-tools { grid-column: 2; grid-row: 1 / span 4; display: flex; gap: 6px; align-items: center; justify-self: end; }
.ho-meter-tools .ho-icon, .ho-meter-del .ho-trash, .ho-meter-edit { width: 2.2rem; min-width: 2.2rem; height: 2.2rem; min-height: 2.2rem; }

.ho-photos.ho-meters .ho-meter-card { display: block; border: 1px solid #d5e4e1; border-radius: 12px; padding: 8px; margin: 8px 0; background: #fff; }
.ho-photos.ho-meters .ho-meter-photo { float: left; margin: 0 10px 6px 0; }
.ho-meter-head { display: flex; align-items: center; gap: 8px; }
.ho-meter-head strong { margin-right: auto; }
.ho-meter-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.ho-meter-tools .ho-icon, .ho-meter-del .ho-trash, .ho-meter-edit, .ho-def-del { width: 1.9rem; min-width: 1.9rem; height: 1.9rem; min-height: 1.9rem; }
.ho-meter-send { clear: both; display: flex; flex-direction: column; align-items: flex-end; }

.ho-photos.ho-meters .ho-meter-card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(140px, 220px); gap: 8px; align-items: start; }
.ho-photos.ho-meters .ho-meter-photo { float: none; margin: 0; }
.ho-meter-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-height: 72px; }
.ho-meter-side .ho-shot-meta { text-align: right; width: 100%; }
.ho-meter-send { grid-column: 3; }
.ho-task-send { display: flex; flex-direction: column; align-items: flex-end; }

.ho-photos.ho-meters .ho-meter-card { grid-template-columns: auto minmax(0, 1fr) minmax(0, 50%) !important; }
.ho-meter-side { max-width: 50%; justify-self: end; }
.ho-meter-side .ho-shot-meta { white-space: normal; overflow-wrap: anywhere; text-align: left; }

.ho-photos.ho-meters .ho-meter-card { grid-template-columns: 102px minmax(0, 1fr) 50% !important; }
.ho-meter-side { max-width: none; width: 100%; justify-self: stretch; }
.ho-meter-side .ho-shot-meta { width: 100%; }

.ho-photos.ho-meters .ho-meter-card { grid-template-columns: 102px minmax(0, 1fr) 40% !important; }
.ho-task-send { display: flex !important; flex-direction: column !important; align-items: flex-end !important; width: auto; }
.ho-task-send .btn { order: 1; }
.ho-task-send .ho-shot-meta { order: 2; display: block; text-align: right; }

.ho-photos.ho-meters .ho-meter-card { display: block !important; }
.ho-meter-top { display: flex; align-items: center; gap: 8px; }
.ho-meter-top strong { margin-right: auto; }
.ho-meter-body { display: grid; grid-template-columns: 102px minmax(0, 1fr) minmax(0, 40%); gap: 8px; align-items: start; margin-top: 6px; }
.ho-meter-side { max-width: none; width: 100%; }

.ho-meter-when { font-size: 11px; line-height: 1.25; color: #64748b; }
.ho-meter-note { width: 100%; min-height: 72px; border: 1px solid #d5e4e1; border-radius: 10px; padding: 8px; font: inherit; resize: vertical; }

.ho-mail-grid { display: grid; grid-template-columns: 7rem 1fr; gap: 4px 12px; margin: 8px 0; }
.ho-mail-room { margin: 10px 0 6px; }

.ho-def-tag { font-weight: 700; }
.ho-def-card textarea, .ho-meter-note { font-size: .78rem; color: #334155; }

.ho-meter-send .ho-shot-meta { font-size: 11px; line-height: 1.25; color: #64748b; margin: 0; }
.ho-meter-send { gap: 2px !important; }
.ho-meter-mailform textarea[name="note"] { font-size: .78rem; color: #334155; }

.ho-contact-row { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 8px; }

#tm-note { font-size: .78rem; color: #334155; }

.ho-def-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 8px; align-items: start; margin-top: 6px; }
.ho-def-body textarea { width: 100%; min-height: 72px; }

.ho-def-body { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 40%) !important; }
.ho-def-body .ho-def-shots { grid-column: 1; }
.ho-def-body textarea { grid-column: 2; width: 100%; max-width: 100%; }

.ho-def-body { align-items: start !important; }
.ho-def-body .ho-def-shots { margin: 0; align-self: start; }
.ho-def-body textarea { align-self: start; margin: 0; }

.ho-def-body .ho-def-shots { grid-row: 1; min-width: 0; width: 100%; }
.ho-def-body textarea { grid-row: 1; }

.ho-photos-sec .ho-shot, .ho-photos-sec .ho-shot-frame, .ho-photos-sec .ho-zoom, .ho-photos-sec .ho-zoom img { width: 92px; height: 72px; }
.ho-photos-sec .ho-shot { width: 92px; }
.ho-photos-sec .ho-shot-del, .ho-photos-sec .ho-trash { width: 1.4rem; height: 1.4rem; }

.ho-photos-sec .ho-photos { display: flex; flex-wrap: wrap; gap: 6px; }

.ho-fold-body { display: none; }
.ho-fold.open .ho-fold-body { display: block; }
.ho-fold-count { font-weight: 400; color: #64748b; font-size: .8em; }
.ho-fold-btn { border: 0; background: transparent; font-size: 1.1rem; color: var(--teal); cursor: pointer; margin-left: 6px; }
.ho-fold.open .ho-fold-btn { transform: rotate(180deg); }

.ho-fold { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 8px 0; background: #fff; }
.ho-fold .ho-sec-head { cursor: pointer; }
.ho-fold-btn { margin-left: auto; }
.ho-fold.open { border-color: var(--teal); }

.ho-fold .ho-sec-head { background: var(--teal-soft); border-radius: 10px; padding: 8px 10px; }
.ho-fold-btn { margin-left: 0; margin-right: 8px; font-size: 1.6rem; line-height: 1; width: 1.8rem; }

.ho-fold .ho-sec-head { justify-content: flex-start; min-height: 44px; padding: 4px 8px; }
.ho-fold .ho-sec-head h2 { margin: 0; text-align: left; }
.ho-fold-btn { font-size: 2rem; width: 2.2rem; min-width: 2.2rem; }
.ho-fold .ho-sec-head form { margin-left: auto; }

.ho-fold .ho-sec-head { height: 46px; min-height: 46px; max-height: 46px; align-items: center; }
.ho-fold .ho-sec-head .ho-head-cam, .ho-fold .ho-sec-head .btn, .ho-fold .ho-sec-head label { height: 34px; min-height: 34px; padding-top: 0; padding-bottom: 0; }

.ho-photos-sec .ho-shot-frame { position: relative; }
.ho-photos-sec .ho-shot-del { position: absolute !important; bottom: 4px !important; right: 4px !important; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; margin: 0; z-index: 2; }
.ho-photos-sec .ho-shot-del .ho-trash { width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; background: rgba(255,255,255,.95) !important; border-radius: 4px; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
.ho-photos-sec .ho-shot-del svg { width: 12px; height: 12px; }
.ho-fold-open { margin-left: auto; height: 34px; min-height: 34px; }

.ho-fold .ho-sec-head { align-items: center; }
.ho-fold .ho-sec-head .ho-head-cam, .ho-fold .ho-sec-head .ho-fold-open { align-self: center; display: inline-flex; align-items: center; margin-top: 0; margin-bottom: 0; }

.ho-fold .ho-h3 { white-space: nowrap; }
.ho-fold .ho-sec-head .ho-head-cam, .ho-fold .ho-fold-open { width: 9.2rem; justify-content: center; text-align: center; white-space: normal; line-height: 1.1; }
.ho-photos-sec .ho-shot-meta { min-height: 1.2em; }

@media (max-width: 480px) {
  .ho-def-body .ho-def-shots { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
  .ho-def-body .ho-def-shots figure, .ho-def-body .ho-def-shots img, .ho-def-body .ho-def-photo { width: 100%; }
}

@media (max-width: 480px) {
  .ho-meter-body { grid-template-columns: 92px minmax(0, 1fr); }
  .ho-meter-body .ho-meter-side { grid-column: 1 / -1; }
}

.ho-fold-btn { margin-right: 2px; width: 1.4rem; min-width: 1.4rem; }
.ho-meter-note { min-height: 0; }

.ho-pop-foot .btn { flex: 1; width: auto; }

.ho-pop-foot .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .ho-pop-foot { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .ho-pop-foot .btn { font-size: .85rem; padding-left: 8px; padding-right: 8px; }
}

.ho-count { display:block; text-align:right; font-size:.7rem; color:#94a3b8; margin-top:2px; }

.ho-note-wrap { display: flex; flex-direction: column; }
.ho-note-wrap .ho-count { text-align: right; }

.ho-def-body { display: flex !important; flex-direction: row !important; gap: 8px !important; align-items: flex-start !important; width: 100% !important; }
.ho-def-shots { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; overflow: visible !important; order: 1 !important; }
.ho-def-shots figure { width: 88px !important; flex: 0 0 88px !important; margin: 0 !important; }
.ho-def-shots img { width: 88px !important; height: 68px !important; }
.ho-def-shots figcaption { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 88px; display: block; }
.ho-note-wrap { flex: 0 0 180px !important; width: 180px !important; max-width: 180px !important; min-width: 180px !important; margin-left: auto !important; order: 2 !important; }

.ho-note-wrap.field > label, .ho-meter-side.field > label { color: #b0b8c1; }
.ho-meter-photo { margin-left: 100px; }


 
.ho-key-photo-card { grid-column: 1 / -1; display: grid; grid-template-columns: 90px 1fr 180px; gap: 16px; align-items: start; padding: 12px; margin: 8px 0; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box; }
.ho-key-photo-card .ho-key-photo { position: relative; }
.ho-key-photo-card .ho-key-photo img { width: 90px; height: auto; border-radius: 8px; display: block; }
.ho-key-photo-card .ho-key-photo .ho-del-form { position: absolute; bottom: 4px; right: 4px; }
.ho-key-photo-card .ho-key-photo .ho-trash { width: 20px; height: 20px; } .ho-key-photo-card .ho-key-photo .ho-trash svg { width: 12px; height: 12px; }
.ho-key-photo-card .ho-key-info { display: flex; flex-direction: column; gap: 4px; font-size: 14px; white-space: nowrap; }
.ho-key-photo-card .ho-key-note textarea { width: 100%; min-height: 60px; font-size: 13px; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; }
.ho-key-hint { font-size: 13px; color: #6b7280; margin: 8px 0; }



/* Defect card */
.ho-card3 { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; margin: 6px 0; background: #fff; width: 100%; } .ho-card3-head { width: 100%; } .ho-card3-photos { width: 100%; } .ho-card3-note { width: 100%; }
.ho-card3-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.ho-card3-title { font-weight: 700; background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; }
.ho-card3-del { width: 2rem; height: 2rem; min-width: 2rem; }
.ho-card3-photos { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.ho-card3-item { width: 92px; }
.ho-card3-item img { width: 92px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.ho-card3-ph { width: 92px; height: 72px; min-height: 72px; max-height: 72px; background: #f1f5f9; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-sizing: border-box; padding: 0; margin: 0; border: none; }
.ho-card3-ph svg { width: 24px; height: 24px; opacity: .4; }
.ho-card3-item .ho-photo-note { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; height: 14px; width: 92px; max-width: 92px; display: block; }
.ho-card3-photo-wrap { position: relative; }
.ho-card3-photo-wrap .ho-shot-del, .ho-card3-photo-wrap .ho-key-photo-del, .ho-card3-photo-wrap .ho-trash { position: absolute !important; bottom: 4px !important; right: 4px !important; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; background: rgba(255,255,255,.95) !important; border-radius: 4px; padding: 0 !important; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,.15); z-index: 2; }
dialog.ho-pop.ho-meteredit, dialog.ho-pop.ho-meteredit[open] { width: 720px !important; max-width: calc(100vw - 2rem) !important; }
@media (max-width: 720px) {
  dialog.ho-pop.ho-meteredit, dialog.ho-pop.ho-meteredit[open] { width: calc(100vw - 1rem) !important; max-width: none !important; }
}
dialog.ho-meteredit .ho-pop-sheet { width: 100% !important; max-width: none !important; }
.ho-meteredit .ho-meter-photo-area { width: 100px !important; height: 100px !important; position: relative !important; }
.ho-meteredit .ho-meter-photo-area label { overflow: hidden !important; position: relative !important; display: block !important; width: 100% !important; height: 100% !important; }
.ho-meteredit #me-photo-del { position: absolute !important; right: 4px !important; bottom: 4px !important; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; z-index: 2 !important; }
.ho-card3-data { display: none !important; }
.ho-card3-note { display: flex; flex-direction: column; width: 100%; }
.ho-card3-note .field { margin: 0; width: 100%; } .ho-card3-note textarea { width: 100%; height: 52px; min-height: 52px; max-height: 52px; box-sizing: border-box; padding-top: 14px; }
.ho-card3-note .ho-count { text-align: right; font-size: 11px; color: #64748b; margin-top: 2px; }
.ho-card3-send { margin-top: 12px; text-align: right; width: 100%; } .ho-card3-send .btn { width: auto; }
@media (max-width: 500px) { .ho-card3 { grid-template-columns: 1fr; } }

.ho-card3-sent { font-size: 11px; color: #64748b; margin-top: 4px; text-align: right; } .ho-card3-sent span { display: block; }
.ho-card3-photos .ho-photo-note { width: 92px !important; max-width: 92px !important; display: block !important; }
.ho-meter-card .ho-card3-photos { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; } .ho-meter-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #475569; margin-top: 0; }
.ho-meter-info strong { color: #1e293b; } .ho-meter-when { display: block; margin-bottom: 8px; }
.ho-meter-when { font-size: 11px; color: #64748b; }

.ho-meter-card .ho-card3-note { margin-top: 4px; }
@media (max-width: 600px) {
  .ho-meter-card .ho-card3-photos { flex-wrap: nowrap; }
  .ho-meter-info { flex: 1; }
}

.ho-key-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.ho-key-fields .field { flex: 1; min-width: 80px; }
.ho-key-info { font-size: 13px; color: #475569; }

.ho-key-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e5e7eb; }

.ho-key-ph { display: flex; width: 92px; height: 72px; background: #f1f5f9; border-radius: 8px; cursor: pointer; position: relative; align-items: center; justify-content: center; flex-shrink: 0; } .ho-key-photos { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; } .ho-key-photos form { display: flex; }

.ho-key-photos { align-items: flex-start; }
.ho-key-photos .ho-card3-item { display: flex; flex-direction: column; }
.ho-key-photos .ho-card3-photo-wrap img { width: 92px; height: 72px; object-fit: cover; border-radius: 8px; }

.ho-key-photos { align-items: center !important; }
.ho-key-photos .ho-card3-item { margin: 0; padding: 0; }
.ho-key-photos .ho-card3-photo-wrap { width: 92px; height: 72px; }
.ho-key-photos .ho-card3-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.btn.is-disabled { background: var(--teal-soft, #e6f4f1) !important; border-color: var(--teal-soft, #e6f4f1) !important; color: #64748b !important; opacity: 1; cursor: not-allowed; }

.ho-choice span[data-tip] { position: relative; cursor: help; }
.ho-choice span[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0; top: 100%;
  margin-top: 4px;
  max-width: 280px;
  background: var(--teal-soft);
  color: var(--teal-d);
  font-size: 12px;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
  white-space: normal;
}

.ho-addroom-wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.ho-addroom-wrap .ho-photo-btn { display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; border: 2px dashed var(--line); border-radius: 12px; background: #f8fafc; cursor: pointer; }
.ho-addroom-wrap .ho-photo-btn input { display: none; }
.ho-addroom-wrap .ho-photo-btn span { font-size: 13px; color: var(--muted); }

.ho-room-del { position: absolute; left: 8px; bottom: 18px; right: auto; top: auto; width: 28px; height: 28px; border: none !important; background: rgba(255,255,255,.9); color: #64748b; cursor: pointer; padding: 0; opacity: .7; z-index: 5; -webkit-appearance: none; appearance: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.ho-room-del:hover { opacity: 1; color: #ef4444; background: #fff; }
.ho-walk-row { position: relative; }

.ho-head { display: flex; justify-content: space-between; align-items: center; }
.ho-head h1 { margin: 0; }

/* Contract fill page – wide layout for large screens */
.cf-fill { max-width: none; }
.cf-head-actions { display: flex; gap: 8px; align-items: center; }
.cf-layout { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; }
.cf-pdf { flex: 1; min-width: 0; overflow: hidden; position: relative; }
.cf-zoom { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; justify-content: center; }
.cf-zoom span { min-width: 50px; text-align: center; }
.cf-small-warn { display: none; }
@media (max-width: 1439px) {
  .cf-layout { display: none !important; }
  .cf-small-warn { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
  .cf-warn-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; max-width: 420px; text-align: center; }
  .cf-warn-box h2 { margin: 0 0 12px; }
  .cf-warn-box ul { text-align: left; margin: 12px 0; }
}
.cf-pdf-wrap { position: relative; }
.cf-overlay { position: absolute; top: 40px; left: 10px; right: 10px; pointer-events: none; font-size: 12px; }
.cf-overlay div { background: rgba(14, 165, 164, 0.15); padding: 2px 6px; margin: 2px 0; border-radius: 4px; }
.cf-pdf h2, .cf-side h2 { margin: 0 0 12px; font-size: 16px; }
.cf-iframe { width: 100%; height: 80vh; min-height: 700px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.cf-nav { display: flex; gap: 8px; justify-content: space-between; }
.cf-save { background: #e0f2fe !important; color: #0f766e !important; border: 1px solid #99f6e4 !important; }
.cf-bottom { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; }
.cf-pdf-full{width:100%;}
.cf-iframe-full{width:100%;height:70vh;border:0;border-radius:8px;background:#f8fafc;}
.cf-actions{margin-top:16px;display:flex;flex-direction:column;gap:12px;}
.cf-nav,.cf-mid,.cf-bottom{display:flex;gap:8px;}
.cf-nav{justify-content:space-between;}
.cf-mid{justify-content:center;}
.cf-bottom{justify-content:space-between;}
.cf-side { flex: 0 0 360px; }
.cf-input { width: 100%; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; }
.cf-nav { display: flex; gap: 8px; margin: 16px 0; }
.cf-save { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
@media (max-width: 1100px) {
  .cf-layout { flex-direction: column; }
  .cf-side { flex: none; width: 100%; }
  .cf-iframe { height: 60vh; min-height: 400px; }
}

/* Mietvertrag Übersicht */
.mv-section { margin-bottom: 32px; }
.mv-section .ho-h2 { margin-bottom: 12px; }
.mv-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; margin-bottom: 12px; max-width: 480px; }
.mv-box h3 { margin: 0 0 8px; font-size: 14px; }
.pdf-drop { display: inline-block; border: 2px dashed #cbd5e1; border-radius: 8px; padding: 12px 20px; text-align: center; cursor: pointer; background: #fff; max-width: 280px; }
.pdf-drop:hover { border-color: var(--teal); }
.pdf-drop-icon { font-size: 24px; color: var(--teal); margin-bottom: 2px; }

/* Mietvertrag kompakt */
.mv-section { margin-bottom: 28px; }
.mv-row { margin-bottom: 16px; }
.mv-up-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; color: var(--ink); }
.mv-up-btn:hover { border-color: var(--teal); color: var(--teal-d); }
.mv-sub { margin-bottom: 16px; }
.mv-sub-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mv-sub-head h2, .mv-sub-head h3 { margin: 0; }
.mv-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; color: var(--muted); }
.mv-icon-btn:hover { border-color: var(--teal); color: var(--teal-d); }
.mv-highlight { background: var(--teal-soft); border-radius: 12px; padding: 16px; }
.mv-sub { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.mv-sub h3 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0; }
.mv-section.mv-highlight { margin-top: 28px; }
.mv-section > .ho-list { margin-top: 8px; }
.mv-tpl-form { display: flex; align-items: center; gap: 8px; }
.mv-label-in { padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 14px; width: 140px; }
.ho-listcard { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ho-listcard > a:not(.ho-icon) { flex: 1; min-width: 0; }
.mv-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.mv-scroll { max-height: 220px; overflow-y: auto; }
.ho-grip { background: none; border: 0; cursor: grab; padding: 4px; color: var(--muted); touch-action: none; }
.ho-grip:active { cursor: grabbing; }
.is-drag { opacity: 0.6; }
.mv-scroll .ho-listcard strong { color: var(--muted); font-weight: 500; }
.mv-acts .btn { height: 38px; display: inline-flex; align-items: center; }
.mv-acts { gap: 16px; }
.mv-acts .btn { height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 600px) {
  .mv-acts:not(.ho-listcard .mv-acts) { width: 100%; }
  .mv-acts .btn.ghost { flex: 1; }
}
.mv-acts .btn svg { width: 32px; height: 32px; }
.mv-acts .btn { height: 52px !important; min-height: 52px; padding: 0 20px; font-size: 16px; box-sizing: border-box; }
@media (max-width: 600px) {
  .mv-acts:not(.ho-listcard .mv-acts) { width: 100%; justify-content: stretch !important; }
  .mv-acts .btn.ghost { flex: 1; }
}
.mv-acts .btn svg { width: 36px; height: 36px; }

@media (max-width: 640px) {
  .mv-sent-info { order: 3; width: 100%; margin-top: 8px; }
  .mv-acts { flex-wrap: wrap; }
}


#send-ask .ho-pop-sheet { max-width: 560px; width: 94%; }
#send-ask .ho-pop-foot { padding-bottom: 12px; }
@media (max-width: 640px) {
  #send-ask .ho-pop-sheet { max-width: 96%; }
}


.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
@media (max-width: 640px) {
  .portal-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .portal-card { padding: 4px !important; width: auto !important; height: auto !important; }
  .portal-card img { max-height: 40px; }
}
.portal-card { border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; font-size: 13px; background: #fff; display: flex; align-items: center; justify-content: center; }
.portal-card img { max-width: 100%; max-height: 60px; object-fit: contain; }
.listing-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.listing-h3 { font-size: 15px; font-weight: 650; margin: 0 0 6px; color: var(--teal-d); }
.listing-radio { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-size: 14px; text-align: left; color: inherit; }
.listing-radio input { width: auto !important; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--teal); }
.listing-preview { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; }
.preview-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin:12px 0 8px; }
.preview-head h2 { margin:0; font-size:18px; line-height:1.3; }
.preview-price { font-size:22px; font-weight:700; color:var(--teal-d); white-space:nowrap; }
.preview-meta { display:flex; gap:16px; color:var(--muted); font-size:14px; margin-bottom:12px; }
.preview-desc { font-size:14px; line-height:1.5; margin-bottom:16px; }
.preview-section { margin:16px 0; padding-top:12px; border-top:1px solid var(--line); }
.preview-section h3 { margin:0 0 8px; font-size:15px; }
.preview-row { display:flex; justify-content:space-between; padding:4px 0; font-size:14px; gap: 12px; flex-wrap: wrap; }
.preview-row span:first-child { flex: 0 0 auto; font-weight: 500; }
.preview-row span:last-child { flex: 1; text-align: right; word-break: break-word; min-width: 0; }
@media (max-width: 640px) {
  .preview-row { flex-direction: column; align-items: flex-start; }
  .preview-row span:last-child { text-align: left; }
}
.listing-sub > summary { font-size: 15px; font-weight: 600; }
.listing-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0; }
.listing-checks label { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0; }
.listing-checks input { width: auto !important; }
.listing-radio .tip { margin-left: 4px; flex-shrink: 0; }
.listing-addr .toggle-label,
.listing-addr .hint { font-size: 14px; color: inherit; }
.listing-linkrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.listing-linkrow .link-field { flex: 1 1 100%; min-width: 0; max-width: none; position: relative; }
.listing-linkrow .link-field input { background: #f8fafb; }
.listing-addr { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 700px) {
  .listing-top { grid-template-columns: 1fr; }
}


.listing-acc.ho-acc > summary { background: #fff; color: #0f172a; border-radius: 16px; margin: 0; padding: 1rem 1rem .6rem; }
.listing-acc.ho-acc[open] { padding: 0 1rem 1rem; }
.listing-acc.ho-acc[open] > summary { background: var(--teal, #027BA5); color: #fff; margin: 0 -1rem 0; padding: 1rem 1rem .6rem; border-radius: 16px 16px 0 0; box-sizing: content-box; }
.listing-acc.ho-acc[open] > summary::after { color: #fff; }
.listing-sub { margin: 0.5rem 0; border: 1px solid var(--line,#d7e3e0); border-radius: 12px; padding: 0; background: #fff; }
.listing-sub > summary { background: var(--teal-soft, #e6f4f1); margin: 0; padding: 0.75rem 1rem 0.5rem; border-radius: 12px; }
.listing-sub[open] > summary { background: var(--teal-soft, #e6f4f1); border-radius: 12px 12px 0 0; margin: 0; }
.listing-sub > form, .listing-sub > div { padding: 0.75rem; }


.docs-notes { background: var(--teal-soft); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; white-space: pre-wrap; }

.sort-arrows { position: absolute; top: 6px; right: 4px; display: flex; flex-direction: column; align-items: center; gap: 0; z-index: 10; }
.arr-btn { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--teal); opacity: .55; line-height: 0; min-width: 36px; min-height: 32px; display: flex; align-items: center; justify-content: center; }
.arr-btn:hover { color: var(--teal-d); }
.rank-num { font-size: 18px; font-weight: 800; color: #c9a227; line-height: 1; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #c9a227; border-radius: 6px; }

/* Responsive board: fluid type + truncation */
.app-meta strong { font-size: clamp(14px, 1.1vw, 17px); }
.app-card .app-job, .app-card .app-contact { font-size: clamp(12px, 0.9vw, 14px); }
.app-card .app-contact { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) {
  /* board flex preserved */
}
@media (max-width: 1100px) {
  /* board flex preserved */
  /* col min removed */
}

.board-scroll { overflow-x: scroll; width: 100%; max-width: 100vw; -webkit-overflow-scrolling: touch; }
.board-scroll::-webkit-scrollbar { height: 10px; }
.board-scroll::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 5px; }

@media (max-width: 900px) {
  .board-scroll::-webkit-scrollbar,
  .board::-webkit-scrollbar,
  .col-body::-webkit-scrollbar { height: 16px; width: 16px; }
  .board-scroll::-webkit-scrollbar-thumb,
  .board::-webkit-scrollbar-thumb,
  .col-body::-webkit-scrollbar-thumb { background: #64748b; border-radius: 8px; }
}

.app-card { padding-right: 20px !important; }
.app-meta { max-width: 100%; overflow: hidden; }
.app-meta strong, .app-meta .app-job, .app-meta .app-contact { 
  white-space: nowrap !important; 
  overflow: hidden !important; 
  text-overflow: ellipsis !important; 
  display: block !important;
}

.app-card { padding-right: 40px !important; }
.app-job .emp-link, .app-job a { 
  display: inline; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

.app-card .actions form,
.app-card .actions > .btn { flex: 1 1 0 !important; min-width: 0; }
.app-card .actions .btn { width: 100%; text-align: center; }

.app-card .actions { display: flex !important; }
.app-card .actions > form, .app-card .actions > .btn { flex: 1 1 0 !important; width: 0 !important; }
.app-card .actions form .btn { width: 100% !important; }

.app-card .actions { width: 100% !important; box-sizing: border-box; }
.app-card .actions > form, 
.app-card .actions > .btn { flex: 1 1 0 !important; min-width: 0 !important; }

.app-card .actions { 
  display: grid !important; 
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 8px; 
  width: 100% !important;
}
.app-card .actions > form { display: contents; }
.app-card .actions .btn { width: 100% !important; }

.app-card .actions .btn { 
  min-height: 48px !important; 
  height: 48px !important;
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.folder-sort { display: inline-flex; flex-direction: column; margin-left: 6px; gap: 0; }
.folder-sort .arr-btn { background: none; border: 0; padding: 1px; cursor: pointer; color: var(--teal); opacity: .6; line-height: 0; min-width: 28px; min-height: 22px; display: flex; align-items: center; justify-content: center; }
.folder-sort .arr-btn:hover { opacity: 1; }
