/* Official wordmark presentation shared by the independent solution shells. */
.aw-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.aw-header-brand img,
.bulk-brand {
  display: block;
  width: 168px;
  height: auto;
  flex: none;
  filter: none;
  color-scheme: light;
  opacity: 1;
}
.aw-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 16px;
  color: var(--muted, var(--text));
  font-size: 12px;
  line-height: 1.5;
}
.aw-footer img {
  width: 112px;
  height: auto;
  filter: none;
  color-scheme: light;
  opacity: 1;
}
html[data-theme='dark'] .aw-header-brand img,
html[data-theme='dark'] .bulk-brand,
html[data-theme='dark'] .aw-footer img {
  filter: none;
  color-scheme: dark;
}
@media (max-width: 600px) {
  .aw-header-brand {
    gap: 10px;
  }
  .aw-header-brand img,
  .bulk-brand {
    width: 144px;
  }
  .aw-header-brand span {
    font-size: 0.95rem;
  }
}
@media print {
  .aw-header-brand img,
  .aw-footer img {
    filter: none !important;
    color-scheme: light;
    opacity: 1;
  }
}

:root {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--canvas);
  font-size: var(--fontSize-body);
  line-height: 1.6;
}
/* Checkout is an independent account flow with a persistent service identity. */
.aw-checkout .aw-checkout-header {
  padding: var(--space-s20) var(--aw-page-padding);
  flex-wrap: wrap;
}
.aw-checkout .aw-checkout-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s16);
  color: var(--text);
  text-decoration: none;
  font-size: var(--fontSize-body);
  font-weight: var(--fontWeight-heading);
}
.aw-checkout .aw-checkout-brand img {
  width: 100px;
}
[data-theme='dark'] .aw-checkout .aw-checkout-brand img {
  filter: brightness(0) invert(1);
}
.aw-checkout > main {
  width: 100%;
  max-width: 640px;
  margin: var(--space-s40) auto;
  padding: 0 var(--aw-page-padding);
}
.aw-checkout-context {
  margin-bottom: var(--space-s24);
}
.aw-checkout-context h1 {
  margin: var(--space-s16) 0 var(--space-s8);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.aw-checkout-context p {
  margin: 0;
  line-height: var(--lineHeight-body);
}
.aw-checkout :is(#checkout-login, #order) {
  margin: var(--space-s24) 0;
  padding: var(--aw-panel-padding);
  border: 1px solid var(--border);
  border-radius: var(--radius-dialog);
  background: var(--surface);
}
.aw-checkout :is(#checkout-login, #order) h2 {
  font-size: var(--fontSize-section);
  font-weight: var(--fontWeight-heading);
  margin: 0 0 var(--space-s8);
  word-break: keep-all;
}
.aw-checkout label {
  margin: var(--space-s20) 0 0;
  font-size: var(--fontSize-label);
  font-weight: var(--fontWeight-label);
}
.aw-checkout label > input {
  margin-top: var(--space-s8);
}
.aw-checkout #checkout-login > button {
  width: 100%;
  margin-top: var(--space-s16);
}
.aw-checkout #summary {
  font-size: var(--fontSize-body);
  line-height: var(--lineHeight-body);
  overflow-wrap: anywhere;
}
.aw-checkout #status {
  border-radius: var(--radius-control);
  font-size: var(--fontSize-label);
}
.aw-checkout .aw-button {
  min-height: var(--aw-control-height);
  color: var(--text);
  text-decoration: none;
}
.aw-checkout .aw-button--primary {
  color: var(--onPrimaryAction);
  background: var(--primaryAction);
}
@media (max-width: 600px) {
  .aw-checkout > main {
    margin-top: var(--space-s24);
  }
  .aw-checkout .aw-checkout-header {
    align-items: flex-start;
    gap: var(--space-s12);
  }
}
.contact-job-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.contact-job-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.contact-job-counts dd {
  margin: 0;
  font-weight: var(--fontWeight-heading);
}
#contact-job-detail {
  margin-top: 1rem;
  overflow-wrap: anywhere;
}
#contact-job-progress {
  display: block;
  width: 100%;
  height: 0.75rem;
  accent-color: var(--accent);
}
#contact-job-progress[hidden] {
  display: none;
}
#contact-job-message {
  min-height: 1.5em;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .contact-job-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 5vw;
}
header strong {
  font-size: 21px;
}
header strong span {
  font-weight: 400;
  margin-left: 14px;
}
main {
  max-width: 1120px;
  margin: 28px auto;
  padding: 0 24px;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: var(--fontSize-section);
}
h3 {
  font-size: var(--fontSize-group);
}
p {
  color: var(--muted);
}
form,
article,
#campaign-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}
label {
  display: block;
  margin: 14px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--control);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface);
  color: inherit;
}
textarea {
  resize: vertical;
}
button {
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--onAccent);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
  margin: 4px 8px 4px 0;
}
button.secondary,
nav button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--control);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
}
.toolbar label {
  flex: 1;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
nav button[aria-current='page'] {
  background: var(--accent);
  color: var(--onAccent);
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check input {
  width: 20px;
  height: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--subtle);
  padding: 16px;
  border-radius: 8px;
}
#message:not(:empty) {
  padding: 14px 20px;
  background: var(--selected);
  border-left: 4px solid var(--accent);
  margin-bottom: 20px;
}
#message.error {
  background: var(--subtle);
  border-color: var(--danger);
  color: var(--danger);
}
#recipient-list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  main {
    padding: 0 16px;
  }
  form,
  article {
    padding: 16px;
  }
  th,
  td {
    padding: 8px;
    font-size: 13px;
  }
}

@media (max-width: 720px) {
  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }
  table thead {
    display: none;
  }
  table tr {
    padding: 12px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    border-radius: 8px;
  }
  table td {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    border: 0;
    padding: 6px 0;
    overflow-wrap: anywhere;
  }
  table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
  }
  table td[data-label='작업'] {
    display: block;
  }
  table td[data-label='작업']::before {
    display: block;
    margin-bottom: 8px;
  }
}

#mail-preview {
  width: 100%;
  min-height: 240px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
}

#mms-preview,
#mms-detail-preview {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
}

header strong {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bulk-brand {
  width: 76px;
  height: 24px;
  object-fit: contain;
}

/* Campaign tasks stay separate on both wide and narrow screens. */
.campaign-navigation,
.recipient-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.campaign-navigation > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#compose-preview {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--aw-border, #cbd5e1);
  border-radius: 12px;
  background: white;
}
#recipient-list {
  max-height: 360px;
  overflow: auto;
}
#recipient-count {
  font-weight: 600;
}
@media (max-width: 600px) {
  .campaign-navigation > div {
    width: 100%;
  }
  .campaign-navigation button {
    flex: 1;
  }
  .recipient-toolbar button {
    flex: 1;
  }
}

.contact-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block: 16px;
}
.contact-page-controls label {
  flex: 1 1 220px;
}
.contact-page-controls [role='status'] {
  flex: 1 1 120px;
  color: var(--muted);
}

.bx-step-save-note,
.bx-step-save-status,
[data-save-hint] {
  font-size: 12px;
  line-height: 1.6;
}
#workspace-security-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  background: var(--accent);
  color: var(--onAccent, #fff);
  margin: 12px 0;
}

/* Settings panels retain unsaved fields while switching tasks. */
.bx-settings-inactive {
  display: none !important;
}
[data-settings-target][aria-pressed='true'] {
  background: var(--selected, #e9edff);
  color: var(--accent, #344ccb);
  border-color: currentColor;
}

/* Hub channel editing and selected recipients remain independently reviewable. */
[data-suite-product='hub'] .hub-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 12px 0 24px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13px;
}
[data-suite-product='hub'] .hub-channel-content,
[data-suite-product='hub'] .hub-channel-audience {
  margin: 12px 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}
[data-suite-product='hub'] :is(.hub-channel-content, .hub-channel-audience) > summary {
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
}
[data-suite-product='hub'] :is(.hub-channel-content, .hub-channel-audience) > :not(summary) {
  margin: 12px;
}
[data-suite-product='hub'] .hub-recipient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
[data-suite-product='hub'] .hub-selection-count {
  font-weight: 600;
  font-size: 13px;
}
[data-suite-product='hub'] .recipients {
  max-height: 360px;
  overflow-y: auto;
}
[data-suite-product='hub'] .recipients > label {
  overflow-wrap: anywhere;
}
[data-suite-product='hub'] [hidden] {
  display: none !important;
}
.suite-app[data-suite-product='hub'] #channel-cards .fields > details,
.suite-app[data-suite-product='hub'] #compose-form > details {
  grid-column: 1/-1;
  margin: 0;
  padding: 0 12px;
}
.suite-app[data-suite-product='hub'] #channel-cards .fields > details > :not(summary) {
  margin-inline: 0;
}
.suite-app[data-suite-product='hub'] #channel-cards fieldset {
  padding: 12px;
}
.suite-app[data-suite-product='hub'] #channel-cards .recipients {
  padding: 8px;
}
.suite-app[data-suite-product='hub'] #channel-cards .balance {
  margin: 0;
}
.suite-app[data-suite-product='hub'] .hub-options-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.suite-app[data-suite-product='hub'] #hub-compose-options-summary {
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 700px) {
  .suite-app[data-suite-product='hub'] .hub-options-fields {
    grid-template-columns: 1fr;
  }
}
.aw-checkout .bx-checkout-amount {
  display: block;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 750;
  margin: 12px 0 20px;
}
.aw-checkout #checkout-account {
  font-size: 17px;
  font-weight: 600;
}
.aw-checkout #order > details {
  margin: 16px 0;
  overflow-wrap: anywhere;
}
