:root {
  color-scheme: light;
  --ink: #242321;
  --secondary: #66615b;
  --line: #e2ddd5;
  --canvas: #f5f3ef;
  --surface: #fff;
  --champagne: #ece1ce;
  --champagne-ink: #67543b;
  --graphite: #272728;
  --glass-surface: linear-gradient(155deg, #ffffffde, #fffdf9b8);
  --glass-edge: #ffffffc7;
  --radius: 25px;
  --shadow: 0 1px 2px rgba(48, 39, 27, .04), 0 9px 24px rgba(48, 39, 27, .05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

#account-webmail-link { color: var(--champagne-ink); text-underline-offset: 3px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { letter-spacing: -.035em; line-height: 1.15; font-weight: 620; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled, button[aria-disabled="true"] { cursor: default; opacity: .62; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #8a6336; outline-offset: 4px; }
button { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease; }
svg { display: block; flex: 0 0 auto; }
main { width: min(1200px, 100%); min-height: calc(100svh - 132px); margin-inline: auto; padding: 42px 35px 45px; }
body:not(.account-view) { background: var(--surface); }
body:not(.account-view) main { display: grid; place-items: center; }
body.account-view { isolation: isolate; }
body.account-view::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 115% 160% at -17% 111%, #f0e9de 0 58%, #f6efe4 58.2% 67%, transparent 67.2%),
    radial-gradient(ellipse 104% 154% at 110% -44%, #b9b2aa 0 68%, #d2c6b6 68.2% 77%, transparent 77.2%),
    linear-gradient(132deg, #e3d6c1 5%, #e9dcca 48%, #cbbba4 100%);
}
.hub-view .dashboard-top, .hub-view .dashboard-layout { display: none; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}
.account-view .site-header {
  border-color: #ffffffa6;
  background: #fffdf9a8;
  backdrop-filter: blur(24px) saturate(1.1);
}
.header-inner {
  width: min(1200px, 100%);
  height: 66px;
  margin-inline: auto;
  padding-inline: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { font-size: 15px; font-weight: 720; letter-spacing: .22em; white-space: nowrap; }
.wordmark span { margin-left: 5px; color: #77716a; font-weight: 450; letter-spacing: .015em; }
.header-controls { position: relative; display: flex; align-items: center; gap: 12px; }
.preview-label { color: var(--secondary); font-size: 12px; margin-right: 8px; }
.icon-button, .profile-trigger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
}
.icon-button { color: #615b54; }
.icon-button svg { width: 19px; height: 19px; }
.icon-button:hover { background: var(--canvas); }
.profile-trigger {
  border-radius: 50%;
  border-color: #d9cdba;
  background: linear-gradient(145deg, #fbf6ed, var(--champagne));
  color: #4b3d2d;
  font: 23px Georgia, serif;
}
.profile-trigger[aria-expanded="true"], .profile-trigger:hover { border-color: #ab9676; }
.account-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(302px, calc(100vw - 36px));
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 48px #30271b29;
}
.popover-identity { padding: 13px 14px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.popover-identity strong, .popover-identity span { display: block; }
.popover-identity span { font-size: 13px; color: var(--secondary); margin-top: 4px; }
.popover-actions { display: grid; gap: 2px; padding-block: 7px; }
.popover-actions button, .menu-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 7px;
  text-align: left;
  border: 0;
  border-radius: 9px;
  padding: 9px 13px;
  background: transparent;
  font-size: 14px;
}
.popover-actions button:hover, .menu-logout:hover { background: var(--canvas); }
.menu-logout { color: #953f36; }

.site-footer {
  width: min(1200px, 100%);
  min-height: 65px;
  margin-inline: auto;
  padding: 19px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--secondary);
  font-size: 12px;
}
.footer-brand { letter-spacing: .1em; font-size: 11px; font-weight: 650; }
.primary, .dialog-primary, .quiet-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 11px;
  font-weight: 550;
  line-height: 1.35;
  font-size: 14px;
}
.primary, .dialog-primary { background: var(--graphite); border: 1px solid var(--graphite); color: #fff; padding: 10px 17px; }
.primary:hover, .dialog-primary:hover { background: #41403e; border-color: #41403e; }
.quiet-button { background: var(--surface); border: 1px solid #d9d1c5; padding: 9px 13px; }
.quiet-button:hover { background: #fcf9f4; border-color: #bda887; }
.text-button { padding: 6px 2px; border: 0; background: transparent; color: #524837; }
.text-button:hover { color: #22201c; text-decoration: underline; text-underline-offset: 4px; }
.text-button .arrow, .quiet-button .arrow { width: 16px; height: 16px; }

.login { width: min(100%, 390px); text-align: center; }
.symbol {
  margin: 0 auto 24px;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: 1px solid #e5d8c3;
  background: linear-gradient(145deg, #fbf8f2, var(--champagne));
  display: grid;
  place-items: center;
  font: 39px Georgia, serif;
}
.login h1 { font-size: clamp(30px, 5.5vw, 37px); }
.login #subtitle { color: var(--secondary); margin-top: 12px; }
.login form, .login #step-actions { margin-top: 28px; }
.login label { display: block; text-align: left; margin-bottom: 7px; font-size: 13px; font-weight: 550; }
.login input {
  width: 100%;
  height: 50px;
  border: 1px solid #cfc8bd;
  border-radius: 12px;
  padding-inline: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.login .primary { width: 100%; margin-top: 12px; min-height: 48px; }
.registration-form {
  display: grid;
  gap: 15px;
  text-align: left;
}
.registration-form .primary { margin-top: 2px; }
.registration-field { min-width: 0; }
.registration-alias {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid #cfc8bd;
  border-radius: 12px;
  background: #fff;
}
.registration-alias:focus-within { outline: 2px solid #927c5c; outline-offset: 2px; }
.registration-alias input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
}
.registration-domain {
  flex: none;
  padding: 0 13px;
  border-left: 1px solid var(--line);
  color: var(--secondary);
  font-size: 14px;
}
.registration-note {
  margin: 5px 0 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.45;
}
#registration-entry { margin-top: 8px; }
.login-provider { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-provider .quiet-button { width: 100%; min-height: 46px; }
.login-email { margin-top: 18px; overflow-wrap: anywhere; font-weight: 550; }
.login-note { margin-top: 22px; color: var(--secondary); font-size: 13px; line-height: 1.6; }
.login-message { color: #953c34; font-size: 14px; margin-top: 14px; }
.login-message:empty { display: none; }
.login #back { margin-top: 10px; }

.hub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.hub-toolbar h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.05em; font-weight: 620; }
.customize-button { flex-shrink: 0; }
.hub-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.86fr); gap: 22px; }
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}
.account-view :is(.card, .empty-widgets, .settings-sheet) {
  border-color: var(--glass-edge);
  background: var(--glass-surface);
  box-shadow: inset 0 1px 0 #ffffffc2, var(--shadow);
  backdrop-filter: blur(19px) saturate(1.12);
}
.hub-widget:has(.widget-more[aria-expanded="true"]) { z-index: 1; }
.profile-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 332px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #282828;
  border-radius: var(--radius);
  background: #292829;
  background-image: linear-gradient(180deg, #24232306 25%, #201f20d9 85%), url("/identity-metal.webp");
  background-size: cover;
  background-position: 58% center;
  box-shadow: 0 10px 22px #2f28252b;
  color: #fff;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}
.profile-card:hover { transform: translateY(-2px); box-shadow: 0 14px 26px #2f28253c; }
.profile-card:active { transform: translateY(0); }
.profile-card:has(.profile-card-link:focus-visible) { outline: 2px solid #8a6336; outline-offset: 4px; }
.profile-card-link:focus-visible { outline: none; }
.profile-emblem {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid #f4e7d16e;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff1d9, #c5aa85);
  box-shadow: 0 5px 12px #0004, inset 0 1px 0 #fff9;
  color: #443423;
  font: 37px Georgia, serif;
}
.profile-content { margin-top: 22px; min-width: 0; }
.profile-content h3 { font-size: clamp(25px, 2.65vw, 35px); overflow-wrap: anywhere; }
.profile-content p { color: #e2d9cc; margin-top: 7px; font-size: 13px; overflow-wrap: anywhere; }
.profile-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  min-height: 42px;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 560;
}
.profile-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.profile-arrow {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border: 1px solid #fff6df63;
  border-radius: 50%;
  background: #fff6df14;
  color: #f9ead3;
  transition: background .18s ease, color .18s ease;
}
.profile-card:hover .profile-arrow { background: var(--champagne); color: #3e352a; }

.application-card { display: flex; flex-direction: column; padding: 24px 25px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-head h2 { font-size: 25px; }
.section-head .text-button { flex-shrink: 0; }
.launcher {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 10px;
  padding-block: 13px 22px;
}
.launcher button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  padding: 11px 5px 10px;
}
.launcher button:hover { background: #f8f5ef; border-color: #ede5d8; }
.launcher:has([data-mail-launch]:not([hidden])) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 90px), 1fr)); }
.launcher strong { font-size: 15px; margin-top: 13px; font-weight: 640; }
.launcher small { color: var(--secondary); font-size: 12px; margin-top: 3px; }
.app-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 21px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 #fff9, inset 0 -2px 5px #0001, 0 7px 12px #372a241c;
}
.app-icon svg { width: 38px; height: 38px; }
.app-one {
  background: linear-gradient(145deg, #fbf1df 9%, #d3b58d);
  color: #42301d;
  border-color: #d4ba97;
  font-size: 33px;
  font-weight: 680;
  letter-spacing: -.085em;
  padding-right: 2px;
}
.app-cardinal { color: #f0dcc0; border-color: #4d4b48; background: linear-gradient(145deg, #4a494a, #202023 78%); }
.app-finder { color: #795b39; border-color: #d9ccba; background: linear-gradient(145deg, #fffdf7, #eae1d2); }
.app-rensend { color: #f4e2c1; border-color: #645442; background: linear-gradient(145deg, #5a4a38, #29241d); }
.account-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-block: 8px;
  gap: 4px;
}
.account-shortcuts button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding-inline: 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  color: #61574a;
}
.account-shortcuts svg { width: 17px; height: 17px; }
.account-shortcuts button:hover { background: var(--canvas); color: var(--ink); }

.overview-heading { margin: 33px 0 14px; }
.overview-heading h2 { font-size: 24px; }
.empty-widgets { color: var(--secondary); background: var(--surface); padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.hub-widgets { display: grid; grid-template-columns: 1.23fr 1fr; gap: 22px; }
.hub-widget { display: flex; flex-direction: column; }
.widget-top { padding: 17px 20px; display: flex; align-items: center; gap: 10px; position: relative; }
.widget-top h3 { font-size: 19px; }
.widget-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f2eade;
  color: #71583c;
}
.widget-icon svg { width: 19px; height: 19px; }
.widget-more {
  margin-left: auto;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--secondary);
  width: 38px;
  height: 38px;
  font-weight: 720;
  font-size: 18px;
  line-height: 1;
}
.widget-more:hover, .widget-more[aria-expanded="true"] { background: var(--canvas); color: var(--ink); }
.widget-options-menu {
  position: absolute;
  z-index: 4;
  top: 57px;
  right: 17px;
  padding: 6px;
  min-width: 185px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 10px 30px #372b252a;
}
.widget-options-menu button {
  display: block;
  padding: 9px 10px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-size: 13px;
}
.widget-options-menu button:hover { background: var(--canvas); }
.finder-feature {
  flex: 1;
  min-height: 218px;
  display: grid;
  align-items: center;
  border-radius: 15px;
  margin: 0 9px 9px;
  background: #eee6d9;
  background-image: linear-gradient(90deg, #f7f1e9 4%, #f7f1e9ea 27%, #f7f1e936 65%, transparent 85%), url("/finder-links.webp");
  background-size: cover;
  background-position: center 51%;
}
.finder-copy { padding: 22px; width: 60%; }
.finder-copy h4 { font-size: clamp(27px, 3.25vw, 42px); letter-spacing: -.06em; }
.finder-copy p { color: #54493b; margin-top: 8px; font-size: 14px; }
.finder-copy .quiet-button { margin-top: 17px; min-height: 39px; background: #fffdf9; }
.widget-body { padding: 0 21px 20px; }
.status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.status-row strong { font-size: 14px; font-weight: 640; }
.status-row p, .widget-note { color: var(--secondary); font-size: 13px; margin-top: 3px; }
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  border-radius: 7px;
  padding: 4px 7px;
  background: #eaf2e8;
  color: #38553b;
  font-size: 11px;
  font-weight: 620;
}
.neutral-tag { background: #f2eee7; color: #605547; }
.activity { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.activity h4 { font-size: 13px; font-weight: 650; letter-spacing: 0; }
.home-events { display: grid; gap: 5px; margin-top: 8px; font-size: 13px; color: var(--secondary); }
.home-events > div { display: flex; align-items: baseline; gap: 7px; }
.home-events > div::before { content: ""; width: 5px; height: 5px; background: #9b8363; border-radius: 50%; flex: 0 0 auto; align-self: center; }
.widget-note { margin-top: 15px; }
.widget-foot { display: flex; margin-top: auto; padding: 5px 21px; border-top: 1px solid var(--line); }
.widget-foot .text-button { font-size: 13px; }
.device-action { margin-top: 14px; }
.feedback, .inline-message {
  padding: 11px 13px;
  margin-block: 0 14px;
  border: 1px solid #d7e3d3;
  border-radius: 10px;
  background-color: #f0f6ee;
  color: #3d583d;
  font-size: 13px;
}
.widget-body .feedback { margin: 10px 0 0; }
.feedback.error-state, .inline-message.error-state { border-color: #ebd2ca; background: #fff2ee; color: #953f34; }

dialog {
  width: min(100% - 36px, 455px);
  max-height: min(90svh, 820px);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 80px #18151245;
  overflow: auto;
}
dialog::backdrop { background: #26232169; backdrop-filter: blur(5px); }
.dialog-heading, .dialog-product-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
dialog h2 { font-size: 28px; }
.dialog-product-head { margin-bottom: 19px; }
.dialog-close { width: 35px; height: 35px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--canvas); font-size: 23px; line-height: 1; }
.dialog-close:hover { background: var(--champagne); }
.dialog-intro { color: var(--secondary); font-size: 14px; margin-block: 10px 19px; }
.dialog-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.widget-setting { display: flex; align-items: center; gap: 9px; padding-block: 9px; border-top: 1px solid var(--line); }
.widget-setting input { accent-color: #746047; width: 17px; height: 17px; margin: 0; }
.widget-setting label { flex: 1; font-size: 14px; }
.widget-setting button { width: 35px; height: 35px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.widget-setting button:not(:disabled):hover { background: var(--canvas); }
.product-dialog-facts { border-top: 1px solid var(--line); margin-bottom: 17px; }
.product-dialog-facts > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--secondary); }
.product-dialog-facts b { text-align: right; font-weight: 570; color: var(--ink); }

@media (max-width: 940px) {
  .hub-top { grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); }
  .section-head h2 { font-size: 22px; }
  .profile-card { padding: 22px; }
  .application-card { padding-inline: 17px; }
  .launcher small { font-size: 11px; }
  .account-shortcuts button { font-size: 12px; }
}
@media (max-width: 740px) {
  .header-inner { height: 60px; padding-inline: 20px; }
  main { padding: 27px 20px 25px; }
  .site-footer { padding-inline: 20px; }
  .hub-top, .hub-widgets { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .hub-toolbar { margin-bottom: 18px; }
  .hub-toolbar h2 { font-size: clamp(25px, 5.3vw, 37px); }
  .customize-button { font-size: 0; width: 42px; padding: 0; gap: 0; }
  .profile-card { min-height: 224px; background-position: center 44%; }
  .profile-emblem { width: 52px; height: 52px; font-size: 32px; }
  .profile-content { margin-top: 15px; }
  .profile-card-link { margin-top: 8px; }
  .launcher { padding-block: 6px 14px; }
  .application-card { padding-top: 17px; }
  .overview-heading { margin-top: 24px; }
  .overview-heading h2 { font-size: 23px; }
}
@media (max-width: 400px) {
  main, .header-inner, .site-footer { padding-inline: 15px; }
  .header-controls { gap: 7px; }
  .preview-label { font-size: 11px; margin-right: 1px; }
  .wordmark { font-size: 13px; }
  .section-head h2 { font-size: 20px; }
  .section-head .text-button { font-size: 12px; }
  .launcher { gap: 2px; }
  .launcher strong { font-size: 12px; }
  .app-icon { width: 63px; height: 63px; border-radius: 18px; }
  .app-one { font-size: 27px; }
  .app-icon svg { width: 32px; height: 32px; }
  .account-shortcuts button { gap: 4px; font-size: 11px; }
  .account-shortcuts svg { width: 14px; height: 14px; }
  .finder-copy { padding: 17px; width: 66%; }
  .finder-copy p { font-size: 13px; }
}
@media (max-width: 360px) {
  .preview-label { display: none; }
  .account-shortcuts button { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .profile-card:hover, .profile-card:active { transform: none; }
}

/* Account settings */
/* Account settings */
.hub-view .settings-layout {
  display: none;
}

.settings-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin: 0 0 9px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
}

.settings-back:hover {
  color: var(--ink);
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(196px, 230px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.settings-nav {
  display: grid;
  gap: 4px;
}

.settings-nav button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--secondary);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  transition: background .18s ease, color .18s ease;
}

.settings-nav button:hover {
  color: var(--ink);
  background: var(--surface);
}

.settings-nav button[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
  background: color-mix(in srgb, var(--champagne, #d8c6a5) 23%, var(--surface));
}

.settings-nav svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-content {
  min-width: 0;
}

.settings-content .inline-message {
  margin: 0 0 14px;
}

.settings-panel-heading {
  margin-bottom: 24px;
}

.settings-panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -.046em;
  overflow-wrap: anywhere;
}

.settings-panel-heading p,
.settings-sheet-intro p,
.settings-product-title p,
.settings-catalog-info p {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.55;
}

.settings-sheet {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 30px -24px #301f1729;
}

.settings-sheet h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.settings-field,
.settings-sheet-intro,
.settings-device,
.settings-product-title {
  padding: 23px 24px;
}

.settings-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.settings-field :is(input, textarea) {
  display: block;
  width: 100%;
  max-width: 460px;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.settings-field :is(input, textarea)::placeholder {
  color: var(--secondary);
}

.settings-field textarea { resize: vertical; }

.settings-field-note,
.settings-section-note {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.5;
}

.settings-section-note {
  margin-top: 14px;
}

.settings-facts {
  margin: 0;
  padding: 0 24px;
}

.settings-field + .settings-facts,
.settings-sheet-intro + .settings-facts,
.settings-product-title + .settings-facts {
  border-top: 1px solid var(--line);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
  align-items: center;
  gap: 8px 20px;
  min-height: 57px;
  padding: 13px 0;
  color: var(--ink);
  font-size: 14px;
}

.settings-row + .settings-row {
  border-top: 1px solid var(--line);
}

.settings-row dt {
  font-weight: 550;
}

.settings-row dd {
  min-width: 0;
  max-width: 33ch;
  margin: 0;
  color: var(--secondary);
  text-align: right;
  overflow-wrap: anywhere;
}

.settings-row small {
  display: block;
  margin-top: 3px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.account-identifiers .account-id-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 9px;
  max-width: 42ch;
}

.account-id-value code,
.recovery-dialog-address {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.account-id-value code { font-size: 13px; }
.account-id-copy { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.recovery-status { display: block; }
.recovery-dialog-address { font-size: 14px; font-weight: 650; }

@media (max-width: 460px) {
  .account-identifiers .settings-row { grid-template-columns: minmax(0, 1fr); }
  .account-identifiers .account-id-value { justify-content: flex-start; text-align: left; }
}

.settings-sheet-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 20px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
}

.settings-sheet-footer-split {
  justify-content: space-between;
}

.settings-sheet-footer .settings-field-note {
  max-width: 36ch;
  margin: 0;
}

.settings-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
  text-align: center;
  transition: background .18s ease, border-color .18s ease;
}

.settings-button:hover {
  border-color: var(--champagne, #d8c6a5);
  background: var(--canvas);
}

.settings-button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.settings-button-primary:hover {
  border-color: #45413c;
  background: #45413c;
}

.settings-device,
.settings-product-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.settings-device p,
.settings-product-title p {
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.45;
}

.settings-device-icon {
  display: grid;
  width: 68px;
  height: 56px;
  flex: 0 0 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
  color: var(--ink);
}

.settings-device-icon svg {
  width: 47px;
}

.settings-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--canvas);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
}

.settings-device > .settings-state {
  margin-left: auto;
}

.settings-state-confirmed {
  background: #edf2eb;
  color: #36523e;
}

.settings-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-product .settings-sheet-footer {
  justify-content: flex-start;
}

.settings-product-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid #00000012;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff64;
}

.settings-product-mark-one {
  background: linear-gradient(145deg, #f6eee1, #cdb897);
  color: #332922;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.08em;
}

.settings-product-mark-cardinal {
  background: linear-gradient(145deg, #414044, #1e1e21);
  color: #eddcbf;
}

.settings-product-mark-cardinal i {
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.settings-product-mark-finder {
  background: linear-gradient(145deg, #fbf7f0, #e8dbc9);
  color: #685740;
}

.settings-product-mark-finder i {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.settings-catalog .settings-sheet-footer {
  justify-content: flex-start;
}

.settings-catalog-info {
  padding: 0 24px 20px;
}

.settings-catalog-info p {
  margin: 0;
}

.settings-quicklinks {
  padding: 0 24px;
}

.settings-quicklinks button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
}

.settings-quicklinks button + button {
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .settings-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  .settings-nav button {
    min-height: 40px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .settings-panel-heading {
    margin-bottom: 19px;
  }
}

@media (max-width: 510px) {
  .settings-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-field,
  .settings-sheet-intro,
  .settings-device,
  .settings-product-title,
  .settings-sheet-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .settings-facts,
  .settings-quicklinks {
    padding: 0 16px;
  }

  .settings-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 8px 14px;
  }

  .settings-sheet-footer-split {
    flex-wrap: wrap;
  }

  .settings-device {
    flex-wrap: wrap;
  }

  .settings-device > .settings-state {
    margin-left: 0;
  }

  .settings-catalog-info {
    padding: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-nav button,
  .settings-button {
    transition: none;
  }
}

/* Header shortcuts and the account portrait */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: #685744; }
.wordmark span { margin-left: 10px; }

#hub:focus, .settings-panel-heading > h2:focus { outline: none; }

#apps-trigger[aria-expanded="true"] {
  background: #e9ddc9;
  border-color: #d7c6ad;
  color: #35291c;
}

.header-popover {
  --header-menu-ink: #f7f2e9;
  --header-menu-muted: #c8bfb4;
  --header-menu-line: #ffffff20;
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  max-height: calc(100dvh - 72px);
  overflow: auto;
  border: 1px solid var(--header-menu-line);
  border-radius: 22px;
  padding: 0;
  background: #211f20fc;
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 38px #25201e4a;
  color: var(--header-menu-ink);
}
.apps-popover { width: min(366px, calc(100vw - 30px)); }
.account-popover { width: min(306px, calc(100vw - 30px)); }

.apps-popover > h2 {
  margin: 17px 18px 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.022em;
}
.header-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 9px 13px;
}
.header-apps > button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 9px 2px 8px;
  background: transparent;
  font: inherit;
  color: var(--header-menu-ink);
  text-align: center;
}
.header-apps > button:hover { background: #ffffff12; }
.header-apps .app-icon {
  width: 51px;
  height: 51px;
  border-radius: 14px;
}
.header-apps .app-one { font-size: 23px; }
.header-apps .app-icon svg { width: 27px; height: 27px; }
.header-apps strong { font-size: 12px; font-weight: 560; line-height: 1.25; }
.header-popover button:focus-visible { outline: 2px solid #e6cfad; outline-offset: -2px; }

.header-popover .popover-identity {
  padding: 15px 18px;
  border-color: var(--header-menu-line);
  background: #ffffff0a;
}
.header-popover .popover-identity strong { font-weight: 650; }
.header-popover .popover-identity span { color: var(--header-menu-muted); }
.header-popover .popover-actions {
  padding: 7px;
  border-top: 1px solid var(--header-menu-line);
}
.account-popover .popover-actions { border-top: 0; }
.header-popover .popover-actions button {
  min-height: 42px;
  justify-content: flex-start;
  gap: 11px;
  color: var(--header-menu-ink);
}
.header-popover .popover-actions svg { color: #dbc7aa; }
.header-popover .popover-actions button:hover { background: #ffffff0e; }
.header-popover .popover-actions .menu-logout,
.header-popover .popover-actions .menu-logout svg { color: #fac0b4; }

.profile-portrait {
  position: relative;
  align-self: stretch;
  min-height: 143px;
  isolation: isolate;
  margin-block: -1px 0;
}
.profile-card .profile-emblem {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 10px 0 0 5px;
  border: 1px solid #ecd9bda6;
  background: radial-gradient(ellipse at 30% 18%, #fff2de, #bfab8d 88%);
  box-shadow: 0 7px 19px #0c0b0bb3, inset 0 1px 1px #fff9;
  color: #443320;
  font-size: 61px;
  line-height: 1;
}
.profile-card .profile-content { margin-top: 17px; }
.profile-card .profile-card-link { font-size: 13px; font-weight: 660; letter-spacing: .1em; color: #f3e8d6; }
.profile-card .profile-arrow { color: #f3e8d6; }
.profile-card:hover .profile-arrow { color: #3e352a; }
.profile-trigger, .profile-emblem { overflow: hidden; }
.profile-trigger { padding: 0; }
.profile-trigger img, .profile-emblem img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 740px) {
  .profile-portrait { min-height: 113px; }
  .profile-card .profile-emblem { width: 88px; height: 88px; margin: 8px 0 0 2px; font-size: 47px; }
  .profile-card .profile-content { margin-top: 10px; }
}
/* Account settings: compact navigation and profile controls. */
.settings-layout {
  grid-template-columns: minmax(190px, 223px) minmax(0, 1fr);
  gap: clamp(19px, 3vw, 42px);
}

.editor-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-nav {
  min-width: 0;
  gap: 3px;
  padding: 6px;
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  background: #fffdf89e;
  box-shadow: inset 0 1px 0 #ffffff90;
  backdrop-filter: blur(16px) saturate(1.08);
}

.settings-nav button {
  min-height: 43px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #544b40;
}

.settings-nav button:hover { background: #fffdf9d9; }

.settings-nav button[aria-current="page"] {
  border-color: #d4c1a5;
  background: linear-gradient(140deg, #f8f1e6, #efe1cd);
  color: #36291c;
  font-weight: 640;
}

.settings-nav button[aria-current="page"] svg { color: #745330; }

.settings-panel-heading { margin: 0 0 17px; }
.settings-panel-heading h2 { font-size: clamp(25px, 3.1vw, 35px); }
.settings-panel-heading p { margin-top: 6px; }

/* Programmatically focused headings explain navigation to assistive tech. */
.settings-panel-heading h2[tabindex="-1"]:focus { outline: none; }

.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #f6eee080, #fffdf700);
  border-radius: 20px 20px 0 0;
}

.editor-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  overflow: hidden;
  border: 1px solid #d7c5a9;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff8ed, #e8d6bc);
  color: #443423;
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px #452d1210;
  font: 34px Georgia, serif;
}

.profile-photo-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.profile-photo-actions :is(h3, p) { width: 100%; }

.profile-photo-actions :is(button, label.quiet-button) {
  min-height: 36px;
  font-size: 13px;
}

.profile-photo-actions label.quiet-button { cursor: pointer; }
.profile-photo-actions input[type="file"] { min-width: 0; max-width: 100%; }

.profile-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 17px 24px 19px;
  gap: 14px 16px;
}

.profile-fields .settings-field {
  min-width: 0;
  padding: 0;
}

.profile-fields .settings-field :is(input, textarea),
#app-profile-dialog .settings-field input {
  max-width: none;
  min-height: 44px;
  border-color: #d7cec0;
  background: #ffffffd9;
}

.profile-fields .settings-field :is(input, textarea):hover,
#app-profile-dialog .settings-field input:hover { border-color: #bda887; }

.profile-sync-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 13px;
  margin: 0 24px 17px;
  border: 1px solid #dfd3c0;
  border-radius: 12px;
  background: #f8f0e4bb;
  color: #493d30;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.profile-sync-option input,
.profile-scope input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #7c5a33;
}

.profile-sync-option small,
.profile-scope small {
  display: block;
  margin-top: 3px;
  color: var(--secondary);
  font-size: 12px;
}

.profile-editor > .feedback { margin: 12px 24px 16px; }

.security-settings { display: grid; gap: 16px; }
.contact-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}
.security-settings .feedback { margin: 12px 24px 16px; }

.linked-provider {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 13px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.linked-provider-identity {
  flex: 1;
  min-width: 145px;
  overflow-wrap: anywhere;
}

.linked-provider strong,
.linked-provider-identity span { display: block; }

.linked-provider strong { font-size: 14px; }
.linked-provider-identity span { color: var(--secondary); font-size: 13px; }
#google-dialog .settings-field { padding: 0; }
#google-dialog .settings-field input { max-width: none; background: var(--surface); }
#google-dialog-feedback { margin-top: 12px; }

#app-profile-dialog {
  width: min(calc(100% - 32px), 790px);
}

.app-editor-grid {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.45fr);
  align-items: start;
  gap: clamp(16px, 3vw, 27px);
  margin-block: 18px 2px;
}

.app-editor-preview {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e4d6c2;
  border-radius: 16px;
  background: linear-gradient(145deg, #f9f3e9, #f3e9d8);
  overflow-wrap: anywhere;
}

.app-editor-preview h3 {
  margin: 0 0 14px;
  color: #665643;
  font-size: 13px;
  font-weight: 650;
}

.app-editor-preview-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-editor-preview .editor-avatar {
  width: 59px;
  height: 59px;
  flex-basis: 59px;
  font-size: 28px;
}

#app-preview-name {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

#app-preview-nickname,
#product-profile-nickname {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

#app-preview-headline,
#product-profile-headline {
  margin: 11px 0 0;
  font-size: 13px;
  font-weight: 640;
  line-height: 1.4;
}

#app-preview-bio,
#product-profile-bio {
  margin: 6px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.app-editor-preview .profile-photo-actions { margin-top: 13px; }

.app-editor-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

#app-profile-dialog .settings-field { padding: 0; }

#app-profile-dialog .settings-field textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #d7cec0;
  border-radius: 10px;
  background: #ffffffd9;
  color: var(--ink);
  font: inherit;
}

.profile-scope {
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.profile-scope legend {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.profile-scope label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  margin: 0 0 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #493d30;
  font-size: 13px;
  cursor: pointer;
}

.profile-scope label:has(input:checked) {
  border-color: #d1bb9d;
  background: #f9f1e5;
}

@media (max-width: 760px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .settings-nav { padding: 6px; }
  .settings-nav button {
    min-height: 38px;
    padding: 7px 9px;
  }

  .settings-nav button:focus-visible { outline-offset: 1px; }

}

@media (max-width: 515px) {
  .profile-fields { padding: 15px 16px; gap: 12px; }

  .contact-fields { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .linked-provider { padding: 14px 16px; }
  .security-settings .feedback { margin-inline: 16px; }
  .profile-photo-row { padding: 14px 16px; }
  .profile-photo-row { gap: 12px; }
  .profile-sync-option { margin: 0 16px 14px; }
  .profile-editor > .feedback { margin-inline: 16px; }
  .profile-photo-row .editor-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 29px;
  }

}

.profile-photo-label {
  flex: 1 0 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.profile-editor-note {
  margin: 0 24px 16px;
  color: var(--secondary);
  font-size: 12px;
}

.product-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f9f6f0;
}

.product-profile .editor-avatar {
  flex-basis: 39px;
  width: 39px;
  height: 39px;
  font-size: 22px;
}

.product-profile-identity { min-width: 0; overflow-wrap: anywhere; }
.product-profile-details { grid-column: 2 / -1; min-width: 0; overflow-wrap: anywhere; }
.product-profile strong, .product-profile small { display: block; }
.product-profile strong { font-size: 14px; }
.product-profile small { margin: 0 0 3px; color: var(--secondary); font-size: 11px; }
.product-profile-details > :first-child { margin-top: 0; }
.product-profile .quiet-button { min-height: 37px; font-size: 12px; }

.settings-product .settings-sheet-footer { flex-wrap: wrap; gap: 7px; }
#app-profile-dialog .profile-scope { margin-top: 2px; }
#app-profile-dialog .profile-editor > .feedback { margin: 12px 0 0; }
#app-profile-dialog .dialog-footer { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
#app-use-shared { margin-right: auto; }
#mfa-method { overflow-wrap: anywhere; }
#mfa-email-form, #mfa-form, #mfa-app-form { display: grid; gap: 10px; }
.mfa-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mfa-methods button[aria-pressed="true"] { border-color: #a18865; background: #efe6d8; }
#mfa-qr { display: block; width: min(204px, 100%); height: auto; margin-inline: auto; background: #fff; image-rendering: pixelated; }
#mfa-manual { margin: 12px 0 16px; color: var(--secondary); font-size: 13px; overflow-wrap: anywhere; }
#mfa-manual summary { cursor: pointer; }
#mfa-dialog .settings-field-note { margin: 0; }
#mfa-dialog #mfa-staging-note { margin-bottom: 15px; }
#mfa-form { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
#mfa-dialog .feedback { margin: 14px 0 0; }

@media (max-width: 650px) {
  .app-editor-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .settings-nav { scrollbar-width: thin; }
  .security-settings .settings-row:has([data-open-mfa]) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .security-settings [data-open-mfa] {
    padding-inline: 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .product-profile { grid-template-columns: auto minmax(0, 1fr); }
  .product-profile-details { grid-column: 1 / -1; grid-row: 2; }
  #product-profile-edit { grid-column: 1 / -1; }
}

/* RenSend */
body.webmail-preview {
  --mail-paper: #fdfcf9;
  --mail-sidebar: #f1ebe0;
  --mail-rule: #e7e0d5;
  --mail-tint: #e8ddc8;
  --mail-dark: #292724;
  --mail-muted: #70685e;
  min-height: 100svh;
  background: radial-gradient(ellipse at 16% 0, #faf7f0 0, #eeebe4 72%);
  color: var(--mail-dark);
}
.mail-topbar {
  border-bottom: 1px solid #ded7cc;
  background: #fcfaf6d9;
}
.mail-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(100% - 64px, 1512px);
  height: 72px;
  margin-inline: auto;
}
.webmail-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--mail-dark);
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -.06em;
  text-decoration: none;
}
.mail-brand-icon, .mail-reader-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 11px;
}
.mail-brand-icon {
  color: #f3e5ca;
  background: linear-gradient(155deg, #4c4439, #27231e 72%);
  box-shadow: inset 0 1px 0 #fff2, 0 2px 4px #4b382826;
}
.mail-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
}
.icon-envelope::before, .icon-envelope::after, .icon-pencil::before, .icon-pencil::after { content: ""; }
.icon-envelope::before {
  width: 90%;
  height: 64%;
  border: 1.5px solid;
  border-radius: 3px;
}
.icon-envelope::after {
  position: absolute;
  top: 19%;
  width: 39%;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border: solid;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0 0 2px;
}
.icon-pencil::before {
  width: 4px;
  height: 13px;
  border: 1.5px solid;
  border-radius: 2px 2px 0 0;
  transform: rotate(43deg) translateY(-1px);
}
.icon-pencil::after {
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 4px;
  border-top: 1.5px solid;
  transform: rotate(-15deg);
}
.icon-sent { font-size: 21px; line-height: 1; }

.mail-account { position: relative; z-index: 2; min-width: 0; }
.mail-account summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border: 1px solid transparent;
  border-radius: 24px;
}
.mail-account summary::-webkit-details-marker { display: none; }
.mail-account summary:hover, .mail-account[open] summary { border-color: var(--mail-rule); background: var(--mail-paper); }
#mailbox-address { min-width: 0; max-width: 25vw; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.mail-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ede2cf;
  color: #61492e;
  font-weight: 650;
  font-size: 15px;
}
.mail-chevron { width: 6px; height: 6px; margin: -3px 3px 0 2px; border: solid #776c5d; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.mail-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 223px;
  padding: 6px;
  border: 1px solid var(--mail-rule);
  border-radius: 13px;
  background: var(--mail-paper);
  box-shadow: 0 12px 28px #3c2d2222;
}
.mail-account-menu a, .mail-account-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 9px 11px;
  text-align: start;
  background: transparent;
  color: var(--mail-dark);
  text-decoration: none;
  font-size: 14px;
}
.mail-account-menu a:hover, .mail-account-menu button:hover { background: #f2ede4; }
#mail-logout { color: #823b32; }

body.webmail-preview main.mail-main {
  width: min(100% - 64px, 1512px);
  min-height: calc(100svh - 73px);
  padding: 24px 0 32px;
}
.mail-entry {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  width: min(100%, 790px);
  overflow: hidden;
  border: 1px solid var(--mail-rule);
  border-radius: 24px;
  background: var(--mail-paper);
  box-shadow: 0 20px 60px #4e3d2420;
}
.mail-entry-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  color: #f1d9ad;
  background: radial-gradient(ellipse at 82% 16%, #685542, #302a24 53%, #252322 90%);
}
.mail-entry-art::before, .mail-entry-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  border: 1px solid #e8c99d3d;
  border-radius: 44%;
  transform: rotate(-32deg);
  box-shadow: 0 0 28px #2a211c80, inset 0 0 26px #291b1840;
}
.mail-entry-art::before { top: -28%; left: -15%; }
.mail-entry-art::after { top: 27%; left: 23%; }
.mail-entry-art .mail-icon { width: 100px; height: 100px; filter: drop-shadow(0 8px 9px #1a1612); }
.mail-entry-art .icon-envelope::before { border-width: 2px; border-radius: 12px; }
.mail-entry-art .icon-envelope::after { border-width: 0 2px 2px 0; }
.mail-entry-form { align-self: center; padding: clamp(26px, 5vw, 54px); }
.mail-entry-form h1 { font-size: clamp(30px, 4vw, 43px); }
.mail-entry-form p { margin-top: 12px; color: var(--mail-muted); }
.mail-entry-form .mail-primary { margin-top: 25px; }

.mail-primary, .mail-secondary, .mail-icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
}
.mail-primary {
  min-height: 42px;
  border-color: #302b24;
  background: linear-gradient(155deg, #464036, #282521 74%);
  color: #fff9eb;
  box-shadow: inset 0 1px 0 #ffffff26, 0 3px 7px #3a2b221e;
}
.mail-primary:hover { background: #4a4033; }
.mail-secondary, .mail-icon-button { background: #faf7f1; border-color: var(--mail-rule); }
.mail-secondary:hover, .mail-icon-button:hover { background: var(--mail-tint); }
.mail-icon-button { width: 38px; height: 38px; padding: 0; flex: none; font-size: 22px; font-weight: 450; line-height: 1; }

body.webmail-preview main.mail-main:has(.mailbox:not([hidden])) { place-items: start stretch; }

.mail-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, 52vw);
  padding: 0 13px;
  min-height: 42px;
  border: 1px solid #e4dfd6;
  border-radius: 11px;
  background: #f2efe9;
  color: #62594e;
}
.mail-search:focus-within { background: #fff; border-color: #a58863; box-shadow: 0 0 0 3px #c9b08c30; }
.icon-search::before { content: ""; width: 10px; height: 10px; margin: -3px 3px 0 0; border: 1.6px solid; border-radius: 50%; }
.icon-search::after { content: ""; position: absolute; bottom: 3px; right: 2px; width: 6px; border-top: 1.6px solid; transform: rotate(47deg); }
.mail-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 8px 0; background: transparent; color: var(--mail-dark); }
.mail-search input::-webkit-search-cancel-button { appearance: none; }
.mail-search button { border: 0; background: transparent; font-size: 19px; line-height: 1; }
.mail-search kbd { flex: none; padding: 0 6px; border: 1px solid #dcd4c7; border-radius: 4px; font-size: 12px; }
.mailbox {
  display: grid;
  grid-template-columns: minmax(188px, 215px) minmax(0, 1fr);
  min-height: min(640px, calc(100svh - 131px));
  overflow: clip;
  border: 1px solid #dbd6cc;
  border-radius: 20px;
  background: #fffefa;
  box-shadow: 0 1px 3px #4d3a2210, 0 20px 44px #49361f10;
}
.mail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 14px 18px;
  background: radial-gradient(ellipse at -12% -10%, #52443b, transparent 70%), #2b2826;
  color: #f3eee5;
}
.mail-sidebar .mail-primary {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  padding-inline: 13px;
  border-color: #ecdcc0;
  background: linear-gradient(138deg, #f4ead4, #dfc9a5);
  color: #382b1d;
  box-shadow: 0 4px 14px #17131063, inset 0 1px 0 #fff7;
}
.mail-sidebar .mail-primary:hover { background: #fbefdb; }
.mailbox-nav { display: grid; gap: 4px; }
.mailbox-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #e5dcd0;
  text-align: left;
  font-size: 14px;
}
.mailbox-nav button[aria-pressed="true"] { border-color: #77644b; background: #544739; color: #fff1d6; font-weight: 620; }
.mailbox-nav button:hover { background: #514941; }
.mailbox-nav button:focus-visible, .mail-sidebar .mail-primary:focus-visible { outline-color: #e2c396; }
#mail-unread-count { margin-left: auto; padding: 0 5px; color: #f9e8c9; font-size: 12px; font-weight: 680; }
.icon-star { font-size: 22px; line-height: 1; }
.mail-local { display: flex; align-items: center; gap: 8px; margin: auto 4px 0; color: #d0c2b1; font-size: 12px; }
.mail-local span { width: 6px; height: 6px; border-radius: 50%; background: #c9a87c; }

.mail-workspace { min-width: 0; padding: 0 24px 25px; }
.mail-workspace > .mail-notice { margin: 12px 0 0; padding: 9px 13px; border-radius: 7px; background: #eef3ea; }
.mail-workspace > .mail-error { background: #f7ece7; }
.mail-folder-header, .mail-list-toolbar, .mail-pagination, .mail-reader-bar, .mail-reader-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mail-folder-header { padding: 23px 0 16px; }
.mail-folder-title-group { display: flex; align-items: center; min-width: 0; gap: 10px; }
.mail-folder-header h1 { font-size: clamp(24px, 2.7vw, 34px); font-weight: 665; overflow-wrap: anywhere; }
#mail-result-count { padding: 3px 8px; border: 1px solid #e9deca; border-radius: 20px; background: #f6eee0; color: #694d2d; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mail-list-toolbar { min-height: 36px; margin-bottom: 13px; }
.mail-filters { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #ede6d9; border-radius: 9px; background: #f6f2ea; }
.mail-filters button { min-height: 30px; padding: 3px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--mail-muted); font-size: 13px; }
.mail-filters button[aria-pressed="true"] { border-color: #e7dcc7; background: #fffdfa; color: #483822; font-weight: 640; box-shadow: 0 1px 2px #4f382115; }
.mail-pagination { margin-left: auto; gap: 5px; color: var(--mail-muted); font-size: 12px; white-space: nowrap; }
.mail-pagination .mail-icon-button { width: 29px; height: 29px; border-radius: 7px; }
.mail-column-labels, .mail-row-open {
  display: grid;
  grid-template-columns: minmax(130px, 24%) minmax(0, 1fr) 77px;
  align-items: center;
  gap: 16px;
}
.mail-column-labels { min-height: 36px; padding: 0 13px 0 46px; border-top: 1px solid #e8e3da; border-bottom: 1px solid #e8e3da; background: #f8f5ee; color: #685f54; font-size: 12px; }
.mail-column-labels span:last-child { text-align: end; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-list li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 51px;
  border-bottom: 1px solid #eee9df;
  background: #fffefa;
}
.mail-list li:hover { background: #f8f4eb; }
.mail-list .mail-unread { background: #fdf8ee; }
.mail-list .mail-unread::before { position: absolute; inset: 9px auto 9px 0; width: 2px; border-radius: 3px; background: #a37c47; content: ""; }
.mail-row-open { width: 100%; min-width: 0; min-height: 50px; padding: 8px 13px 8px 4px; border: 0; background: transparent; text-align: start; }
.mail-row-open:focus-visible { outline-offset: -2px; }
.mail-row-open > *, .mail-row-copy > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-copy { display: flex; gap: 9px; font-size: 14px; }
.mail-row-copy strong { flex: 0 0 auto; max-width: 65%; font-weight: 580; }
.mail-row-copy span { color: #6d655c; }
.mail-unread .mail-row-contact, .mail-unread .mail-row-copy strong { font-weight: 680; }
.mail-row-contact { font-size: 13px; }
.mail-row-open time { color: var(--mail-muted); font-size: 12px; text-align: end; }
.mail-star { color: #766b5e; cursor: pointer; }
.mail-star[aria-pressed="true"] { color: #865d26; }
.mail-list .mail-star { position: relative; width: 32px; height: 34px; margin: 0 auto; border: 0; border-radius: 6px; background: transparent; font-size: 21px; line-height: 1; }
.mail-list .mail-star:hover { background: #eee4d3; }
.mail-empty { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 310px; padding: 30px 12px; text-align: center; }
.mail-empty h2 { font-size: 21px; }
.mail-empty p { color: var(--mail-muted); font-size: 14px; }
.mail-reader-icon { width: 49px; height: 49px; margin-bottom: 5px; border: 1px solid #e7dcc7; border-radius: 15px; background: #f3ebdc; color: #795a36; }
.mail-reader-icon .mail-icon { width: 23px; height: 23px; }

.mail-reader { min-width: 0; }
.mail-reader-bar { padding: 17px 0; border-bottom: 1px solid var(--mail-rule); }
.mail-reader-bar .mail-primary { min-height: 38px; padding-block: 5px; }
.mail-reader-bar .mail-secondary { min-height: 36px; padding-block: 6px; }
.mail-message { width: min(100%, 810px); margin-inline: auto; padding: clamp(22px, 4vw, 47px) 0; overflow-wrap: anywhere; }
.mail-message h2 { font-size: clamp(25px, 3.2vw, 40px); line-height: 1.16; font-weight: 650; }
.mail-message h2:focus { outline: none; }
.mail-message-header { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-top: 21px; padding-bottom: 17px; border-bottom: 1px solid var(--mail-rule); }
.mail-message-header dl { min-width: 0; flex: 1 1 180px; margin: 0; }
.mail-message-header dl div { display: flex; align-items: baseline; gap: 6px; }
.mail-message-header dd { margin: 0; }
#mail-read-from { font-weight: 640; }
.mail-message-header dl div + div, .mail-message-header time { color: var(--mail-muted); font-size: 12px; }
.mail-body { padding: 23px 0 10px; line-height: 1.75; white-space: pre-wrap; }
.mail-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid var(--mail-rule);
  border-radius: 18px;
  background: var(--mail-paper);
  color: var(--mail-dark);
  box-shadow: 0 24px 76px #241a1333;
}
.mail-dialog::backdrop { background: #27221c72; backdrop-filter: blur(3px); }
.mail-dialog-header, .mail-dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px 24px;
  background: #f6f0e5;
}
.mail-dialog-header h2 { font-size: 24px; }
#mail-sender { margin-top: 4px; color: var(--mail-muted); font-size: 13px; overflow-wrap: anywhere; }
.mail-dialog-header { border-bottom: 1px solid var(--mail-rule); }
.mail-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; margin-inline: 24px; }
.mail-fields label { color: var(--mail-muted); }
.mail-fields input, .mail-text-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--mail-dark);
  background: transparent;
}
.mail-fields input { padding: 10px 12px; border-bottom: 1px solid var(--mail-rule); }
.mail-text-field { padding: 13px 24px; }
.mail-text-field textarea { display: block; min-height: 150px; padding: 7px 0; resize: vertical; }
.mail-dialog-actions { justify-content: flex-end; border-top: 1px solid var(--mail-rule); }
.mail-notice { color: #3c6448; font-size: 13px; }
.webmail-preview .mail-error { color: #903c32; }
.mail-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1000px) {
  .mailbox { height: calc(100svh - 130px); min-height: 460px; }
  .mail-workspace { overflow: auto; overscroll-behavior: contain; }
}
@media (max-width: 860px) {
  .mail-topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 63px; padding-block: 9px; }
  .mail-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .mail-account { grid-column: 2; grid-row: 1; }
  .mailbox { grid-template-columns: 166px minmax(0, 1fr); }
  .mail-workspace { padding-inline: 14px; }
  .mail-row-open { gap: 9px; grid-template-columns: minmax(0, 1fr) auto; }
  .mail-row-contact { grid-column: 1; grid-row: 1; }
  .mail-row-copy { grid-column: 1 / -1; grid-row: 2; }
  .mail-row-open time { grid-column: 2; grid-row: 1; }
  .mail-column-labels { display: none; }
  .mail-list { border-top: 1px solid var(--mail-rule); }
}
@media (max-width: 620px) {
  .mail-topbar-inner, body.webmail-preview main.mail-main { width: calc(100% - 22px); }
  body.webmail-preview main.mail-main { min-height: calc(100svh - 60px); padding: 12px 0 20px; }
  .mailbox { grid-template-columns: minmax(0, 1fr); border-radius: 13px; min-height: 68svh; grid-template-rows: auto 1fr; }
  .mail-sidebar { gap: 10px; padding: 10px; }
  .mail-sidebar .mail-primary { min-height: 40px; width: auto; align-self: flex-start; }
  .mailbox-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .mailbox-nav button { gap: 4px; padding: 7px 4px; font-size: clamp(10px, 3.13vw, 13px); justify-content: center; }
  .mailbox-nav .mail-icon { width: 14px; height: 15px; }
  #mail-unread-count { padding: 0 2px; margin-left: 0; }
  .mail-local { display: none; }
  #mailbox-address { max-width: 36vw; }
  .mail-entry { grid-template-columns: minmax(0, 1fr); }
  .mail-entry-art { min-height: 152px; }
  .mail-entry-art .mail-icon { width: 61px; height: 61px; }
  .mail-dialog-header, .mail-dialog-actions, .mail-text-field { padding-inline: 17px; }
  .mail-fields { margin-inline: 17px; }
  .mail-folder-header { padding-top: 17px; }
  .mail-list-toolbar { flex-wrap: wrap; }
  .mail-row-copy strong { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .webmail-preview button { transition: none; }
}

/* Folders, labels and attachments */
.mail-label-block { min-height: 0; margin-top: 1px; }
.mail-label-block > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 7px 7px;
  border-bottom: 1px solid #67584b;
}
.mail-label-block h2 { color: #d9cbb9; font-size: 12px; letter-spacing: .025em; font-weight: 650; }
#mail-label-manage { width: 27px; height: 26px; padding: 0; border: 1px solid #756452; border-radius: 6px; background: transparent; color: #f0dfc2; font-size: 19px; line-height: 1; }
#mail-label-manage:hover { background: #544739; }
#mail-label-list { max-height: min(24vh, 220px); overflow: auto; padding-block: 6px; }
#mail-label-list button { overflow-wrap: anywhere; }
#mail-draft-count { margin-left: auto; padding: 0 5px; color: #f9e8c9; font-size: 12px; font-weight: 680; }
.icon-archive::before { content: ""; width: 77%; height: 58%; border: 1.5px solid; border-radius: 2px; }
.icon-archive::after { content: ""; position: absolute; top: 36%; width: 47%; border-top: 1.5px solid; }
.icon-trash::before { content: ""; width: 51%; height: 57%; margin-top: 4px; border: 1.5px solid; border-radius: 0 0 3px 3px; }
.icon-trash::after { content: ""; position: absolute; top: 23%; width: 79%; border-top: 1.5px solid; }
.icon-label::before { content: ""; width: 65%; height: 50%; border: 1.5px solid; border-radius: 3px 1px 4px 3px; transform: rotate(-32deg); }
.icon-clip::before { content: ""; width: 7px; height: 13px; border: 1.5px solid; border-radius: 6px; transform: rotate(42deg); }
.icon-clip::after { content: ""; position: absolute; width: 3px; height: 8px; border: 1px solid; border-top: 0; border-radius: 0 0 5px 5px; transform: rotate(42deg) translateY(-2px); }
.mail-draft-row-icon { justify-self: center; color: var(--mail-muted); }
.mail-row-copy .mail-row-label, .mail-chip-list li {
  width: max-content;
  max-width: 140px;
  padding: 0 7px;
  border: 1px solid #e7dac3;
  border-radius: 5px;
  background: #f4ebd9;
  color: #694c2e;
  font-size: 11px;
}
.mail-row-copy .mail-row-clip { color: #796343; }
.mail-row-copy .mail-row-clip::before { width: 5px; height: 10px; }
.mail-row-copy .mail-row-clip::after { width: 2px; height: 6px; }
.mail-reader-bar, .mail-reader-bar > div { flex-wrap: wrap; }
.mail-reader-bar > .mail-reader-actions { gap: 7px; }
.mail-label-picker { position: relative; }
.mail-label-picker summary { cursor: pointer; }
#mail-message-label-picker { position: absolute; z-index: 2; top: calc(100% + 5px); right: 0; min-width: 170px; max-width: min(245px, 72vw); max-height: 225px; overflow: auto; padding: 8px; border: 1px solid var(--mail-rule); border-radius: 10px; background: var(--mail-paper); box-shadow: 0 9px 28px #36261322; font-size: 13px; }
#mail-message-label-picker label { display: flex; gap: 8px; align-items: center; padding: 5px 4px; overflow-wrap: anywhere; cursor: pointer; }
#mail-message-label-picker input { accent-color: #71583b; }
.mail-chip-list, .mail-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.mail-chip-list li { padding-block: 3px; overflow-wrap: anywhere; }
.mail-reader-files { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--mail-rule); }
.mail-reader-files h3 { font-size: 15px; }
.mail-file-list li { display: flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 7px; border: 1px solid var(--mail-rule); border-radius: 8px; background: #f8f3ea; }
.mail-file-list a { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 2px; color: var(--mail-dark); text-decoration: none; }
.mail-file-list a:hover strong { text-decoration: underline; }
.mail-file-list strong { max-width: min(44vw, 220px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mail-file-list small { color: var(--mail-muted); font-size: 11px; white-space: nowrap; }
.mail-file-list button { border: 0; border-radius: 4px; background: transparent; font-size: 18px; }
.mail-file-list button:hover { background: #efe1ca; }
.mail-dialog-actions { flex-wrap: wrap; justify-content: space-between; }
.mail-compose-tools, .mail-compose-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-draft-status { color: var(--mail-muted); font-size: 12px; }
.mail-label-manager form { display: grid; gap: 9px; padding: 16px 22px; }
.mail-label-manager form > div { display: flex; gap: 8px; flex-wrap: wrap; }
.mail-label-manager form input { flex: 1 1 160px; min-width: 0; padding: 8px 10px; border: 1px solid var(--mail-rule); border-radius: 8px; background: #fffefa; }
.mail-label-editor { margin: 0; padding: 0 22px 18px; list-style: none; }
.mail-label-editor li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--mail-rule); }
.mail-label-editor li > span { flex: 1 1 85px; min-width: 0; overflow-wrap: anywhere; }
.mail-label-editor button { min-height: 30px; padding: 4px 7px; font-size: 12px; }
@media (max-width: 620px) {
  #mail-label-list { display: flex; flex-wrap: wrap; gap: 3px; }
  #mail-label-list button { width: auto; }
  #mail-draft-count { padding: 0 2px; margin-left: 0; }
  .mail-reader-bar > .mail-reader-actions { justify-content: flex-start; }
  .mail-reader-bar > .mail-reader-actions button, .mail-reader-bar > .mail-reader-actions summary { font-size: 13px; padding-inline: 8px; }
  .mail-row-copy .mail-row-label { max-width: 78px; }
}

.product-signin select {
  width: 100%;
  min-height: 46px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.product-signin-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; font-size: 13px; }
.product-signin-links a { color: var(--champagne-ink); text-underline-offset: 3px; }
