/* Frontend backlog, sheet 765507440. Keep overrides scoped to their screens. */

/* Rows 3, 5: distinct quota and sorting controls, aligned with the cards. */
body.nytie-feed .nytie-monthly-votes {
  padding: 16px 20px;
  margin: 0 0 16px;
  background: #fff;
  border: none;
  border-radius: var(--cu-r);
  gap: 4px;
  font-size: 15px;
  line-height: 1.65;
}
body.nytie-feed .nytie-monthly-votes > span:first-child { font-weight: 600; }
body.nytie-feed .nytie-monthly-votes > span:last-child { color: var(--cu-muted); font-size: 13px; }
body.nytie-feed #proposals.nytie-toolbar-ready { row-gap: 16px; }
body.nytie-feed #proposals.nytie-toolbar-ready > .flex:first-child { padding: 0 20px; }
body.nytie-feed #proposals.nytie-toolbar-ready > #dropdown-menu-order {
  gap: 8px;
  padding: 0;
}
body.nytie-feed #proposals.nytie-toolbar-ready > #dropdown-menu-order a {
  min-height: 40px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--cu-border) !important;
  border-radius: var(--cu-r-sm) !important;
  background: #fff;
  font-size: 13px !important;
  text-align: center !important;
}
body.nytie-feed #proposals.nytie-toolbar-ready > #dropdown-menu-order a[aria-current="true"] {
  background: var(--cu-black);
  color: #fff !important;
}
body.nytie-feed #dropdown-menu-order a:hover { background: var(--cu-chip); }
body.nytie-feed #dropdown-menu-order a:focus-visible { outline: 3px solid var(--cu-blue); outline-offset: 2px; }

/* Row 4: both legal controls share the same alignment and touch area. */
[data-nytie-native-share][hidden] { display: none !important; }
.nytie-comment-images { display: flex; flex-wrap: wrap; gap: 12px; }
.nytie-comment-images img { max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; }
.nytie-comment-upload { padding: 8px 16px; min-width: 0; }
.nytie-comment-upload input[type="file"] { max-width: 100%; font-size: 14px; }
.nytie-comment-upload [data-image-previews] { display: flex; flex-wrap: wrap; gap: 10px; }
.nytie-comment-upload [data-image-previews] > div { display: flex; flex-direction: column; gap: 6px; max-width: 120px; }
.nytie-comment-upload img { width: 96px; height: 80px; object-fit: contain; }
.nytie-comment-upload [data-image-status] { color: #b42318; }
#socialShare { z-index: 1100; }
#socialShare #socialShare-content {
  width: calc(100% - 32px); max-width: 440px; max-height: calc(100dvh - 32px);
  padding: 24px !important; overflow-y: auto;
}
#socialShare [data-dialog-container] { display: block; padding: 0; }
#socialShare [data-dialog-title] { margin: 0 0 20px; padding-right: 32px; font-size: 24px; line-height: 1.25; }
#socialShare .nytie-share { display: grid; gap: 16px; }
#socialShare #urlShareLink { width: 100%; min-width: 0; height: 48px; margin: 0; padding: 12px; font-size: 14px; }
#socialShare .nytie-share__actions { display: grid; gap: 10px; }
#socialShare .nytie-share__actions .button { width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; justify-content: center; gap: 8px; }
#socialShare .nytie-share__actions .button svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
#socialShare [data-nytie-share-status] { min-height: 20px; margin: 0; font-size: 14px; color: var(--cu-muted); }
[data-nytie-copy-toast] {
  position: fixed; left: 24px; bottom: 24px; z-index: 1200;
  max-width: calc(100% - 48px); padding: 12px 20px;
  border-radius: 12px; background: #1f1f1f; color: #fff;
  box-shadow: 0 4px 16px #0002; font-size: 14px; line-height: 1.5; pointer-events: none;
}
[data-nytie-copy-toast][hidden] { display: none; }
@media (max-width: 767px) {
  .comments__header { flex-wrap: wrap; gap: 8px; }
  .comment-order-by, .comment-order-by select { max-width: 100%; }
}
.main-footer__down > nav:first-child { width: 100%; }
.main-footer__down > nav:first-child ul { align-items: center; justify-content: center; gap: 8px 24px; }
.main-footer__down > nav:first-child li { display: flex; justify-content: center; text-align: center; }
.main-footer__down > nav:first-child a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

/* Rows 6–7: reuse the guide's body type, headings and spacing. */
main.layout-1col:has(.nytie-pages), main.layout-1col:has(.nytie-page) {
  flex: none;
  max-width: 900px !important;
  width: calc(100% - 48px) !important;
  margin: 32px auto 48px !important;
  padding: 30px !important;
}
.nytie-pages, .nytie-page { font-size: 15px; line-height: 1.65; }
.nytie-pages__intro { margin-bottom: 24px; }
.nytie-pages__intro h1 { font-size: 32px !important; line-height: 1.18 !important; margin: 0 !important; }
.nytie-pages__intro p { color: var(--cu-muted); font-size: 15px; margin: 14px 0 0; }
.nytie-pages > .space-y-16 > * + * { margin-top: 28px !important; }
.nytie-pages .space-y-6 > * + * { margin-top: 16px !important; }
.nytie-pages h2, .nytie-page .editor-content h2 { font-size: 22px !important; line-height: 1.3 !important; }
.nytie-pages .page__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.nytie-pages .page__accordion { border: 1px solid var(--cu-line); border-radius: var(--cu-r-sm); padding: 20px; }
.nytie-pages .page__accordion-trigger-title { font-size: 16px !important; line-height: 1.4; margin: 0; }
.nytie-pages .page__accordion-trigger-snippet { font-size: 15px !important; line-height: 1.65; color: var(--cu-muted); margin: 8px 0 0; }
.nytie-page .editor-content { font-size: 15px !important; line-height: 1.65; color: #454d59; }
.nytie-page .editor-content p, .nytie-page .editor-content li { font-size: 15px !important; line-height: 1.65 !important; }
.nytie-page .editor-content h2 { margin: 28px 0 14px !important; color: var(--cu-ink); }
.nytie-page .editor-content h3 { font-size: 15px !important; line-height: 1.4; margin: 20px 0 10px !important; }
.nytie-page .editor-content p + p { margin-top: 14px; }
.nytie-page .editor-content strong { font-weight: 600; }
.nytie-page .page__container .editor-content > .rich-text-display:first-child:not(:last-child) { padding: 16px; margin-bottom: 24px; }
.nytie-page .editor-content a { overflow-wrap: anywhere; }

/* Rows 8–9: уведомления собраны точно как «Последние события»:
   один белый лист (main.container стиль берёт из темы), слева время
   в шестую часть ширины, справа текст, между записями тонкая линия. */
.nytie-notifications__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 24px;
}
.nytie-notifications__head h1 { margin: 0 !important; }
.nytie-notifications__read-all { font-size: 14px; color: var(--cu-muted); text-decoration: underline; }
.nytie-notifications__read-all:hover { color: var(--cu-ink); }
.nytie-notifications__read-all[hidden] { display: none !important; }
.nytie-notifications__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nytie-notifications__filters a { padding: 10px 16px; min-height: 44px; border-radius: var(--cu-r-sm); color: var(--cu-ink); }
.nytie-notifications__filters a[aria-current="page"] { background: var(--cu-chip); font-weight: 600; }

/* Разбивка по дням, как в Файндере: серый заголовок дня,
   под ним записи от новых к старым. */
.nytie-notifications__day + .nytie-notifications__day { margin-top: 28px; }
.nytie-notifications__day-title {
  margin: 0 0 4px;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--cu-muted) !important;
}

.nytie-notifications .notification {
  display: grid;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 16px 0;
  margin: 0;
}
.nytie-notifications .notification:first-child { padding-top: 0; }
.nytie-notifications .notification:last-child { padding-bottom: 0; }
.nytie-notifications .notification + .notification { border-top: 1px solid var(--cu-line); }
.nytie-notifications .notification__wrapper {
  display: grid;
  grid-template-columns: calc(100% / 6) minmax(0, 1fr);
  align-items: start;
  gap: 8px 48px;
  min-width: 0;
}
.nytie-notifications .notification__time {
  /* в ядре у даты стоит w-1/6 — внутри колонки сетки это даёт 20 пикселей */
  width: 100% !important;
  font-size: 13px !important;
  font-weight: 400;
  line-height: 1.5;
  color: var(--cu-muted);
  font-variant-numeric: tabular-nums;
}
.nytie-notifications .notification__snippet { min-width: 0; }
.nytie-notifications .notification__snippet-title { font-size: 15px !important; font-weight: 400; line-height: 1.5; color: var(--cu-ink); }
.nytie-notifications .notification__snippet-title a { font-weight: 600; color: var(--cu-ink); text-decoration: none; }
.nytie-notifications .notification__snippet-title a:hover { text-decoration: underline; }
.nytie-notifications .notification .editor-content { margin-top: 8px; font-size: 15px !important; line-height: 1.65; color: #454d59; }
.nytie-notifications .notification .editor-content p { font-size: 15px !important; line-height: 1.65; margin: 0; }

.nytie-notifications .notification__button,
.nytie-notifications .notification__read-status {
  display: inline-flex;
  position: static;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  color: var(--cu-ink);
}
.nytie-notifications .notification__button { border: 1px solid var(--cu-line); border-radius: var(--cu-r-sm); }
.nytie-notifications .notification__button:hover { background: var(--cu-chip); }
.nytie-notifications .notification__button:focus-visible { outline: 2px solid var(--cu-ink); outline-offset: 2px; }
.nytie-notifications .notification__button svg,
.nytie-notifications .notification__read-status svg { width: 20px; height: 20px; }
.nytie-notifications .notification__read-status { color: var(--cu-muted); }

/* Keep the pre-PR9 content-sized vote buttons at the card's right edge. */
.card__proposals-item .card__proposals-votes-container {
  width: auto !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

@media (max-width: 767px) {
  .nytie-notifications .notification__wrapper { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nytie-notifications .notification__time { order: 1; }
  .nytie-notifications .notification__snippet { order: 0; }
}

.activity__time { font-size: 13px !important; font-variant-numeric: tabular-nums; }

/* Row 11: the guide's typography and spacing for sign-in and sign-up. */
main.layout-1col:has(.nytie-auth) {
  flex: none;
  width: calc(100% - 48px) !important;
  max-width: 560px !important;
  margin: 32px auto 48px !important;
  padding: 30px !important;
}
.nytie-auth { font-size: 15px; line-height: 1.65; }
.nytie-auth__intro { margin-bottom: 24px; }
.nytie-auth__intro h1 { font-size: 32px !important; line-height: 1.18 !important; margin: 0 !important; }
.nytie-auth .login__info { margin: 0 0 20px !important; font-size: 15px; color: #454d59; }
.nytie-auth .login__info p + p { margin-top: 10px; }
.nytie-auth .login__info-required { margin: 12px 0 !important; font-size: 13px; color: var(--cu-muted); }
.nytie-auth .form__wrapper { padding: 0 !important; gap: 20px !important; }
.nytie-auth label { font-size: 15px !important; line-height: 1.5; }
.nytie-auth .help-text { font-size: 13px !important; line-height: 1.55; color: var(--cu-muted) !important; margin-top: 8px; }
.nytie-auth .login__modal-remember { margin: 20px 0 !important; gap: 16px; font-size: 13px; }
.nytie-auth .login__modal-remember a { font-size: 13px; }
.nytie-auth .form__wrapper-block { padding: 20px 0 !important; margin: 0 !important; }
.nytie-auth .form__wrapper-block h2 { font-size: 20px !important; line-height: 1.3; margin-bottom: 12px; }
.nytie-auth #card__tos { margin-top: 24px !important; border-color: var(--cu-line); }
.nytie-auth #terms_of_service_summary { font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.nytie-auth .form__wrapper-block > .button { width: 100%; min-height: 48px; }
.nytie-auth .login__links { margin-top: 12px; padding: 0 !important; font-size: 13px; }
.nytie-auth .input-group__password { margin-top: 8px; }

/* Row 10: the mobile sections menu uses Decidim's main-menu focus trap. */
.nytie-mobile-navigation { display: none; }
.nytie-mobile-navigation__panel[aria-hidden="true"] { display: none !important; }
@media (max-width: 1023px) {
  #dropdown-menu-account-mobile {
    z-index: 1000;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #dropdown-menu-account-mobile > .main-bar { position: sticky; top: 0; z-index: 1; background: #fff; flex-shrink: 0; }
  #dropdown-menu-account-mobile .account-container { flex-shrink: 0; }
  .nytie-mobile-navigation { display: block; flex: 0 0 44px; }
  #main-bar > .main-bar { gap: 12px; padding-left: 12px !important; padding-right: 12px !important; }
  #main-bar > .main-bar > .main-bar__logo { min-width: 0; margin-right: auto; }
  #main-bar > .main-bar .main-bar__logo img { max-width: 160px; }
  .nytie-mobile-navigation__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--cu-line);
    background: #fff;
    color: var(--cu-ink);
  }
  .nytie-mobile-navigation__trigger svg { width: 24px; height: 24px; }
  .nytie-mobile-navigation__panel[aria-hidden="false"] {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 24px;
  }
  .nytie-mobile-navigation__close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--cu-surface);
    color: var(--cu-ink);
    font-size: 15px;
  }
  .nytie-mobile-navigation__panel nav, .nytie-mobile-navigation__panel nav ul { display: flex; flex-direction: column; gap: 12px; }
  .nytie-mobile-navigation__panel nav + nav { border-top: 1px solid var(--cu-line); padding-top: 24px; }
  .nytie-mobile-navigation__panel nav a {
    display: block;
    padding: 14px 16px;
    min-height: 48px;
    border: 1px solid var(--cu-line);
    border-radius: var(--cu-r-sm);
    font-size: 16px;
    line-height: 1.5;
    color: var(--cu-ink);
    text-decoration: none;
  }
  .nytie-mobile-navigation__panel nav a[aria-current="page"] { background: var(--cu-chip); font-weight: 600; }
  .nytie-mobile-navigation :focus-visible { outline: 3px solid var(--cu-blue); outline-offset: 2px; }
}

@media (max-width: 767px) {
  main.layout-1col:has(.nytie-auth) { width: calc(100% - 24px) !important; margin: 24px auto 36px !important; padding: 20px 16px !important; }
  .nytie-auth__intro h1 { font-size: 28px !important; }
  .nytie-auth .login__modal-remember { flex-wrap: wrap; }

  body .nytie-notifications .layout-2col { width: calc(100% - 24px); margin: 24px auto 36px; }
  body .nytie-notifications .layout-2col__aside { padding: 20px 16px !important; gap: 14px; }
  body .nytie-notifications .layout-2col__aside h1 { font-size: 28px !important; }
  .nytie-notifications .notification { padding: 16px; gap: 12px; }
  main.layout-1col:has(.nytie-pages), main.layout-1col:has(.nytie-page) {
    width: calc(100% - 24px) !important;
    margin: 24px auto 36px !important;
    padding: 20px 16px !important;
  }
  .nytie-pages__intro h1 { font-size: 28px !important; }
  .nytie-pages h2, .nytie-page .editor-content h2 { font-size: 20px !important; }
  .nytie-pages .page__accordion { padding: 16px; }
  body.nytie-feed .nytie-monthly-votes { text-align: center; }
  body.nytie-feed #proposals.nytie-toolbar-ready > .flex:first-child { justify-content: center !important; }
  body.nytie-feed #proposals.nytie-toolbar-ready > #dropdown-menu-order { justify-content: center !important; padding: 0 12px; }
  .nytie-hero__top .button { width: 100% !important; min-height: 48px !important; justify-content: center; }
}

/* Additional user remarks 1, 2, 7, 8, 11, 12. */
footer[role="contentinfo"] .nytie-footer-note { padding-bottom: 4px; }
.main-footer__down > nav:first-child ul { column-gap: 24px; row-gap: 0; }
body.nytie-feed #proposals.nytie-toolbar-ready > #dropdown-menu-order a {
  display: inline-flex !important; align-items: center; justify-content: center;
  line-height: 1.4 !important; margin: 0 !important;
}
body.nytie-feed #proposals.nytie-toolbar-ready > .card__grid-grid { margin-top: 0 !important; }
body.nytie-item .comments__header { align-items: center; }
body.nytie-item .comments__header h2 { margin: 0 !important; line-height: 1.4; }
body.nytie-item .comment-order-by { align-items: center; }
body.nytie-item .comment-threads > .comment-thread > .comment { padding-left: 0 !important; padding-right: 0 !important; }
body.nytie-item .proposal__aside-vote.layout-aside__ctas-buttons { gap: 16px !important; }
body.nytie-item .proposal__aside-vote .progress-bar__container {
  display: flex !important; flex-direction: row !important; align-items: baseline; justify-content: center; gap: 6px !important;
}
body.nytie-item .proposal__aside-vote .progress-bar__number,
body.nytie-item .proposal__aside-vote .progress-bar__number span { font-size: 18px !important; line-height: 1.4; }
body.nytie-item .proposal__aside-vote .progress-bar__units { font-size: 15px !important; line-height: 1.4; }
body.nytie-item .proposal__aside-vote .proposals__aside-progress:not(:has(.progress-bar)) { display: none; }
[data-nytie-last-comment] { flex-basis: 100%; flex-wrap: wrap; font-size: 13px; line-height: 1.5; color: var(--cu-muted); }
[data-nytie-last-comment] time { font-size: inherit !important; }

/* Desktop cookie consent: one row of actions keeps the banner compact. */
@media (min-width: 1024px) {
  #dc-dialog-wrapper .cookies { gap: 24px; padding-top: 16px; padding-bottom: 16px; }
  #dc-dialog-wrapper .cookies__left { width: auto; flex: 1; min-width: 0; }
  #dc-dialog-wrapper .cookies__right { width: auto; flex: 0 0 auto; flex-direction: row; gap: 8px; }
  #dc-dialog-wrapper .cookies__right .button { width: auto; min-height: 44px; white-space: nowrap; }
}

/* Account feedback stays below its own control, including while focused. */
.nytie-email-field { display: flex; flex-direction: column; }
.nytie-email-field .form-error { order: 4; margin-top: 8px; }
.nytie-email-field input { order: 3; }
.nytie-auth input.is-invalid-input,
.nytie-auth .input-group__password input.is-invalid-input:focus {
  border-color: #b42318 !important; outline-color: #b42318 !important; box-shadow: 0 0 0 1px #b42318 !important;
}
.nytie-auth .form-error { color: #b42318 !important; font-size: 13px !important; line-height: 1.5; }
.nytie-auth__agreement .form__wrapper-checkbox-label {
  display: grid !important; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start;
}
.nytie-auth__agreement input[type=checkbox] { margin: 3px 0 0 !important; }
.nytie-auth__agreement .form-error { display: none; margin: 8px 0 0; }
.nytie-auth__agreement .form-error.is-visible { display: block; }
.nytie-auth__agreement label .form-error { grid-column: 2; }
.nytie-auth__agreement .label-required { display: none; }
.nytie-auth__terms { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }

/* Keep long words, realistic full names and last replies inside their columns. */
.activity { min-width: 0; }
.activity__content, .activity__content > div { min-width: 0; overflow-wrap: anywhere; }
.activity__content p, .activity__content a { overflow-wrap: anywhere; }
.activity__author { flex-shrink: 0; }
@media (min-width: 768px) { .activity { grid-template-columns: calc(100% / 6) minmax(0, 1fr) max-content; } }
[data-nytie-last-comment], [data-nytie-created-at] { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
[data-nytie-created-at] { font-size: 13px; line-height: 1.5; color: var(--cu-muted); }
.comment .author, .comment .author__name, .comment .author__metadata { min-width: 0; overflow-wrap: anywhere; }
.comment .author__avatar-container { flex-shrink: 0; }
.comment .editor-content { overflow-wrap: anywhere; }
.comment__as { display: none; }
.nytie-proposal-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nytie-proposal-tools .tag-container { min-width: 0; margin: 0; flex-wrap: wrap; }
.nytie-proposal-tools__share { flex-shrink: 0; }
.nytie-proposal-tools__share .button { min-width: 44px; min-height: 44px; padding: 8px 12px !important; }
body.nytie-item .nytie-proposal-share { width: 100% !important; justify-content: center; min-height: 48px; }

/* Follow-up: auto-focused messages are announcements, not selectable controls.
   Their interactive close button keeps its normal keyboard focus indication. */
#flash-messages-container .flash:focus { outline: none !important; }
.nytie-auth__agreement input[type="hidden"] { display: none !important; }
.nytie-auth form[data-nytie-password-url] .form__wrapper-block { padding-bottom: 8px !important; }
.nytie-auth form[data-nytie-password-url] .login__links { margin-top: 0; }
body.nytie-item .add-comment { padding-top: 20px !important; }
#trigger-dropdown-account .main-bar__avatar,
#trigger-dropdown-account .main-bar__avatar > span,
#trigger-dropdown-account .main-bar__links-desktop__item-account {
  width: 36px !important; height: 36px !important; min-width: 36px;
}
#trigger-dropdown-account .main-bar__avatar img { width: 36px; height: 36px; object-fit: cover; }
#trigger-dropdown-account .main-bar__links-desktop__item-account { font-size: 15px; }

.nytie-notifications .notification { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; align-items: start; }
.nytie-notifications .notification a { text-decoration: underline !important; text-underline-offset: 2px; }
.nytie-notifications .notification__snippet { overflow-wrap: anywhere; }

.card__proposals-item .nytie-card__header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  font-size: .78rem; color: var(--cu-muted); line-height: 1.4;
}
.card__proposals-item .nytie-card__header [data-nytie-created-at] {
  text-align: right; min-width: 0; overflow-wrap: anywhere;
}
.card__proposals-item .card__list-metadata [data-nytie-comments-row] {
  display: block; flex-basis: 100%; width: 100%; min-width: 0;
  overflow-wrap: anywhere;
}
.card__proposals-item [data-nytie-comments-row] > svg { display: inline; vertical-align: middle; margin-right: 4px; }
.card__proposals-item [data-nytie-comments-row] > span { display: inline; }
/* Draw the border on the checkbox itself, so the invalid state cannot frame
   a larger native-control wrapper. Keep the real accessible checkbox input. */
.nytie-auth__agreements input[type="checkbox"] {
  appearance: none; width: 16px !important; height: 16px !important;
  min-height: 0 !important; padding: 0 !important; box-sizing: border-box;
  border: 1px solid var(--cu-muted); border-radius: 3px; background: #fff;
}
.nytie-auth__agreements input[type="checkbox"]:checked {
  background-color: var(--cu-black); border-color: var(--cu-black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center; background-size: 14px 14px;
}
.nytie-auth__agreement .form__wrapper-checkbox-label { grid-template-columns: 16px minmax(0, 1fr); }
.nytie-auth__agreement input[type="checkbox"].is-invalid-input {
  border-color: #b42318 !important; outline: none !important; box-shadow: none !important;
}
.nytie-auth__agreements input[type="checkbox"]:focus-visible,
.nytie-auth__agreement input[type="checkbox"].is-invalid-input:focus-visible {
  outline: 2px solid var(--cu-black) !important; outline-offset: 2px !important;
}
#flash-messages-container .flash.warning { background: #fefce8 !important; }

/* Enlarge only the account avatar, including the distinct mobile header. */
#dropdown-trigger-links-mobile .main-bar__avatar,
#dropdown-trigger-links-mobile .main-bar__avatar-name {
  width: 32px !important; height: 32px !important; min-width: 32px; font-size: 14px;
}
#dropdown-trigger-links-mobile .main-bar__avatar img { width: 32px; height: 32px; object-fit: cover; }

@media (max-width: 767px) {
  body.nytie-item .add-comment .comment__as + div { padding-top: 16px; }
}


/* Follow-up 5: scope the compact opt-in dialog to registration only. */
#sign-up-newsletter-modal #sign-up-newsletter-modal-content {
  width: calc(100% - 32px); max-width: 640px; max-height: calc(100dvh - 32px);
  overflow-y: auto; padding: 28px !important;
}
#sign-up-newsletter-modal [data-dialog-container] {
  padding: 0; gap: 16px; grid-template-columns: 24px minmax(0, 1fr);
}
#sign-up-newsletter-modal [data-dialog-container] > svg { width: 24px; height: 24px; }
#sign-up-newsletter-modal [data-dialog-title] { font-size: 24px; line-height: 1.25; padding-right: 20px; }
#sign-up-newsletter-modal [data-dialog-actions] {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; padding: 0;
}
#sign-up-newsletter-modal [data-dialog-actions] .button {
  width: 100%; min-width: 0; margin: 0; min-height: 48px; white-space: normal; text-align: center;
}
.nytie-proposal-form .label-required { display: none; }
.nytie-proposal-form .form__wrapper { gap: 24px; }
.nytie-proposal-form .nytie-channels, .nytie-proposal-form .nytie-conduct-warning { margin: 0; }
.nytie-proposal-form .nytie-uploads > p:first-child { margin-bottom: 12px; }
.nytie-proposal-form .nytie-uploads .help-text { margin-top: 12px; }
.profile__tab a { flex-direction: row; }
.profile__tab a svg { width: 16px; height: 16px; flex: 0 0 16px; }
.download-your-data .card-accordion-title { text-align: left; min-width: 0; }
@media (max-width: 767px) {
  #sign-up-newsletter-modal #sign-up-newsletter-modal-content { padding: 24px !important; }
  #sign-up-newsletter-modal [data-dialog-title] { font-size: 22px; }
  .profile__scaffold__bottom #dropdown-trigger-resource { min-height: 48px; padding: 12px; }
}
