/* IndoMail web + mobile app — Indo Chats Pvt. Ltd. */
:root {
  --brand: #0061FD;
  --brand-deep: #000B98;
  --brand-pale: #EAF1FF;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #F2F6FC;
  --hover: #E8EEF8;
  --selected: #D3E3FD;
  --text: #1F1F1F;
  --text-2: #5F6368;
  --border: #E1E5EA;
  --danger: #B3261E;
  --ok: #188038;
  --star: #F4B400;
  --shadow: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
  --radius: 16px;
  --font: 'Noto Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418; --surface: #1B1F24; --surface-2: #22272E; --hover: #2A3038; --selected: #1E3A66;
    --text: #E8EAED; --text-2: #9AA0A6; --border: #30363D; --brand-pale: #16264A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111418; --surface: #1B1F24; --surface-2: #22272E; --hover: #2A3038; --selected: #1E3A66;
  --text: #E8EAED; --text-2: #9AA0A6; --border: #30363D; --brand-pale: #16264A; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
.hidden { display: none !important; }
svg.i { width: 20px; height: 20px; fill: currentColor; flex: none; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: #0052d6; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- layout ---------- */
#app { height: 100%; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 8px; padding: 0 12px; flex: none; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 21px; font-weight: 600; min-width: 190px; letter-spacing: -.2px; }
.logo img { width: 36px; height: 36px; }
.logo b { color: var(--brand); }
.search { flex: 1; min-width: 0; max-width: 720px; display: flex; align-items: center; height: 48px; background: var(--surface-2); border-radius: 24px; padding: 0 6px; transition: background .15s, box-shadow .15s; }
.search:focus-within { background: var(--surface); box-shadow: var(--shadow); }
.search input { flex: 1; width: 100%; border: 0; background: transparent; outline: none; font-size: 16px; padding: 0 6px; min-width: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: none; text-transform: uppercase; user-select: none; }
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar-btn { border: 0; background: transparent; padding: 4px; border-radius: 50%; }
.avatar-btn:hover { background: var(--hover); }

.body { flex: 1; display: flex; min-height: 0; }
.sidebar { width: 256px; flex: none; padding: 8px 8px 16px 0; overflow-y: auto; display: flex; flex-direction: column; }
.compose-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 18px; margin: 0 0 16px 8px; border-radius: 16px; border: 0; background: var(--brand-pale); color: var(--text); font-weight: 600; font-size: 14px; box-shadow: none; transition: box-shadow .15s; align-self: flex-start; }
.compose-btn:hover { box-shadow: var(--shadow); }
.compose-btn svg { width: 24px; height: 24px; color: var(--brand); }
.nav-item { display: flex; align-items: center; gap: 18px; height: 32px; padding: 0 12px 0 26px; border-radius: 0 16px 16px 0; color: var(--text); text-decoration: none; cursor: pointer; user-select: none; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--selected); font-weight: 700; }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 700; }
.nav-item .dot { width: 14px; height: 14px; border-radius: 4px; flex: none; margin: 0 3px; }
.nav-section { display: flex; align-items: center; justify-content: space-between; padding: 16px 8px 4px 26px; font-size: 15px; font-weight: 500; }
.storage { margin: auto 16px 0 26px; padding-top: 16px; font-size: 12px; color: var(--text-2); }
.meter { height: 4px; border-radius: 2px; background: var(--border); margin: 6px 0; overflow: hidden; }
.meter > div { height: 100%; background: var(--brand); }

.main { flex: 1; min-width: 0; background: var(--surface); border-radius: var(--radius); margin: 0 16px 16px 0; display: flex; flex-direction: column; overflow: hidden; }
.toolbar { height: 48px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--border); }
.toolbar .spacer { flex: 1; }
.toolbar .range { color: var(--text-2); font-size: 12px; margin-right: 8px; white-space: nowrap; }
.cb { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; margin: 0 11px; }
.scroll { flex: 1; overflow-y: auto; }

/* ---------- list ---------- */
.row { display: flex; align-items: center; height: 40px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--border); cursor: pointer; background: var(--surface-2); position: relative; }
.row.unread { background: var(--surface); font-weight: 700; }
.row:hover { box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3); z-index: 1; }
.row.selected { background: var(--selected); }
.row .star { border: 0; background: transparent; padding: 6px; color: var(--text-2); display: grid; }
.row .star.on { color: var(--star); }
.row .from { width: 200px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.row .from .n { font-weight: 400; color: var(--text-2); }
.row .main-col { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .snip { color: var(--text-2); font-weight: 400; }
.row .chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-right: 6px; color: #fff; vertical-align: 1px; }
.row .date { width: 80px; text-align: right; font-size: 12px; flex: none; }
.row .att { color: var(--text-2); margin-left: 8px; display: grid; }
.row .row-avatar { display: none; }
.row .row-actions { display: none; position: absolute; right: 8px; background: inherit; align-items: center; }
.row:hover .row-actions { display: flex; }
.row:hover .date { visibility: hidden; }
.empty { padding: 64px 24px; text-align: center; color: var(--text-2); }
.empty svg { width: 64px; height: 64px; opacity: .35; }

/* ---------- thread ---------- */
.thread { padding: 8px 24px 40px 24px; max-width: 1100px; }
.thread h1 { font-size: 22px; font-weight: 400; margin: 12px 0 16px 52px; word-break: break-word; }
.thread h1 .chip { font-size: 12px; padding: 2px 8px; border-radius: 4px; color: #fff; margin-left: 8px; vertical-align: 3px; font-weight: 500; }
.msg { border-bottom: 1px solid var(--border); padding: 12px 0; }
.msg-head { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.msg-head .who { flex: 1; min-width: 0; }
.msg-head .who b { font-size: 14px; }
.msg-head .who .addr { color: var(--text-2); font-size: 12px; }
.msg-head .to { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-head .when { color: var(--text-2); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.msg.collapsed .msg-body, .msg.collapsed .to, .msg.collapsed .msg-actions { display: none; }
.msg .collapsed-snip { display: none; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.collapsed .collapsed-snip { display: block; }
.msg-body { margin: 12px 0 0 52px; }
.msg-body iframe { width: 100%; border: 0; height: 24px; display: block; background: #fff; border-radius: 4px; }
.banner { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: #FEF7E0; color: #7A4F01; }
.banner button { border: 0; background: transparent; color: var(--brand); font-weight: 600; padding: 0; }
.atts { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0 52px; }
.att-card { display: flex; align-items: center; gap: 10px; width: 220px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: var(--surface); }
.att-card:hover { background: var(--hover); }
.att-card .meta { min-width: 0; flex: 1; }
.att-card .fn { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-card .sz { color: var(--text-2); font-size: 12px; }
.att-card .ic { width: 32px; height: 32px; border-radius: 6px; background: var(--brand-pale); color: var(--brand); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.reply-bar { display: flex; gap: 12px; margin: 24px 0 0 52px; flex-wrap: wrap; }

/* ---------- compose ---------- */
.composers { position: fixed; right: 16px; bottom: 0; display: flex; gap: 16px; align-items: flex-end; z-index: 50; pointer-events: none; }
.composer { width: 560px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 80px); background: var(--surface); border-radius: 12px 12px 0 0; box-shadow: 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12), 0 5px 5px -3px rgba(0,0,0,.2); display: flex; flex-direction: column; pointer-events: auto; overflow: hidden; }
.composer.min { height: 40px; }
.composer.max { position: fixed; inset: 5vh 10vw; width: auto; height: auto; max-height: none; border-radius: 12px; }
.composer .c-head { height: 40px; background: var(--surface-2); display: flex; align-items: center; padding: 0 6px 0 16px; font-weight: 600; cursor: pointer; flex: none; }
.composer .c-head span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .c-head .icon-btn { width: 32px; height: 32px; }
.composer .c-head .icon-btn svg { width: 18px; height: 18px; }
.c-field { display: flex; align-items: center; border-bottom: 1px solid var(--border); margin: 0 16px; min-height: 40px; position: relative; }
.c-field label { color: var(--text-2); width: 44px; flex: none; }
.c-field input { flex: 1; border: 0; outline: none; background: transparent; padding: 8px 0; min-width: 0; }
.c-field .cc-toggle { border: 0; background: transparent; color: var(--text-2); padding: 4px; }
.c-field .cc-toggle:hover { text-decoration: underline; }
.suggest { position: absolute; top: 100%; left: 44px; right: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 8px; z-index: 5; overflow: hidden; }
.suggest div { padding: 8px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.suggest div.on, .suggest div:hover { background: var(--hover); }
.suggest small { color: var(--text-2); }
.editor { flex: 1; overflow-y: auto; padding: 12px 16px; outline: none; line-height: 1.5; word-wrap: break-word; }
.editor:empty::before { content: attr(data-placeholder); color: var(--text-2); }
.editor blockquote { margin: 0 0 0 .8ex; border-left: 1px solid #ccc; padding-left: 1ex; }
.fmt { display: flex; gap: 2px; padding: 4px 12px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.fmt .icon-btn { width: 32px; height: 32px; border-radius: 4px; }
.fmt .icon-btn svg { width: 18px; height: 18px; }
.c-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.c-file { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 6px; padding: 4px 4px 4px 10px; font-size: 12px; max-width: 240px; }
.c-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-file button { border: 0; background: transparent; color: var(--text-2); display: grid; padding: 2px; }
.c-foot { display: flex; align-items: center; gap: 4px; padding: 8px 12px 12px 16px; flex: none; }
.c-foot .status { color: var(--text-2); font-size: 12px; margin-left: 8px; }
.c-foot .spacer { flex: 1; }
.composer.drag { outline: 3px dashed var(--brand); outline-offset: -6px; }

/* ---------- forms / pages ---------- */
.page { padding: 24px 32px 48px; max-width: 880px; }
.page h2 { font-weight: 500; font-size: 22px; margin: 0 0 4px; }
.page h3 { font-weight: 600; font-size: 15px; margin: 28px 0 12px; }
.page p.sub { color: var(--text-2); margin: 0 0 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; max-width: 520px; }
.form-row label { font-weight: 600; font-size: 13px; }
.input { height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; background: var(--surface); outline: none; width: 100%; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
textarea.input { height: 120px; padding: 10px 12px; resize: vertical; }
.hint { font-size: 12px; color: var(--text-2); }
.hint.err { color: var(--danger); }
.hint.ok { color: var(--ok); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.card { background: var(--surface-2); border-radius: 12px; padding: 16px; }
.card .v { font-size: 24px; font-weight: 700; }
.card .k { color: var(--text-2); font-size: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
table.tbl th { color: var(--text-2); font-weight: 600; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--surface-2); }
.pill.on { background: #E6F4EA; color: var(--ok); }
.pill.off { background: #FCE8E6; color: var(--danger); }

/* auth */
.auth-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; background: var(--bg); }
.auth-card { width: 100%; max-width: 448px; background: var(--surface); border-radius: 28px; padding: 40px 36px 32px; }
.auth-card .logo { min-width: 0; margin-bottom: 20px; }
.auth-card h1 { font-size: 26px; font-weight: 500; margin: 0 0 6px; }
.auth-card p.sub { color: var(--text-2); margin: 0 0 24px; }
.auth-card .form-row { max-width: none; }
.addr-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.addr-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.addr-input input { border: 0; box-shadow: none !important; }
.addr-input span { padding: 0 12px; color: var(--text-2); white-space: nowrap; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; flex-wrap: wrap; }
.auth-err { background: #FCE8E6; color: var(--danger); padding: 10px 12px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }

/* menus, toasts, dialogs */
.menu { position: fixed; background: var(--surface); box-shadow: var(--shadow); border-radius: 8px; padding: 6px 0; min-width: 220px; z-index: 100; max-height: 70vh; overflow-y: auto; }
.menu .mi { display: flex; align-items: center; gap: 12px; padding: 8px 16px; cursor: pointer; }
.menu .mi:hover { background: var(--hover); }
.menu .mh { padding: 12px 16px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; gap: 12px; align-items: center; }
.menu .mh small { color: var(--text-2); display: block; }
.toast { position: fixed; left: 24px; bottom: 24px; background: #323232; color: #fff; padding: 12px 16px; border-radius: 6px; display: flex; gap: 20px; align-items: center; z-index: 200; box-shadow: var(--shadow); max-width: calc(100vw - 48px); }
.toast button { border: 0; background: transparent; color: #8AB4F8; font-weight: 700; }
.dialog-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; z-index: 150; padding: 16px; }
.dialog { background: var(--surface); border-radius: 24px; padding: 24px; width: 100%; max-width: 420px; }
.dialog h3 { margin: 0 0 16px; font-weight: 500; font-size: 20px; }
.dialog .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; }
.colors button.on { border-color: var(--text); }
.fab { display: none; }
.scrim { display: none; }
.loading { padding: 48px; text-align: center; color: var(--text-2); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- mobile app layout ---------- */
@media (max-width: 860px) {
  .logo { min-width: 0; }
  .logo span { display: none; }
  .topbar { height: 60px; padding: 0 8px; gap: 4px; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 90; background: var(--surface); width: 280px; padding-top: 16px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.drawer .sidebar { transform: none; }
  body.drawer .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80; }
  .sidebar .compose-btn { display: none; }
  .main { margin: 0; border-radius: 0; }
  .toolbar .range { display: none; }
  .row { height: auto; padding: 10px 12px; align-items: flex-start; flex-wrap: wrap; background: var(--surface); }
  .row .cb, .row .star { display: none; }
  .row .row-avatar { display: grid; margin-right: 12px; }
  .row.selected .row-avatar { background: var(--brand) !important; }
  .row .row-avatar { order: 0; }
  .row .from { flex: 1; width: auto; padding-right: 8px; font-size: 15px; order: 1; }
  .row .date { width: auto; order: 2; padding-top: 2px; }
  .row .main-col { order: 3; }
  .row .main-col { flex-basis: 100%; padding-left: 52px; margin-top: -18px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row .att { display: none; }
  .row:hover { box-shadow: none; }
  .row:hover .row-actions { display: none; }
  .row:hover .date { visibility: visible; }
  .thread { padding: 4px 12px 96px; }
  .thread h1 { margin-left: 0; font-size: 20px; }
  .msg-body, .atts, .reply-bar { margin-left: 0; }
  .att-card { width: 100%; }
  .fab { display: flex; position: fixed; right: 16px; bottom: 20px; height: 56px; padding: 0 20px 0 16px; border-radius: 16px; border: 0; background: var(--brand-pale); color: var(--text); font-weight: 600; align-items: center; gap: 12px; box-shadow: var(--shadow); z-index: 40; }
  .fab svg { color: var(--brand); width: 24px; height: 24px; }
  .composers { right: 0; left: 0; top: 0; bottom: 0; }
  .composers:empty { display: none; }
  .composer, .composer.max { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; }
  .composer.min { inset: auto 0 0 0; height: 48px; }
  .page { padding: 16px; }
  .toast { left: 12px; right: 12px; bottom: 88px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 861px) { .show-mobile { display: none !important; } }

/* ---------- v1.1: business, welcome, demo ---------- */
.seg { display: inline-flex; background: var(--surface-2); border-radius: 20px; padding: 3px; margin-bottom: 18px; }
.seg a { padding: 7px 18px; border-radius: 17px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 13px; }
.seg a.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.choice { border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-top: 14px; }
.choice h3 { margin: 0 0 4px; font-size: 16px; }
.choice .hint { display: block; margin-bottom: 12px; }
.setup-card { display: block; margin: -4px 12px 14px 12px; padding: 10px 12px; border-radius: 12px; background: #FFF4E5; color: #7A4F01; text-decoration: none; font-size: 12px; line-height: 1.4; }
.setup-card b { display: block; font-size: 13px; }
.demo-pill { background: #FFF4E5; color: #B35C00; text-decoration: none; margin-right: 6px; letter-spacing: .5px; }
.menu .mh small + small { margin-top: 2px; }
.dns-list { display: grid; gap: 10px; max-width: 900px; }
.dns-rec { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.dns-top { display: flex; gap: 12px; align-items: flex-start; }
.dns-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-pale); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.dns-val { display: flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--surface-2); border-radius: 8px; padding: 6px 4px 6px 12px; }
.dns-val code { flex: 1; font-family: Consolas, 'Courier New', monospace; font-size: 12px; word-break: break-all; }
@media (max-width: 860px) { .page { padding-bottom: 110px; } }

/* ======================= Indo Mail suite (Drive, Photos, Cloud, Contacts, Maps, Translate, Wallet, Travel, Business Profile, Ads) ======================= */
svg.si { width: 20px; height: 20px; flex: none; }
svg.si.big { width: 56px; height: 56px; opacity: .35; }
svg.si.star-on { color: var(--star); fill: var(--star); width: 16px; height: 16px; }
svg.si.muted { color: var(--text-2); width: 16px; height: 16px; }
.page.wide { max-width: 1180px; }
.muted { color: var(--text-2); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.small svg.si { width: 16px; height: 16px; }
a.btn { text-decoration: none; color: inherit; }
.banner.err { background: #FCE8E6; color: var(--danger); }
.banner.ok { background: #E6F4EA; color: var(--ok); }
.banner svg.si { width: 18px; height: 18px; }
.ap-tile { display: inline-grid; place-items: center; color: #fff; border-radius: 14px; flex: none; }
.ap-tile.lg { width: 52px; height: 52px; }
.ap-tile.lg svg.si { width: 26px; height: 26px; }
.ap-tile.sm { width: 28px; height: 28px; border-radius: 8px; margin-left: 4px; }
.ap-tile.sm svg.si { width: 16px; height: 16px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ap-item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.ap-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ap-item b { margin-top: 6px; }
.ap-item small { color: var(--text-2); font-size: 12px; line-height: 1.4; }
.ap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ap-head h2 { margin-top: 4px; }
.ap-head .seg { margin-bottom: 0; flex-wrap: wrap; }
.ap-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ap-actions .btn svg.si, .inline-form .btn svg.si { width: 18px; height: 18px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.inline-form .input { flex: 1; min-width: 180px; }
.crumbs { padding: 6px 0 12px; color: var(--text-2); }
.crumbs a { text-decoration: none; }
table.tbl.drive tr.clickable { cursor: pointer; }
table.tbl.drive tr.clickable:hover td { background: var(--hover); }
table.tbl.drive td { vertical-align: middle; }
.fname { display: inline-flex; align-items: center; gap: 10px; }
.fname svg.si { color: var(--text-2); }
.fname .avatar { width: 30px; height: 30px; font-size: 13px; }
.page.drop { outline: 3px dashed var(--brand); outline-offset: -8px; border-radius: 16px; }
.dlg-form { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.dlg-form .form-row { margin-bottom: 12px; }
.dialog { max-width: 480px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin: 8px 0 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.code { background: #1E2530; color: #E8EAED; border-radius: 8px; padding: 12px; overflow-x: auto; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 6px 12px; font-size: 13px; }
.chip-btn svg.si { width: 14px; height: 14px; }
/* viewer */
.viewer { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 160; display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #fff; }
.viewer-bar .icon-btn { color: #fff; }
.viewer-bar .spacer { flex: 1; }
.viewer-body { flex: 1; display: grid; place-items: center; padding: 8px; min-height: 0; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; border-radius: 6px; }
.viewer-body iframe { width: min(100%, 1000px); height: 100%; background: #fff; border: 0; border-radius: 6px; }
/* photos */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; }
.ph-day { grid-column: 1 / -1; font-weight: 600; padding: 14px 2px 6px; }
.ph { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; border-radius: 6px; cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .pick { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: none; place-items: center; }
.ph:hover .pick, .ph.picked .pick { display: grid; }
.ph.picked { outline: 3px solid var(--brand); outline-offset: -3px; }
.ph.picked .pick { background: var(--brand); }
.ph-file { display: grid; place-items: center; height: 100%; padding: 8px; text-align: center; font-size: 12px; color: var(--text-2); gap: 4px; }
.ph-grid.albums { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.album { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.album small { color: var(--text-2); }
.selbar { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 8px; background: var(--brand-pale); border-radius: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.selbar span { font-weight: 600; margin-right: auto; }
/* cloud */
.big-num { font-size: 34px; font-weight: 700; margin: 8px 0 12px; }
.big-num small { font-size: 15px; font-weight: 400; color: var(--text-2); }
.stack { display: flex; height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0; color: var(--text-2); font-size: 13px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan .price { font-size: 20px; font-weight: 700; }
.plan small { color: var(--text-2); }
.card.link { text-decoration: none; color: var(--text); }
.card.link svg.si { width: 24px; height: 24px; }
/* maps */
.map-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.map { height: 560px; border-radius: 16px; overflow: hidden; background: var(--surface-2); position: relative; }
.map-side { max-height: 560px; overflow-y: auto; }
.place { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.place > div { flex: 1; min-width: 0; cursor: pointer; }
.place b, .place small { display: block; overflow: hidden; text-overflow: ellipsis; }
.place small { color: var(--text-2); font-size: 12px; }
/* translate */
.tr-langs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.tr-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tr-boxes textarea.input { height: 220px; font-size: 16px; }
.tr-item { padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; display: grid; gap: 2px; }
.tr-item small { color: var(--text-2); }
/* wallet */
.qr-wrap { text-align: center; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 8px; }
code.upi { display: block; word-break: break-all; font-size: 11px; color: var(--text-2); background: var(--surface-2); padding: 8px; border-radius: 6px; }
/* travel, ads */
.trip, .camp, .setup { border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; background: var(--surface); }
.trip-h, .camp-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.trip-h small, .camp-h small { display: block; color: var(--text-2); margin-top: 4px; font-size: 12px; }
.trip-i { display: flex; gap: 12px; align-items: center; padding: 10px 0 0; }
.trip-i > div { flex: 1; }
.trip-i small { display: block; color: var(--text-2); font-size: 12px; }
.camp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; }
.camp-stats > div { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.camp-stats b { display: block; font-size: 17px; }
.camp-stats small { color: var(--text-2); font-size: 12px; }
.creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ad-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ad-card > small:first-child { color: var(--text-2); font-weight: 600; }
.ad-card .input { height: 36px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 8px 0 22px; border-bottom: 1px solid var(--border); }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bar i { width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; display: block; }
.bar span { position: absolute; bottom: -20px; font-size: 9px; color: var(--text-2); white-space: nowrap; }
.bar:nth-child(odd) span { visibility: hidden; }
.inbox-ad { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--surface); flex-wrap: wrap; }
.inbox-ad small { color: var(--text-2); margin-left: auto; }
@media (max-width: 860px) {
  .page.wide { padding: 16px 14px 40px; }
  .two-col, .tr-boxes, .map-wrap { grid-template-columns: 1fr; }
  .map { height: 360px; }
  .ap-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .ap-head { flex-direction: column; }
}
table.tbl .right { text-align: right; }
.in-suite .fab { display: none; }
.up-panel { position: fixed; right: 16px; bottom: 16px; z-index: 170; width: min(360px, calc(100vw - 32px)); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 12px; }
.up-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 8px; align-items: center; padding: 6px 0; font-size: 13px; }
.up-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar { grid-column: 1 / 3; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }

/* scam warning (1.4) */
.banner.scam { display: block; border-left: 4px solid #B35C00; background: #FFF4E5; color: #5C2E00; padding: 10px 14px; }
.banner.scam.high { border-left-color: #C5221F; background: #FCE8E6; color: #5F1410; }
.banner.scam .scam-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.banner.scam ul { margin: 4px 0 6px 22px; padding: 0; }
.banner.scam .scam-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
[data-theme="dark"] .banner.scam { background: #3A2A12; color: #FFD9A8; }
[data-theme="dark"] .banner.scam.high { background: #3B1614; color: #FFC9C4; }

/* 1.5: inbox tabs, snooze, schedule send, filters */
.cat-tabs { display: flex; border-bottom: 1px solid var(--border, #E3E8F0); overflow-x: auto; }
.cat-tab { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--text-2, #5F6368); font: inherit; font-weight: 500; cursor: pointer; }
.cat-tab svg { width: 18px; height: 18px; fill: currentColor; }
.cat-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.cat-tab:hover { background: var(--hover, rgba(0,0,0,.04)); }
.cat-new { font-size: 11px; background: var(--brand); color: #fff; border-radius: 10px; padding: 1px 7px; }
.row .imp svg { width: 16px; height: 16px; fill: #F2B705; vertical-align: -3px; margin-right: 4px; }
.row .date.snz { color: #B35C00; font-weight: 600; }
.send-split { display: inline-flex; }
.send-split .send-main { border-radius: 18px 0 0 18px; padding-right: 14px; }
.send-split .send-more { border-radius: 0 18px 18px 0; padding: 0 6px; margin-left: 1px; min-width: 0; }
.send-split .send-more svg { width: 20px; height: 20px; fill: #fff; }
.thread h1 .unsub { margin-left: 12px; font-size: 13px; font-weight: 500; background: none; border: 1px solid var(--border, #DADCE0); border-radius: 14px; padding: 3px 12px; color: var(--text-2, #5F6368); cursor: pointer; vertical-align: middle; }
.filter-form { display: flex; flex-direction: column; gap: 8px; min-width: min(420px, 80vw); }
.filter-form h4 { margin: 8px 0 0; }
.cbrow { display: flex; align-items: center; gap: 6px; margin: 6px 0; cursor: pointer; }

/* ---- 1.6: Gmail-order sidebar, smart views, AI and Indo Shield ---- */
.nav-toggle { width: 100%; background: none; border: 0; font: inherit; text-align: left; }
.nav-item.sub { padding-left: 34px; }
button.nav-item { width: 100%; background: none; border: 0; font: inherit; text-align: left; }
.chip.kind { background: var(--brand-soft, #E8F0FE); color: var(--brand, #0061FD); }
.view-info { display: flex; gap: 10px; align-items: center; padding: 10px 16px; margin: 8px 12px; border-radius: 12px; background: var(--brand-soft, #EEF4FF); color: var(--text-2, #3C4043); font-size: 13px; }
.view-info svg { width: 18px; height: 18px; fill: var(--brand, #0061FD); flex: none; }
.view-info a { margin-left: auto; white-space: nowrap; color: var(--brand); font-weight: 500; }
.nudges { margin: 6px 12px; display: grid; gap: 4px; }
.nudge { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: #FEF7E0; color: #3C2F00; text-decoration: none; font-size: 13px; }
.nudge svg { width: 16px; height: 16px; fill: #B06000; flex: none; }
.nudge .ns { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nudge .nt { color: #B06000; font-weight: 500; white-space: nowrap; }
[data-theme="dark"] .nudge { background: #3A3220; color: #F1E3B5; }
.ai-card { border: 1px solid var(--border, #DADCE0); border-radius: 16px; padding: 14px 18px; margin: 4px 0 16px 52px; background: linear-gradient(135deg, rgba(0,97,253,.06), rgba(156,39,176,.05)); }
.ai-card .ai-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-card .ai-head svg { width: 20px; height: 20px; fill: #7B4DFF; }
.ai-card .ai-head .hint { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-card ul { margin: 4px 0 8px 20px; padding: 0; line-height: 1.5; }
.ai-card .ai-asks { margin-top: 4px; }
.ai-tbl td:first-child { color: var(--text-2); padding-right: 14px; white-space: nowrap; vertical-align: top; }
.smart-replies { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0 52px; }
.chip-btn { border: 1px solid var(--brand, #0061FD); color: var(--brand, #0061FD); background: transparent; border-radius: 18px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.chip-btn:hover { background: var(--brand-soft, #E8F0FE); }
.banner.shield { display: block; padding: 10px 14px; border-left: 4px solid #B35C00; background: #FFF4E5; color: #5C2E00; }
.banner.shield.is-spam { border-left-color: #C5221F; background: #FCE8E6; color: #5F1410; }
.banner.shield .scam-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.banner.shield .scam-head .hint { margin-left: auto; }
.banner.shield ul { margin: 4px 0 6px 22px; padding: 0; }
.banner.shield .scam-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.banner.shield button { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; }
[data-theme="dark"] .banner.shield { background: #3A2A12; color: #FFD9A8; }
[data-theme="dark"] .banner.shield.is-spam { background: #3B1614; color: #FFC9C4; }
.shield-tbl td { vertical-align: top; padding: 6px 10px 6px 0; }
.shield-tbl td.bad { color: #C5221F; font-weight: 600; }
.shield-tbl td.good { color: #188038; font-weight: 600; }
.sub-row .sub-acts { display: flex; gap: 8px; margin-left: 8px; }
.sub-row.done { opacity: .6; }
.sub-row .btn { height: 30px; }
.settings-pane { padding: 8px 24px 40px; }
.labels-tbl td, .labels-tbl th { padding: 8px 14px 8px 0; text-align: left; }
@media (max-width: 860px) { .ai-card, .smart-replies { margin-left: 0; } .sub-row .sub-acts .btn:first-child { display: none; } }
@media (max-width: 860px) { .cat-tab { min-width: 0; gap: 6px; padding: 12px 10px; position: relative; } .cat-tab .cat-new { position: absolute; top: 8px; right: 6px; width: 8px; height: 8px; padding: 0; font-size: 0; border-radius: 50%; } }
.ai-card .ai-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--brand, #0061FD); cursor: pointer; text-decoration: underline; }
.smart-replies .sr-label { width: 100%; }
.imp-why { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px 0; font-size: 13px; color: var(--text-2, #5F6368); }
.imp-why svg { width: 16px; height: 16px; fill: #F4B400; }
.has-photo { overflow: hidden; padding: 0; }
.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar.xl { width: 72px; height: 72px; font-size: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.photo-row { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.doc-group { margin: 10px 0; } .doc-group summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.tr-banner { border: 1px solid var(--border, #DADCE0); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; background: var(--surface-2, #F8FAFD); }
.tr-banner .tr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tr-banner .tr-head svg { width: 18px; height: 18px; fill: var(--brand, #0061FD); }
.tr-banner select { width: auto; height: 30px; padding: 0 8px; }
.tr-banner .tr-out { margin: 6px 0; line-height: 1.5; }
/* ---- 1.7: Gmail home screen: density, reading pane, quick settings, select menu, advanced search ---- */
body[data-density="comfortable"] .row { height: 48px; }
body[data-density="compact"] .row { height: 32px; }
body[data-density="compact"] .row .row-avatar { display: none; }
.row.has-files { height: auto; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 8px; }
.row-files { flex-basis: 100%; display: flex; gap: 8px; padding-left: 292px; overflow: hidden; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; height: 30px; padding: 0 12px 0 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 400; cursor: pointer; }
.file-chip:hover { background: var(--hover); }
.file-chip .fc-ic { font-size: 9px; font-weight: 700; color: #fff; background: #D93025; border-radius: 3px; padding: 2px 3px; }
.file-chip .fc-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.open { background: var(--selected); box-shadow: inset 3px 0 0 var(--brand); }
.list-section { padding: 10px 16px 6px; font-size: 13px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--border); }
.sel-wrap { display: inline-flex; align-items: center; }
.sel-wrap .sel-drop { width: 22px; margin-left: -6px; }
.main.split { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; gap: 0; }
.main.split > .list-pane, .main.split > .read-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.main.split > .read-pane { border-left: 1px solid var(--border); }
.main.split .row .from { width: 140px; }
.main.split .row-files { padding-left: 230px; }
.main.split .row .row-actions { display: none; }
.pane-empty { margin: auto; }
.qs-panel { position: fixed; top: 64px; right: 12px; bottom: 12px; width: 300px; z-index: 60; background: var(--surface); border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.18); padding: 14px 18px; overflow-y: auto; }
.qs-panel .qs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qs-panel h4 { margin: 16px 0 6px; font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.qs-opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.qs-opt small { display: block; color: var(--text-2); font-size: 12px; }
.as-form { display: grid; gap: 8px; min-width: min(520px, 80vw); }
.as-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; }
.as-inline { display: flex; gap: 8px; align-items: center; }
.as-checks { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
@media (max-width: 860px) { .row-files { display: none; } .row.has-files { height: auto; padding-bottom: 0; } .qs-panel { left: 12px; width: auto; } .as-row { grid-template-columns: 1fr; } }
.main.split .cat-tab { min-width: 0; gap: 6px; padding: 12px 10px; position: relative; }
.main.split .cat-tab .cat-new { position: absolute; top: 8px; right: 4px; width: 8px; height: 8px; padding: 0; font-size: 0; border-radius: 50%; }
@media (max-width: 1360px) { .main.split .cat-tab > span:not(.cat-new) { display: none; } }
/* ---- Gmail-style navigation drawer (outlined icons, badges, sections) ---- */
.nav-item.g { gap: 20px; height: 32px; padding: 0 14px 0 26px; font-size: 14px; color: var(--text); background: none; border: 0; width: calc(100% - 8px); font-family: inherit; text-align: left; }
.nav-item.g .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.g svg.gi { width: 20px; height: 20px; flex: none; color: var(--text-2, #444746); }
.nav-item.g.active { background: #D3E3FD; color: #041E49; font-weight: 700; }
.nav-item.g.active svg.gi { color: #041E49; }
.nav-item.g .nb { margin-left: auto; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 10px; white-space: nowrap; }
.nav-item.g .nav-more { width: 24px; height: 24px; margin-left: auto; opacity: 0; }
.nav-item.g:hover .nav-more { opacity: 1; }
.nav-hr { height: 1px; background: var(--border, #E0E0E0); margin: 8px 12px 8px 72px; }
.nav-section.g { padding: 12px 16px 6px 26px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--text-2, #444746); display: block; }
.storage a { color: var(--brand); text-decoration: none; }
.drawer-brand { padding: 4px 16px 16px 26px; }
[data-theme="dark"] .nav-item.g.active { background: #004A77; color: #C2E7FF; }
[data-theme="dark"] .nav-item.g.active svg.gi { color: #C2E7FF; }
@media (max-width: 860px) {
  .nav-item.g { height: 48px; padding-left: 24px; gap: 26px; border-radius: 0 24px 24px 0; font-size: 15px; }
  .nav-item.g svg.gi { width: 24px; height: 24px; }
  .nav-hr { margin-left: 74px; }
  .nav-section.g { padding-left: 24px; }
}
.sidebar > * { flex-shrink: 0; }
.nav-item.g { min-height: 32px; }
@media (max-width: 860px) { .nav-item.g { min-height: 48px; } }
/* ---- 1.8: Gmail-style Settings ---- */
.set-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); padding: 0 12px; scrollbar-width: none; flex: none; }
.set-tab { padding: 12px 14px; white-space: nowrap; color: var(--text-2); text-decoration: none; font-size: 14px; border-bottom: 3px solid transparent; }
.set-tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.set-body { padding: 8px 24px 48px; max-width: 1100px; }
.set-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.set-k { font-weight: 600; font-size: 14px; }
.set-v { display: grid; gap: 8px; font-size: 14px; }
.set-v .input { max-width: 560px; }
.input.narrow { width: auto; max-width: 320px; }
.set-radios { display: grid; gap: 6px; }
.set-radio, .set-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.set-radio small, .set-check small { display: block; color: var(--text-2); font-size: 12px; }
.inline-set { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack-set { display: grid; gap: 8px; max-width: 560px; }
.stack-set b { margin-top: 10px; }
.color-in { width: 44px; height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 2px; background: none; }
.text-preview { padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; max-width: 560px; }
.set-actions { display: flex; gap: 10px; padding: 18px 0; }
.set-tbl td, .set-tbl th { padding: 8px 14px 8px 0; text-align: left; vertical-align: top; }
.set-tbl a { color: var(--brand); text-decoration: none; margin-right: 6px; }
.set-tbl a.on { font-weight: 700; text-decoration: underline; color: var(--text); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.bg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; max-width: 700px; }
.bg-tile { height: 76px; border-radius: 12px; border: 2px solid var(--border); cursor: pointer; display: flex; align-items: flex-end; padding: 6px 8px; font: inherit; font-size: 12px; }
.bg-tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.bg-tile span { background: rgba(255,255,255,.85); color: #202124; border-radius: 6px; padding: 2px 6px; }
.get-started { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 12px 0 8px; background: var(--surface); max-width: 760px; }
.get-started.compact { margin: 0 0 14px; padding: 12px 14px; }
.gs-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gs-meter { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.gs-meter div { height: 100%; background: var(--brand); }
.gs-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; border: 0; background: none; text-align: left; font: inherit; padding: 8px 4px; cursor: pointer; border-radius: 8px; color: var(--text); }
.gs-item:hover { background: var(--hover); }
.gs-item small { display: block; color: var(--text-2); font-size: 12px; }
.gs-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; font-size: 12px; flex: none; color: #fff; }
.gs-item.done .gs-tick { background: #188038; border-color: #188038; }
.gs-item.done b { text-decoration: line-through; color: var(--text-2); }
body[data-hover="off"] .row .row-actions { display: none !important; }
body[data-snippets="off"] .row .snip { display: none; }
body:not([data-bg="none"]) .body { background: var(--app-bg); }
.pli { color: var(--brand); font-weight: 700; margin-right: 4px; }
.send-archive { margin-left: 6px; }
@media (max-width: 860px) { .set-row { grid-template-columns: 1fr; gap: 10px; } .set-body { padding: 4px 14px 40px; } }
.ap-tile.icon-art { background: none !important; padding: 0; overflow: visible; }
.ap-tile.icon-art svg { width: 100%; height: 100%; display: block; }
.nav-item.g svg.app-mini { width: 22px; height: 22px; border-radius: 6px; }
.hint.warn { color: #B06000; }
.set-tbl td:last-child a { white-space: nowrap; }

/* ======================= Chat ======================= */
.chat { display: grid; grid-template-columns: 340px 1fr; flex: 1; min-height: 0; }
.ch-side-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.ch-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; flex-wrap: wrap; }
.ch-head > b { font-size: 20px; font-weight: 500; margin-right: auto; }
.ch-e2e { order: 3; width: 100%; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok, #188038); }
.ch-e2e .gi, .ch-sys .gi, .ch-fp .gi, .hint .gi { width: 14px; height: 14px; vertical-align: -2px; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.btn.small .gi { width: 18px; height: 18px; }
.ch-list { flex: 1; overflow: auto; padding: 4px 8px 12px; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.ch-item:hover { background: var(--hover); }
.ch-item.on { background: var(--selected); }
.ch-item .avatar, .ch-gav { width: 40px; height: 40px; flex: 0 0 40px; font-size: 16px; }
.ch-gav { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-pale); color: var(--brand); }
.ch-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-mid b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-mid small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-item.unread .ch-mid b, .ch-item.unread .ch-mid small { font-weight: 700; color: var(--text); }
.ch-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--text-2); font-size: 12px; }
.ch-side .count { background: var(--brand); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; line-height: 18px; font-weight: 700; }
.ch-none { padding: 12px; }
.ch-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ch-empty { margin: auto; max-width: 420px; text-align: center; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ch-empty .inline-set { justify-content: center; }
.ch-big { width: 72px; height: 72px; }
.ch-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.ch-top .avatar, .ch-top .ch-gav { width: 36px; height: 36px; flex: 0 0 36px; }
.ch-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-title b { font-weight: 500; font-size: 16px; }
.ch-title small { color: var(--text-2); }
.ch-note { background: #FEF7E0; color: #7A4F01; font-size: 13px; padding: 8px 16px; }
.ch-msgs { flex: 1; overflow: auto; padding: 12px 20px; display: flex; flex-direction: column; gap: 4px; }
.ch-day { align-self: center; font-size: 12px; color: var(--text-2); margin: 12px 0 4px; }
.ch-sys { align-self: center; font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 4px 12px; margin: 4px 0; text-align: center; }
.ch-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 72%; }
.ch-msg.mine { align-self: flex-end; align-items: flex-end; }
.ch-who { font-size: 12px; color: var(--text-2); margin: 6px 0 2px 12px; }
.ch-bubble { position: relative; background: var(--surface-2); border-radius: 18px; padding: 8px 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ch-msg.mine .ch-bubble { background: var(--brand-pale); }
.ch-bubble a { color: var(--brand); }
.ch-gone { color: var(--text-2); }
.ch-time { font-size: 11px; color: var(--text-2); margin: 2px 8px 4px; }
.ch-del { position: absolute; top: -6px; left: -8px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 14px; line-height: 16px; cursor: pointer; display: none; }
.ch-bubble:hover .ch-del { display: block; }
.ch-meet { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px 12px; text-decoration: none; font-weight: 500; }
.ch-meet .gi { width: 20px; height: 20px; }
.ch-meet small { color: var(--text-2); font-weight: 400; }
.ch-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--border); }
.ch-input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 22px; padding: 10px 16px; font: inherit; background: var(--surface); color: var(--text); max-height: 160px; }
.ch-input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.ch-send { background: var(--brand); color: #fff; }
.ch-send:hover { background: var(--brand-deep); }
.ch-new label { display: grid; gap: 4px; margin-bottom: 10px; font-size: 13px; }
.ch-members { display: grid; gap: 12px; margin: 12px 0; max-height: 50vh; overflow: auto; }
.ch-mem { display: flex; gap: 12px; align-items: flex-start; }
.ch-mem > div { display: flex; flex-direction: column; }
.ch-fp { font-family: ui-monospace, Consolas, monospace; color: var(--text-2); font-size: 12px; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; }
  .chat.has-room .ch-side-col { display: none; }
  .chat:not(.has-room) .ch-pane { display: none; }
  .ch-side-col { border-right: 0; }
  .ch-msg { max-width: 86%; }
}

/* ======================= Meet ======================= */
.mt-home { flex: 1; overflow: auto; padding: 32px; }
.mt-hero { max-width: 640px; display: flex; flex-direction: column; gap: 12px; }
.mt-hero h2 { font-size: 28px; font-weight: 400; margin: 8px 0 0; }
.mt-hero .input { max-width: 220px; }
.mt-recent { max-width: 640px; margin-top: 32px; }
.mt-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mt-row a { flex: 1; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.mt-row small { color: var(--text-2); }
.mt-lobby { flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 32px; align-items: center; padding: 32px; overflow: auto; }
.mt-prev-wrap { position: relative; background: #202124; border-radius: 12px; aspect-ratio: 16 / 9; overflow: hidden; }
.mt-preview { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.mt-novid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; padding: 24px; text-align: center; margin: 0; }
.mt-ctl { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 16px; justify-content: center; }
.mt-ready h2 { font-weight: 400; }
.mt-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #3C4043; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mt-btn .gi { width: 24px; height: 24px; }
.mt-btn:hover { filter: brightness(1.15); }
.mt-btn.off { background: #EA4335; }
.mt-btn.on { background: #8AB4F8; color: #202124; }
.mt-btn.end { background: #EA4335; width: 64px; border-radius: 24px; }
.mt-call { flex: 1; display: flex; flex-direction: column; background: #202124; min-height: 0; }
.mt-grid { flex: 1; display: grid; gap: 8px; padding: 12px; min-height: 0; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.mt-grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
.mt-grid[data-n="3"], .mt-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.mt-grid[data-n="5"], .mt-grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.mt-grid[data-n="7"], .mt-grid[data-n="8"], .mt-grid[data-n="9"] { grid-template-columns: repeat(3, 1fr); }
.mt-tile { position: relative; background: #3C4043; border-radius: 12px; overflow: hidden; min-height: 0; }
.mt-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-tile.me video { transform: scaleX(-1); }
.mt-av { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.mt-av .avatar { width: 96px; height: 96px; font-size: 40px; }
.mt-tile.nocam video { visibility: hidden; }
.mt-tile.nocam .mt-av { display: flex; }
.mt-tile[data-state="connecting"]::after, .mt-tile[data-state="new"]::after { content: 'Connecting…'; position: absolute; top: 10px; right: 12px; color: #fff; font-size: 12px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 10px; }
.mt-name { position: absolute; left: 10px; bottom: 8px; color: #fff; font-size: 13px; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.mt-name .gi { width: 14px; height: 14px; color: #F28B82; }
.mt-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px 16px; }
.mt-code { color: #E8EAED; margin-right: auto; font-size: 14px; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .mt-lobby { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .mt-home { padding: 20px; }
  .mt-code { display: none; }
  .mt-bar { gap: 8px; }
  .mt-btn { width: 44px; height: 44px; }
  .mt-grid[data-n="3"], .mt-grid[data-n="4"], .mt-grid[data-n="5"], .mt-grid[data-n="6"], .mt-grid[data-n="7"], .mt-grid[data-n="8"] { grid-template-columns: 1fr 1fr; }
}
.ch-gone .gi { width: 14px; height: 14px; vertical-align: -2px; }
body.in-chat .fab { display: none; }
.mt-tile.me.screen video { transform: none; object-fit: contain; background: #000; }
.mt-call { position: relative; }
.mt-unmute { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 2; height: 48px; padding: 0 24px; font-size: 15px; }

/* ======================= Indo AI ======================= */
.ai-btn .ic, .ask-btn .ic, .ai-reply .ic { color: #8430CE; }
.btn.ai-reply { border-color: #D7C2F5; }
.menu-head { display: flex; align-items: center; gap: 6px; padding: 8px 14px 6px; font-size: 12px; font-weight: 600; color: #8430CE; }
.menu-head .ic { width: 16px; height: 16px; }
.ai-dlg { display: grid; gap: 10px; min-width: min(480px, 80vw); }
.ai-dlg label { display: grid; gap: 6px; font-size: 13px; }
.ai-dlg textarea { resize: vertical; font: inherit; padding: 10px 12px; height: auto; }
.btn.busy { opacity: .6; pointer-events: none; }
.ai-gen { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ai-text { white-space: pre-wrap; line-height: 1.5; background: #F6F0FD; border-radius: 10px; padding: 10px 14px; }
html[data-theme="dark"] .ai-text { background: #2D2440; }
.spinner.small { width: 18px; height: 18px; border-width: 2px; }
.ask-panel { position: fixed; right: 16px; top: 72px; bottom: 16px; width: min(420px, calc(100vw - 32px)); background: var(--surface); border-radius: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.22); display: flex; flex-direction: column; z-index: 60; overflow: hidden; }
.ask-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--border); }
.ask-head b { flex: 1; font-size: 16px; font-weight: 500; }
.ask-head > .ic { color: #8430CE; }
.ask-log { flex: 1; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { max-width: 92%; }
.ask-msg.me { align-self: flex-end; }
.ask-msg.me .ask-text { background: var(--brand-pale); }
.ask-msg.ai .ask-text { background: var(--surface-2); }
.ask-msg.err .ask-text { background: #FCE8E6; color: #A50E0E; }
.ask-text { border-radius: 14px; padding: 9px 13px; white-space: pre-wrap; line-height: 1.45; word-break: break-word; }
.ask-link { font-size: 12px; margin: 0 2px; }
.ask-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.ask-act { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--text-2); white-space: normal; }
.ask-act .ic { width: 16px; height: 16px; }
.ask-foot { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
.ask-input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px; font: inherit; background: var(--surface); color: var(--text); max-height: 140px; }
.ask-note { margin: 0 14px 10px; font-size: 11px; }
@media (max-width: 860px) { .ask-panel { right: 0; left: 0; top: 0; bottom: 0; width: auto; border-radius: 0; } }
.phone-row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 8px; }
.cc-select { min-width: 0; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0 12px; }
.bank-details { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 12px; font: inherit; }
.cur-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; } .cur-line select { height: 32px; }
.mh-card { align-items: center; }
.mh-photo { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.mh-photo .avatar.xl { width: 64px; height: 64px; font-size: 26px; }
.mh-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.mh-cam .ic { width: 16px; height: 16px; }
.bulk-bar { display: flex; align-items: center; gap: 8px; min-height: 40px; flex-wrap: wrap; }
.contacts-tbl .cb-col { width: 36px; }
.c-two { display: inline-flex; flex-direction: column; min-width: 0; }
.c-two small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.sug-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: 16px; }
.sug-head h3 { margin: 0; }
.btn.small.danger { color: var(--danger); }
.list-ed { display: grid; gap: 8px; margin-bottom: 12px; }
.le-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1.4fr) minmax(120px, 1fr) 40px; gap: 8px; align-items: center; }
.le-row:has(.mono) { grid-template-columns: minmax(160px, 1fr) minmax(200px, 2.4fr) 40px; }
.input.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
@media (max-width: 860px) { .le-row, .le-row:has(.mono) { grid-template-columns: 1fr 40px; } .le-row > :first-child { grid-column: 1 / -1; } }
/* Privacy & security reader */
.pol-home { max-width: 980px; padding: 8px 24px 32px; }
.pol-home h3 { margin: 22px 0 10px; font-size: 15px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pol-card { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); }
.pol-card:hover { background: var(--hover); }
.pol-card .gi { color: var(--brand); flex: 0 0 20px; }
.pol-title { font-size: 18px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pol-doc { max-width: 860px; padding: 8px 28px 48px; line-height: 1.65; font-size: 15px; }
.pol-doc h1 { font-size: 28px; font-weight: 500; margin: 8px 0 4px; }
.pol-doc h2 { font-size: 20px; margin: 28px 0 8px; }
.pol-doc h3 { font-size: 16px; margin: 20px 0 6px; }
.pol-doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; }
.pol-doc th, .pol-doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.pol-doc th { background: var(--surface-2); }
.pol-doc .lg-meta, .pol-doc .lg-sum { color: var(--text-2); }
.pol-doc .lg-toc { background: var(--surface-2); border-radius: 10px; padding: 10px 16px; margin: 12px 0; }
@media (max-width: 860px) { .pol-doc { padding: 4px 16px 40px; font-size: 15px; } .pol-home { padding: 4px 14px 24px; } .toolbar .btn.small { padding: 0 10px; } }
.mt-tile[data-state="slow"]::after { content: 'Still connecting… the network may be blocking the call'; position: absolute; top: 10px; left: 12px; right: 12px; color: #fff; font-size: 12px; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 10px; }
.pill.sev-high { background: #FCE8E6; color: #A50E0E; } .pill.sev-medium { background: #FEF7E0; color: #7A4F01; } .pill.sev-low { background: #E6F4EA; color: #137333; }

.banner.e2ee{display:flex !important;flex-direction:row !important;gap:10px;align-items:flex-start;background:#e6f4ea;color:#0d652d;border-radius:8px;padding:10px 14px;margin:6px 0 10px;font-size:13px}
.banner.e2ee.locked{background:#fef7e0;color:#7a4f01}
.banner.e2ee svg{width:18px;height:18px;flex:none;fill:currentColor}

/* ---------- 2.0 mobile and small-screen fixes ---------- */
.btn svg.gi, .btn svg.si, .btn svg.i { width: 20px; height: 20px; flex: none; }
.btn { white-space: nowrap; }
.search input:placeholder-shown ~ [aria-label="Clear search"] { display: none; }
@media (max-width: 600px) {
  .topbar { gap: 2px; padding-left: 4px; padding-right: 6px; }
  .search { height: 44px; }
  .search [aria-label="Show search options"] { display: none; }
  .top-right { gap: 0; }
  .top-right .icon-btn { width: 40px; height: 40px; }
  /* inbox tabs scroll sideways instead of squeezing on top of each other */
  .cat-tabs { scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { flex: 0 0 auto; white-space: nowrap; padding: 12px 14px; }
  .cat-tab .cat-new { right: 2px; }
  /* Meet start screen */
  .mt-hero .inline-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .mt-hero .inline-set .btn { justify-content: center; padding: 0 12px; min-width: 0; }
  .mt-hero .inline-set .input { min-width: 0; width: 100%; }
  .mt-hero h2 { font-size: 26px; line-height: 1.25; }
  /* long words never push the page sideways */
  .page, .set-body, .mt-home, .chat-wrap { overflow-wrap: anywhere; }
  .dialog { width: calc(100vw - 24px) !important; max-width: none; max-height: calc(100dvh - 24px); overflow: auto; }
  .atts { flex-wrap: wrap; }
  .att-card { width: 100%; }
}
/* the Compose button only on mail screens on phones; elsewhere it covered settings and forms */
@media (max-width: 860px) {
  body:not(.on-mail) .fab { display: none !important; }
  .set-body, .page, .pol-wrap { padding-bottom: 96px; }
}

.ch-title b, .ch-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .ch-top { gap: 6px; padding: 8px 8px; } }

/* Support Center and Lily */
.sup-page { max-width: 860px; }
.lily-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.lily-head h2 { margin: 0; }
.lily-av { width: 32px; height: 32px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #E040A0, #7B4DFF); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.lily-av.big { width: 56px; height: 56px; font-size: 24px; }
.lily-log { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow: auto; padding: 8px 2px; }
.lily-msg { display: flex; gap: 8px; align-items: flex-start; }
.lily-msg.me { justify-content: flex-end; }
.lily-bubble { background: var(--surface-2); border-radius: 16px; padding: 10px 14px; max-width: 80%; line-height: 1.5; overflow-wrap: anywhere; }
.lily-msg.me .lily-bubble { background: var(--brand-pale); }
.lily-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lily-acts .chip { display: inline-block; border: 1px solid var(--border); border-radius: 16px; padding: 4px 10px; font-size: 13px; color: var(--brand); text-decoration: none; }
.lily-bar { display: flex; gap: 8px; align-items: flex-end; margin: 10px 0 14px; }
.lily-bar .lily-in { flex: 1; resize: vertical; min-height: 44px; }
.sup-cases { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sup-case { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.sup-case:last-child { border-bottom: 0; }
.sup-case small { grid-column: 1; color: var(--text-2); }
.sup-case .pill { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.sup-case.on, .sup-case:hover { background: var(--hover, rgba(0,0,0,.04)); }
.sup-detail .lily-msg { margin: 8px 0; }
.form-col { display: flex; flex-direction: column; gap: 6px; min-width: min(520px, 80vw); }
@media (max-width: 600px) { .lily-bar { flex-direction: column; align-items: stretch; } .lily-bubble { max-width: 88%; } }
.sup-case-admin { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sup-case-admin summary { cursor: pointer; }
.sup-case-admin textarea { width: 100%; margin-top: 8px; }

/* Forms, Passwords, Site Audit, Agent Inbox */
.tl-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tl-row:last-child { border-bottom: 0; }
.tl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tl-main b, .tl-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-main small { color: var(--text-2); }
.tl-acts { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.card-box { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.card-box h3 { margin: 0; }
.card-box code, .tl-row code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.form-col.wide { min-width: min(680px, 86vw); }
.fq-list { display: flex; flex-direction: column; gap: 8px; }
.fq-edit { border: 1px solid var(--border); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.fq-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.fq-top .input:first-child { flex: 1; min-width: 160px; }
.chk { display: inline-flex; gap: 6px; align-items: center; }
.audit-sum { display: flex; gap: 16px; align-items: center; }
.audit-score { width: 72px; height: 72px; border-radius: 50%; border: 6px solid; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex: none; }
.audit-list { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow: auto; }
.audit-row { display: grid; grid-template-columns: 90px 1fr; gap: 2px 10px; padding: 6px 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
.audit-row a { grid-column: 2; overflow-wrap: anywhere; }
.code-box { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.key-show { display: block; padding: 10px; background: var(--surface-2); border-radius: 8px; overflow-wrap: anywhere; font-size: 15px; }
@media (max-width: 600px) { .tl-row { flex-wrap: wrap; } .tl-acts { width: 100%; justify-content: flex-start; } .audit-row { grid-template-columns: 1fr; } .audit-row a { grid-column: 1; } }
.card-box > .btn { align-self: flex-start; }

/* Gauci mode (gauci.in, Gauci Android app) */
.gauci .compose-btn, .gauci .fab, .gauci .search { display: none !important; }
.gauci-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 22px; }
.g-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #C5221F, #FF9933); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.gauci .sidebar .nav-group { margin-bottom: 12px; }
.g-foot { padding: 8px 16px; }
.gauci .topbar { justify-content: space-between; }

.lily-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #E040A0, #7B4DFF); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.ask-head .lily-av { width: 28px; height: 28px; }

/* Indo Calendar */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-head h2 { margin: 0 8px; font-size: 20px; }
.cal-next svg { transform: scaleX(-1); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 6px 14px; cursor: pointer; font: inherit; }
.seg button.on { background: var(--brand-pale); color: var(--brand); font-weight: 600; }
.cal-month { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal-dow { padding: 6px; font-size: 12px; color: var(--text-2); text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-day { min-height: 96px; padding: 4px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; cursor: pointer; overflow: hidden; }
.cal-day.other { background: var(--surface-2); color: var(--text-2); }
.cal-day.today .cal-n { background: var(--brand); color: #fff; border-radius: 50%; }
.cal-n { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.cal-ev { border: 0; color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-wday { border: 1px solid var(--border); border-radius: 10px; padding: 6px; min-height: 260px; display: flex; flex-direction: column; gap: 4px; }
.cal-wday.today { border-color: var(--brand); }
.cal-wh { font-weight: 600; cursor: pointer; padding-bottom: 4px; }
.cal-ag { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.cal-ag .tl-row { cursor: pointer; border: 0; padding: 6px 0; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cal-sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.cal-sw.on { border-color: var(--text); }
@media (max-width: 700px) { .cal-day { min-height: 64px; } .cal-ev { font-size: 10px; padding: 1px 3px; } .cal-week { grid-template-columns: 1fr; } .cal-wday { min-height: 0; } }
/* Indo Word */
.doc-title-in { border: 0; font-size: 18px; font-weight: 600; background: none; min-width: 120px; flex: 1; max-width: 420px; padding: 6px; border-radius: 6px; }
.doc-title-in:focus { outline: 2px solid var(--brand-pale); }
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 12px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 2; }
.doc-tb { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 4px 9px; cursor: pointer; font: inherit; font-size: 13px; }
.doc-tb:hover { background: var(--surface-2); }
.doc-sel { border: 1px solid var(--border); border-radius: 6px; padding: 4px; font: inherit; }
.doc-scroll { background: var(--surface-2); padding: 24px 12px 80px; }
.doc-page { background: #fff; color: #202124; max-width: 816px; min-height: 1056px; margin: 0 auto; padding: 72px 80px; box-shadow: 0 1px 3px rgba(60,64,67,.3); outline: none; line-height: 1.55; font-family: Arial, sans-serif; font-size: 15px; }
@media (max-width: 700px) { .doc-page { padding: 28px 18px; min-height: 70vh; } }
.audit-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 12px 0; }
.audit-area { text-align: left; border: 1px solid var(--line, #dadce0); border-radius: 10px; background: var(--bg, #fff); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: inherit; font: inherit; }
.audit-area:hover { border-color: #C5221F; }
.audit-msg { flex: 1; min-width: 0; }
.audit-hist { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.viewer-img { max-width: 100%; max-height: 82vh; transition: transform .15s; transform-origin: center; cursor: zoom-in; }
.viewer-text { background: var(--bg, #fff); color: var(--fg, #202124); padding: 16px; border-radius: 8px; max-width: min(1000px, 96vw); max-height: 82vh; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 13px; text-align: left; }
.viewer-none { background: var(--bg, #fff); color: var(--fg, #202124); padding: 28px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.viewer-bar .icon-btn { font-size: 20px; font-weight: 600; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.fg-item { border: 1px solid var(--line, #dadce0); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--bg, #fff); display: flex; flex-direction: column; }
.fg-item:hover { box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.fg-thumb { height: 110px; display: flex; align-items: center; justify-content: center; background: var(--soft, #f1f3f4); }
.fg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fg-thumb .si { width: 36px; height: 36px; opacity: .6; }
.fg-name { padding: 8px 10px 0; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-meta { padding: 0 6px 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.fg-meta .icon-btn { width: 30px; height: 30px; }
.form-look { border: 1px solid var(--line, #dadce0); border-radius: 10px; padding: 8px 12px; }
.form-look summary { cursor: pointer; font-weight: 600; }
.form-look input[type=color] { width: 40px; height: 30px; border: 0; background: none; vertical-align: middle; }
/* dialogs that hold a wide form (Forms editor, calendar event) grow to fit it */
.dialog:has(.form-col.wide) { max-width: min(760px, 96vw); }
.dialog:has(.form-col) { max-width: min(640px, 96vw); max-height: calc(100dvh - 32px); overflow: auto; }
/* separate apps (Android "IndoApp/<id>" and installed web apps): no mail search, no back-to-launcher arrow */
html.solo .topbar form.search { visibility: hidden; }
html.solo .toolbar > a.icon-btn[href="/app/apps"] { display: none; }
.solo-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px 10px; }
.solo-head small { display: block; }
img.c-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.c-photo-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.c-photo-edit img, .c-photo-none { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--soft, #f1f3f4); display: inline-flex; align-items: center; justify-content: center; }
.c-photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Indo Account (Google Account style) */
.acc-wrap { display: flex; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 16px 20px 40px; }
.acc-nav { flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: flex-start; }
.acc-tab { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-radius: 0 24px 24px 0; color: inherit; text-decoration: none; font-size: 14px; }
.acc-tab svg { width: 20px; height: 20px; }
.acc-tab:hover { background: var(--hover, #f1f3f4); }
.acc-tab.on { background: #e8f0fe; color: #0b57d0; font-weight: 600; }
.acc-body { flex: 1; min-width: 0; }
.acc-body h2 { font-weight: 400; font-size: 28px; margin: 8px 0 4px; }
.acc-hero { text-align: center; padding: 10px 0 18px; }
.acc-hero .mh-photo { margin: 0 auto 10px; }
.avatar.xxl { width: 96px; height: 96px; font-size: 40px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.acc-card { border: 1px solid var(--line, #dadce0); border-radius: 12px; padding: 18px 20px; margin: 14px 0; background: var(--surface, #fff); }
.acc-grid .acc-card { margin: 0; }
.acc-card h3 { margin: 0 0 4px; font-weight: 500; font-size: 18px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-top: 1px solid var(--line, #eceff1); }
.acc-row[role=button] { cursor: pointer; }
.acc-row[role=button]:hover { background: var(--hover, #f8f9fa); }
.acc-k { flex: 0 0 200px; color: var(--muted, #5f6368); font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.acc-v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.acc-go { color: var(--muted, #5f6368); font-size: 22px; }
.acc-checks { list-style: none; padding: 0; margin: 8px 0 12px; }
.acc-checks li { padding: 4px 0; }
.acc-checks li.ok { color: #188038; }
.acc-checks li.todo { color: #b06000; }
.acc-storage .bar { height: 8px; background: var(--soft, #e8eaed); border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }
.acc-storage .bar span { display: block; height: 100%; background: #0b57d0; }
.mh-manage { display: inline-block; margin-top: 10px; padding: 7px 16px; border: 1px solid var(--line, #747775); border-radius: 18px; color: #0b57d0; text-decoration: none; font-size: 14px; font-weight: 500; }
@media (max-width: 860px) {
  .acc-wrap { flex-direction: column; padding: 8px 12px 30px; gap: 8px; }
  .acc-nav { position: static; flex: none; flex-direction: row; overflow-x: auto; gap: 4px; }
  .acc-tab { border-radius: 18px; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line, #dadce0); }
  .acc-tab svg { display: none; }
  .acc-k { flex-basis: 110px; }
}
/* Indo Calendar: my calendars column and settings */
.cal-layout { display: flex; gap: 16px; align-items: flex-start; }
.cal-side { flex: 0 0 210px; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.cal-main { flex: 1; min-width: 0; }
.cal-side-h { display: flex; align-items: center; justify-content: space-between; }
.cal-mine { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 14px; cursor: pointer; }
.cal-clock { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.cal-clock div { display: flex; justify-content: space-between; }
.cal-ev.past { opacity: .55; }
.cal-day.off, .cal-wday.off { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.03) 6px 12px); }
.cs-wrap { display: flex; gap: 24px; align-items: flex-start; }
.cs-nav { flex: 0 0 230px; position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-link { padding: 8px 14px; border-radius: 0 20px 20px 0; color: inherit; text-decoration: none; font-size: 14px; }
.cs-link:hover { background: var(--hover, #f1f3f4); }
.cs-body { flex: 1; min-width: 0; }
.cs-sec { border-bottom: 1px solid var(--line, #e0e0e0); padding: 8px 0 18px; scroll-margin-top: 10px; }
.cs-sec h3 { font-weight: 500; font-size: 18px; }
.cs-row { display: flex; gap: 16px; padding: 8px 0; align-items: flex-start; }
.cs-k { flex: 0 0 220px; font-size: 14px; color: var(--muted, #5f6368); padding-top: 6px; }
.cs-v { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-cal { border: 1px solid var(--line, #e0e0e0); border-radius: 12px; padding: 4px 16px 10px; margin: 12px 0; }
.cs-cal h4 { display: flex; align-items: center; gap: 8px; }
.cs-url { word-break: break-all; font-size: 12px; background: var(--soft, #f1f3f4); padding: 4px 8px; border-radius: 6px; }
@media (max-width: 860px) {
  .cal-layout { flex-direction: column; }
  .cal-side { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .cal-side-h { width: 100%; }
  .cs-wrap { flex-direction: column; }
  .cs-nav { position: static; flex: none; flex-direction: row; overflow-x: auto; }
  .cs-link { white-space: nowrap; border-radius: 16px; border: 1px solid var(--line, #dadce0); }
  .cs-row { flex-direction: column; gap: 4px; }
  .cs-k { flex: none; padding-top: 0; }
}
