/* ===== Nov 5, 2026: responsive layout, assistant, alerts, cards, this week ===== */
html, body { max-width:100%; overflow-x:hidden; }
.bar { flex-wrap:wrap; row-gap:8px; }
nav { order:3; flex:1 1 100%; min-width:0; flex-wrap:wrap; row-gap:4px; margin-left:-8px; }
.bar .who { order:2; margin-left:auto; }
nav::-webkit-scrollbar { display:none; }
nav button { white-space:nowrap; flex:none; }
.pgrid { grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr)); }
.devGrid { grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr)); }
.libgrid { grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr)); }
.card, .tile { min-width:0; }
.scroll { -webkit-overflow-scrolling:touch; }
@media (max-width:760px) {
  .bar { padding:10px 14px; gap:8px; }
  h1 { font-size:19px !important; }
  nav { order:3; flex-basis:100%; margin:0 -14px; padding:0 10px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  nav button { padding:8px 13px; font-size:14px; }
  .who { margin-left:auto; } .who #whoami { display:none; }
  main { padding:14px 12px 90px; }
  .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .tile { padding:14px; border-radius:18px; } .tile .v { font-size:24px !important; }
  .card { border-radius:18px; } .card h2 { padding:14px; font-size:16px; }
  .pr { padding:12px 14px; }
  .row { gap:8px; } .row > input, .row > select { flex:1 1 140px; min-width:0; }
  .row .btn { flex:none; }
  th, td { padding:10px; font-size:13px; }
  .dlg { padding:0; align-items:stretch; }
  .dlg form, .detail, #pkDlg .box { border-radius:0; min-height:100%; max-width:none; padding:18px 16px 28px; box-shadow:none; }
  .detail { padding:0; }
  .mtWrap { grid-template-columns:1fr; }
  .calD { min-height:64px; padding:3px; } .calE { font-size:10px; padding:1px 3px; }
  .subgrid { grid-template-columns:1fr; }
  .pwho { min-width:0; } .pwho .av, .pwho .av0 { width:56px !important; height:56px !important; font-size:16px !important; border-radius:12px !important; }
  .lzGrid { padding:12px 14px; } .lzRows { padding:0 14px; }
  .docRow { padding:12px 14px; }
}

/* Ask bar */
.askBar { position:relative; margin:0 auto 22px; max-width:820px; }
.askBox { display:flex; align-items:center; gap:4px; background:#fff; border:1px solid #dadce0; border-radius:999px; padding:5px 6px 5px 16px; box-shadow:0 1px 6px rgba(32,33,36,.12); }
.askBox:focus-within { box-shadow:0 2px 10px rgba(26,115,232,.25); border-color:#1a73e8; }
.askIcon { color:#1a73e8; font-size:18px; }
#askInput { flex:1; min-width:0; border:0 !important; box-shadow:none !important; font-size:16px; padding:10px 6px; background:transparent; }
.iconBtn { border:0; background:none; font-size:20px; width:42px; height:42px; border-radius:50%; cursor:pointer; flex:none; }
.iconBtn:hover { background:#f1f3f4; } .iconBtn.on { background:#fce8e6; animation:pulse 1.2s infinite; }
.askLive { padding:9px 18px; flex:none; }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(217,48,37,.35); } 50% { box-shadow:0 0 0 8px rgba(217,48,37,0); } }
.askDrop { position:absolute; left:12px; right:12px; top:calc(100% + 6px); background:#fff; border-radius:20px; box-shadow:0 8px 28px rgba(60,64,67,.22); padding:6px; z-index:12; }
.askDrop button { display:flex; gap:10px; align-items:center; width:100%; text-align:left; border:0; background:none; padding:10px 12px; border-radius:14px; font:inherit; cursor:pointer; }
.askDrop button:hover, .askDrop button.sel { background:#f1f3f4; }
.askDrop .k { font-size:12px; color:#5f6368; margin-left:auto; }
@media (max-width:760px) { .askBar { margin-bottom:16px; } .askLive { padding:8px 12px; } .iconBtn { width:38px; height:38px; font-size:18px; } #askInput { font-size:16px; } }

/* Chat panel */
.chatPanel { position:fixed; top:0; right:0; bottom:0; width:min(460px,100%); background:#fff; z-index:40; display:flex; flex-direction:column; box-shadow:-8px 0 32px rgba(0,0,0,.18); }
.chatHead { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid #e8eaed; } .chatHead b { font-size:17px; font-weight:500; } .chatHead .link { margin-left:auto; }
.chatMsgs { flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.msg { max-width:88%; padding:10px 14px; border-radius:20px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.45; }
.msg.u { align-self:flex-end; background:#e8f0fe; color:#174ea6; border-bottom-right-radius:6px; }
.msg.a { align-self:flex-start; background:#f1f3f4; border-bottom-left-radius:6px; }
.msg.err { background:#fce8e6; color:#c5221f; }
.msg img { display:block; max-width:160px; border-radius:12px; margin:4px 0; }
.msg .say { border:0; background:none; cursor:pointer; font-size:14px; padding:0 0 0 6px; }
.prop { align-self:stretch; border:1px solid #dadce0; border-radius:18px; padding:12px 14px; display:grid; gap:8px; background:#fff; }
.prop .ptop { font-size:12px; color:#5f6368; } .prop b { font-weight:500; }
.prop .pacts { display:flex; gap:8px; flex-wrap:wrap; } .prop.done { background:#f3faf5; border-color:#ceead6; } .prop.no { opacity:.6; }
.chatIn { display:flex; gap:6px; align-items:flex-end; padding:10px 12px; border-top:1px solid #e8eaed; }
.chatIn textarea { flex:1; resize:none; max-height:140px; border-radius:20px; font-size:16px; }
.chatThumbs { display:flex; gap:6px; padding:0 12px 10px; flex-wrap:wrap; } .chatThumbs:empty { display:none; } .chatThumbs img { width:54px; height:54px; object-fit:cover; border-radius:10px; }
.chatLive { display:flex; align-items:center; gap:10px; padding:10px 16px; background:#e8f0fe; color:#174ea6; font-weight:500; }
.chatLive .btn { margin-left:auto; }
.liveDot { width:14px; height:14px; border-radius:50%; background:#1a73e8; animation:pulse 1.2s infinite; } .liveDot.speak { background:#188038; }
.thinking { align-self:flex-start; color:#5f6368; font-size:14px; padding:4px 8px; }
.bigStart { align-self:center; font-size:19px; padding:16px 28px; margin-top:10px; }

/* This week */
.weekHead { display:flex; align-items:center; gap:8px; margin:0 0 12px; } .weekHead h2 { margin:0; font-size:22px; font-weight:400; } .weekHead .link { font-size:22px; }
.wkList { padding:6px 0; }
.wkDay { padding:8px 20px 2px; font-size:13px; font-weight:500; color:#5f6368; }
.wkItem { display:flex; gap:12px; align-items:flex-start; padding:8px 20px; }
.wkIco { width:30px; height:30px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; font-size:14px; background:#f1f3f4; }
.wkIco.payment { background:#e6f4ea; } .wkIco.repair { background:#fce8e6; } .wkIco.approval { background:#fef7e0; } .wkIco.profile { background:#e8f0fe; } .wkIco.job { background:#f3e8fd; }
.wkTxt { flex:1; min-width:0; overflow-wrap:anywhere; } .wkTxt .muted { font-size:12px; }
.appr { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:12px 20px; border-bottom:1px solid #f1f3f4; } .appr > div { flex:1; min-width:220px; } .appr .muted { font-size:12px; }
.tile.click { cursor:pointer; } .tile.click:hover { background:#e8eaed; }
@media (max-width:760px) { .wkItem, .wkDay, .appr { padding-left:14px; padding-right:14px; } }

/* Sal's simple view */
.salHello { font-size:26px; font-weight:400; margin:4px 0 14px; }
.salBtns { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:14px; margin-bottom:16px; }
.salBtn { border:0; border-radius:28px; padding:26px 22px; font:500 22px/1.25 "Google Sans", sans-serif; text-align:left; cursor:pointer; display:flex; align-items:center; gap:14px; }
.salBtn span { font-size:34px; } .salBtn.g { background:#e6f4ea; color:#137333; } .salBtn.r { background:#fce8e6; color:#a50e0e; } .salBtn.b { background:#e8f0fe; color:#174ea6; } .salBtn.y { background:#fef7e0; color:#7a4b00; }
.salTalk { width:100%; border:0; border-radius:999px; padding:20px; font:500 22px "Google Sans", sans-serif; background:#1a73e8; color:#fff; cursor:pointer; margin-bottom:24px; }

/* Alerts */
.alGroup { margin-bottom:18px; } .alGroup h3 { font-size:15px; font-weight:500; margin:0 0 8px 4px; color:#5f6368; } .alGroup.late h3 { color:#d93025; }
.alItem { display:flex; gap:12px; align-items:center; background:#f8f9fa; border-radius:18px; padding:12px 14px; margin-bottom:8px; border-left:5px solid #dadce0; flex-wrap:wrap; }
.alItem.late { border-left-color:#d93025; background:#fdf3f2; } .alItem.near { border-left-color:#f9ab00; }
.alDate { width:56px; text-align:center; flex:none; } .alDate b { display:block; font-size:15px; font-weight:500; } .alDate span { font-size:11px; color:#5f6368; }
.alBody { flex:1; min-width:180px; } .alT { font-weight:500; overflow-wrap:anywhere; } .alBody .muted { overflow-wrap:anywhere; }
.alActs { display:flex; gap:6px; align-items:center; flex-wrap:wrap; } .alActs .btn { padding:6px 14px; font-size:13px; } .alActs select { padding:6px 10px; font-size:13px; border-radius:999px; }
.alMore { display:flex; gap:16px; margin:6px 4px 10px; }
.alItem.hid { opacity:.7; }
.alSel { width:20px; height:20px; accent-color:#1a73e8; flex:none; margin:0; }
.alSelBar { display:flex; gap:12px; align-items:center; padding:8px 14px; margin-bottom:10px; background:#fff; border:1px solid #dadce0; border-radius:999px; } .alSelBar label { display:flex; gap:8px; align-items:center; font-size:14px; } .alSelBar input { width:18px; height:18px; accent-color:#1a73e8; margin:0; }
@media (max-width:760px) { .alActs { width:100%; justify-content:flex-end; } }

/* Cards */
.cardWarn { background:#fef7e0; color:#7a4b00; border-radius:16px; padding:10px 14px; font-size:14px; margin-bottom:14px; }
.cardGrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr)); gap:16px; }
.ccard { background:linear-gradient(135deg,#202124,#3c4043); color:#fff; border-radius:24px; padding:18px 20px; display:grid; gap:8px; }
.ccard.amex { background:linear-gradient(135deg,#0b5394,#3d85c6); } .ccard.visa { background:linear-gradient(135deg,#1a237e,#3949ab); } .ccard.mc { background:linear-gradient(135deg,#7a2e0e,#c2571a); }
.ccard .nick { font-size:19px; font-weight:500; } .ccard .num { font:500 20px/1 "Google Sans", monospace; letter-spacing:2px; display:flex; align-items:center; gap:10px; }
.ccard .num button { font-size:12px; letter-spacing:0; background:rgba(255,255,255,.18); color:#fff; border:0; border-radius:999px; padding:5px 12px; cursor:pointer; }
.ccard .meta { font-size:13px; opacity:.85; } .ccard .exp.bad { color:#ffb4ab; font-weight:600; }
.ccard ul { margin:4px 0 0; padding-left:18px; font-size:13px; opacity:.92; }
.ccard .acts { display:flex; gap:8px; } .ccard .acts .btn { background:rgba(255,255,255,.95); padding:6px 14px; font-size:13px; } .ccard a { color:#aecbfa; }

/* Insurance & License table fits the window (no sideways scrolling) */
#insTable { table-layout:auto; }
#insTable td, #insTable th { white-space:normal; vertical-align:middle; }
#insTable .need { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin:2px 0; }
#insTable .insActs { white-space:nowrap; text-align:right; } #insTable .insActs .btn { padding:6px 14px; font-size:13px; margin-left:6px; }
@media (max-width:760px) { #insTable thead { display:none; } #insTable tr { display:grid; grid-template-columns:1fr auto; gap:4px 10px; padding:10px 12px; border-bottom:1px solid #f1f3f4; } #insTable td { border:0; padding:2px 0; } #insTable .insActs { grid-column:1/-1; text-align:left; } #insTable .insActs .btn { margin:0 6px 0 0; } }

/* Master Directory fits the window */
#dirTable td, #dirTable th { white-space:normal; vertical-align:middle; }
#dirTable .em { max-width:240px; overflow-wrap:anywhere; font-size:13px; }
#dirTable .dirActs { text-align:right; } #dirTable .pwho { min-width:0; }
#dirTable .pwho .av, #dirTable .pwho .av0 { width:72px !important; height:72px !important; border-radius:14px !important; font-size:20px !important; }
#dirTable .tag { display:inline-block; margin-bottom:3px; }
@media (max-width:760px) {
  #dirTable thead { display:none; } #dirTable tr:not(.grp) { display:grid; grid-template-columns:1fr 1fr; gap:6px 12px; padding:12px; border-bottom:1px solid #f1f3f4; }
  #dirTable tr:not(.grp) td { border:0; padding:0; } #dirTable tr:not(.grp) td:first-child { grid-column:1/-1; }
  #dirTable .dirActs { grid-column:1/-1; text-align:left; } #dirTable tr.grp td { position:static; }
  #dirTable .pwho .av, #dirTable .pwho .av0 { width:56px !important; height:56px !important; }
}
/* Phones: Users and recurring tasks as stacked rows */
@media (max-width:760px) {
  #userTable thead, #mtAll thead { display:none; }
  #userTable tr, #mtAll tr { display:flex; flex-wrap:wrap; gap:4px 12px; padding:10px 12px; border-bottom:1px solid #f1f3f4; }
  #userTable td, #mtAll td { border:0; padding:0; white-space:normal; }
  #userTable td:first-child, #mtAll td:first-child { flex-basis:100%; }
}

.librep { width:100%; padding:7px 12px; font-size:13px; }

/* Tab dropdowns */
nav { align-items:center; }
.navGroup { position:relative; flex:none; }
.navTrig { display:inline-flex; align-items:center; gap:4px; padding:9px 16px; border-radius:999px; font-weight:500; cursor:pointer; user-select:none; white-space:nowrap; }
.navTrig::after { content:''; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-3px); margin-left:4px; opacity:.6; }
.navTrig:hover, .navGroup.open .navTrig { background:var(--soft); }
.navGroup.on .navTrig { background:#e8f0fe; color:#1967d2; }
.navGroup:has(.badge:not(:empty)) .navTrig::before { content:''; width:8px; height:8px; border-radius:50%; background:var(--bad); order:2; }
.navMenu { display:none; position:absolute; left:0; top:calc(100% + 4px); background:#fff; border-radius:16px; box-shadow:0 8px 28px rgba(60,64,67,.22); padding:6px; min-width:210px; z-index:30; }
.navGroup.open .navMenu { display:grid; }
.navMenu button { text-align:left; width:100%; border-radius:12px; }
@media (hover:hover) { .navGroup:hover .navMenu { display:grid; } .navGroup:hover .navMenu::before { content:''; position:absolute; left:0; right:0; top:-8px; height:8px; } }
@media (max-width:760px) {
  nav { flex-wrap:wrap; overflow:visible; row-gap:2px; }
  .navTrig { padding:8px 12px; font-size:14px; }
  .navMenu { position:fixed; left:12px; right:12px; top:auto; min-width:0; }
}

/* Admin tasks (Nov 6, 2026) */
.tkTop { align-items:center; gap:10px; flex-wrap:wrap; }
.tkShowDone { display:flex; align-items:center; gap:6px; font-size:14px; }
.tkGroup h3 { font:500 14px/1.3 "Google Sans", sans-serif; color:var(--muted); margin:18px 4px 8px; }
.tkGroup.late h3 { color:#d93025; }
.tkItem { display:flex; gap:12px; align-items:flex-start; background:#f8f9fa; border-radius:18px; padding:12px 14px; margin-bottom:8px; border-left:5px solid #dadce0; cursor:pointer; }
.tkItem:hover { background:#f1f3f4; }
.tkItem.late { border-left-color:#d93025; background:#fdf3f2; } .tkItem.near { border-left-color:#f9ab00; } .tkItem.high .tkT::after { content:'High'; margin-left:8px; font-size:11px; font-weight:600; color:#a50e0e; background:#fce8e6; border-radius:999px; padding:2px 8px; vertical-align:2px; }
.tkItem.done { opacity:.6; } .tkItem.done .tkT { text-decoration:line-through; }
.tkChk { flex:none; width:26px; height:26px; border-radius:50%; border:2px solid #9aa0a6; background:#fff; cursor:pointer; display:grid; place-items:center; font-size:15px; color:#fff; padding:0; margin-top:1px; }
.tkChk:hover { border-color:#1e8e3e; } .tkItem.done .tkChk { background:#1e8e3e; border-color:#1e8e3e; }
.tkBody { flex:1; min-width:0; } .tkT { font-weight:500; overflow-wrap:anywhere; }
.tkWho { display:inline-flex; gap:4px; flex-wrap:wrap; margin-right:6px; }
.tkWho b { font-weight:500; font-size:12px; background:#e8f0fe; color:#174ea6; border-radius:999px; padding:1px 8px; }
.tkNote { font-size:13px; color:var(--muted); white-space:pre-wrap; margin-top:4px; overflow-wrap:anywhere; }
#taskWhoPick .chip { font-size:14px; padding:7px 14px; }
.salTasks { margin:4px 0 20px; } .salTasks h3 { font:500 22px/1.3 "Google Sans", sans-serif; margin:6px 0 10px; }
.salTask { display:flex; align-items:center; gap:14px; background:#f8f9fa; border-radius:22px; padding:16px 18px; margin-bottom:10px; font-size:19px; }
.salTask.late { background:#fdf3f2; } .salTask .w { flex:1; min-width:0; overflow-wrap:anywhere; } .salTask small { display:block; font-size:14px; color:var(--muted); margin-top:2px; }
.salDone { flex:none; border:0; border-radius:999px; background:#1e8e3e; color:#fff; font:500 18px "Google Sans", sans-serif; padding:12px 20px; cursor:pointer; }

/* ---------- Responsive pass (Nov 8, 2026): tablets and phones ---------- */
.pr .act input.dt { width:150px; }
.pr .who { display:block; margin-left:0; text-align:left; font-size:14px; color:var(--fg); }
.pr .who b { display:block; font-size:15px; }
img, video, canvas { max-width:100%; }
input, select, textarea, button { max-width:100%; }

@media (max-width:1024px) {
  /* one swipeable row of tabs instead of three wrapped rows */
  .bar { flex-wrap:wrap; }
  nav { order:3; flex-basis:100%; flex-wrap:nowrap !important; overflow-x:auto !important; overflow-y:hidden; scrollbar-width:none; -webkit-overflow-scrolling:touch; margin:0 -16px; padding:2px 12px 4px; row-gap:0; }
  nav::-webkit-scrollbar { display:none; }
  nav > button, .navGroup { flex:none; white-space:nowrap; }
  .navMenu { position:fixed; min-width:0; }
  /* let the page scroll instead of small boxes inside it */
  .scroll { max-height:none; }
  /* Directory as cards */
  #dirTable thead { display:none; }
  #dirTable, #dirTable tbody { display:block; }
  #dirTable tr:not(.grp) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 14px; padding:14px 16px; border-bottom:1px solid #f1f3f4; align-items:start; }
  #dirTable tr.grp { display:block; } #dirTable tr.grp td { display:block; position:static; }
  #dirTable tr:not(.grp) td { border:0; padding:0; min-width:0; overflow-wrap:anywhere; }
  #dirTable tr:not(.grp) td:first-child { grid-column:1/-1; }
  #dirTable .dirActs { grid-column:1/-1; text-align:left; }
  #dirTable .em { max-width:none; }
}

@media (max-width:760px) {
  nav { margin:0 -14px; padding:2px 8px 4px; }
  /* 16px text stops iPhone from zooming in when you tap a box */
  input, select, textarea { font-size:16px !important; }
  .row { flex-wrap:wrap; }
  .row > .btn, .row > button.btn { flex:1 1 auto; }
  #printSheet, #bkBtn { margin-left:0 !important; flex:1 1 100%; }
  .f { flex:1 1 100%; } .f input, .f select { width:100%; }
  /* Rent rows: name on top, then amount and check, then date and Paid */
  .pr { grid-template-columns:1fr; padding:14px; gap:10px; }
  .pr .act { display:grid; grid-template-columns:1fr 1fr; gap:8px; justify-content:stretch; }
  .pr .act input, .pr .act input.chk, .pr .act .pay { width:100%; min-width:0; }
  .pr .act .pay { min-height:44px; }
  .pr.isPaid .act { grid-template-columns:1fr; }
  .paidinfo { overflow-wrap:anywhere; }
  /* Directory cards, two across */
  #dirTable tr:not(.grp) { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
  .dirActs .btn { width:100%; }
  /* buttons big enough to tap */
  .btn, .chip { min-height:40px; }
  table { width:100%; }
  .dlg form { grid-template-columns:1fr !important; }
}
@media (max-width:760px) {
  /* chip rows (locations, filters) swipe sideways instead of squashing */
  .chips { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; flex:1 1 100%; min-width:0; padding-bottom:2px; }
  .chips::-webkit-scrollbar { display:none; }
  .chip { white-space:nowrap; flex:none; }
  #mDays .chips { flex-wrap:wrap; }
}
@media (max-width:420px) {
  .tiles { gap:8px; } .tile { padding:12px; } .tile .v { font-size:21px !important; }
}
@media (max-width:340px) { #dirTable tr:not(.grp) { grid-template-columns:1fr; } }
/* calendar: seven equal columns, event labels shrink instead of widening a day */
#mtCal { grid-template-columns:repeat(7,minmax(0,1fr)) !important; }
#mtCal .calE { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
@media (max-width:760px) {
  #mtCal .calE { font-size:0; height:6px; padding:0; border-radius:3px; margin-top:2px; }
  #mtCal .calD { min-height:58px; padding:4px; }
  /* wide tables (vendors, jobs, reports) become stacked rows */
  #tab-vend table thead, #repTable thead { display:none; }
  #tab-vend table tr, #repTable tr { display:flex; flex-wrap:wrap; gap:4px 12px; padding:10px 12px; border-bottom:1px solid #f1f3f4; }
  #tab-vend table td, #repTable td { border:0; padding:0; white-space:normal; overflow-wrap:anywhere; }
  #tab-vend table td:first-child, #repTable td:first-child { flex-basis:100%; }
}
@media (max-width:760px) {
  /* property detail: renter and staff tables as stacked rows */
  .detail table thead { display:none; }
  .detail table tr { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:10px 12px; border-bottom:1px solid #f1f3f4; }
  .detail table td { border:0; padding:0; white-space:normal; overflow-wrap:anywhere; }
  .detail table td:first-child { flex-basis:100%; }
}

/* Directory Faces view (Nov 8, 2026) */
#dirFaces .fcChips { margin-bottom:12px; }
.fcSec { margin-bottom:14px; padding:0; overflow:hidden; }
.fcSec summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; padding:14px 16px; font:500 17px/1.3 "Google Sans", sans-serif; }
.fcSec summary::-webkit-details-marker { display:none; }
.fcSec summary::after { content:''; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-left:10px; opacity:.6; transition:transform .15s; }
.fcSec:not([open]) summary::after { transform:rotate(-45deg); }
.fcSec summary small { margin-left:auto; color:var(--muted); font-size:13px; }
.fcGrid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; padding:0 16px 16px; }
@media (max-width:1100px) { .fcGrid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:760px) { .fcGrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 8px; padding:0 10px 14px; } }
.fcTile { display:flex; flex-direction:column; align-items:center; text-align:center; min-width:0; gap:2px; }
.fcPic { text-decoration:none; color:inherit; display:block; width:100%; aspect-ratio:1; border-radius:18px; overflow:hidden; background:#f1f3f4; margin-bottom:4px; }
.fcPic img { width:100%; height:100%; object-fit:cover; display:block; }
.fcIni { display:grid; place-items:center; width:100%; height:100%; font:500 24px "Google Sans", sans-serif; color:#5f6368; }
.fcName { font-weight:600; font-size:14px; line-height:1.25; color:var(--fg); text-decoration:none; overflow-wrap:anywhere; }
a.fcName { color:#1967d2; }
.fcSub { font-size:12px; color:var(--muted); }
.fcPhone { font-size:12.5px; color:#1967d2; text-decoration:none; white-space:nowrap; }
.fcActs { display:flex; gap:6px; margin-top:4px; }
.fcActs a { font-size:12px; font-weight:500; text-decoration:none; color:#1967d2; background:#e8f0fe; border-radius:999px; padding:4px 10px; }
/* menus moved out of the tab row on phones and tablets keep the tab look */
.navFloat { background:#fff; border-radius:16px; box-shadow:0 8px 28px rgba(60,64,67,.22); padding:6px; gap:2px; font:inherit; }
.navFloat button { border:0; background:none; padding:12px 16px; border-radius:12px; font:inherit; font-weight:500; font-size:15px; color:var(--fg); cursor:pointer; text-align:left; width:100%; display:flex; align-items:center; gap:8px; }
.navFloat button:active, .navFloat button:hover { background:var(--soft); }
.navFloat button.on { background:#e8f0fe; color:#1967d2; }

/* Texts tab (Nov 8, 2026) */
.txWrap { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; }
.txPick, .txCompose { background:#fff; border:1px solid #dadce0; border-radius:18px; padding:14px 16px; }
.txCompose h3 { margin:0 0 8px; font-weight:500; font-size:16px; }
.txSelRow { padding:6px 2px; } .txSelRow label { display:flex; gap:8px; align-items:center; font-size:14px; } .txSelRow input, .txRow input { width:18px; height:18px; accent-color:#1a73e8; margin:0; flex:none; }
.txList { max-height:60vh; overflow:auto; border-top:1px solid #eee; }
.txRow { display:flex; gap:12px; align-items:center; padding:8px 4px; border-bottom:1px solid #f1f3f4; cursor:pointer; }
.txRow img, .txRow .ph { width:36px; height:36px; border-radius:50%; object-fit:cover; background:#e8eaed; flex:none; display:flex; align-items:center; justify-content:center; color:#5f6368; font-weight:600; }
.txRow .nm { flex:1; min-width:0; } .txRow .nm b { font-weight:500; display:block; } .txRow .nm span { font-size:12px; color:#5f6368; }
.txRow .no { font-size:12px; color:#b3261e; }
.txTo { font-size:13px; margin-bottom:8px; line-height:1.5; max-height:90px; overflow:auto; }
#txBody { width:100%; font:inherit; padding:12px; border:1px solid #c4c7c5; border-radius:12px; resize:vertical; }
.txHistItem { padding:10px 0; border-top:1px solid #f1f3f4; font-size:14px; color:#1d1d1b; } .txHistItem .muted { font-size:12px; }
@media (max-width:860px) { .txWrap { grid-template-columns:1fr; } .txList { max-height:40vh; } }

/* Texts: header phone button, From line, To chips, GIF or photo (Nov 9, 2026) */
.hdrText { width:40px; height:40px; border-radius:50%; border:1px solid #dadce0; background:#fff; color:#1a73e8; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; flex:none; }
.hdrText:hover { background:#f1f6fe; }
.txFrom { font-size:13px; color:#1d1d1b; background:#f1f3f4; border-radius:10px; padding:8px 12px; margin-bottom:8px; line-height:1.4; }
.txTo { max-height:140px; }
.txChip { display:inline-flex; align-items:center; gap:2px; background:#e8f0fe; color:#174ea6; border-radius:999px; padding:3px 4px 3px 10px; margin:2px 4px 2px 0; font-size:13px; }
.txChip button { border:0; background:none; color:inherit; font-size:16px; line-height:1; cursor:pointer; padding:0 5px; }
.txAddRow { margin-bottom:8px; }
.txMediaPrev { display:flex; gap:10px; align-items:flex-end; margin:8px 0; } .txMediaPrev img { max-width:180px; max-height:160px; border-radius:12px; border:1px solid #dadce0; }
.txMedia { border:1px solid #dadce0; border-radius:12px; padding:10px 12px; margin-top:8px; }
.txGifGrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:6px; max-height:260px; overflow:auto; margin-top:8px; } .txGifGrid img { width:100%; height:80px; object-fit:cover; border-radius:8px; cursor:pointer; }
.txHistImg { display:block; max-width:140px; max-height:110px; border-radius:8px; margin:6px 0 2px; }
.txCompose.txDrop { outline:2px dashed #1a73e8; outline-offset:-6px; background:#f1f6fe; }
.txDropHint { font-size:12px; color:#5f6368; margin:4px 0 0; }

/* Texts: proceed or go back confirmation */
#txConfirmDlg { align-items:center; z-index:60; }
#txConfirmDlg form { max-width:440px; min-height:0; border-radius:28px; grid-template-columns:1fr; }
#txConfirmDlg .txConfirmBody { background:#f1f3f4; border-radius:12px; padding:12px 14px; white-space:pre-wrap; overflow-wrap:anywhere; max-height:40vh; overflow:auto; }
@media (max-width:640px) { #txConfirmDlg { padding:16px; align-items:center; } #txConfirmDlg form { padding:22px 18px; box-shadow:0 24px 48px rgba(0,0,0,.18); } }

/* Messages tab (Nov 9, 2026) */
.msWrap { display:grid; grid-template-columns:minmax(260px,340px) minmax(0,1fr); gap:18px; align-items:start; }
.msList, .msThread { background:#fff; border:1px solid #dadce0; border-radius:18px; overflow:hidden; }
.msList { max-height:72vh; overflow:auto; }
.msRow { display:flex; gap:12px; align-items:center; padding:12px 14px; border-bottom:1px solid #f1f3f4; cursor:pointer; }
.msRow:hover { background:#f8f9fa; } .msRow.on { background:#e8f0fe; }
.msRow .ph { width:40px; height:40px; border-radius:50%; background:#e8eaed; display:flex; align-items:center; justify-content:center; color:#5f6368; font-weight:600; flex:none; }
.msRow .nm { flex:1; min-width:0; } .msRow .nm b { display:block; font-weight:500; } .msRow .nm span { display:block; font-size:12px; color:#5f6368; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msRow .nm .last { color:#3c4043; font-size:13px; margin-top:2px; } .msRow.unread .nm .last, .msRow.unread .nm b { font-weight:600; color:#1d1d1b; }
.msRow .meta { font-size:12px; color:#5f6368; display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex:none; }
.msRow .meta .badge { position:static; background:#1a73e8; color:#fff; border-radius:999px; padding:1px 7px; font-size:11px; }
.msThread { display:flex; flex-direction:column; min-height:60vh; max-height:72vh; }
.msEmpty { padding:40px; text-align:center; }
.msHead { display:flex; gap:10px; align-items:center; padding:12px 16px; border-bottom:1px solid #eee; flex-wrap:wrap; }
.msHead .nm { flex:1; min-width:0; } .msHead .nm b { display:block; font-weight:500; } .msHead .nm span { font-size:12px; color:#5f6368; }
.msNote { padding:8px 16px; background:#fef7e0; color:#7a4b00; font-size:13px; } .msNote.warn { background:#fce8e6; color:#c5221f; }
.msMsgs { flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:8px; background:#fafafa; }
.msMsgs .msg { max-width:78%; }
.msMsgs .msg img { max-width:220px; }
.msTime { font-size:11px; color:#5f6368; margin-top:4px; }
.msg.u .msTime { color:#4a6fa8; }
.msIn { display:flex; gap:10px; padding:12px 16px; border-top:1px solid #eee; align-items:flex-end; }
.msIn textarea { flex:1; resize:none; border:1px solid #dadce0; border-radius:14px; padding:10px 12px; font:inherit; }
@media (max-width:860px) { .msWrap { grid-template-columns:1fr; } .msList { max-height:40vh; } .msThread { max-height:none; } }
