/* Shared PaPaMails interface: navigation, reading, forms and administration. */
:root {
  --ink:#20304a; --muted:#5c6a80; --muted-strong:#495970;
  --paper:#f5f7fb; --surface:#fff; --surface-soft:#f4f6fa; --sidebar:#fff;
  --line:#dce3ed; --hover:#f0f4fc; --selected:#e8effe;
  --primary:#345cc4; --primary-hover:#264aa6; --on-primary:#fff; --focus:#345cc4;
  --accent:#cb6548; --green:#edf3ff; --icon-bg:#eaf0fc; --icon-ink:#345cc4;
  --badge-bg:#f0f4fa; --badge-ink:#495c78; --avatar-bg:#ecf1fa;
  --assistant-bg:#f1f4ff; --assistant-line:#d8e0f5; --assistant-ink:#4556a0;
  --assistant-button:#345cc4; --on-assistant:#fff; --radius:14px;
}
:root[data-theme=dark] {
  --ink:#e6edf9; --muted:#a9b7ce; --muted-strong:#c4d0e1;
  --paper:#101827; --surface:#192338; --surface-soft:#202d44; --sidebar:#141e30;
  --line:#33415a; --hover:#23344e; --selected:#273c63;
  --primary:#abc2ff; --primary-hover:#c9d8ff; --on-primary:#142447; --focus:#b2c8ff;
  --accent:#ffae94; --green:#243750; --icon-bg:#263857; --icon-ink:#bdd0ff;
  --badge-bg:#23344f; --badge-ink:#c4d3eb; --avatar-bg:#293b58;
  --assistant-bg:#202c49; --assistant-line:#405479; --assistant-ink:#c4d0ff;
  --assistant-button:#abc2ff; --on-assistant:#142447;
  --success-bg:#18372f; --success-border:#426f5e; --hint-bg:#322f24; --hint-line:#685d3e;
}
body {font-size:14px; line-height:1.65; -webkit-font-smoothing:antialiased}
h1 {font-weight:700; letter-spacing:-.7px; overflow-wrap:anywhere}
h2 {font-size:20px; letter-spacing:-.35px}
h3 {font-size:16px}
small,.small-text,.helptext {font-size:12px; line-height:1.65}
label {font-size:13px}
button,a,input,select,textarea,summary {outline-offset:3px}
:focus-visible {outline:3px solid var(--focus)}
a:hover {text-underline-offset:4px}
button:disabled {cursor:not-allowed}
summary {font-size:13px; min-height:44px; padding-block:10px; color:var(--ink)}
summary::marker {color:var(--muted)}
details[open]>summary {margin-bottom:12px}
.button {min-height:44px; padding:11px 18px; gap:10px; border-radius:9px; font-size:13px}
.button.small {min-height:40px; font-size:12px}
.button.secondary {box-shadow:0 1px 2px #14244705}
.button.assistant-action {background:var(--assistant-bg); border-color:var(--assistant-line); color:var(--assistant-ink)}
.badge {font-size:11px; letter-spacing:0; font-weight:600; border-radius:6px}
.eyebrow {font-size:10px; letter-spacing:1.2px; margin-bottom:8px}
.sidebar {width:236px; padding:24px 16px 14px; background:var(--sidebar); border-color:var(--line); z-index:10}
.sidebar-heading {display:block; margin:0 0 24px}
.sidebar .sidebar-heading .brand {margin:0; padding:0 8px; font-size:23px; letter-spacing:-1px}
.brand strong {font-weight:400}
.sidebar .app-navigation {flex:1; min-height:0}
.navigation-content {min-height:100%; display:flex; flex-direction:column}
.sidebar .workspace {padding:10px; margin-bottom:16px; background:var(--surface-soft); border:0; gap:10px}
.workspace .avatar {width:30px; height:30px; flex-shrink:0}
.workspace strong {max-width:140px; font-size:12px}
.workspace small {font-size:11px}
.nav-label {margin:12px 10px 8px; font-size:10px; letter-spacing:1.1px}
.sidebar nav {display:grid; gap:3px}
.sidebar nav a {min-height:42px; padding:9px 12px; font-size:13px; line-height:1.5; border:1px solid transparent; border-radius:8px}
.sidebar nav a[aria-current=page] {color:var(--primary); background:var(--selected); font-weight:650; border-color:var(--assistant-line)}
.nav-group {margin-top:12px}
.nav-group>summary {padding:12px 10px; color:var(--muted); font-size:12px; font-weight:600}
.nav-group[open]>summary {margin-bottom:2px}
.sidebar .sidebar-bottom {display:block; margin-top:auto; padding:22px 0 0}
.sidebar .sidebar-bottom>nav {border-top:1px solid var(--line); padding-top:12px}
.sidebar nav .avatar {width:32px; min-width:32px; height:32px; font-size:13px; color:var(--ink)}
.sidebar nav .account-label {width:auto; min-width:0; font-size:12px; color:var(--ink); overflow-wrap:anywhere}
.account-label strong,.account-label small {display:block}
.appearance-panel>summary {font-size:12px; color:var(--muted); padding:12px}
.sidebar .appearance-panel .theme-switch {position:static; display:grid; margin:6px 10px 12px; max-width:100%}
.sidebar .language-switch {margin:12px 10px; padding:0}
.sidebar-bottom>.link-button,.sidebar-bottom>form {padding-inline:12px}
.sidebar-bottom .link-button {min-height:36px; font-size:12px}
.app-main {margin-left:236px; min-width:0}
.page-header {min-height:112px; padding:27px 32px 25px; background:var(--surface); border-color:var(--line); gap:20px}
.page-header h1 {font-size:28px; line-height:1.2}
.page-header p {font-size:13px; margin-top:8px; max-width:650px}
.content-pad,.settings-section {padding:28px 32px}
.content-grid {padding:28px 32px; gap:18px; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
.panel {padding:24px; border-radius:14px; box-shadow:0 2px 4px #14244703; margin-bottom:20px}
.panel h2 {margin-bottom:14px}
.panel .section-heading h2 {margin:0}
.section-heading {gap:16px; align-items:center}
.section-heading>a {font-size:12px; color:var(--primary); font-weight:600}
.content-pad>.panel,.settings-section>.panel {max-width:1200px}
.two-cols {gap:20px; min-width:0}
.two-cols>* {min-width:0}
.row {font-size:13px; padding:16px 0}
.row:last-child {border-bottom:0}
.row>div {min-width:0; overflow-wrap:anywhere}
.metric {display:block; font-size:34px; line-height:1.25; margin:10px 0}
.metric-link {display:block; text-decoration:none}
.metric-link:hover {text-decoration:none; border-color:var(--focus)}
.metric-link>span:last-child {font-size:12px; color:var(--primary)}
.dashboard-metrics {padding-bottom:0; grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-metrics .panel {padding:20px}
.dashboard-primary {grid-template-columns:1.2fr 1fr}
.mailbox-row .avatar {flex-shrink:0; width:38px; height:38px; color:var(--icon-ink)}
.mailbox-row>div {flex:1}
.assistant-intro {background:var(--assistant-bg); border-color:var(--assistant-line)}
.assistant-intro .small-text {margin:14px 0 0}
.dashboard-setup {padding:0}
.dashboard-setup>summary {display:flex; align-items:center; gap:20px; padding:20px 24px; flex-wrap:wrap}
.dashboard-setup>summary>span:first-child {flex:1}
.dashboard-setup>summary:after {content:'+'; font-size:20px; color:var(--muted)}
.dashboard-setup[open]>summary:after {content:'−'}
.dashboard-setup summary small {display:block; font-weight:400; margin-top:4px}
.dashboard-setup[open]>summary {border-bottom:1px solid var(--line); margin:0}
.dashboard-setup .setup-checklist {box-shadow:none; border:0; margin:0}
.dashboard-shortcuts a {font-size:13px; padding-block:12px}
.connection-tabs {display:flex; gap:8px; padding:18px 32px 0; flex-wrap:wrap}
.connection-tabs a {min-height:42px; padding:9px 16px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-size:13px}
.connection-tabs a:hover {border-color:var(--focus); text-decoration:none}
.connection-card {display:flex; flex-direction:column; align-items:flex-start}
.connection-card h3 {font-size:18px; margin:16px 0 4px}
.connection-card>p {margin-bottom:10px}
.connection-card .connection-actions {display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:16px}
.connection-card>details {width:100%; margin-top:16px; padding-top:4px; border-top:1px solid var(--line)}
.connection-card .status-line {display:flex; gap:8px; align-items:center; margin-bottom:12px}
.connection-card .status-line .badge {border:0}
.form-page {max-width:680px; padding:32px; margin:32px auto; background:var(--surface); border:1px solid var(--line); border-radius:16px}
.form-page.wide {max-width:920px}
.form-page h1 {font-size:28px}
.form-page .back {margin-bottom:20px; color:var(--primary)}
.form-page>p {color:var(--muted)}
.stack {gap:12px; margin-top:24px}
.stack>p {margin-bottom:10px}
.stack p>label {margin-bottom:6px}
.stack input,.stack select,.stack textarea {font-size:14px; border-radius:8px}
.stack input[type=checkbox] {width:18px; height:18px}
.stack .helptext {margin-top:6px; color:var(--muted)}
.stack ul:not(.errorlist) {font-size:12px; color:var(--muted); padding-inline-start:20px}
.stack .check {line-height:1.65; font-size:13px}
.stack .check input {margin-top:3px}
.stack fieldset {border:1px solid var(--line); border-radius:10px; padding:18px; min-width:0}
.stack details {border-block:1px solid var(--line); padding:6px 0}
.stack details>summary {font-weight:600}
input:not([type=checkbox]),select,textarea {min-height:44px}
.compose {margin:28px auto; max-width:900px; width:calc(100% - 64px)}
.compose .stack>label {margin-bottom:-6px}
.compose .stack>textarea {min-height:260px}
.compose .stack>.button {margin-top:6px}
.compose .compose-copy-fields {padding:0; border:0; margin:0}
.compose-copy-fields>summary {font-size:12px; color:var(--primary); min-height:36px}
.compose-copy-fields .two-cols {padding:8px 0 16px}
.compose .rich-editor {border-color:var(--line)}
.flow-steps {display:flex; list-style:none; gap:8px; margin:0 0 28px; padding:0; counter-reset:step; font-size:12px}
.flow-steps li {flex:1; display:flex; align-items:center; gap:8px; padding:12px 10px; background:var(--surface-soft); border:1px solid var(--line); border-radius:8px; color:var(--muted)}
.flow-steps li:before {counter-increment:step; content:counter(step); display:grid; place-items:center; width:23px; height:23px; flex-shrink:0; border-radius:50%; border:1px solid var(--line); font-weight:700}
.flow-steps li[aria-current=step] {background:var(--selected); border-color:var(--assistant-line); color:var(--primary); font-weight:600}
.flow-steps li[aria-current=step]:before {background:var(--primary); color:var(--on-primary); border-color:transparent}
.mail-header {min-height:108px; padding:24px 28px}
.mail-header h1 {font-size:27px}
.mailbox-tabs {padding:14px 24px; gap:8px; background:var(--surface-soft)}
.mailbox-tab {min-height:42px; font-size:12px; padding:9px 14px; border-radius:8px; background:var(--surface)}
.mailbox-tab[aria-current] {background:var(--selected); border-color:var(--assistant-line); color:var(--primary)}
.mail-workspace {grid-template-columns:minmax(280px,34%) minmax(0,1fr); height:calc(100dvh - 182px); min-height:450px; max-height:none}
.mail-workspace>.message-list,.mail-workspace>.message-reader {max-height:none; min-height:0; overflow:auto; overscroll-behavior:contain}
.search-form {margin:18px 16px 10px}
.search-form input {font-size:13px; min-height:44px}
.folder-tabs {display:flex; flex-wrap:wrap; gap:4px; overflow:visible; padding:10px 14px; border-bottom:1px solid var(--line)}
.folder-tabs a {font-size:12px; min-height:34px; padding:6px 9px; border-radius:6px}
.folder-tabs a[aria-current] {color:var(--primary); background:var(--selected); font-weight:650}
.mail-list-status {font-size:12px; padding:12px 18px}
.mail-list-status button {font-size:12px; min-height:30px; color:var(--primary)}
.mail-workspace .mail-item {padding:17px 18px; border-bottom:1px solid var(--line); border-inline-start:3px solid transparent}
.mail-workspace .mail-item.selected {background:var(--selected); border-inline-start-color:var(--primary)}
.mail-item strong {font-size:13px; line-height:1.5; margin:5px 0}
.mail-item p {font-size:12px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.mail-meta {font-size:12px; gap:10px}
.mail-meta time {font-size:11px; flex-shrink:0}
.mail-sender {font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mail-row-foot {margin-top:9px}
.mail-account-name {font-size:10px; color:var(--muted); background:var(--surface-soft); border-radius:4px; padding:2px 6px}
.message-reader {padding:24px 30px}
.reader-tools {margin-bottom:18px; font-size:12px}
.mail-origin {margin:0 0 18px; padding:0 0 12px; font-size:12px}
.mail-origin br {display:none}
.mail-origin bdi {margin-inline-start:8px}
.message-reader h2 {font-size:23px; line-height:1.35; margin-bottom:14px}
.sender {font-size:13px; font-weight:600}
.message-command-bar {gap:8px; padding-block:14px; margin:20px 0 0}
.message-command-bar>.button,.message-command-bar>details>summary {font-size:12px; min-height:40px; padding:10px 12px}
.more-mail-actions-content {gap:8px; background:var(--surface); border-color:var(--line)}
.message-body {font-size:15px; line-height:1.9; margin:24px 0 32px; max-width:80ch}
.message-reader>.message-followup {border-top:1px solid var(--line); padding-top:18px; font-size:12px}
.message-reader .mail-assistant {margin-top:20px; border-radius:12px}
.mail-assistant>summary {padding:16px 18px; font-weight:600; color:var(--assistant-ink)}
.mail-assistant .assistant-panel {padding:4px 18px 18px}
.mail-assistant .assistant-panel label,.mail-assistant .assistant-panel select,.mail-assistant .assistant-panel textarea {font-size:13px}
.assistant-foot {padding-top:18px; font-size:12px}
.reader-empty {display:grid; place-content:center; min-height:100%; padding:36px 24px}
.reader-empty h2 {font-size:21px}
.reader-empty p {font-size:14px}
.envelope {width:80px; height:80px; padding:0; display:grid; place-items:center; margin-inline:auto; font-size:34px; border-radius:22px}
.notice,.hint {font-size:13px; line-height:1.7; border-radius:10px; overflow-wrap:anywhere}
.notice.error {background:var(--hint-bg); border-color:var(--hint-line)}
dl {grid-template-columns:minmax(100px,30%) minmax(0,1fr); gap:4px 16px; font-size:13px}
table {font-size:13px; background:var(--surface)}
th {font-size:12px; background:var(--surface-soft)}
td,th {padding:14px 16px; overflow-wrap:anywhere}
.table-wrap {border:1px solid var(--line); border-radius:12px; margin-block:16px}
.table-wrap table {margin:0}
.public-header {height:auto; min-height:86px; padding:18px 7vw; background:var(--surface)}
.public-header .brand {font-size:24px}
.public-main>.form-page {margin-top:48px; box-shadow:0 12px 36px #14244708}
.hero {padding:72px 9vw; background:var(--surface); border-bottom:1px solid var(--line)}
.hero:after {display:none}
.hero h1 {font-size:clamp(40px,5.4vw,72px); max-width:950px; letter-spacing:-2px; line-height:1.1}
.hero>p {font-size:18px; max-width:670px; line-height:1.8}
.hero-foot {font-size:12px}
.intro-grid {border:0; padding-block:20px}
.intro-grid h2 {font-size:20px}
footer {font-size:12px}
[dir=rtl] .sidebar {left:auto; right:0; border-right:0; border-left:1px solid var(--line)}
[dir=rtl] .app-main {margin-left:0; margin-right:236px}
@media(min-width:1600px) {.message-reader {padding:30px 48px}.mail-workspace {grid-template-columns:380px minmax(0,1fr)}}
@media(max-width:1100px) {.dashboard-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-primary {grid-template-columns:1fr}.page-header {padding:24px}.content-pad,.content-grid,.settings-section {padding:24px}.dashboard-metrics {padding-bottom:0}.mail-workspace {grid-template-columns:minmax(260px,40%) minmax(0,1fr)}.message-reader {padding:22px}.section-heading {flex-wrap:wrap}}
@media(max-width:900px) {.sidebar {width:214px; padding-inline:12px}.app-main {margin-left:214px}[dir=rtl] .app-main {margin-right:214px}.sidebar .sidebar-heading .brand {font-size:22px}.mail-workspace {grid-template-columns:minmax(240px,42%) minmax(0,1fr)}.page-header {gap:14px}.form-page {margin:24px; max-width:none; padding:28px}.flow-steps {gap:5px}.flow-steps li {padding:10px 7px; font-size:11px; gap:5px}}
@media(max-width:720px) {
  .sidebar {position:relative; width:100%; padding:14px 20px; border-bottom:1px solid var(--line); border-right:0; overflow:visible; display:block}
  .sidebar-heading {margin:0; min-height:36px; display:flex; align-items:center}
  .sidebar .sidebar-heading .brand {font-size:22px; padding:0}
  .sidebar .app-navigation>summary {position:absolute; inset-block-start:13px; inset-inline-end:18px; padding:10px 12px; max-width:calc(100% - 190px); font-size:11px; background:var(--surface-soft); border:1px solid var(--line); border-radius:8px; text-align:center}
  .sidebar .app-navigation[open]>summary {background:var(--selected); color:var(--primary)}
  .sidebar .navigation-content {display:flex; padding-top:20px; max-height:none; overflow:visible}
  .sidebar .workspace {display:flex; margin-bottom:12px}
  .sidebar .nav-label {display:block}
  .sidebar .app-navigation nav {display:grid; grid-template-columns:1fr; margin:0; gap:3px; overflow:visible}
  .sidebar .app-navigation nav a {min-height:44px; padding:10px 12px; font-size:13px; white-space:normal}
  .sidebar nav .avatar,.sidebar nav .account-label {display:block}
  .sidebar nav .avatar {display:grid; place-items:center}
  .sidebar .sidebar-bottom {padding-top:12px; margin-top:0}
  .sidebar .theme-switch {position:static!important}
  .sidebar .appearance-panel>summary {margin:0}
  .app-main,[dir=rtl] .app-main {margin-inline:0}
  .page-header {padding:22px 20px; min-height:110px; align-items:flex-start}
  .page-header h1 {font-size:25px}
  .page-header .eyebrow {font-size:10px}
  .page-header p {font-size:13px}
  .content-pad,.content-grid,.settings-section {padding:20px}
  .panel {padding:20px; border-radius:12px}
  .dashboard-metrics {padding-bottom:0; gap:12px}
  .dashboard-metrics .panel {padding:16px}
  .dashboard-metrics .muted {font-size:12px}
  .metric {font-size:30px}
  .dashboard-metrics .metric-link>span:last-child {font-size:11px}
  .dashboard-setup {padding:0}
  .dashboard-setup>summary {padding:18px; gap:12px}
  .dashboard-primary {grid-template-columns:1fr}
  .dashboard-primary .panel {margin-bottom:0}
  .dashboard-primary {margin-bottom:20px}
  .mailbox-row {flex-wrap:wrap; gap:10px}
  .connection-tabs {padding:16px 20px 0}
  .form-page,.form-page.wide {margin:20px; padding:24px 20px; width:auto}
  .form-page h1 {font-size:25px}
  .compose {width:auto; margin:20px; padding:20px}
  .flow-steps {flex-direction:column; gap:6px; margin-bottom:22px}
  .flow-steps li {padding:8px 12px; font-size:12px}
  .mail-header {padding:22px 20px; min-height:0}
  .mail-header h1 {font-size:25px}
  .mailbox-tabs {padding:12px 16px; overflow:auto; flex-wrap:nowrap}
  .mail-workspace {display:block; height:auto; min-height:0; max-height:none}
  .mail-workspace>.message-list,.mail-workspace>.message-reader {max-height:none; overflow:visible}
  .mail-workspace:not(.is-reading)>.message-reader {display:none}
  .mail-workspace.is-reading>.message-list {display:none}
  .inbox-screen.is-reading>.mail-header,.inbox-screen.is-reading>.mailbox-tabs {display:none}
  .message-reader {padding:20px; border-top:0}
  .message-reader h2 {font-size:23px}
  .message-command-bar {margin-top:16px; padding-block:12px}
  .message-command-bar>.button,.message-command-bar>details>summary {min-height:44px}
  .message-body {font-size:15px; margin-top:24px}
  .mail-workspace .mail-item {padding:18px 20px}
  .mail-list-status {padding:10px 20px}
  .folder-tabs {gap:4px; padding:10px 16px}
  .folder-tabs a {min-height:40px; padding:8px 10px}
  .public-header {padding:18px 20px; gap:16px}
  .public-header .brand {font-size:23px}
  .public-main>.form-page {margin:24px 20px}
  .hero {padding:44px 24px}
  .hero h1 {font-size:44px; letter-spacing:-1.5px}
  .hero>p {font-size:16px}
  .intro-grid {margin:0 24px}
  .intro-grid article {padding:24px 0}
  .hero-foot {font-size:12px}
}
@media(prefers-reduced-motion:reduce) {*,*:before,*:after {scroll-behavior:auto!important; transition:none!important; animation:none!important}}

/* Keep the original message and the assistant visible alongside each other. */
.mail-workspace.has-mail-help {grid-template-columns:260px minmax(0,1fr) 310px}
.has-mail-help>.message-reader {padding:24px; border-top:0}
.has-mail-help .message-command-bar {flex-wrap:wrap}
.mail-help-sidebar {min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; background:var(--surface-soft); border-inline-start:1px solid var(--line); padding:24px 20px; scroll-margin-top:20px}
.mail-help-heading {padding-bottom:20px; border-bottom:1px solid var(--line); margin-bottom:20px}
.mail-help-heading .eyebrow {color:var(--assistant-ink); letter-spacing:.5px}
.mail-help-heading h2 {font-size:20px; margin:0 0 8px}
.mail-help-heading p {font-size:12px; color:var(--muted); margin:0; line-height:1.7}
.mail-help-form {display:grid; gap:18px; margin:0}
.assistant-choices {display:flex; gap:4px; min-width:0; padding:0; margin:0; border:0}
.assistant-choices legend {font-size:12px; font-weight:600; padding:0; margin-bottom:10px}
.assistant-choices label {position:relative; flex:1; min-width:0; cursor:pointer}
.assistant-choices input[type=radio] {position:absolute; width:1px; height:1px; min-height:0; margin:0; padding:0; opacity:0}
.assistant-choices span {display:flex; min-height:44px; align-items:center; justify-content:center; padding:8px 5px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-size:12px; font-weight:500; text-align:center; overflow-wrap:anywhere}
.assistant-choices input:checked+span {background:var(--selected); color:var(--primary); border-color:var(--primary); font-weight:700}
.assistant-choices input:focus-visible+span {outline:3px solid var(--focus); outline-offset:2px}
.assistant-choices label:hover span {border-color:var(--primary)}
.mail-help-field {display:grid; gap:8px; min-width:0}
.mail-help-field label {font-size:12px}
.mail-help-field select,.mail-help-field textarea {font-size:13px; min-width:0; max-width:100%}
.mail-help-form>.button {width:100%; font-size:12px; padding:12px; line-height:1.6; white-space:normal}
.mail-help-advanced {font-size:12px; color:var(--primary); text-decoration:underline; text-underline-offset:3px}
.mail-help-note {font-size:11px; color:var(--muted); border-top:1px solid var(--line); margin:22px 0 0; padding-top:18px; line-height:1.8}
.mail-help-back {display:block; font-size:12px; color:var(--primary); margin-top:18px}
.mail-help-result {padding:18px 14px; margin:0 0 24px; border:1px solid var(--assistant-line); border-radius:12px; background:var(--surface); scroll-margin-top:20px}
.mail-help-result-heading {display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px; margin-bottom:16px}
.mail-help-result-heading h3 {flex:1; margin:3px 0; font-size:14px}
.mail-help-result .prewrap {font-size:14px; line-height:1.85}
.mail-help-result-actions {display:grid; gap:8px; margin:18px 0 14px}
.mail-help-result-actions .button {width:100%}
.mail-help-result .notice {padding:10px; font-size:12px}
.received-translation {margin:20px 0 28px; padding:18px; border:1px solid var(--assistant-line); border-radius:12px; background:var(--surface-soft); scroll-margin-top:20px}
.received-translation>h3 {margin:0 0 14px; font-size:14px}
.received-translation-form {display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px}
.received-translation-form>div {flex:1 1 180px; min-width:0}
.received-translation-form label {font-size:12px; margin-bottom:6px}
.received-translation-form select {font-size:13px}
.received-translation-form .button {min-height:44px}
.translation-preferences {display:inline-block; margin-top:12px; font-size:11px; color:var(--muted); text-decoration:underline; text-underline-offset:3px}
.received-translation-result {margin-top:20px; border-top:1px solid var(--line); padding-top:20px; scroll-margin-top:20px}
.received-translation-result .prewrap {font-size:15px; line-height:1.9}
.translation-result-actions {display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:18px; font-size:12px; color:var(--primary)}
.received-original-heading {font-size:13px; color:var(--muted); margin-bottom:0}
#received-original {scroll-margin-top:20px}
@media(min-width:1600px) {
  .mail-workspace.has-mail-help {grid-template-columns:310px minmax(0,1fr) 340px}
  .has-mail-help>.message-reader {padding:28px 36px}
  .mail-help-sidebar {padding:28px 24px}
}
@media(min-width:921px) and (max-width:1279px) {
  .mail-workspace.has-mail-help {grid-template-columns:minmax(0,1fr) 290px}
  .mail-workspace.has-mail-help>.message-list {display:none}
  .has-mail-help>.message-reader {padding:22px}
  .mail-help-sidebar {padding:22px 18px}
}
@media(max-width:920px) {
  .mail-workspace.has-mail-help {display:block; height:auto; min-height:0}
  .mail-workspace.has-mail-help>.message-list {display:none}
  .mail-workspace.has-mail-help>.message-reader {overflow:visible; max-height:none; padding:24px}
  .mail-help-sidebar {overflow:visible; border-inline-start:0; border-top:1px solid var(--line); padding:24px}
  .mail-help-heading,.mail-help-form,.mail-help-result,.mail-help-note,.mail-help-back {max-width:620px; margin-inline:auto}
  .mail-help-form {gap:16px}
}
@media(max-width:720px) {
  .mail-workspace.has-mail-help>.message-reader,.mail-help-sidebar {padding:20px}
  .has-mail-help .message-command-bar>.button {flex:1 1 auto}
  .has-mail-help .message-command-bar>.more-mail-actions {flex-basis:100%}
  .assistant-choices span {font-size:13px}
}
