/* Passenger Communication COMM-1R — canonical Notifications + TooWe Help. */
.tw-icon > svg { display:block; width:100%; height:100%; }
.tw-plain-app.tw-plain-app--with-top-navigation:has(.tw-communications) { max-width: 430px; padding: calc(88px + env(safe-area-inset-top)) 16px calc(var(--tw-bottom-nav-content-offset, 112px) + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }
.tw-plain-app:has(.tw-communications) > h1 { display:none; }
.tw-communications, .tw-communications * { box-sizing:border-box; }
.tw-communications { --purple:#5b24ff; --ink:#0e132e; --muted:#58617f; --line:#e8e9f3; display:grid; gap:20px; width:100%; color:var(--ink); }
.tw-communications a { color:inherit; }
.tw-comm-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; }
.tw-comm-heading h1 { margin:0; font-size:30px; line-height:1.08; letter-spacing:-.5px; }
.tw-comm-heading p { margin:8px 0 0; color:var(--muted); font-size:15px; font-weight:400; }
.tw-comm-filter-label { display:flex; align-items:center; gap:7px; min-height:42px; padding:0 14px; border:1px solid var(--line); border-radius:16px; color:#0e132e; font-size:14px; font-weight:600; white-space:nowrap; }
.tw-comm-filter-label svg { display:block; flex:0 0 20px; width:20px; height:20px; }
.tw-notification-filters { display:flex; gap:6px; margin:0; padding:5px; overflow-x:auto; border:1px solid var(--line); border-radius:14px; background:#fff; scrollbar-width:none; }
.tw-notification-filters::-webkit-scrollbar { display:none; }
.tw-notification-filters a { flex:0 0 auto; min-height:34px; padding:8px 13px; border-radius:999px; color:#555d78; text-decoration:none; font-size:12px; font-weight:650; white-space:nowrap; }
.tw-notification-filters a.is-active { background:#f3f1ff; color:var(--purple); font-weight:800; }
.tw-notification-group { display:grid; gap:12px; }
.tw-notification-group > h2, .tw-support-section h2 { margin:0; font-size:17px; }
.tw-notification-list { display:grid; gap:10px; }
.tw-comm-empty { display:flex; align-items:center; justify-content:center; gap:14px; padding:18px; border:1px solid #ddd4ff; border-radius:16px; background:#fbfaff; }
.tw-comm-empty__bell { width:28px; height:28px; color:var(--purple); }.tw-comm-empty__bell svg{display:block;width:100%;height:100%}.tw-comm-empty strong{font-size:15px}.tw-comm-empty p{margin:3px 0 0;color:var(--muted);font-size:12px}
.tw-support-search { display:flex; align-items:center; gap:12px; min-height:52px; padding:0 14px; border:1px solid var(--line); border-radius:16px; color:#5b6079; }
.tw-support-search svg{display:block;flex:0 0 24px;width:24px;height:24px}.tw-support-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font:650 14px inherit}.tw-support-search input::placeholder{color:#555d78}
.tw-support-section { display:grid; gap:12px; }.tw-support-section > header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tw-support-section > header a{color:var(--purple);font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.tw-support-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tw-support-quick{display:grid;justify-items:center;align-content:start;gap:8px;min-height:148px;padding:12px 7px;border:1px solid var(--line);border-radius:16px;text-align:center;text-decoration:none}.tw-support-quick>span{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:#f3f1ff;color:var(--purple)}.tw-support-quick>span.is-card{background:#e9f8ef;color:#00a653}.tw-support-quick>span.is-shield{background:#fff2e6;color:#ff7100}.tw-support-quick>span.is-message{background:#e9f3ff;color:#0873ef}.tw-support-quick svg{display:block;width:24px;height:24px}.tw-support-quick strong{font-size:12px;line-height:1.3}.tw-support-quick small{color:var(--muted);font-size: 12px;line-height:1.35}
.tw-support-chat-card{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px;border:1px solid #d9d0ff;border-radius:18px;background:linear-gradient(115deg,#fbfaff,#fff);box-shadow:0 10px 30px rgba(91,36,255,.05)}.tw-support-hybol{display:block;width:64px;height:64px;object-fit:contain;object-position:center;transform:translate(-.5px,.5px)}.tw-support-chat-card h2{margin:0;font-size:16px}.tw-support-chat-card h2 span{margin-left:5px;color:#00a653;font-size: 12px;white-space:nowrap}.tw-support-chat-card p{margin:5px 0 0;color:var(--muted);font-size:12px}.tw-support-chat-card>a,.tw-support-bottom-help>a{padding:13px 16px;border-radius:10px;background:var(--purple);color:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}.tw-support-chat-card footer{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding-top:14px;border-top:1px solid #e5dfff}.tw-support-chat-card footer span{display:grid;grid-template-columns:26px 1fr;gap:1px 8px}.tw-support-chat-card footer svg{display:block;grid-row:1/3;width:24px;height:24px;color:var(--purple)}.tw-support-chat-card footer small{color:var(--muted);font-size: 12px}.tw-support-chat-card footer strong{font-size: 12px}
.tw-support-cases{display:grid;gap:8px}.tw-support-case{display:grid;grid-template-columns:42px minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:70px;padding:11px 13px;border:1px solid var(--line);border-radius:15px;text-decoration:none}.tw-support-case__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f3f1ff;color:var(--purple)}.tw-support-case__icon svg{width:23px;height:23px}.tw-support-case>span:nth-child(2){display:grid;gap:3px}.tw-support-case strong{font-size:13px}.tw-support-case small{color:var(--muted);font-size: 12px}.tw-support-case em{padding:7px 10px;border-radius:9px;background:#eaf2ff;color:#0868dc;font-size: 12px;font-style:normal;font-weight:800;white-space:nowrap}.tw-support-case em[data-status="waiting"]{background:#eaf8ef;color:#09974d}.tw-support-case>b{font-size:25px;font-weight:400}.tw-support-empty{padding:18px;border:1px dashed #d9dce8;border-radius:15px;text-align:center}.tw-support-empty strong{font-size:13px}.tw-support-empty p{margin:5px 0 0;color:var(--muted);font-size: 12px}
.tw-support-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tw-support-topic{display:grid;grid-template-columns:34px minmax(0,1fr) 10px;gap:8px;align-items:start;padding:13px 10px;border:1px solid var(--line);border-radius:15px;text-decoration:none}.tw-support-topic>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f3f1ff;color:var(--purple)}.tw-support-topic svg{width:20px;height:20px}.tw-support-topic div{display:grid;gap:4px}.tw-support-topic strong{font-size: 12px}.tw-support-topic small{color:var(--muted);font-size: 12px;line-height:1.35}.tw-support-topic b{align-self:center;font-size:20px}
.tw-support-safety,.tw-support-bottom-help{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px solid #ffd8b5;border-radius:15px;background:#fffaf5}.tw-support-safety>svg,.tw-support-bottom-help>svg{width:38px;height:38px;color:#ff7100}.tw-support-safety strong,.tw-support-bottom-help strong{font-size:13px}.tw-support-safety p,.tw-support-bottom-help p{margin:4px 0 0;color:#424967;font-size: 12px}.tw-support-safety>a{padding:10px 13px;border:1px solid #ff7100;border-radius:9px;color:#e76000;font-size: 12px;font-weight:750;text-decoration:none;white-space:nowrap}
.tw-support-faq>a{display:flex;justify-content:space-between;gap:10px;padding:13px 15px;border:1px solid var(--line);text-decoration:none;font-size:12px;font-weight:700}.tw-support-faq>a:first-of-type{border-radius:14px 14px 0 0}.tw-support-faq>a:last-of-type{margin-top:-13px;border-top:0;border-radius:0 0 14px 14px}.tw-support-faq>a b{font-size:20px;font-weight:400}
.tw-support-bottom-help{border-color:#ded5ff;background:#fbfaff}.tw-support-bottom-help>svg{color:var(--purple)}.tw-support-bottom-help>a{background:#fff;color:var(--purple);border:1px solid var(--purple)}
@media(max-width:390px){.tw-communications{gap:17px}.tw-comm-heading h1{font-size:27px}.tw-comm-filter-label{font-size:0;padding:0 11px}.tw-support-quick-grid{grid-template-columns:repeat(2,1fr)}.tw-support-quick{min-height:130px}.tw-support-chat-card{grid-template-columns:54px minmax(0,1fr)}.tw-support-hybol{width:50px;height:50px}.tw-support-chat-card>a{grid-column:1/-1;text-align:center}.tw-support-chat-card footer{grid-template-columns:1fr}.tw-support-topics{grid-template-columns:1fr}.tw-support-safety,.tw-support-bottom-help{grid-template-columns:36px minmax(0,1fr)}.tw-support-safety>a,.tw-support-bottom-help>a{grid-column:1/-1;text-align:center}}

/* PE-POLISH-01: compact, readable support grids on passenger mobile widths. */
.tw-support-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tw-support-quick{grid-template-rows:45px auto auto;align-content:start;min-height:148px;padding:13px 10px}
.tw-support-quick strong,.tw-support-quick small{max-width:100%;word-break:normal;overflow-wrap:normal}
.tw-support-topics{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(180px,76%);gap:10px;overflow-x:auto;padding-bottom:3px;scroll-snap-type:x proximity;scrollbar-width:none}
.tw-support-topics::-webkit-scrollbar{display:none}
.tw-support-topic{grid-template-columns:minmax(0,1fr) 12px;grid-template-rows:40px auto auto;gap:6px;min-height:142px;padding:13px;scroll-snap-align:start}
.tw-support-topic>span{grid-column:1/-1;grid-row:1}
.tw-support-topic div{grid-column:1;grid-row:2/4}
.tw-support-topic strong{font-size:12px;line-height:1.35}.tw-support-topic small{font-size: 12px;line-height:1.45}
.tw-support-topic b{grid-column:2;grid-row:2/4;align-self:center}
@media(max-width:390px){.tw-support-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tw-support-quick{min-height:148px}.tw-support-topics{grid-template-columns:none}}


/* PE-POLISH-01C: centered notification controls and unclipped support content. */
.tw-comm-filter-label {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
}
.tw-comm-filter-label__icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  line-height: 0;
}
.tw-comm-filter-label__icon svg {
  width: 20px;
  height: 20px;
}
.tw-notification-filters {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  min-width: 0;
}
.tw-notification-filters a {
  min-width: max-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  line-height: 1.2;
  text-align: center;
}
.tw-support-search {
  min-width: 0;
  width: 100%;
  overflow: visible;
}
.tw-support-search__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  line-height: 0;
}
.tw-support-search__icon svg {
  width: 24px;
  height: 24px;
}
.tw-support-search input[type="search"] {
  border: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.tw-support-topics {
  width: 100%;
  min-width: 0;
  grid-auto-columns: minmax(0, calc(100% - 32px));
  padding: 1px 32px 4px 1px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-padding-inline: 1px 32px;
}
.tw-support-topic {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
@media(max-width:430px) {
  .tw-notification-filters {
    grid-template-columns: repeat(5, max-content);
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    justify-content: space-between;
    gap: 0;
  }
  .tw-notification-filters a {
    min-width: 0;
    padding-inline: 3px;
    font-size: 12px;
  }
  .tw-support-topics {
    grid-template-columns: repeat(3, calc(100vw - 64px));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
  }
}
@media(max-width:390px) {
  .tw-comm-filter-label {
    width: 42px;
    padding: 0;
    gap: 0;
  }
  .tw-comm-filter-label__text {
    display: none;
  }
}

/* DQ-01: production polish — reliable touch and keyboard targets. */
.tw-comm-filter-label,
.tw-notification-filters a {
  min-width: 44px;
  min-height: 44px;
}

.tw-support-section > header a,
.tw-support-chat-card > a,
.tw-support-safety > a,
.tw-support-bottom-help > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-support-section > header a {
  padding-inline: 4px;
}

.tw-support-faq > a {
  min-height: 48px;
  align-items: center;
}

.tw-communications :where(a, button, input):focus-visible {
  outline: 3px solid rgba(91, 36, 255, 0.28);
  outline-offset: 3px;
}

/* DQ-PASSENGER-01: preserve breathing room above the persistent tab bar. */
.tw-communications,
.tw-support,
.tw-notifications {
  padding-bottom: 10px;
}

.tw-support-card,
.tw-support-topic,
.tw-notification-item {
  transition: transform 140ms ease;
}

.tw-support-card:active,
.tw-support-topic:active,
.tw-notification-item:active {
  transform: scale(0.988);
}

/* UX-AUDIT-01: canonical settings, support intake and FAQ surfaces. */
.tw-settings-account {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.tw-settings-account__avatar,
.tw-settings-avatar { display: block; width: 48px; height: 48px; }
.tw-settings-avatar { overflow: hidden; border-radius: 50%; background: #f3f1ff; }
.tw-settings-avatar img,
.tw-settings-avatar svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.tw-settings-account > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.tw-settings-account strong { font-size: 15px; line-height: 1.25; }
.tw-settings-account small { color: var(--muted); font-size: 12px; }
.tw-settings-account em {
  padding: 7px 9px;
  border-radius: 9px;
  background: #eaf8ef;
  color: #087b42;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.tw-settings-account em[data-state="attention"] { background: #fff4e8; color: #9a4b00; }
.tw-settings-list,
.tw-support-choice-list { display: grid; gap: 9px; border-bottom: 0; }
.tw-settings-row,
.tw-support-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.tw-settings-row__icon,
.tw-support-choice > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f3f1ff;
  color: var(--purple);
}
.tw-settings-row__icon svg,
.tw-support-choice > span svg { width: 22px; height: 22px; }
.tw-settings-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.tw-settings-row strong,
.tw-support-choice strong { font-size: 14px; line-height: 1.3; }
.tw-settings-row small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tw-settings-row > b,
.tw-support-choice > b { display: grid; place-items: center; color: #737a94; }
.tw-settings-row > b svg,
.tw-support-choice > b svg { width: 18px; height: 18px; }
.tw-settings-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

.tw-support-compose { gap: 18px; }
.tw-support-choice { min-height: 66px; }
.tw-support-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--purple) !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.tw-support-topic-label,
.tw-support-context {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  margin: 0;
  padding: 13px;
  border: 1px solid #ded5ff;
  border-radius: 15px;
  background: #fbfaff;
}
.tw-support-topic-label > span,
.tw-support-context > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f0ebff;
  color: var(--purple);
}
.tw-support-topic-label svg,
.tw-support-context svg { width: 22px; height: 22px; }
.tw-support-topic-label small,
.tw-support-context small { color: var(--muted); font-size: 12px; }
.tw-support-topic-label strong,
.tw-support-context strong { min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tw-support-context > div { display: contents; }
.tw-support-form { display: grid; gap: 11px; }
.tw-support-form label { font-size: 14px; font-weight: 800; }
.tw-support-form textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #d9dce8;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 500 16px/1.45 inherit;
  caret-color: var(--purple);
}
.tw-support-form textarea::placeholder { color: #6b7289; }
.tw-support-form textarea:focus { border-color: var(--purple); outline: 3px solid rgba(91, 36, 255, .16); outline-offset: 1px; }
.tw-support-form > small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.tw-support-form button,
.tw-support-ticket__actions > a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font: 800 15px/1 inherit;
  text-decoration: none;
  cursor: pointer;
}
.tw-support-form > a { display: inline-flex; justify-content: center; min-height: 44px; align-items: center; color: var(--purple); font-size: 14px; font-weight: 750; text-decoration: none; }
.tw-support-form button:focus-visible,
.tw-settings-row:focus-visible,
.tw-support-choice:focus-visible,
.tw-support-back:focus-visible { outline: 3px solid rgba(91, 36, 255, .28); outline-offset: 3px; }

.tw-support-ticket__facts { display: grid; margin: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.tw-support-ticket__facts > div { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr); gap: 12px; padding: 12px 14px; }
.tw-support-ticket__facts > div + div { border-top: 1px solid var(--line); }
.tw-support-ticket__facts dt { color: var(--muted); font-size: 12px; }
.tw-support-ticket__facts dd { margin: 0; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.tw-support-ticket__message { padding: 15px; border-radius: 15px; background: #f7f7fb; }
.tw-support-ticket__message h2 { margin: 0 0 8px; font-size: 15px; }
.tw-support-ticket__message p { margin: 0; color: #343a56; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-support-ticket__actions { display: grid; gap: 9px; }
.tw-support-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--purple); border-radius: 14px; color: var(--purple) !important; font-size: 14px; font-weight: 800; text-decoration: none; }

.tw-faq .tw-support-faq { display: grid; gap: 9px; }
.tw-faq .tw-support-faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.tw-faq .tw-support-faq summary { min-height: 54px; padding: 16px 42px 16px 15px; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.35; cursor: pointer; position: relative; list-style: none; }
.tw-faq .tw-support-faq summary::-webkit-details-marker { display: none; }
.tw-faq .tw-support-faq summary::after { content: "+"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--purple); font-size: 22px; font-weight: 500; }
.tw-faq .tw-support-faq details[open] summary::after { content: "−"; }
.tw-faq .tw-support-faq p { margin: 0; padding: 0 15px 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 390px) {
  .tw-settings-account { grid-template-columns: 48px minmax(0, 1fr); }
  .tw-settings-account em { grid-column: 1 / -1; justify-self: start; }
  .tw-support-ticket__facts > div { grid-template-columns: 1fr; gap: 4px; }
}

/* DQ-PASSENGER-02: keep notification labels readable at the narrowest width. */
@media (max-width: 370px) {
  .tw-notification-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    scroll-padding-inline: 5px;
  }

  .tw-notification-filters a {
    flex: 0 0 auto;
    min-width: 0;
    padding-inline: 2px;
    font-size: 12px;
  }
}
