:root {
  --blue: #2464ec;
  --blue-dark: #1742a6;
  --ink: #19233a;
  --muted: #7a859a;
  --line: #e8edf5;
  --bg: #f5f7fb;
  --white: #fff;
  --shadow: 0 8px 28px #1c386d08;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8eb6ff;
  outline-offset: 3px;
}
button {
  border: 0;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 18px 20px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 750;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  box-shadow: 0 5px 12px #2464ec24;
}
.brand-mark svg {
  width: 25px;
  height: 25px;
}
.brand small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.nav-group {
  margin-top: 32px;
}
.nav-label {
  color: var(--ui-secondary, #505b55);
  font-size: 11px;
  letter-spacing: 2px;
  margin: 0 16px 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ui-secondary, #505b55);
  padding: 13px 15px;
  border-radius: 9px;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 13px;
}
.nav-link.active {
  background: #edf3ff;
  color:var(--ui-link);
  font-weight: 650;
}
.nav-link:hover {
  background: #f4f7fc;
}
.nav-link.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  padding: 16px 12px 0;
}
.sidebar-note {
  background: #f5f8fe;
  border: 1px solid #e8eef9;
  border-radius: 12px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ui-secondary, #505b55);
}
.sidebar-note strong {
  display: block;
  color: var(--ui-link, #186b50);
  font-size: 12px;
  margin-bottom: 4px;
}
.side-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 11px;
  color: var(--ui-secondary, #505b55);
}
.workspace {
  margin-left: 226px;
}
.topbar {
  height: 79px;
  background: #ffffffeb;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.breadcrumb {
  color: var(--ui-secondary, #505b55);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  color: var(--ui-secondary, #505b55);
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 19px;
  align-items: center;
}
.environment {
  font-size: 10px;
  padding: 5px 9px;
  color: var(--ui-secondary, #505b55);
  background: #f0f4fb;
  border-radius: 5px;
  letter-spacing: 0.8px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  color: var(--ui-secondary, #505b55);
  font-size: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #ecf2ff;
  color:var(--ui-link);
  border: 1px solid #dfe9ff;
  border-radius: 50%;
  font-weight: 700;
}
.top-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
main {
  max-width: 1570px;
  margin: auto;
  padding: 32px 38px 40px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ui-secondary, #505b55);
  font-weight: 600;
  margin-bottom: 10px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 0 0 9px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
}
p {
  line-height: 1.75;
}
.subheading {
  margin: 0;
  color: var(--ui-secondary, #505b55);
  font-size: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 17px;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-weight: 550;
  font-size: 12px;
  min-height: 39px;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: #1855d5;
  transform: translateY(-1px);
}
.btn.secondary {
  background: white;
  border: 1px solid #dfe6f2;
  color: var(--ui-secondary, #505b55);
}
.btn.secondary:hover {
  background: #f6f9fe;
}
.btn.soft {
  color:var(--ui-link);
  background: #ecf3ff;
}
.btn.danger {
  background: #fff0f1;
  color: #b33f53;
}
.btn.small {
  padding: 7px 11px;
  min-height: 31px;
  font-size: 11px;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.hero {
  border-radius: 15px;
  background: linear-gradient(111deg, #eaf2ff 0%, #f1f5fe 55%, #e4edff 100%);
  border: 1px solid #e0eafb;
  min-height: 235px;
  padding: 32px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-copy {
  z-index: 2;
  max-width: 520px;
}
.hero-tag {
  color: var(--ui-link, #186b50);
  font-size: 10px;
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-tag:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #4c82ee;
  border-radius: 50%;
}
.hero h2 {
  font-size: 31px;
  line-height: 1.55;
  margin: 12px 0 10px;
  color: var(--ui-link, #186b50);
  font-weight: 650;
  letter-spacing: -1px;
}
.hero h2 span {
  color: var(--ui-link, #186b50);
}
.hero p {
  font-size: 12px;
  color: var(--ui-link, #186b50);
  margin: 0 0 19px;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 17px;
}
.text-link {
  font-size: 12px;
  color: var(--ui-link, #186b50);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-art {
  width: 320px;
  height: 195px;
  position: relative;
  margin-right: 20px;
  flex-shrink: 0;
}
.orbit {
  position: absolute;
  border: 1px solid #b8cef650;
  border-radius: 50%;
  inset: -65px 0 -65px 0;
  transform: rotate(-24deg);
}
.orbit.two {
  inset: -15px -30px -15px -30px;
}
.ai-cube {
  position: absolute;
  top: 38px;
  left: 107px;
  width: 103px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(145deg, #8bb1ff, #2764ee);
  box-shadow:
    10px 18px 35px #427be433,
    inset 0 2px 3px #ffffffa8;
  display: grid;
  place-items: center;
  color: white;
  transform: rotate(-10deg);
  border: 1px solid #a9c6ff;
}
.ai-cube svg {
  width: 51px;
  height: 51px;
  stroke-width: 1.2;
}
.float-chip {
  position: absolute;
  background: #ffffffd9;
  border: 1px solid white;
  border-radius: 10px;
  box-shadow: 0 10px 25px #5c7ba414;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  font-size: 11px;
  color: var(--ui-link, #186b50);
  backdrop-filter: blur(3px);
}
.float-chip svg {
  color: var(--ui-link, #186b50);
  width: 18px;
  height: 18px;
}
.chip-one {
  left: 15px;
  top: 5px;
  transform: rotate(-5deg);
}
.chip-two {
  right: -6px;
  top: 38px;
  transform: rotate(5deg);
}
.chip-three {
  left: 38px;
  bottom: 2px;
  transform: rotate(3deg);
}
.chip-four {
  right: -20px;
  bottom: 18px;
  transform: rotate(-6deg);
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
  gap: 20px;
}
.section-top h2 {
  font-size: 17px;
}
.section-top small {
  color: var(--ui-secondary, #505b55);
  font-size: 11px;
  font-weight: 400;
  margin-left: 10px;
}
.industries {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 29px;
}
.industry {
  background: white;
  border: 1px solid var(--line);
  padding: 17px 15px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  transition: 0.2s;
}
.industry:hover,
.industry.selected {
  border-color: #a3c2fc;
  background: #f9fbff;
}
.industry-icon {
  display: grid;
  place-items: center;
  background: #f0f5fe;
  color: var(--ui-link, #186b50);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.industry strong {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  font-weight: 600;
}
.industry small {
  display: block;
  color: var(--ui-secondary, #505b55);
  font-size: 10px;
  margin-top: 6px;
}
.tools-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.panel-tabs {
  display: flex;
  gap: 22px;
  align-items: center;
}
.panel-tabs button {
  background: none;
  padding: 0 0 17px;
  color: var(--ui-secondary, #505b55);
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.panel-tabs button.active {
  color: var(--ui-link, #186b50);
  border-color: #2665e9;
  font-weight: 650;
}
.searchbox {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e9edf4;
  border-radius: 7px;
  padding: 9px 12px;
  width: 260px;
  margin-bottom: 14px;
  color: var(--ui-secondary, #505b55);
}
.searchbox svg {
  width: 15px;
  height: 15px;
}
.searchbox input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
  color: var(--ink);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  border-top: 1px solid #f0f3f8;
  padding: 18px 0;
}
.filter {
  border-radius: 6px;
  background: none;
  color: var(--ui-secondary, #505b55);
  font-size: 11px;
  padding: 8px 11px;
}
.filter.active {
  background: #edf3ff;
  color: var(--ui-link, #186b50);
  font-weight: 600;
}
.filter:hover {
  background: #f4f7fb;
}
.sort {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--ui-secondary, #505b55);
  font-size: 11px;
  max-width: 125px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.tool-card {
  border: 1px solid #e8edf5;
  border-radius: 10px;
  padding: 21px 20px 0;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  background: white;
  transition: 0.2s;
}
.tool-card:hover {
  border-color: #b7cefb;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--ui-link, #186b50);
  background: #eef3fe;
}
.tool-icon.purple {
  color: var(--ui-link, #186b50);
  background: #f3effc;
}
.tool-icon.orange {
  color: #d69b62;
  background: #fcf5eb;
}
.tool-icon.teal {
  color: var(--ui-link, #186b50);
  background: #edf8f8;
}
.tool-icon.pink {
  color: #ca7e9e;
  background: #fcf0f5;
}
.tool-icon svg {
  width: 21px;
  height: 21px;
}
.favorite {
  background: none;
  color: #c9d0dd;
  padding: 5px;
  display: flex;
}
.favorite.on {
  color: #f1b94a;
}
.favorite.on svg {
  fill: #f1b94a;
}
.favorite svg {
  width: 17px;
  height: 17px;
}
.tool-card h3 {
  font-size: 13px;
  margin: 15px 0 8px;
}
.tool-card p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--ui-secondary, #505b55);
  margin: 0 0 15px;
  min-height: 39px;
}
.card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.pill {
  font-size: 9px;
  background: #f6f8fc;
  color: var(--ui-secondary, #505b55);
  border-radius: 4px;
  padding: 4px 6px;
}
.pill.blue {
  background: #eff5ff;
  color: var(--ui-link, #186b50);
}
.pill.green {
  background: #edf8f2;
  color: #5a9675;
}
.pill.amber {
  background: #fff8ea;
  color: #b39660;
}
.card-bottom {
  border-top: 1px solid #f0f3f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 12px 0;
  color: var(--ui-secondary, #505b55);
  font-size: 10px;
}
.card-bottom a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ui-link, #186b50);
  font-size: 10px;
}
.card-bottom svg {
  width: 13px;
  height: 13px;
}
.muted {
  color: var(--muted);
}
.footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 10px;
  color: var(--ui-secondary, #505b55);
}
.footnote span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.footnote svg {
  width: 13px;
  height: 13px;
}
.notice {
  padding: 13px 16px;
  background: #f0f5ff;
  border: 1px solid #e0eafa;
  border-radius: 9px;
  color: var(--ui-link, #186b50);
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fffbef;
  border-color: #f2e9cf;
  color: #a28a57;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}
.panel h2 {
  margin-bottom: 18px;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--ui-secondary, #505b55);
}
.empty svg {
  width: 34px;
  height: 34px;
  color: #bccbe4;
  margin-bottom: 12px;
}
.empty strong {
  display: block;
  color: var(--ui-secondary, #505b55);
  font-size: 14px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  max-width: 360px;
  margin: 0 auto 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.stat-label {
  font-size: 11px;
  color: var(--ui-secondary, #505b55);
}
.stat-value {
  font-size: 29px;
  font-weight: 650;
  color: var(--ui-link, #186b50);
  margin-top: 14px;
}
.stat-value small {
  font-size: 11px;
  font-weight: 400;
  color: var(--ui-secondary, #505b55);
  margin-left: 5px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.studio {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 20px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 12px;
  color: var(--ui-secondary, #505b55);
  margin-bottom: 8px;
}
.field,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ui-text, #272c2a);
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.7;
}
input::placeholder,
textarea::placeholder {
  color: var(--ui-secondary, #505b55);
}
.form-group small {
  font-size: 10px;
  color: var(--ui-secondary, #505b55);
  display: block;
  line-height: 1.8;
  margin-top: 6px;
}
.check {
  display: flex !important;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.8;
}
.check input {
  margin-top: 5px;
}
.form-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}
.form-error {
  color: #c25a65;
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0;
}
.result {
  white-space: pre-wrap;
  line-height: 1.9;
  color: var(--ui-secondary, #505b55);
  font-size: 13px;
  overflow-wrap: anywhere;
  min-height: 200px;
}
.result-media {
  max-width: 100%;
  max-height: 550px;
  border-radius: 8px;
}
.status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 12px;
}
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child {
  border: 0;
}
.history-item strong {
  font-size: 12px;
  font-weight: 550;
}
.history-item small {
  display: block;
  font-size: 10px;
  color: var(--ui-secondary, #505b55);
  margin-top: 7px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--ui-secondary, #505b55);
  font-size: 10px;
  font-weight: 500;
  padding: 12px 10px;
  background: #f9fbfe;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #f0f3f8;
  line-height: 1.7;
  color: var(--ui-secondary, #505b55);
}
.table-action {
  background: none;
  color:var(--ui-link);
  font-size: 11px;
}
.workflow-nodes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.node {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f9fbff;
  border-radius: 6px;
  font-size: 10px;
  color: var(--ui-secondary, #505b55);
}
.flow-arrow {
  color: #c0ccdf;
}
.file-input {
  border: 1px dashed #c5d5ee;
  background: #f7faff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--ui-secondary, #505b55);
}
.file-input input {
  width: 100%;
  font-size: 11px;
  margin-top: 12px;
}
.loading {
  padding: 100px;
  text-align: center;
  color: var(--ui-secondary, #505b55);
}
.loading:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #dce7fa;
  border-top-color: #4f83e7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 22px;
  background: #253956;
  color: white;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 8px 30px #10284925;
  max-width: 90%;
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  width: 480px;
  max-width: calc(100% - 28px);
  max-height: 90vh;
  box-shadow: 0 30px 90px #18335a30;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #20314e55;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
dialog p {
  font-size: 12px;
  color: var(--ui-secondary, #505b55);
}
.dialog-close {
  position: absolute;
  top: 16px;
  right: 15px;
  color: var(--ui-secondary, #505b55);
  background: none;
  font-size: 21px;
}
.auth-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.auth-tabs button {
  padding: 0 0 10px;
  background: none;
  font-size: 12px;
  color: var(--ui-secondary, #505b55);
}
.auth-tabs button.active {
  color:var(--ui-link);
  border-bottom: 2px solid var(--blue);
}
.inline-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.menu-button {
  display: none;
  background: none;
  color: var(--ui-secondary, #505b55);
}
.skip {
  position: fixed;
  left: 250px;
  top: -100px;
  z-index: 200;
  background: #fff;
  padding: 10px;
  color:var(--ui-link);
}
.skip:focus {
  top: 8px;
}
.details {
  font-size: 12px;
  color: var(--ui-secondary, #505b55);
  line-height: 1.8;
}
.details summary {
  cursor: pointer;
  color: var(--ui-link, #186b50);
  margin-top: 15px;
}
.details ul {
  padding-left: 18px;
}
.export-json {
  white-space: pre-wrap;
  max-height: 300px;
  overflow: auto;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 15px;
  font-size: 11px;
  color: var(--ui-secondary, #505b55);
}
.page-error {
  text-align: center;
  padding: 70px 15px;
  color: var(--ui-secondary, #505b55);
}
.plan-price {
  font-size: 27px;
  color: var(--ui-link, #186b50);
  margin: 23px 0 14px;
}
.plan-price small {
  font-size: 11px;
  color: var(--ui-secondary, #505b55);
}
.plan-list {
  list-style: none;
  padding: 0;
  color: var(--ui-secondary, #505b55);
  font-size: 12px;
  line-height: 2.4;
}
.mobile-overlay {
  display: none;
}
@media (min-width: 1550px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero {
    min-height: 250px;
  }
  .hero-art {
    margin-right: 75px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 199px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 199px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .industries {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-art {
    transform: scale(0.85);
    transform-origin: right center;
    margin-right: 0;
    width: 265px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .cards {
    gap: 12px;
  }
  .tool-card {
    padding: 17px 16px 0;
  }
  .studio {
    grid-template-columns: 330px 1fr;
  }
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-art {
    display: none;
  }
  .hero {
    padding: 27px;
    min-height: 215px;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .panel-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .searchbox {
    width: 100%;
  }
  .panel-tabs {
    width: 100%;
  }
  .sort {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 226px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #20334c60;
    z-index: 25;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .menu-button {
    display: flex;
    margin-right: 4px;
  }
  .breadcrumb {
    gap: 7px;
  }
  .breadcrumb > span {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .environment {
    font-size: 9px;
  }
  .account > span:last-child {
    display: none;
  }
  .top-divider {
    display: none;
  }
  main {
    padding: 23px 16px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .page-heading .btn {
    padding: 9px 10px;
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .subheading {
    font-size: 11px;
    max-width: 240px;
  }
  .hero {
    padding: 24px;
    border-radius: 12px;
    min-height: 220px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.9;
    max-width: 270px;
  }
  .hero-links {
    gap: 14px;
  }
  .hero-links .btn {
    font-size: 11px;
  }
  .industries {
    gap: 8px;
    margin-bottom: 24px;
  }
  .industry {
    padding: 12px 9px;
    gap: 7px;
  }
  .industry-icon {
    width: 29px;
    height: 29px;
    border-radius: 7px;
  }
  .industry-icon svg {
    width: 16px;
    height: 16px;
  }
  .industry strong {
    font-size: 10px;
  }
  .industry small {
    font-size: 8px;
  }
  .section-top h2 {
    font-size: 15px;
  }
  .section-top small {
    font-size: 9px;
    margin-left: 5px;
  }
  .tools-panel {
    padding: 17px 13px;
  }
  .panel-tabs {
    gap: 20px;
  }
  .panel-tabs button {
    font-size: 12px;
  }
  .filter {
    font-size: 10px;
    padding: 7px 8px;
  }
  .cards {
    gap: 10px;
  }
  .tool-card {
    padding: 15px 12px 0;
    min-height: 210px;
  }
  .tool-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .tool-icon svg {
    width: 18px;
    height: 18px;
  }
  .tool-card h3 {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 13px;
  }
  .tool-card p {
    font-size: 10px;
    min-height: 54px;
    line-height: 1.8;
  }
  .card-bottom {
    font-size: 9px;
    gap: 4px;
  }
  .card-bottom a {
    font-size: 9px;
  }
  .card-tags {
    gap: 4px;
    flex-wrap: wrap;
  }
  .pill {
    font-size: 8px;
  }
  .footnote {
    align-items: flex-start;
    line-height: 1.7;
    font-size: 9px;
  }
  .footnote > span:last-child {
    display: none;
  }
  .panel {
    padding: 20px 17px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 19px 16px;
  }
  .stat-value {
    font-size: 25px;
  }
  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .history-item {
    align-items: flex-start;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .studio {
    gap: 0;
  }
  .btn {
    font-size: 11px;
  }
  dialog {
    padding: 26px 21px;
  }
  .table-wrap {
    margin: 0 -5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.payment-qr {
  display: block;
  width: 240px;
  height: 240px;
  margin: 20px auto;
}
.text-link {
  white-space: nowrap;
}
@media (max-width: 650px) {
  .section-top h2 small {
    display: none;
  }
  .sidebar {
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .favorite {
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
  }
  .btn {
    min-height: 42px;
  }
  .btn.small {
    min-height: 36px;
  }
}

.usage-record {
  overflow-wrap: anywhere;
  min-width: 0;
}
.usage-record pre {
  white-space: pre-wrap;
  font-size: inherit;
}

/* Persistent support and honest model choice */
.support-global{color:var(--text);font-weight:600;white-space:nowrap}.support-card{display:flex;justify-content:space-between;gap:18px;padding:20px 0;border-bottom:1px solid #e7ebf0;color:inherit;text-decoration:none}.support-card p{font-size:13px;color:var(--ui-secondary, #505b55);margin-top:8px}.support-timeline{list-style:none;padding:0}.support-timeline li{padding:20px;border-left:3px solid #cad5df;background:#f7f9fb;margin:14px 0;border-radius:8px}.support-timeline li.platform{border-color:#437bea;background:#edf3ff}.support-timeline time{display:block;font-size:12px;color:var(--ui-secondary, #505b55);margin-top:6px}.support-timeline p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.model-choice{padding:18px;background:#f4f7fc;border:1px solid #dce5f0;border-radius:12px;margin-bottom:24px}.model-choice p{font-size:14px;line-height:1.8}.model-choice summary{cursor:pointer;font-weight:600;padding:10px 0}.model-choice select{width:100%;padding:10px}.model-choice #model-choice-description{font-size:13px;line-height:1.8;margin-top:12px}.legal-nav{display:flex;gap:20px;flex-wrap:wrap;margin:20px 0}.legal-nav a{color:var(--ui-link, #186b50)}@media(max-width:600px){.support-card{flex-direction:column;gap:6px}.support-global{font-size:12px}.top-divider{display:none}.support-timeline li{padding:14px}.model-choice{padding:12px}}
/* Shared business workspace, including narrow-screen forms and exports. */
.business-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }
/* Keep wide business tables inside their own scroll region on small screens.
   Never clip the page or remove columns to conceal a layout overflow. */
.table-scroll { min-width:0; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
#stock-batch-panel { min-width:0; }
#stock-batch-panel fieldset { min-inline-size:0; min-width:0; margin:0; padding:0; border:0; }
#stock-batch-preview,#stock-batch-submit { display:grid; gap:12px; min-width:0; margin:16px 0; }
#stock-batch-preview label,#stock-batch-submit label { display:block; min-width:0; overflow-wrap:anywhere; }
#stock-batch-panel input:not([type=checkbox]),#stock-batch-panel select,#stock-batch-panel textarea { display:block; box-sizing:border-box; min-width:0; max-width:100%; width:100%; }
#stock-batch-history .history-item { flex-wrap:wrap; }
#stock-batch-history .history-item > span { flex:1 1 100%; min-width:0; overflow-wrap:anywhere; }
.purchase-line > label { max-width:100%; }
.purchase-line [data-purchase-source] { flex-basis:100%; min-width:0; overflow-wrap:anywhere; }
.business-card { display:flex; flex-direction:column; gap:10px; color:inherit; text-decoration:none; }
.business-card strong { font-size:18px; }
.asset-preview img,.asset-preview video { width:100%; max-height:320px; object-fit:contain; }
.asset-preview audio { width:100%; }
.asset-preview { min-width:0; overflow-wrap:anywhere; border:1px solid #e1e7e5; padding:12px; border-radius:12px; }
#asset-upload,#local-task-form { display:grid; gap:14px; }
#local-task-form details { display:grid; gap:10px; }
.business-card span,.business-card p { color:var(--muted,var(--ui-secondary, #505b55)); font-size:13px; line-height:1.7; }
.business-columns { display:grid; grid-template-columns:minmax(240px,1fr) minmax(0,2fr); gap:20px; align-items:start; }
.business-columns fieldset { border:0; padding:0; min-width:0; }
.business-columns input,.business-columns textarea,.business-columns select { width:100%; max-width:100%; }
.business-columns input[type=checkbox] { width:auto; }
.business-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.business-preview { white-space:pre-wrap; overflow-wrap:anywhere; max-height:420px; overflow:auto; padding:14px; background:#f4f6f8; font-size:13px; }
.quote-line { display:grid; grid-template-columns:minmax(0,1fr) 90px 45px; gap:8px; margin:10px 0; align-items:center; }
#stock-form,#sales-preview-form,#sales-confirm-form { display:grid; gap:12px; margin-top:20px; }
/* Native file controls and untyped inputs must not set the grid's minimum
   track width. Keep every field visible on the 320px viewport as well. */
#stock-form,#sales-preview-form,#sales-confirm-form { grid-template-columns:minmax(0,1fr); min-width:0; max-width:100%; }
#stock-form label,#sales-preview-form label,#sales-confirm-form label { display:block; min-width:0; overflow-wrap:anywhere; }
#stock-form input:not([type=checkbox]),#sales-preview-form input:not([type=checkbox]),#sales-confirm-form input:not([type=checkbox]),#sales-preview-form select { display:block; width:100%; min-width:0; max-width:100%; box-sizing:border-box; }
#stock-form button,#sales-preview-form button,#sales-confirm-form button { min-width:0; max-width:100%; white-space:normal; }
.support-card.selected { background:#edf7f1; }
@media(max-width:760px) { .business-columns { grid-template-columns:1fr; } .business-grid { grid-template-columns:1fr; } .quote-line { grid-template-columns:minmax(0,1fr) 72px 40px; } .business-columns .panel { min-width:0; } }

/* Record editors occupy the full available content width on tablets. */
.business-record-layout {grid-template-columns:minmax(180px,240px) minmax(0,1fr)}
.business-record-list {max-height:70vh;overflow:auto}
.business-record-layout .business-actions {position:static;background:#fff;padding:4px 0;flex-wrap:wrap}
.business-record-layout .business-actions:empty {display:none}
.business-record-layout form label {display:block;margin-top:14px}
@media(max-width:1100px){.business-record-layout{grid-template-columns:1fr}.business-record-list{max-height:180px}.business-record-layout .panel{padding:20px}.business-columns:not(.business-record-layout){grid-template-columns:1fr}}
@media(max-width:600px){.business-record-layout .panel{padding:16px}.business-actions .btn{min-height:42px}.business-record-list{max-height:150px}.business-preview{max-width:100%;overflow:auto}}

.customer-portal{max-width:1000px;margin:auto;padding:24px}.customer-portal input,.customer-portal textarea,.customer-portal select{max-width:100%}.customer-portal .panel{margin:16px 0}@media(max-width:600px){.customer-portal{padding:12px}}

.business-card.panel{padding:18px;margin:0;gap:6px}.business-card p{margin:2px 0}.business-card strong{font-size:16px}.business-grid [hidden]{display:none!important}#business-search{max-width:640px;width:100%;margin:10px 0}
.business-record-layout .section-top{margin:0 0 12px;gap:12px}.business-record-layout .section-top h2{margin:0}.business-record-layout .panel{margin-bottom:0}.business-record-layout details{margin:14px 0}.business-record-layout summary{cursor:pointer;padding:10px 0}

.clip-row,.cue-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin:12px 0}.review-segment textarea{min-height:100px;width:100%}.review-segment details{margin:12px 0}.review-segment audio{width:100%}@media(max-width:650px){.clip-row,.cue-row{grid-template-columns:1fr 1fr}.clip-row label:first-child,.cue-row label:nth-child(3){grid-column:1/-1}}
/* Sales facts reuse existing responsive record layout. */
.proposal-fields{min-width:0;border:1px solid var(--line,#dce4e8);border-radius:12px;padding:16px;margin:16px 0}.proposal-fields legend{font-weight:700;padding:0 8px}#proposal-record-link a{overflow-wrap:anywhere}#fee-confirm-form+.business-preview,.business-preview{white-space:pre-wrap;overflow-wrap:anywhere}
/* Product modules: percentages are separate resources, never a synthetic total. */
.journey-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.journey-card{color:inherit;text-decoration:none;display:block}.journey-card p{line-height:1.7}.journey-card strong{color:var(--ui-link)}.module-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.module-metrics progress{width:100%;height:12px;accent-color:#2563eb}.module-metrics small{display:block;color:var(--ui-secondary, #505b55);margin-top:8px}.table-wrap td small{display:block}.guided-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.guided-grid .wide{grid-column:1/-1}.guided-grid select,.guided-grid input,.guided-grid textarea{width:100%}@media(max-width:700px){.journey-grid,.module-metrics,.guided-grid{grid-template-columns:1fr}.guided-grid .wide{grid-column:auto}.journey-card .pill{white-space:normal}}

/* Source-bound sales workflows: keep every field and table available at 320px. */
.sales-completion,.sales-completion article,.sales-completion form {min-width:0;max-width:100%;overflow-wrap:anywhere}
.sales-completion form {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:16px 0}
.sales-completion label {display:block;min-width:0}
.sales-completion input:not([type=checkbox]),.sales-completion select {display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.sales-completion button,.sales-completion a {max-width:100%;white-space:normal;overflow-wrap:anywhere}
.sales-completion h3 {margin-top:20px}

/* Source-linked customer sale: long references and transaction text remain readable. */
.customer-sale {display:grid;gap:18px;min-width:0}.customer-sale .panel,.customer-sale article,#quote-sale-draft,#quote-sale-preview {min-width:0;overflow-wrap:anywhere}.customer-sale .table-scroll {max-width:100%;overflow-x:auto}#quote-sale-draft form,#quote-sale-preview form,#deal-case-form {display:grid;gap:12px}#quote-sale-draft fieldset,#quote-sale-preview fieldset {min-width:0}#quote-sale-draft [hidden] {display:none}.customer-sale .business-actions {display:flex;flex-wrap:wrap;gap:8px}.customer-sale .btn {white-space:normal;max-width:100%}

.customer-import {min-width:0;overflow-wrap:anywhere}.customer-import fieldset,.customer-import form {min-width:0}.customer-import input[type=file] {width:100%;max-width:100%;min-width:0}.customer-import .table-scroll {max-width:100%;overflow:auto}.customer-import td {vertical-align:top;min-width:130px;max-width:320px;overflow-wrap:anywhere}.customer-import pre {white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;max-width:300px}.customer-import .business-actions {display:flex;flex-wrap:wrap;gap:8px}.customer-import .btn {white-space:normal;max-width:100%}#customer-import-confirm label {display:block;margin:12px 0}

/* Training delivery keeps the full lesson and quiz accessible at 320px. */
.learning,.learning-cards,.learning-cards>article{min-width:0;max-width:100%;overflow-wrap:anywhere}
.learning-content{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font:inherit;line-height:1.8}
.learning-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
.learning fieldset{min-width:0;max-width:100%;padding:12px;border:1px solid var(--border,#dde2e6);border-radius:10px}
.learning legend{max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:0 4px}
.learning-question{margin:14px 0}#learning-quiz .learning-question label{display:flex;align-items:flex-start;gap:8px}
.learning select,.learning textarea,.learning input:not([type=radio]):not([type=checkbox]){max-width:100%;min-width:0;box-sizing:border-box}
.learning input[type=radio],.learning input[type=checkbox]{flex:none;width:auto}
.learning .business-actions{display:flex;flex-wrap:wrap;gap:8px}.learning .btn{white-space:normal}
@media(max-width:420px){.learning fieldset{padding:8px}.learning .guided-grid{grid-template-columns:1fr}.learning .panel{padding:12px}}

/* Author form labels stack; only learner radio options use a horizontal row. */
#learning-dispatch label{display:block;min-width:0;overflow-wrap:anywhere;margin:8px 0}
#learning-dispatch input:not([type=checkbox]):not([type=radio]),#learning-dispatch textarea,#learning-dispatch select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#learning-dispatch button{max-width:100%;white-space:normal}

/* Source-preserving feedback review: all fields remain usable at 320px. */
.feedback,.feedback .panel,.feedback form,.feedback fieldset,.feedback .guided-grid>*{min-width:0;max-width:100%;box-sizing:border-box}
.feedback fieldset{border:0;padding:0;margin:0}.feedback input:not([type=checkbox]),.feedback select,.feedback textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.feedback label{display:block;margin:12px 0}.feedback .feedback-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.feedback article{margin:12px 0;overflow-wrap:anywhere}.feedback .business-actions{display:flex;flex-wrap:wrap;gap:8px}
/* Knowledge source review shares the business layout, with no hidden mobile content. */
.kg-field{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-weight:600;min-width:0}
.kg-field input,.kg-field textarea,.kg-field select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--border,#dde4ef);border-radius:8px;background:white;color:inherit}
.kg-field textarea{min-height:100px;font:inherit}.kg-check{display:flex;align-items:flex-start;gap:8px;margin:12px 0;font-weight:400;overflow-wrap:anywhere}.kg-check input{flex:0 0 auto;width:16px;margin-top:3px}
.kg-source{border:1px solid var(--border,#dde4ef);border-radius:10px;padding:16px;margin:14px 0;min-width:0;overflow-wrap:anywhere}
.knowledge-area pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;font:inherit}.knowledge-area fieldset{min-width:0;border:1px solid var(--border,#dde4ef);border-radius:8px;padding:12px}.knowledge-area legend{max-width:100%;white-space:normal}.knowledge-area input[type=file]{max-width:100%;min-width:0}

/* Appointment controls wrap; preserve all business content at narrow widths. */
.booking-area {min-width:0;} .booking-area .panel {margin-top:16px;min-width:0;overflow-wrap:anywhere;}
.booking-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start;}
.booking-area label {display:block;margin:12px 0;} .booking-area input:not([type=checkbox]),.booking-area select,.booking-area textarea {width:100%;max-width:100%;box-sizing:border-box;min-width:0;}
.booking-area fieldset {min-width:0;border:1px solid #dbe4f1;border-radius:10px;padding:12px;} .booking-area summary {cursor:pointer;font-weight:600;padding:10px 0;}
.booking-area .btn {white-space:normal;max-width:100%;} .booking-area article {border-bottom:1px solid #e5eaf2;padding:10px 0;}
@media(max-width:650px){.booking-grid{grid-template-columns:minmax(0,1fr)}.booking-area .panel{padding:16px}.booking-area .business-actions{flex-wrap:wrap}}
/* Approval content stays complete on narrow screens, including long team names. */
[data-collaboration],[data-collaboration] .history-item>div {min-width:0;max-width:100%;overflow-wrap:anywhere;}
[data-collaboration] .btn {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
#business-comment {display:grid;gap:12px;min-width:0;margin:16px 0;}
#business-comment label {min-width:0;}
#business-comment select,#business-comment textarea {box-sizing:border-box;width:100%;min-width:0;max-width:100%;}

/* Purchase detail is readable without sideways panning; every label/value remains present. */
.purchase-delivery,.purchase-summary,.purchase-summary-item,.purchase-summary-source,.purchase-summary-item dl,.purchase-summary-item dl>div {min-width:0;max-width:100%;overflow-wrap:anywhere;}
.purchase-summary-item {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line);}
.purchase-summary-source h4,.purchase-summary-source p {margin:0 0 8px;}
.purchase-summary-item dl {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;}
.purchase-summary-item dt {font-size:12px;color:var(--muted,var(--ui-secondary, #505b55));margin:0 0 6px;}
.purchase-summary-item dd {margin:0;font-variant-numeric:tabular-nums;}
.purchase-delivery .btn {white-space:normal;max-width:100%;overflow-wrap:anywhere;}
.purchase-delivery .history-item {flex-wrap:wrap;}
.purchase-delivery .history-item>div {min-width:0;max-width:100%;overflow-wrap:anywhere;}
@media(max-width:650px){.purchase-summary-item {grid-template-columns:minmax(0,1fr);}.purchase-summary-item dl {grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Inquiry source review retains every field on narrow screens. */
.inquiry-delivery,.inquiry-delivery *{box-sizing:border-box;min-width:0}.inquiry-delivery pre{white-space:pre-wrap;overflow-wrap:anywhere}.inquiry-delivery article,.inquiry-delivery p{overflow-wrap:anywhere}.inquiry-delivery input,.inquiry-delivery select,.inquiry-delivery textarea{max-width:100%;width:100%}.inquiry-delivery input[type=checkbox]{width:auto}.inquiry-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) auto;gap:8px;align-items:end}.inquiry-delivery button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.inquiry-delivery fieldset{border:0;padding:0;margin:0;min-width:0}.inquiry-delivery [hidden]{display:none!important}.inquiry-delivery details a{overflow-wrap:anywhere}@media(max-width:600px){.inquiry-line{grid-template-columns:minmax(0,1fr);padding:12px 0;border-bottom:1px solid #dce2ed}.inquiry-delivery .guided-grid{grid-template-columns:minmax(0,1fr)}}

/* Customer evidence workspace: long references remain readable at 320px. */
.customer-workspace,.customer-workspace .panel,.customer-workspace fieldset,.customer-workspace details,.customer-workspace article{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.customer-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.customer-workspace fieldset{border:0;margin:0;padding:0}
.customer-workspace label{display:block;margin:12px 0}
.customer-workspace select,.customer-workspace input:not([type=checkbox]),.customer-workspace textarea{width:100%;min-width:0;box-sizing:border-box}
.customer-workspace .button-row,.customer-workspace .customer-link{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0}
.customer-workspace article{padding:10px 0;border-bottom:1px solid #e1e5e9}
.customer-workspace .btn{white-space:normal;max-width:100%}

/* Source-bound proposals preserve all content at narrow customer viewports. */
.proposal-workspace,.proposal-workspace>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.proposal-workspace{display:grid;gap:16px}.proposal-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%}.proposal-workspace fieldset{border:0;padding:0;min-width:0}.proposal-workspace input,.proposal-workspace select,.proposal-workspace textarea{max-width:100%;min-width:0;box-sizing:border-box}.proposal-workspace label{display:block;margin:10px 0}.proposal-comparison,.proposal-product-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px}.proposal-workspace .business-actions{flex-wrap:wrap}.proposal-workspace a,.proposal-workspace button{white-space:normal;overflow-wrap:anywhere;max-width:100%}.proposal-workspace article{min-width:0}.proposal-workspace .panel{min-width:0}.proposal-workspace details{min-width:0}.proposal-workspace h3{overflow-wrap:anywhere}

/* Knowledge evidence remains readable in the handoff page and narrow viewports. */
.knowledge-area,.knowledge-context,.knowledge-area .panel{min-width:0;max-width:100%;overflow-wrap:anywhere}.knowledge-area button,.knowledge-area a.btn{white-space:normal;overflow-wrap:anywhere;max-width:100%}.knowledge-context pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;font:inherit}.knowledge-area fieldset:disabled{opacity:.8}
/* Document originals, corrected values and deliverable rows stay visible at phone widths. */
.dw-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px}.dw-workbook,.dw-workbook *,.dw-layout *{min-width:0;box-sizing:border-box}.dw-workbook label,.dw-layout label{display:block;margin:12px 0}.dw-workbook input:not([type=checkbox]),.dw-workbook select,.dw-workbook textarea,.dw-layout input:not([type=checkbox]),.dw-layout select{width:100%;max-width:100%}.dw-workbook fieldset,.dw-layout fieldset{min-width:0;border:0;padding:0;margin:0}.dw-workbook summary,.dw-workbook p,.dw-workbook strong,.dw-layout p,.dw-layout a{overflow-wrap:anywhere}.dw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dw-cell,.dw-row,.dw-mapping{padding:12px;border:1px solid #dce2ea;border-radius:10px;margin:12px 0}.dw-original{white-space:pre-wrap}.dw-check{display:flex!important;gap:8px;align-items:flex-start}.dw-check input{flex-shrink:0}.dw-workbook select[multiple],.dw-layout select[multiple]{min-height:90px}.dw-workbook .btn{white-space:normal;overflow-wrap:anywhere;margin:4px 0;max-width:100%}.dw-page{position:relative;max-width:800px}.dw-page img{display:block;width:100%;height:auto}.dw-highlight{position:absolute;border:2px solid #e05808;background:#ffa50020;pointer-events:none}.dw-workbook article{margin:12px 0}.dw-workbook textarea{min-height:65px}.dw-workbook [data-document-version]{display:flex;flex-wrap:wrap;align-items:center;gap:8px}@media(max-width:700px){.dw-layout,.dw-grid{grid-template-columns:minmax(0,1fr)}.dw-cell,.dw-row,.dw-mapping{padding:9px}.dw-workbook .panel{padding:14px}}

/* Bounded operating report, ledger controls and readable sources. */
.profit-workspace{min-width:0;max-width:100%;display:grid;gap:18px}.profit-workspace .panel{min-width:0;overflow-wrap:anywhere}.profit-workspace form{display:grid;gap:12px}.profit-workspace label{display:grid;gap:6px}.profit-workspace input,.profit-workspace select,.profit-workspace button{max-width:100%;min-width:0}.profit-workspace .table-scroll{max-width:100%;overflow:auto}.profit-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.profit-workspace .business-actions{flex-wrap:wrap}.profit-workspace details{max-width:100%;overflow-wrap:anywhere}
@media(max-width:480px){.profit-workspace .business-grid{grid-template-columns:minmax(0,1fr)}.profit-workspace .panel{padding:14px}.profit-workspace .btn{white-space:normal}.profit-workspace h2{font-size:20px}}

.profit-workspace .table-scroll table{table-layout:fixed;width:100%;min-width:0}.profit-workspace th,.profit-workspace td{overflow-wrap:anywhere;white-space:normal}.profit-workspace .business-actions{flex-wrap:wrap}
/* Standalone task details use the same readable result at desktop and narrow widths. */
[data-job-route]{min-width:0;max-width:100%;overflow-wrap:anywhere}
[data-job-route] .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%;min-width:0}
[data-job-route] .status-row{flex-wrap:wrap;min-width:0}
[data-job-route] pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;min-width:0}
/* Audio controls must fit the actual panel at 390/320px; retain all content. */
#review-audio,.feedback audio{display:block;width:100%;max-width:100%;min-width:0}
#meeting-create input[type=radio]{width:auto;max-width:100%}
/* Customer booking: long credentials and service snapshots remain readable at 320px. */
.booking-area { min-width: 0; }
.booking-area pre, .booking-area .preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.booking-area fieldset { min-width: 0; }
.booking-area input:not([type=checkbox]), .booking-area select, .booking-area textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.booking-service-policy { padding-block: 1rem; border-bottom: 1px solid var(--line, #ddd); }
#booking-credential input { width: 100%; }

/* R14: keep complete replenishment sources and actions readable on narrow screens. */
.replenishment{min-width:0;max-width:100%}.replenishment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.replenishment .panel,.replenishment fieldset{min-width:0;max-width:100%;box-sizing:border-box}.replenishment legend,.replenishment p,.replenishment a,.replenishment dd{overflow-wrap:anywhere;word-break:break-word}.replenishment dl>div{display:flex;justify-content:space-between;gap:12px}.replenishment dd{margin:0}.replenishment input:not([type=checkbox]){max-width:100%;box-sizing:border-box}.replenishment button{white-space:normal;max-width:100%}.replenishment [data-order-product]{margin:16px 0;padding:12px}

/* Purchase rows follow CSP without inline styles; remain usable at 320px. */
.purchase-line{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0;min-width:0}
.purchase-line .purchase-product-field{flex:2 1 200px;min-width:0}
.purchase-line .purchase-number-field{flex:1 1 120px;min-width:0}
.purchase-line select,.purchase-line input{max-width:100%;min-width:0}
.purchase-line [data-purchase-source]{flex-basis:100%;overflow-wrap:anywhere}

.translation-workspace,.translation-workspace *{min-width:0;box-sizing:border-box}.translation-workspace{display:grid;gap:16px}.translation-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.translation-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere}.translation-workspace fieldset{border:0;padding:0;margin:0}.translation-workspace label{display:block;margin:12px 0}.translation-workspace input:not([type=checkbox]),.translation-workspace select,.translation-workspace textarea{width:100%;max-width:100%}.translation-workspace .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:4px}.translation-workspace p,.translation-workspace a{overflow-wrap:anywhere}@media(max-width:700px){.translation-columns{grid-template-columns:minmax(0,1fr)}.translation-workspace .panel{padding:14px}}

.approval-comment-body{white-space:pre-wrap;overflow-wrap:anywhere}

/* Recruitment workflow: full content wraps at desktop and 390/320 without hiding controls. */
.recruitment-workspace,.recruitment-workspace *{min-width:0;box-sizing:border-box}
.recruitment-workspace{display:grid;gap:16px;width:100%;max-width:1280px}
.recruitment-workspace .panel{width:100%;overflow-wrap:anywhere}
.recruitment-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.recruitment-workspace article{padding:12px 0;border-bottom:1px solid var(--border,#ddd)}
.recruitment-workspace form{margin:16px 0}.recruitment-workspace fieldset{min-inline-size:0;border:0;padding:0;display:grid;gap:12px}
.recruitment-workspace input:not([type=checkbox]),.recruitment-workspace textarea,.recruitment-workspace select{width:100%;max-width:100%}
.recruitment-workspace .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:4px 4px 4px 0}
.recruitment-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:600px){.recruitment-columns{grid-template-columns:1fr}.recruitment-workspace .panel{padding:12px}.recruitment-workspace .btn{min-height:44px}}

/* Receipt data remains fully visible at narrow widths. */
.expense-workspace,.expense-workspace .panel,.expense-workspace fieldset,.expense-workspace article{min-width:0;max-width:100%;box-sizing:border-box}.expense-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.expense-workspace input,.expense-workspace select,.expense-workspace textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.expense-workspace input[type=checkbox]{width:auto}.expense-workspace pre,.expense-source,.expense-hash{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.expense-original{display:block;max-width:100%;height:auto}.expense-workspace .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%;margin:4px}.expense-field{border:1px solid var(--border,#ddd);border-radius:8px;padding:12px}.expense-field legend{max-width:100%;overflow-wrap:anywhere}

.page-inbox,.page-inbox article,.page-inbox form{min-width:0;overflow-wrap:anywhere}.page-inbox form{display:grid;gap:12px;margin-top:20px}.page-inbox input,.page-inbox select{max-width:100%;min-width:0}.page-inbox label{display:grid;gap:6px}.page-inbox input[type=checkbox]{justify-self:start}.page-inbox .actions{display:flex;gap:8px;flex-wrap:wrap}

.page-message{white-space:pre-wrap;overflow-wrap:anywhere}
/* Software sync: field names and source IDs remain readable at 320px. */
.software-workspace,.software-workspace .panel,.software-workspace form,.software-workspace fieldset{min-width:0;max-width:100%;box-sizing:border-box}
.software-workspace fieldset{margin:0;padding:0;border:0}
.software-workspace input:not([type=checkbox]),.software-workspace select,.software-workspace textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.software-workspace p,.software-workspace dd,.software-workspace a,.software-workspace h3{overflow-wrap:anywhere}
.software-workspace dd{margin:0 0 12px}.software-workspace dt{font-weight:600}
.software-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px}
.software-workspace .button-row{display:flex;flex-wrap:wrap;gap:10px}.software-workspace button,.software-workspace .btn{white-space:normal;max-width:100%}
.software-workspace article{border-top:1px solid var(--border,#ddd);padding:16px 0}

/* Sales source links: keep full inventory/ledger/trend tables and actions inside mobile viewport. */
.sales-workspace {min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:700px){
 .sales-workspace .table-scroll table{min-width:0;width:100%;table-layout:fixed}
 .sales-workspace .table-scroll th,.sales-workspace .table-scroll td{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal;padding:10px 5px;vertical-align:top}
 .sales-workspace .table-scroll button,.sales-workspace .table-scroll a{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
 .sales-workspace .table-scroll .btn{padding:8px 5px}
}

/* Keep every navigation link reachable in the fixed mobile drawer. */
@media (max-width:650px) {
  #main-nav { overflow-y:auto; overscroll-behavior-y:contain; }
  #main-nav > .brand, #main-nav > nav, #main-nav > .sidebar-foot { flex-shrink:0; }
}
#operations-trace-filter { display:grid; gap:10px; }
#operations-trace-filter label { display:grid; gap:4px; min-width:0; }
#operations-trace-filter input,#operations-trace-filter select { box-sizing:border-box; min-width:0; max-width:100%; }

@media (max-width:650px) {
  .platform-analysis-page, .platform-analysis-page .panel { min-width:0; overflow-wrap:anywhere; }
  .platform-analysis-page .page-heading { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; }
  .platform-analysis-page .page-heading .btn { justify-self:start; white-space:normal; max-width:100%; }
  .platform-analysis-page #operations-trace-filter > * { min-width:0; }
}

/* Customer follow-up input and delivery controls at narrow viewport widths. */
#followup-template, form[data-recipe="followup"] { display:grid; gap:.8rem; min-width:0; }
#followup-template label, form[data-recipe="followup"] label { display:block; min-width:0; }
#followup-template input:not([type="checkbox"]), form[data-recipe="followup"] :is(input,select,textarea) { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
#followup-template input[type="checkbox"] { width:auto; }
.workflow-run { flex-wrap:wrap; overflow-wrap:anywhere; }
.workflow-run > div { min-width:0; max-width:100%; }
.workflow-run pre { white-space:pre-wrap; overflow-wrap:anywhere; }

form[data-recipe="content"] :is(input:not([type="checkbox"]),select,textarea) { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
form[data-recipe="content"] :is(label,fieldset) { min-width:0; overflow-wrap:anywhere; }

.effects-page { min-width:0; overflow-wrap:anywhere; }
.effects-page .panel { min-width:0; max-width:100%; }
.effects-page form { display:grid; gap:.6rem; max-width:42rem; }
.effects-page form label { display:grid; gap:.2rem; min-width:0; }
.effects-page form :is(input:not([type=checkbox]),textarea,select) { box-sizing:border-box; width:100%; max-width:100%; min-width:0; }
.effects-page .section-top { flex-wrap:wrap; }

.branch-materials, [data-inbox-item] {min-width:0; overflow-wrap:anywhere}
.branch-materials form, [data-inbox-item] label {display:grid; gap:.6rem; margin:.65rem 0; min-width:0}
.branch-materials select, [data-inbox-item] select {width:100%; max-width:100%; min-width:0}
.branch-materials .history-item {display:grid; grid-template-columns:minmax(0,1fr); gap:.35rem}
.branch-materials button, [data-inbox-item] .btn {justify-self:start; max-width:100%; white-space:normal}

.customer-portal {min-width:0; overflow-wrap:anywhere}
.customer-portal input,.customer-portal textarea,.customer-portal select {width:100%;min-width:0;box-sizing:border-box}
.customer-portal form {display:grid;gap:.65rem;margin:.75rem 0}
.customer-portal form .btn {justify-self:start;max-width:100%;white-space:normal}

[data-quality-result], [data-raw-result] { min-width: 0; overflow-wrap: anywhere; }
[data-raw-result] pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

[data-quality-result] details, [data-file-check] details { min-width: 0; overflow-wrap: anywhere; }
[data-quality-result] blockquote { margin: .4rem 0 .75rem; padding-inline-start: .75rem; border-inline-start: 2px solid currentColor; white-space: pre-wrap; overflow-wrap: anywhere; }
[data-file-check] pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

#goal-intake .business-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem 1rem}
#goal-intake :is(form,label,input,select,textarea){min-width:0;max-width:100%;box-sizing:border-box}
#goal-intake :is(p,li,a,button){overflow-wrap:anywhere;white-space:normal}
#goal-intake .business-actions{flex-wrap:wrap}

.photo-studio { max-width: 70rem; margin-inline: auto; }
.photo-studio form { display: grid; gap: .8rem; min-width: 0; }
.photo-studio :is(input,select,details) { max-width: 100%; min-width: 0; }
.photo-board { position: relative; width: fit-content; max-width: 100%; background: #f0f0ef; }
.photo-board img { display: block; max-width: 100%; max-height: 48vh; width: auto; height: auto; }
.photo-board svg { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.photo-version img { display: block; max-width: 100%; height: auto; max-height: 24rem; margin-block: .5rem; background: repeating-conic-gradient(#edf0eb 0 25%,white 0 50%) 50%/16px 16px; }
.photo-version { overflow-wrap: anywhere; }

#film-studio{max-width:64rem}#film-studio fieldset{min-width:0;margin:1rem 0;padding:1rem;border:1px solid var(--line,#d9dedc);border-radius:.7rem}
#film-studio label{display:grid;gap:.3rem;min-width:0;margin:.5rem 0}#film-studio input,#film-studio select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
#film-studio .film-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:0 .8rem}#film-studio [hidden]{display:none}
#film-studio video{display:block;width:100%;max-width:48rem;height:auto;margin:0 0 1rem;background:#191919}#film-history article{margin:.8rem 0;overflow-wrap:anywhere}#film-studio .btn{margin:.2rem .2rem .2rem 0}

main:has(#meeting-intake, #turns-form, #meeting-revise) audio { max-width: 100%; }
#turn-auditions { display: flex; flex-wrap: wrap; gap: .35rem; margin-block: .65rem; }
#turns-form textarea { width: 100%; min-width: 0; }
@media (max-width: 480px) {
  main:has(#meeting-intake, #turns-form, #meeting-revise) .page-heading { flex-wrap: wrap; }
  main:has(#meeting-intake, #turns-form, #meeting-revise) .page-heading > * { min-width: 0; max-width: 100%; }
  #meeting-intake input[type=file] { width: 100%; min-width: 0; }
}

.task-model-picker{min-width:0;max-width:100%;position:relative;display:inline-block;color:var(--ink,var(--ui-text, #272c2a));vertical-align:middle}
.task-model-picker summary{min-height:44px;padding:10px 12px;box-sizing:border-box;background:#fff;border:1px solid #9fabb6;border-radius:9px;cursor:pointer;list-style:none;overflow-wrap:anywhere}
.task-model-picker summary::-webkit-details-marker{display:none}
.task-model-picker .picker-list{position:absolute;z-index:6;inset-inline-start:0;min-width:min(230px,100%);width:max-content;max-width:min(340px,75vw);padding:5px;border:1px solid #abb9bd;border-radius:9px;background:white;box-shadow:0 5px 12px #213a4826}
.picker-list .picker-option{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;gap:8px;text-align:left;border:none;background:white;padding:7px 10px;cursor:pointer;color:inherit}
.picker-option>span:first-child{min-width:0;overflow-wrap:anywhere}.picker-option .picker-mark{flex:none}
.picker-option small,.picker-list>small{display:block;color:var(--ui-secondary, #505b55);font-size:.8rem}
.picker-option[aria-pressed=true]{background:#edf6f5}.picker-option[aria-pressed=false] .picker-mark{visibility:hidden}
.task-model-picker summary:focus-visible,.picker-option:focus-visible{outline:2px solid #155e68;outline-offset:1px}
@media(max-width:550px){.task-model-picker[open]{width:100%}.task-model-picker .picker-list{position:static;max-width:100%;width:100%;box-sizing:border-box}}


[data-campaign-clip] { min-width: 0; overflow-wrap: anywhere; }
[data-campaign-player] {
  display: block;
  width: min(100%, 18rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #172735;
  scroll-margin-block: 5rem 1rem;
}
#campaign-model-options [data-model] {
  display: block;
  max-width: 100%;
  text-align: start;
}

#campaign-start fieldset{min-width:0}
#campaign-start [hidden],[data-revoice] [hidden]{display:none!important}
.voice-picker{margin:.65rem 0;max-width:35rem}
.voice-panel,.voice-slot{min-width:0;padding:1rem;border:1px solid var(--line,#dce2e7);border-radius:.8rem;margin:.6rem 0}
.voice-panel [data-filters]{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.35rem}
.voice-panel button[aria-pressed=true]{color:#174d45;background:#e4f3ed}
.voice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.4rem;padding:.3rem 0}
.voice-select{min-width:0;text-align:left;color:inherit;border:0;border-radius:.4rem;background:transparent;padding:.4rem .6rem;cursor:pointer}
.voice-select small{display:block;color:var(--ui-secondary, #505b55);margin-top:.15rem}
.voice-slot audio,[data-revoice] audio{width:min(100%,25rem);display:block;margin:.6rem 0}
@media(max-width:420px){.voice-panel,.voice-slot{padding:.55rem}.voice-row .btn{min-width:0;padding:.4rem}}

.campaign-settings{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem 1rem}
.campaign-settings>*,.campaign-settings details{max-width:100%;min-width:0}
.campaign-settings .voice-picker{margin:0}
.voice-picker [data-expand]{margin-bottom:.5rem}

.publication fieldset,.publication .panel,.publication dialog {min-width:0;max-width:100%;box-sizing:border-box}
.publication fieldset {margin-block:1rem;padding:1rem;border:1px solid #bfc9c9;border-radius:.5rem}
.publication label {display:block;margin:.5rem 0}
.publication input:not([type=checkbox]),.publication textarea,.publication select {width:100%;min-width:0;box-sizing:border-box}
.publication details,.publication .pub-card {padding:.8rem 0;border-bottom:1px solid #ccd4d4;overflow-wrap:anywhere}
.publication summary {cursor:pointer;min-height:2rem}
.publication [role=alert] {color:#923e29}

.campaign-combo{margin-block:1rem;padding:.75rem;border:1px solid #98b9af;border-radius:.75rem}
.campaign-combo>summary,.task-model-picker>summary{font-weight:600;cursor:pointer;color:#164d45}
.campaign-combo[open]>.campaign-settings{margin-top:.75rem;align-items:start}
.task-model-picker>summary{border:1px solid #759d93;background:#f1f8f6;padding:.65rem .9rem}
.task-model-picker[open]{z-index:8}
.task-model-picker .picker-list{max-height:min(60vh,26rem);overflow:auto}
.picker-option[aria-pressed=true]{background:#eaf4ef}
@media(max-width:550px){.campaign-combo .campaign-settings{display:grid;grid-template-columns:minmax(0,1fr)}}
.campaign-settings [data-batch-picker]{display:grid;gap:.45rem;min-width:0}

/* Destination cards: platform artwork stays unaltered, selection is on the card. */
.publication .platform-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));gap:.65rem}
.publication button.platform-card{position:relative;display:grid;justify-items:start;align-content:start;text-align:left;gap:.24rem;min-width:0;width:100%;padding:.75rem;border:2px solid #cad8d9;border-radius:.75rem;background:#fff;color:#183d38;cursor:pointer;overflow-wrap:anywhere;line-height:1.35}
.platform-card .pub-state,.platform-card small{color:#405957;font-size:.82rem}.pub-mark{display:inline-grid;place-items:center;width:48px;height:48px;vertical-align:middle;background:#fff;border-radius:.45rem}.pub-mark img{width:32px;height:32px;object-fit:contain}
.publication .platform-card[aria-pressed=true]{border-color:#14745f;background:#ecf7f3}.platform-card .pub-check{display:none;position:absolute;top:.5rem;right:.5rem;color:#105e4f;font-weight:800}.platform-card[aria-pressed=true] .pub-check{display:block}.platform-card:focus-visible{outline:3px solid #24715d;outline-offset:2px}
.publication fieldset,.publication legend,.publication dialog{min-width:0;max-width:100%;box-sizing:border-box}.publication .pub-target-accounts fieldset{border-inline:0}.publication dialog{width:min(27rem,90vw);overflow-wrap:anywhere}.publication legend .pub-mark{margin-inline-end:.35rem}.pub-bound{border-bottom:1px solid #d9e5e1;padding-block:.5rem}
@media(max-width:520px){.publication .platform-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.publication button.platform-card{padding:.55rem}.publication input[type=datetime-local]{min-width:0;max-width:100%;box-sizing:border-box}}

.picker-list [data-overflow-choice][hidden]{display:none!important}.picker-list [data-picker-more]{width:100%;padding:.65rem;text-align:center}

.model-family{padding:.3rem .45rem}.model-family>summary{cursor:pointer;padding:.5rem;font-weight:600}.model-family .picker-option{width:100%}

/* The campaign has three header actions. Give the heading its own line on small phones. */
@media (max-width: 360px) {
  main:has(#campaign-start) .page-heading {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  main:has(#campaign-start) .page-heading > div:first-child { flex-basis: 100%; min-width: 0; }
  main:has(#campaign-start) .page-heading > .btn { max-width: 100%; min-height: 44px; white-space: normal; }
}

/* Keep the original desktop navigation proportions while allowing access below the fold. */
@media (min-width: 651px) {
  #main-nav.original-navigation { overflow-y: auto; scrollbar-width: none; }
  #main-nav.original-navigation > * { flex-shrink: 0; }
}

#main-nav.original-navigation .workbench-library-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.industry-tools,.industry-editor{margin:24px 0}.industry-editor{max-width:48rem;display:grid;gap:1rem}.industry-editor label{display:grid;gap:.4rem}.industry-editor input,.industry-editor select,.industry-editor textarea{min-width:0;max-width:100%}.industry-editor input[type=checkbox]{justify-self:start}.industry-player,.industry-shot{max-width:100%;width:auto;height:min(52vh,540px);background:#101718}.industry-shot{max-height:220px}.industry-lines{white-space:pre-wrap;overflow-wrap:anywhere}.industry-editor audio{max-width:100%}

/* The industry forms use the dark merchant surface even where a business record
   inherits ink from the original light document layout. */
html.merchant-orbit #main .industry-editor .industry-lines p,
html.merchant-orbit #main .industry-editor details > summary,
html.merchant-orbit #main .industry-editor + details > summary {
  color: #e0e7ec;
}

.handoff-cover{display:block;width:min(100%,17rem);height:auto;aspect-ratio:9/16;object-fit:contain;margin:1rem 0;border-radius:.5rem}#publication [data-pick][hidden],#quote-followup [data-draft][hidden]{display:none}#publication input[type=range]{width:100%}

html.merchant-orbit #main .quote-follow-source p {color:var(--text);}

/* Versioned office deliverable editors. Keep document pages readable in every theme. */
.document-output article{padding:18px 0;border-bottom:1px solid var(--border,#63726d)}.document-output .document-slide{max-width:880px}.document-output h4{font-size:18px;margin:12px 0}.document-output [hidden]{display:none!important}.document-output input,.document-output textarea{color:inherit}.document-output details p{white-space:pre-wrap}.document-output strong{font-variant-numeric:tabular-nums}
/* Source analysis and per-image delivery use shared themes. */
.analysis-bar{display:grid;grid-template-columns:minmax(90px,1fr) 2fr minmax(60px,1fr);gap:12px;align-items:center;margin:12px 0}.analysis-bar meter{width:100%}.batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:28px}.batch-pictures{display:grid;grid-template-columns:1fr 1fr;gap:12px}.batch-pictures figure{margin:0;min-width:0}.batch-pictures img{width:100%;height:230px;object-fit:contain;background:#f3f3f3}.table-analysis,.batch-grid article{min-width:0}.table-analysis details article{padding:12px 0;border-bottom:1px solid var(--border,#777)}.table-analysis p,.batch-grid p{overflow-wrap:anywhere}@media(max-width:400px){.analysis-bar{gap:6px;font-size:13px}.batch-pictures img{height:160px}}
#batch-start,#batch-result{min-width:0;max-width:100%;margin-block:24px;padding:0;border:0;background:none;box-shadow:none}
#batch-start fieldset,#batch-result fieldset{min-width:0;max-width:100%;padding:0;border:0}
#batch-start input,#batch-start select,#batch-result input{min-width:0;max-width:100%;box-sizing:border-box}
#batch-start fieldset>label:not(:has(input[type=checkbox])){display:grid;gap:8px;margin-block:18px}
#batch-start fieldset>label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin-block:18px;min-height:44px}
#batch-start fieldset>label input[type=checkbox]{flex:none;margin-top:5px}
#batch-start fieldset>label:not(:has(input[type=checkbox]))>input,#batch-start fieldset>label>select{width:100%}
#batch-result .batch-grid article{padding:20px 0;border:0;border-top:1px solid var(--border,#687873);background:none;box-shadow:none}
#batch-result .batch-pictures{padding:0;border:0;background:none;box-shadow:none}
#batch-result figure{padding:0;border:0;box-shadow:none}#batch-result figcaption{margin-block:8px;overflow-wrap:anywhere}
#batch-result progress{width:min(100%,28rem);accent-color:var(--accent,#9fe8ce)}
#batch-result .btn,#batch-start .btn{min-height:44px;white-space:normal}#batch-result summary{min-height:44px;padding-block:12px}
.table-analysis figure{margin:16px 0;padding:0;border:0;background:none}.table-analysis input,.table-analysis select{min-width:0;max-width:100%}
/* Image mask review and original-sound clips. */
[data-mask-source]{display:block;width:100%;height:auto;max-width:600px;touch-action:manipulation;cursor:crosshair;background:#444}
.batch-pictures figure{min-width:0}.batch-pictures img{background:repeating-conic-gradient(#ddd 0% 25%,#fff 0% 50%) 50%/16px 16px}
#long-result video{display:block;max-width:100%;width:720px;max-height:480px;background:#111;margin:16px 0}
.long-suggestions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}.long-suggestions article{min-width:0;border-bottom:1px solid var(--border,#667);padding:16px 0}.long-suggestions p{overflow-wrap:anywhere}
#long-start,#long-export{max-width:900px}#long-start label,#long-export label{display:block;margin:16px 0}#long-cues textarea{width:100%;box-sizing:border-box}#long-result button{min-height:44px;white-space:normal}
