/* Account, settings, chat, notifications, search, and the walls (forced password, agreement, legal
   pages, the Google landing). Shared parts live in base.css and kit.css; colours are tokens only —
   with ONE exception, marked below: Google's own sign-in button. */

/* ---------- small shared parts ---------- */
.form{display:flex;flex-direction:column;gap:14px}
.sub.center{text-align:center}
.link.center{align-self:center}
.link.ico svg{width:18px;height:18px;flex:none}
.textlink.danger{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;color:var(--danger)}
.textlink.danger svg{width:18px;height:18px;flex:none}
.ok-line{display:flex;align-items:center;gap:6px;color:var(--secondary-text);font-weight:600}
.ok-line svg{width:18px;height:18px;flex:none}
.check{display:flex;gap:10px;align-items:flex-start;font-size:.9rem;line-height:1.45;cursor:pointer}
.check input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--accent)}
.av img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.av.xl{width:64px;height:64px;font-size:1.3rem}

/* ---------- profile and settings ---------- */
.me-hero{flex-direction:row;align-items:center;gap:14px}
.me-id{min-width:0;display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.me-id h1{font-size:1.25rem}
.me-id .ltr{max-width:100%;overflow-wrap:anywhere}
.me-units{flex-wrap:wrap}
.me-units .seg{flex:1 1 190px;min-width:170px}
.quiet{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.quiet-row{display:flex;gap:10px;flex-wrap:wrap}
.quiet-acts{display:flex;align-items:center;gap:14px}
.rem-time{flex:1 1 120px;min-width:0;display:flex;align-items:center;gap:8px;font-size:.84rem;font-weight:600;color:var(--ink-2)}
.rem-time .input{flex:1;min-width:0}
.rem{padding-bottom:12px}
.rem + .rem{border-top:1px solid var(--line)}
.rem .kv{padding-bottom:8px}
.me-foot{padding-top:4px}
.me-foot a{color:inherit}
.me-pic{display:flex;align-items:center;gap:14px}
.me-pic-acts{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.me-pic label{position:relative;cursor:pointer}
.me-pic label:focus-within{outline:2px solid var(--secondary);outline-offset:2px}

/* ---------- chat ---------- */
/* the conversation fills the view: the messages scroll, the box to type in stays at the bottom */
.view > .chat{flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:8px}
.chat-h{flex:none;display:flex;align-items:center;gap:10px}
.chat-h .row-t{flex:1}
.chat-h .icon-btn{margin-inline-start:-8px}
.chat-h .link{align-self:center}
.thread{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent;display:flex;flex-direction:column;gap:6px;padding:4px 0 8px}
.thread > *{flex:none}
.bubble{max-width:82%;padding:8px 12px 6px;border-radius:16px;display:flex;flex-direction:column;gap:2px}
.bubble p{font-size:.94rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble.mine{align-self:flex-start;background:var(--accent);color:var(--on-accent);border-end-start-radius:5px}
.bubble.theirs{align-self:flex-end;background:var(--tile);color:var(--ink);border-end-end-radius:5px}
.bubble-meta{display:flex;align-items:center;gap:4px;font-size:.68rem;opacity:.72}
.bubble-meta svg{width:15px;height:15px}
.bubble-meta .seen{color:var(--secondary)}
.chat-day{align-self:center;margin:8px 0 2px}
.chat-day span{font-size:.72rem;font-weight:600;color:var(--ink-3);background:var(--tile);padding:3px 12px;border-radius:999px}
.chat-none{margin-block:auto}
.chat-bar{flex:none;display:flex;align-items:center;gap:8px}
.chat-bar .input{flex:1;min-width:0;border-radius:999px;padding-inline:18px}
.chat-send{flex:none;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--on-accent);transition:transform 120ms var(--ease-out)}
.chat-send:active{transform:scale(.94)}
.chat-send svg{width:22px;height:22px}

/* ---------- notifications ---------- */
.ntfs{display:flex;flex-direction:column;margin-block:-6px}
.ntf{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;width:100%;padding:12px 2px;text-align:start;transition:background-color 120ms ease}
.ntf + .ntf{border-top:1px solid var(--line)}
button.ntf:active{background:var(--tile-2)}
.ntf-dot{width:8px;height:8px;border-radius:50%;margin-top:7px}
.ntf.new .ntf-dot{background:var(--decor)}
.ntf:not(.new) .row-t b{font-weight:500;color:var(--ink-2)}
.ntf .row-t{gap:2px}
.ntf .chev{align-self:center}

/* ---------- search ---------- */
.gs-res{display:flex;flex-direction:column;gap:10px;min-height:140px}
.gs-res h3{margin-top:4px}
.gs-res .sk{min-height:44px}

/* ---------- legal pages and the agreement ---------- */
.legal{display:flex;flex-direction:column;gap:10px;padding-bottom:20px}
.legal > .brand{margin-top:6px}
.legal-text{display:flex;flex-direction:column;gap:18px}
.legal-sec h2{margin-bottom:6px}
.legal-sec p,.legal-sec li{font-size:.94rem;line-height:1.65;color:var(--ink)}
.legal-sec p + p{margin-top:8px}
.legal-sec ul{list-style:disc;padding-inline-start:20px;margin:4px 0}
.legal-sec li{margin-bottom:4px}
.legal-todo{background:var(--decor-tint);border-bottom:1px dashed var(--decor);padding:0 3px}
.agree-box{max-height:46vh;overflow-y:auto;overscroll-behavior:contain;padding:14px;border-radius:var(--r);background:var(--tile)}
.agree-box .legal-sec p,.agree-box .legal-sec li{font-size:.875rem}

/* ---------- the forced-password wall ---------- */
.wall-h{display:flex;align-items:center;gap:12px}
.wall-h h1{font-size:1.25rem}

/* ---------- "המשך עם Google" ----------
   THE EXCEPTION to "tokens only": Google's sign-in branding asks for its own look, so these colours
   are fixed — a white button, the #747775 outline, #1F1F1F text and the four-colour G, in the dark
   theme too (its light button is allowed on any background). Pill-shaped, as its "pill" option allows. */
.gsi-wrap{display:flex;flex-direction:column;gap:12px}
.gsi-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:0 12px;border:1px solid #747775;border-radius:999px;background:#FFFFFF;color:#1F1F1F;font-size:.94rem;font-weight:500;transition:background-color 160ms ease,transform 120ms var(--ease-out)}
.gsi-btn:active{background:#F2F2F2;transform:scale(.98)}
.gsi-btn:disabled{opacity:.55;pointer-events:none}
.gsi-g{width:20px;height:20px;flex:none}
.or-line{display:flex;align-items:center;gap:12px;color:var(--ink-3);font-size:.8125rem}
.or-line::before,.or-line::after{content:"";flex:1;height:1px;background:var(--line-2)}
.g-card{text-align:center}
.g-card .form{text-align:start}
.g-ic{display:flex;justify-content:center;color:var(--ink-2)}
.g-ic svg{width:30px;height:30px}
.g-code{font-size:2.1rem;font-weight:800;letter-spacing:.12em;text-align:center;margin:6px 0 2px;color:var(--ink)}
.g-row{border-top:1px solid var(--line)}
.g-row.col{display:flex;flex-direction:column;gap:10px;padding:12px 2px}
.g-row .gsi-g{width:22px;height:22px}

@media (hover: hover) and (pointer: fine){
  button.ntf:hover{background:var(--tile-2)}
  .gsi-btn:hover{background:#F8F8F8}
}
@media (prefers-reduced-motion: reduce){
  .chat-send:active,.gsi-btn:active{transform:none}
}
