.st-module {
  --st-secondary: #b7c9e0;
  --st-edge: #35526f;
  --st-focus: #8cd8ff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  min-width: 0;
}
.st-module h1, .st-module h2, .st-module h3 { margin: 0; line-height: 1.24; }
.st-module h2 { font-size: 1.23rem; }
.st-module p { margin: 0; }
.st-module .st-muted, .st-module .page-subtitle { color: var(--st-secondary); }
.st-module .page-subtitle { margin: .55rem 0 0; max-width: 52rem; font-size: 1rem; }
.st-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.st-header .page-title { font-size: clamp(1.9rem, 5vw, 2.6rem); overflow-wrap: anywhere; letter-spacing: -.025em; }
.st-back { margin-bottom: .85rem; }
.st-status { min-height: 1.6em; padding-top: .5rem; color: #a9e0ff; }
.st-status.st-error { color: #ffbec9; }
.st-category { margin-top: .9rem; }
.st-category + .st-category { margin-top: 2rem; }
.st-category h2 { margin-bottom: .85rem; color: #e6f2ff; }
.st-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.st-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .8rem;
  min-height: 12.5rem;
  min-width: 0;
  border: 1px solid var(--st-edge);
  border-radius: 1rem;
  background: linear-gradient(145deg, #152d49, #101f38 73%);
  padding: clamp(1rem, 2vw, 1.45rem);
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: border-color 150ms, background 150ms;
}
.st-card:hover { background: #1a3552; border-color: #77b2e3; }
.st-card-name { font-size: 1.25rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.st-card-description { color: var(--st-secondary); font-size: 1rem; overflow-wrap: anywhere; }
.st-icon {
  display: grid;
  place-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: .85rem;
  font: 1.9rem/1 system-ui, sans-serif;
}
.st-icon-blue { color: #b3ddff; background: #1e4775; }
.st-icon-mint { color: #9cf3df; background: #15524e; }
.st-icon-violet { color: #dfccff; background: #463a72; }
.st-icon-amber { color: #ffdc9a; background: #60462a; }
.st-module :is(button, input, textarea, select, summary, .st-paper-table):focus-visible { outline: 2px solid var(--st-focus); outline-offset: 3px; }
.st-module :is(.primary, .ghost, .danger) { min-height: 44px; font-size: .94rem; white-space: normal; line-height: 1.35; }
.st-module .primary { background: #2456b2; color: #fff; }
.st-module .primary:hover { background: #3066c1; }
.st-module .ghost { border-color: var(--st-edge); }
.st-module button:disabled { opacity: .58; cursor: default; }
.st-workspace { max-width: 30rem; margin: .85rem 0; }
.st-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 17rem); gap: 1rem; align-items: start; margin-top: .65rem; }
.st-main, .st-form-stack { display: grid; gap: 1rem; min-width: 0; }
.st-module .panel { min-width: 0; padding: clamp(.95rem, 2vw, 1.35rem); }
.st-input-panel h2 { margin-bottom: 1rem; }
.st-actions, .st-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.st-section-head { justify-content: space-between; }
.st-generate { margin-top: 1rem; }
.st-fields, .st-schedule-grid, .st-paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.st-wide { grid-column: 1 / -1; }
.st-module fieldset { min-inline-size: 0; margin: 0; padding: .85rem; border: 1px solid var(--st-edge); border-radius: .85rem; }
.st-module legend { padding: 0 .32rem; font-size: 1.05rem; font-weight: 700; }
.st-module .field { min-width: 0; gap: .33rem; margin: 0; }
.st-module .field > span, .st-module .checkrow { color: #e5f1ff; font-size: .94rem; }
.st-module .field > small { color: var(--st-secondary); font-size: .875rem; }
.st-module .field :is(input, textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-color: var(--st-edge);
  font-size: 1rem;
}
.st-module .field textarea { line-height: 1.48; resize: vertical; }
.st-module .field input[type="file"] { padding: .5rem; max-width: 100%; }
.st-module .checkrow { min-height: 44px; }
.st-module .st-depth { margin-top: 1rem; }
.st-depth-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem; }
.st-depth-choice { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem;
  border: 1px solid var(--st-edge); border-radius: .65rem; background: #10223a; cursor: pointer; }
.st-depth-choice:has(input:checked) { border-color: #81c4f4; background: #183653; }
.st-depth-choice input { flex: none; width: 1.1rem; height: 1.1rem; margin: .23rem 0 0; accent-color: #81c4f4; }
.st-depth-choice span { min-width: 0; overflow-wrap: anywhere; }
.st-depth-choice strong, .st-depth-choice small { display: block; }
.st-depth-choice small { margin-block-start: .28rem; color: var(--st-secondary); font-size: .875rem; line-height: 1.45; }
.st-notice { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: .75rem; background: #20364d; border-radius: .65rem; margin-bottom: 1rem; }
.st-copy-buffer { position: fixed; top: 0; left: -10000px; }
.st-company { margin-top: .85rem; padding: .65rem .75rem; border: 1px solid var(--st-edge); border-radius: .75rem; }
.st-company summary { cursor: pointer; font-weight: 650; min-height: 33px; }
.st-company .st-actions { align-items: flex-end; margin-top: .65rem; }
.st-company .field { flex: 1 1 13rem; }
.st-company .st-section-head { margin-top: .25rem; }
.st-matches, .st-saved ul, .st-crm-work ul { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.st-matches button, .st-doc-button { width: 100%; text-align: left; overflow-wrap: anywhere; }
.st-matches small, .st-doc-button span { display: block; color: var(--st-secondary); font-size: .875rem; }
.st-doc-button {
  min-height: 46px;
  border: 1px solid var(--st-edge);
  border-radius: .62rem;
  padding: .55rem .65rem;
  background: #142945;
  color: var(--text);
  font: inherit;
}
.st-doc-button:hover { background: #1c3857; }
#st-documents .st-muted, #st-documents .st-actions { margin-top: .65rem; }
.st-crm-work { margin: 1rem 0; }
.st-result, .st-reminder { display: grid; gap: .75rem; }
.st-result .st-section-head .field { max-width: 100%; }
.st-module .st-review-warning { padding: .65rem .8rem; border-left: 3px solid #e9bf70; background: #362b1d; color: #ffe3ab; border-radius: .3rem; }
.st-result textarea[readonly] { background: #0b1a2b; color: #eff6ff; }
.st-schedule { margin-top: 1rem !important; }
.st-schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .65rem 0; }
.st-schedule-grid output { color: var(--st-secondary); font-size: .9rem; }
.st-save-bar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .8rem; }
.st-save-bar > div:first-child { flex: 1 1 14rem; }
.st-profile { max-width: 54rem; margin-top: .65rem; }
.st-logo-edit { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .8rem; }
.st-logo-edit img, .st-paper img { max-width: 9rem; max-height: 3.5rem; object-fit: contain; background: #fff; border-radius: .25rem; }
#st-quote-rows { container-type: inline-size; }
.st-quote-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: .65rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--st-edge);
}
.st-row-total { grid-column: 1 / span 2; align-self: center; overflow-wrap: anywhere; }
.st-row-total span { margin-right: .38rem; color: var(--st-secondary); font-size: .875rem; }
.st-row-total output, .st-totals dd { font-variant-numeric: tabular-nums; }
.st-remove { grid-column: 3 / -1; justify-self: end; }
.st-quote-row + .st-actions, #st-quote-rows + .st-actions { margin-top: .65rem; }
.st-totals { display: grid; gap: .38rem; max-width: 25rem; margin: 1rem 0 0 auto; }
.st-totals > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .75rem; }
.st-totals > div:last-child { border-top: 1px solid var(--st-edge); padding-top: .5rem; font-size: 1.14rem; font-weight: 750; }
.st-totals dd { margin: 0; overflow-wrap: anywhere; }
#st-preview:empty { display: none; }
.st-paper { background: #f9fcff; color: #12233a; border-radius: .65rem; border-top: .45rem solid #22599d; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: clamp(.9rem, 3vw, 2rem); }
.st-paper header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.st-paper h2 { font-size: 1.7rem; }
.st-paper h3 { color: #225393; font-size: .95rem; margin-bottom: .3rem; }
.st-paper p { white-space: pre-wrap; overflow-wrap: anywhere; }
.st-paper-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: .65rem; border-bottom: 1px solid #b8cce6; }
.st-paper-table { overflow: auto; }
.st-paper table { width: 100%; min-width: 32rem; border-collapse: collapse; font-size: .91rem; color: inherit; }
.st-paper thead th { background: #173454; color: #fff; }
.st-paper th, .st-paper td { padding: .58rem; font-size: .91rem; }
.st-paper tbody td { color: #12233a; background: #f9fcff; border-top-color: #c6d6e6; }
.st-paper tbody tr:nth-child(even) td { background: #e8f0fa; }
.st-paper tbody td:first-child { white-space: normal; overflow-wrap: anywhere; }
.st-paper tbody td:not(:first-child) { white-space: nowrap; }
.st-paper .st-totals { width: min(100%, 25rem); }
@media (max-width: 1020px) {
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-work { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 27rem) {
  .st-quote-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-quote-row .field:first-child { grid-column: 1 / -1; }
  .st-row-total { grid-column: 1; }
  .st-remove { grid-column: 2; }
}
@media (max-width: 640px) {
  .st-cards, .st-fields, .st-schedule-grid { grid-template-columns: minmax(0, 1fr); }
  .st-depth-choices { grid-template-columns: minmax(0, 1fr); }
  .st-card { min-height: auto; }
  .st-paper table { min-width: 27rem; }
  .st-paper th, .st-paper td { padding: .5rem; }
}
@media (max-width: 360px) {
  .st-paper-meta, .st-paper-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .st-card { transition: none; }
}

.st-tool-filter { margin-bottom: 1rem; }
.st-tool-filter h2 { margin: 0; }
.st-business-panel { display: grid; gap: 1rem; }
.st-business-panel h3 { font-size: 1.04rem; margin-bottom: .55rem; }
.st-business-focus { display: grid; gap: .25rem; background: #163455; border: 1px solid #3e6e99;
  padding: 1rem; border-radius: 12px; color: #dcefff; }
.st-business-focus strong { font-size: clamp(1.65rem, 5vw, 2.35rem); overflow-wrap: anywhere; }
.st-business-summary { display: grid; gap: .35rem; margin: 1rem 0 0; }
.st-business-summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem;
  padding: .5rem 0; border-bottom: 1px solid #294260; }
.st-business-summary dd { margin: 0; font-weight: 700; }
.st-business-error { padding: .6rem .8rem; background: #492139; border-left: 3px solid #ffa9b6; color: #ffdae1; }
.st-business-bars { margin-top: 1rem; display: grid; gap: .6rem; }
.st-business-bars > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem .6rem; }
.st-business-bars .st-meter { grid-column: 1 / -1; grid-row: 2; }
.st-meter { background: #203b58; height: .55rem; border-radius: 99px; overflow: hidden; }
.st-meter i { display: block; background: #64c9ed; height: 100%; border-radius: inherit; }
.st-meter i.st-meter-cost { background: #ffb881; }
.st-meter i.st-meter-profit { background: #8ce3be; }
.st-expenses i { background: #ffb881; }
.st-cash-entry { margin-bottom: .8rem !important; }
.st-cash-entry .st-actions { margin-top: .55rem; }
.st-cash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1rem 0; }
.st-cash-charts section { padding: .75rem; border: 1px solid #34516e; border-radius: 10px; }
.st-cash-bars, .st-cash-bar-row > div { display: grid; gap: .3rem; }
.st-cash-bar-row { display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: .5rem; font-size: .9rem; }
.st-cash-charts .st-muted { margin-top: .45rem; }
.st-cash-chart { display: block; width: 100%; min-height: 105px; }
.st-cash-axis { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; color: #dcecff; }
.st-business-table { overflow: auto; border: 1px solid #34516e; border-radius: 10px; margin-bottom: 1rem; }
.st-business-table table { min-width: 34rem; }
.st-business-table :is(th, td) { font-size: .9rem; padding: .6rem; white-space: nowrap; }
.st-business-table th { text-transform: none; letter-spacing: normal; }
.st-business-table tbody th { background: #122640; color: #dcefff; }
.st-module .st-negative { color: #ffc4cb; font-weight: 700; }
.st-document-paper .field span { color: #173454; }
.st-document-paper .field textarea { background: #fff; color: #12233a; border-color: #7296b7; min-height: 18rem; }
.st-module .st-business-table:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 3px; }

.st-doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .45rem; }
.st-doc-row .danger { padding-inline: .65rem; }
.st-module .st-ad-recommendation { color: #ffe3a6; font-weight: 650; }

.st-plan-chart { margin: 1.2rem 0; }
.st-plan-chart figcaption { font-weight: 650; margin-bottom: .6rem; }
.st-plan-chart svg { display: block; width: 100%; max-height: 14rem; }
.st-plan-chart .st-section-head { overflow-wrap: anywhere; gap: .75rem; }
.st-plan-warning { color: #ffd6a1; font-weight: 620; }
.st-campaign-compare, .st-language-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.st-campaign-compare > div { display: grid; gap: .35rem; background: #112a47; border: 1px solid #3a5573; border-radius: .65rem; padding: .85rem; overflow-wrap: anywhere; }
.st-campaign-compare strong { font-size: 1.2rem; }
.st-work.st-work-language { grid-template-columns: minmax(0, 1fr); }
.st-language-columns textarea { width: 100%; min-height: 16rem; }
.st-language-points li { margin: .45rem 0; }
.st-calendar-platforms { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; }
.st-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin: .8rem 0 1rem; }
.st-calendar-days button { min-width: 0; padding: .55rem .25rem; font-size: .86rem; display: grid; gap: .25rem; }
.st-calendar-days button span:first-child { font-weight: 700; }
.st-module button[aria-pressed="true"] { background: #143a5f; border-color: #77cee9; color: #f5fbff; }
.st-calendar-post { padding: .9rem; border: 1px solid #3a5573; border-radius: .65rem; margin: .75rem 0; }
.st-calendar-post h3 { margin: 0; overflow-wrap: anywhere; }
.st-calendar-post details { margin: .6rem 0; }
.st-calendar-post details .st-fields { margin-top: .7rem; }
.st-calendar-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .st-language-columns { grid-template-columns: minmax(0, 1fr); }
  .st-calendar-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 410px) {
  .st-campaign-compare { grid-template-columns: minmax(0, 1fr); }
  .st-calendar-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st-cost-summary { margin-bottom: .75rem; }
.st-cost-label { display: inline-block; width: fit-content; padding: .25rem .5rem; border-radius: .35rem;
  font-size: .85rem; line-height: 1.35; color: #ffe1a6; background: #332840; border: 1px solid #8d674b; }
.st-ai-cost { font-size: .94rem; line-height: 1.5; color: #f5d8a4; margin: .65rem 0; }
.st-calendar-related { margin: .5rem 0; }
.st-calendar-related span { color: #c5d8ed; }
.st-email-preview-wrap { margin: .8rem 0; }
.st-email-preview { background: #fff; color: #182538; padding: clamp(.85rem, 3vw, 1.45rem);
  border-radius: .55rem; font: 1rem/1.5 Arial,sans-serif; overflow-wrap: anywhere; }
.st-module .st-email-preview h3 { color: #182538; }
.st-email-preview a { color: #13498b; text-decoration: underline; }
.st-email-link { align-items: end; }
.st-email-link .field { flex: 1 1 15rem; min-width: 0; }
.st-email-links { color: #c5d8ed; overflow-wrap: anywhere; }
.st-email-links p { margin-bottom: .2rem; }
