/* Home and conversation share the chips in the field's bottom row. */
#composer { container: composer / inline-size; border-radius: 12px; }
#composer > .ctools { gap: 6px; min-width: 0; min-height: 30px; }
#composer > .ctools > :is(#plus, #addfile, #go) { flex: none; }
#composer > .ctools > .gap { flex: 1 1 auto; min-width: 0; }
.gc-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 8px 0 7px;
  background: none;
  font-size: 13px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
}
button.gc-chip:hover, .gc-chip[aria-expanded="true"] { background: var(--hover, var(--fill-hover)); }
button.gc-chip::after { content: ""; position: absolute; inset: -7px 0; }
.gc-folder-icon { width: 16px; height: 16px; flex: none; stroke-width: 1.7; }
.gc-chevron { width: 13px; height: 13px; flex: none; color: var(--meta); }
.gc-folder-word, .gc-apps-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Keep 6px between the folder outline's painted edge and the label. */
.gc-folder-word { margin-inline-start: -.75px; }
.gc-apps { flex: none; }
.gc-apps-word { margin-right: 4px; color: var(--mute); }
.gc-apps .gc-logos { display: inline-flex; gap: 6px; }
.gc-apps .gc-logo { width: 16px; height: 16px; }
.ctools > .tchip[data-task-chip] {
  display: inline-flex;
  align-items: center;
  height: 28px;
  min-width: 0;
  max-width: min(280px, 40%);
  padding: 0 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}
.ctools > .tchip[data-task-chip][hidden] { display: none; }
[data-task-chip] .tchip-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 100%;
  padding: 0 6px 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
}
[data-task-chip] .tchip-ic { display: inline-flex; flex: none; }
[data-task-chip] .tchip-ic svg { display: block; width: 14px; height: 14px; }
[data-task-chip] .tchip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-task-chip] .tchip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--meta);
}
[data-task-chip] .tchip-x:hover { background: var(--hover, var(--fill-hover)); color: var(--ink); }
[data-task-chip] .tchip-x svg { display: block; width: 12px; height: 12px; }
@container composer (max-width: 520px) {
  .gc-chip { padding-inline: 6px; }
  .gc-chip :is(.gc-folder-word, .gc-apps-word) { display: none; }
  .ctools > .tchip[data-task-chip] { max-width: 130px; }
}
.gc-icon { width: 14px; height: 14px; flex: none; vertical-align: -.125em; }
.gc-logo { width: 18px; height: 18px; object-fit: contain; flex: none; }
.gc-menu {
  position: fixed;
  left: var(--gc-menu-left);
  bottom: var(--gc-menu-offset);
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(320px, calc(100vw - 16px));
  max-height: var(--gc-menu-space);
  overflow: hidden;
  background: var(--popover);
  box-shadow: var(--popover-shadow);
  border-radius: 12px;
  padding: 4px;
  line-height: 1.4;
  color: var(--ink);
}
.gc-menu[hidden] { display: none; }
.gc-menu[data-placement="below"] { top: var(--gc-menu-offset); bottom: auto; }
.gc-menu-items { overflow: auto; min-height: 0; }
.gc-menu-head, .gc-menu-foot { margin: 0; padding: 6px 8px; color: var(--meta); font-size: 12px; }
.gc-menu-head { padding: 6px 8px 8px; margin: 0 0 4px; border-bottom: 1px solid var(--line-soft); }
.gc-menu-foot { border-top: 1px solid var(--line-soft); }
.gc-folder-menu { width: min(220px, calc(100vw - 16px)); }
.gc-folder-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}
.gc-folder-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-folder-option:is(:hover, :focus-visible) { background: var(--popover-hover); }
.gc-folder-option:focus-visible { outline-offset: -2px; }
.gc-folder-option > .gc-icon { width: 16px; height: 16px; color: var(--meta); }
.gc-folder-option > .ps-orb { width: 16px; height: 16px; }
.gc-folder-option > .gc-folder-check { visibility: hidden; color: var(--role-action); }
.gc-folder-option[aria-checked="true"] > .gc-folder-check { visibility: visible; }
.gc-menu-row {
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 8px;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
}
.gc-menu-text { position: relative; min-width: 0; display: grid; gap: 1px; padding-inline-start: 26px; }
.gc-menu-text > .gc-logo { position: absolute; inset-inline-start: 0; top: 3.5px; }
/* The Gmail image already has 2px of transparent space above its mark. */
.gc-menu-row[data-gc-product="gmail"] .gc-menu-text > .gc-logo { top: 1.5px; }
.gc-menu-text strong { font-size: 13px; font-weight: 500; }
.gc-menu-text span { color: var(--meta); font-size: 12px; overflow-wrap: anywhere; }
.gc-menu-text .gc-reconfirm { margin-top: 2px; }
.gc-menu-controls { align-self: center; display: grid; align-items: start; justify-items: end; gap: 3px; }
.gc-menu-controls > .gc-connected, .gc-menu-controls > .gc-rollout { grid-row: 1; grid-column: 1; }
.gc-connected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink);
  pointer-events: none;
}
.gc-connected .gc-icon { color: var(--role-action); }
.gc-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}
.gc-pill:not(:disabled):hover { background: var(--hover, var(--fill-hover)); }
.gc-pill:disabled, .gc-quiet, .gc-rollout { color: var(--meta); }
.gc-quiet, .gc-rollout { border-color: transparent; }
.gc-rollout { position: relative; z-index: 1; opacity: 0; }
.gc-menu-row:is(:hover, :focus-within) { background: var(--popover-hover); }
.gc-menu .gc-pill { min-height: 32px; padding-inline: 10px; border-radius: 8px; font-size: 13px; }
.gc-menu .gc-pill:not(:disabled):is(:hover, :focus-visible) { background: var(--popover-hover); }
.gc-menu-row:hover .gc-rollout, .gc-menu-row:focus-within .gc-rollout { opacity: 1; }
.gc-menu-row:hover .gc-connected, .gc-menu-row:focus-within .gc-connected { opacity: 0; }
.gc-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--meta);
  font-size: 12.5px;
  line-height: 1.45;
}
.gc-status > div { min-width: 0; overflow-wrap: anywhere; }
.gc-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gc-status .gc-icon, .gc-disclosure-lines .gc-icon, .gc-testing .gc-icon { color: var(--cv-steel, var(--role-information)); }
.gc-status .gc-icon { margin-top: 1px; }
.gc-menu-row > .gc-status { grid-column: 1 / -1; padding-inline-start: 26px; }
.gc-status .gc-pill { display: flex; margin-top: 4px; width: max-content; max-width: 100%; }
.gc-status a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.gc-disclosure {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border-radius: 12px;
  border: 0;
  padding: 0;
  background: var(--popover);
  box-shadow: var(--popover-shadow);
  color: var(--ink);
}
.gc-disclosure::backdrop { background: var(--scrim, var(--ps-scrim)); }
.gc-disclosure-inner { padding: 16px; }
.gc-disclosure header { display: grid; grid-template-columns: 18px minmax(0, 1fr) 28px; align-items: center; gap: 8px; }
.gc-disclosure h2 { margin: 0; font: inherit; font-size: 15px; font-weight: 500; }
.gc-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--meta);
  background: transparent;
}
.gc-close:hover { background: var(--hover, var(--fill-hover)); color: var(--ink); }
.gc-disclosure-lines { margin: 10px 0; padding: 0; display: grid; list-style: none; gap: 6px; }
.gc-disclosure-lines li, .gc-testing { display: flex; align-items: baseline; gap: 8px; }
.gc-disclosure-lines li { font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.gc-disclosure-lines .gc-icon { width: 15px; height: 15px; align-self: flex-start; margin-top: 2px; }
.gc-testing { margin: 8px 0 12px; color: var(--meta); font-size: 12px; }
.gc-disclosure .gc-legal { border-top: 1px solid var(--line-soft); color: var(--mute); font-size: 12.5px; line-height: 1.5; padding-top: 4px; }
.gc-disclosure .gc-legal p { margin: 9px 0; }
.gc-disclosure a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.gc-disclosure footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.gc-disclosure .gc-pill { min-height: 32px; padding: 4px 12px; }
.gc-disclosure .gc-primary { border-color: var(--role-action); }
@media (max-width: 899px) {
  .gc-disclosure {
    width: 100%;
    max-width: 100%;
    max-height: calc(100% - 16px);
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }
  .gc-disclosure-inner { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .gc-disclosure footer .gc-pill { flex: 1; min-height: 38px; }
}
@media (hover: none) {
  .gc-menu-controls > .gc-rollout { grid-row: 2; opacity: 1; }
  .gc-menu-row:hover .gc-connected, .gc-menu-row:focus-within .gc-connected { opacity: 1; }
}
