/* Signed-in pages (login.html, account.html, pdf-edit.html). Builds on style.css. */
.app { max-width: 1100px; padding-top: 40px; padding-bottom: 80px; }
.app.narrow { max-width: 460px; }
.app h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.app .sub { color: var(--muted); margin: 0 0 24px; }
/* Cards on signed-in pages: mostly opaque so the fixed skyline does not cross text and buttons */
:root { --card-bg: rgba(14, 19, 34, 0.88); }
.box { border: 1px solid var(--line-strong); background: var(--card-bg); border-radius: 18px; padding: 22px; min-width: 0; }
.box + .box { margin-top: 16px; }
.box h2 { font-size: 18px; margin: 0 0 12px; }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); margin-bottom: 18px; }
.seg button { flex: 1; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"] { background: rgba(79, 140, 255, 0.22); color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; color: #cfd8ee; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.25);
  color: var(--text); font: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #7aa7ff; outline-offset: 1px; border-color: transparent; }
.hint { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn.danger { color: #fff; background: #be3a4f; }
.linkish { background: none; border: 0; padding: 0; color: #9db8ff; font: inherit; font-weight: 600; cursor: pointer; }
.msg-box { padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.msg-box.err { background: rgba(251, 113, 133, 0.14); border: 1px solid rgba(251, 113, 133, 0.4); color: #ffd5dc; }
.msg-box.ok { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: #c9f7e6; }
.msg-box[hidden] { display: none; }
.rows { display: grid; gap: 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { display: block; padding: 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--card-bg); color: var(--text); }
.tile:hover { border-color: #7aa7ff; color: var(--text); }
.tile b { display: block; font-size: 17px; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: rgba(79, 140, 255, 0.2); color: #b9ceff; vertical-align: middle; }

/* PDF editor */
.editor { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .editor { grid-template-columns: minmax(0, 1fr); } }
.doc-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; overflow-x: hidden; grid-template-columns: minmax(0, 1fr); }
.doc-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; cursor: pointer; }
.doc-item[aria-current="true"] { border-color: #7aa7ff; background: rgba(79, 140, 255, 0.14); }
.doc-item small { color: var(--muted); white-space: nowrap; }
.doc-item span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 14px; color: var(--muted); cursor: pointer; margin-bottom: 14px; }
.drop.over { border-color: #7aa7ff; color: var(--text); }
.ask { display: flex; gap: 8px; align-items: flex-end; }
.ask .field { flex: 1; margin: 0; }
.mic-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(135deg, #4f8cff, #8b5cf6); }
.mic-btn svg { width: 22px; height: 22px; fill: currentColor; }
.mic-btn.rec { background: #e11d48; animation: recpulse 1.1s ease-in-out infinite; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .55); } 50% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); } }
@media (prefers-reduced-motion: reduce) { .mic-btn.rec { animation: none; } }
.pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.page-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.page-card img { display: block; width: 100%; height: auto; }
.page-card figcaption { background: #10162a; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 10px; }
.page-card.changed { border-color: #7aa7ff; box-shadow: 0 0 0 2px rgba(79, 140, 255, .35); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.changes { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; }
.changes li { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); overflow-wrap: anywhere; }
.changes del { color: #ff9fb0; }
.changes ins { color: #8ff0c9; text-decoration: none; }
.versions { display: flex; flex-wrap: wrap; gap: 6px; }
.versions button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.versions button[aria-current="true"] { border-color: #7aa7ff; color: var(--text); background: rgba(79, 140, 255, 0.18); }
.usage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.usage strong { font-size: 22px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }

/* Landlord Assistant chat */
.chat-box { display: flex; flex-direction: column; min-height: 560px; }
.scope-line { font-size: 14px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; overflow-wrap: anywhere; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 62vh; min-height: 320px; padding: 4px 2px 12px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.bubble.user { align-self: flex-end; background: rgba(79, 140, 255, 0.22); border-bottom-right-radius: 6px; }
.bubble.assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border-bottom-left-radius: 6px; }
.act { white-space: normal; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid #7aa7ff; background: rgba(79, 140, 255, 0.08); }
.act.done { border-color: rgba(52, 211, 153, .6); background: rgba(52, 211, 153, .07); }
.act.cancelled, .act.failed { border-color: var(--line-strong); background: none; }
.act-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.act-head span { font-weight: 800; color: #b9ceff; }
.act p { margin: 6px 0 0; font-size: 14px; }
.act-ok { color: #c9f7e6; font-weight: 600; }
.act-notes { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.act-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* No Full AI yet / launching soon: no chat to show, so no tall empty box (just the hint line). */
.chat-box.locked { min-height: 0; }
.chat-box.locked .chat-log { display: none; }
.chat-box.locked .scope-line { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.chat-box .ask { margin-top: 10px; }
.chat-box textarea { min-height: 52px; height: 52px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.act-summary { white-space: pre-line; }
.act.undone { border-color: var(--line-strong); background: none; }

/* Plans and billing (billing.html) */
.bill-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.bill-head .seg { min-width: 220px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--card-bg); min-width: 0; }
.plan.featured { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 18px 40px -20px rgba(139, 92, 246, 0.6); }
.plan.is-current { border-color: rgba(46, 230, 200, 0.6); }
.plan h2 { margin: 0; font-size: 20px; }
.plan-flag { position: absolute; top: -11px; right: 16px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #4f8cff, #8b5cf6); color: #fff; }
.plan-price { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .ticks { margin: 6px 0 12px; flex: 1; }
.plan-action { margin-top: auto; }
.plan-current { display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 800; color: var(--mint); border: 1px solid rgba(46, 230, 200, 0.4); background: rgba(46, 230, 200, 0.08); }
.fine { font-size: 13px; line-height: 1.5; }
p.fine { margin: 0; }
main .fine:last-child { margin-top: 18px; }

/* Tenant pay page (pay.html) and landlord rent collection (rent-collection.html) */
.pay-row { cursor: pointer; align-items: center; }
.pay-row input { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; accent-color: #4f8cff; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 10px 0 14px; }
.pay-total b { font-size: 26px; font-variant-numeric: tabular-nums; }
.rc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rc-row:last-child { border-bottom: 0; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rc-link { grid-column: 1 / -1; font-size: 13px; word-break: break-all; color: var(--muted); }
@media (max-width: 560px) { .rc-row { grid-template-columns: 1fr; } .rc-actions { justify-content: flex-start; } }

.linklike { background: none; border: 0; padding: 0; color: #7aa7ff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Repair tickets (tickets.html) */
.tk-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.tk-layout .box + .box { margin-top: 0; }
@media (max-width: 900px) { .tk-layout { grid-template-columns: minmax(0, 1fr); } }
.tk-list-box .seg { flex-wrap: wrap; }
.tk-list-box .seg button { flex: 1 1 auto; padding: 8px 6px; font-size: 14px; }
.tk-list { display: grid; gap: 8px; max-height: 70vh; overflow-y: auto; }
.tk-item { display: grid; gap: 3px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.tk-item[aria-current="true"] { border-color: #7aa7ff; background: rgba(79, 140, 255, 0.14); }
.tk-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-top small { margin-left: auto; color: var(--muted); font-size: 12px; }
.tk-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.badge.tk-urgent { background: rgba(251, 113, 133, 0.2); color: #ffc2cd; }
.badge.tk-needs { background: rgba(250, 204, 21, 0.18); color: #fde68a; }
.tk-detail h2 { margin-bottom: 4px; overflow-wrap: anywhere; }
.tk-detail h3 { font-size: 15px; margin: 22px 0 4px; color: #cfd8ee; }
.tk-head { margin-bottom: 8px; }
.tk-decision { margin-top: 12px; }
.tk-desc { margin-top: 8px; color: var(--muted); }
.tk-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tk-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.tk-video { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; }
.tk-msgs { display: grid; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.tk-msg { padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.tk-msg.tenant { background: rgba(46, 230, 200, 0.08); }
.tk-msg.owner { background: rgba(79, 140, 255, 0.14); }
.tk-msg small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; white-space: normal; }

/* Assistant: recent chats | chat | property tree */
.editor.three { grid-template-columns: 240px minmax(0, 1fr) 320px; grid-template-areas: "recent chat tree"; }
.editor.three > .recent { grid-area: recent; }
.editor.three > .chat-box { grid-area: chat; }
.editor.three > .tree-box { grid-area: tree; }
@media (max-width: 1100px) { .editor.three { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "chat tree" "recent tree"; } }
@media (max-width: 760px) {
  .editor.three { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chat" "tree" "recent"; margin-top: 0 !important; }
  /* Phone: the chat is the first thing on the page; title and balance move below it. */
  main.app:has(.editor.three) { display: flex; flex-direction: column; padding-top: 12px; }
  main.app:has(.editor.three) > .msg-box { order: -2; margin: 0 0 10px !important; }
  main.app:has(.editor.three) > .editor { order: -1; }
  main.app:has(.editor.three) > h1 { margin-top: 24px; font-size: 24px; }
  main.app:has(.editor.three) > .sub { display: none; }
  main.app:has(.editor.three) > .usage { margin-top: 12px; }
}
.editor.three .box + .box { margin-top: 0; }
/* Assistant: one conversation, no Recent column (chat | properties). */
.editor.three.one-chat { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "chat tree"; }
@media (max-width: 1100px) { .editor.three.one-chat { grid-template-columns: minmax(0, 1fr) 280px; grid-template-areas: "chat tree"; } }
@media (max-width: 760px) { .editor.three.one-chat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "chat" "tree"; } }
.tree-box h2, .recent h2 { margin-top: 0; }
.recent .doc-item { flex-direction: column; align-items: stretch; gap: 2px; }
.recent .doc-item span, .recent .doc-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-search { margin-bottom: 10px; }
.tree { display: grid; gap: 4px; max-height: 64vh; overflow-y: auto; overflow-x: hidden; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .tree { max-height: 300px; } }
.tree details { border-radius: 10px; }
.tree details { min-width: 0; }
.tree details > :not(summary) { margin-left: 14px; }
.tree summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-weight: 700; min-width: 0; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: "\25B8"; color: var(--muted); font-size: 12px; transition: transform .15s; flex: none; }
.tree details[open] > summary::before { transform: rotate(90deg); }
.tree summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree summary small, .tree-node small { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; }
.tree summary:hover, .tree-node:hover { background: rgba(255, 255, 255, 0.05); }
.tree-node { display: flex; align-items: center; gap: 8px; width: calc(100% - 14px); box-sizing: border-box; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; min-width: 0; }
.tree-node small { flex: 0 1 auto; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.tree-node span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node.all { color: var(--muted); font-weight: 700; }
.tree-node .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--pos); }
.tree-node .dot.vacant { background: transparent; border: 1.5px solid var(--muted); }
.tree-node[aria-current="true"], .tree summary[aria-current="true"] { border-color: #7aa7ff; background: rgba(79, 140, 255, 0.14); }
.tree-node:focus-visible, .tree summary:focus-visible { outline: 2px solid #7aa7ff; outline-offset: 1px; }
.live-text { font-size: 13px; color: var(--muted); min-height: 18px; margin: 6px 4px 0; }
.tree-bar { display: none; }
@media (max-width: 760px) {
  .chat-box { min-height: 0; }
  .chat-log { min-height: 34vh; max-height: 46vh; }
  .tree-box.folded { padding: 10px 12px; }
  .tree-box.folded h2, .tree-box.folded .tree-search, .tree-box.folded .tree { display: none; }
  .tree-box.folded .tree-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 4px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
  .tree-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tree-bar b { flex: none; color: #7aa7ff; font-size: 14px; }
}
.mode-seg { margin-bottom: 10px; max-width: 280px; }
.mode-seg button[aria-pressed="true"] { background: rgba(79, 140, 255, 0.22); color: var(--text); }
.attach-btn { flex: none; width: 44px; height: 52px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; color: var(--text); background: rgba(255, 255, 255, 0.05); }
.attach-btn svg { width: 22px; height: 22px; fill: currentColor; }
.attach-btn:hover { background: rgba(255, 255, 255, 0.1); }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.photo-chip { position: relative; margin: 0; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); }
.photo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-chip button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.chat-box.drop-on { outline: 2px dashed #7aa7ff; outline-offset: -6px; }
@media (max-width: 480px) {
  .chat-box .ask { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .chat-box .ask .field { flex: 1 0 100%; }
  .chat-box .ask #go { flex: 1; }
}
.cost-line { font-size: 12px; margin: -4px 0 8px; }
.pdf-chip span { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; font-size: 13px; color: var(--accent, #2563eb); background: var(--panel, #f1f5f9); border-radius: inherit; }
.retention-note { font-size: 12px; margin: 4px 0 6px; }
.unit-pill { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; margin: 0 0 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--glass); }
.unit-pill[hidden] { display: none; }
.unit-pill .pill-item b { font-weight: 600; opacity: .65; margin-right: 4px; }
.unit-pill .pill-state { font-weight: 600; }
.unit-pill .pill-state.ok { color: #4ade80; } .unit-pill .pill-state.bad { color: #f87171; } .unit-pill .pill-state.warn { color: #fbbf24; }
.engine-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; margin-right: 6px; border-radius: 6px; background: var(--line-strong, #ddd); }
body.drop-page::after { content: "Drop files or a folder to add them"; position: fixed; inset: 12px; z-index: 50; display: grid; place-items: center; border: 3px dashed var(--accent, #6d6af8); border-radius: 18px; background: rgba(10, 12, 28, .55); color: #fff; font-size: 22px; font-weight: 700; pointer-events: none; }
.soon-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: #f5b83d; color: #1b1300; margin-right: 10px; white-space: nowrap; }
.batch-list { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.batch-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-head small, .batch-list li small { color: var(--muted, #8a93a8); }
.batch-list ul { list-style: none; margin: 6px 0 2px; padding: 0; max-height: 180px; overflow: auto; }
.batch-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-top: 1px solid var(--line, rgba(255,255,255,.06)); }
.batch-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-list li button { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; }
.link-btn { border: 0; background: none; color: var(--accent, #7aa7ff); font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.photo-strip:has(.batch-list) { flex-wrap: wrap; }
.ai-meter { display: inline-flex; flex-direction: column; gap: 4px; min-width: 200px; }
.ai-bar { display: block; height: 6px; border-radius: 99px; background: var(--line-strong, rgba(255,255,255,.12)); overflow: hidden; }
.ai-bar i { display: block; height: 100%; background: var(--accent, #7aa7ff); border-radius: inherit; }
.ai-bar i.over { background: #f5b83d; }
.msg-inline { font-size: 13px; color: #f5b83d; font-weight: 600; }
.att-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 4px 8px 4px 4px; border-radius: 10px; border: 1px solid var(--line-strong, rgba(255,255,255,.14)); background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.att-img { padding: 3px; }
.att img { width: 44px; height: 44px; object-fit: cover; border-radius: 7px; display: block; }
.att-ico { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 7px; background: rgba(122,167,255,.18); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-gone { opacity: .55; cursor: default; }
.att-gone .att-name::after { content: " (deleted)"; }
