* {
  box-sizing: border-box;
}

body {
  background: #f7f3ec;
  color: #22313b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: #173047;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
}

.brand {
  font-size: 22px;
  font-weight: 800;
}

.sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  margin-top: 4px;
}

button {
  background: #173047;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
}

.topbar button {
  background: #fff;
  color: #173047;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.topbar-actions .secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.login-page {
  align-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 143, 132, 0.14), transparent 28%),
    linear-gradient(135deg, #f7f3ec 0%, #eef3f2 100%);
  display: flex;
  min-height: 100vh;
}

.login-shell {
  margin: 0 auto;
  max-width: 420px;
  padding: 24px;
  width: 100%;
}

.login-card {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.login-brand {
  color: #173047;
  font-size: 24px;
  font-weight: 900;
}

.login-form {
  display: grid;
  gap: 14px;
}

.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  padding: 18px;
}

.panel {
  min-width: 0;
}

.products {
  grid-column: 1 / -1;
}

.ops-panel {
  grid-column: 1 / -1;
}

.launch-panel {
  grid-column: 1 / -1;
}

.audit-panel {
  grid-column: 1 / -1;
}

.accounts-panel,
.distributors-panel {
  grid-column: 1 / -1;
}

.finance-panel {
  grid-column: 1 / -1;
}

.customers-panel {
  grid-column: 1 / -1;
}

.panel-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ops-search {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 48, 71, 0.12);
  border-radius: 999px;
  color: #22313b;
  min-height: 34px;
  min-width: 240px;
  outline: 0;
  padding: 0 14px;
}

.ops-search:focus {
  border-color: rgba(38, 158, 143, 0.65);
  box-shadow: 0 0 0 3px rgba(38, 158, 143, 0.12);
}

.export-link {
  align-items: center;
  background: rgba(23, 48, 71, 0.08);
  border-radius: 999px;
  color: #173047;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.panel-subtitle {
  color: #687671;
  font-size: 13px;
  margin: 4px 0 0;
}

h1 {
  font-size: 20px;
  margin: 0;
}

.count {
  background: #eef3f2;
  border-radius: 999px;
  color: #2f8f84;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
}

.danger-count {
  background: #fff1e8;
  color: #a14d1b;
}

.warn-count {
  background: #fff7df;
  color: #9a6d2d;
}

.list {
  display: grid;
  gap: 12px;
}

.ops-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ops-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.06);
  color: #22313b;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  text-align: left;
}

.ops-card.has-work {
  border-color: rgba(154, 109, 45, 0.22);
  box-shadow: 0 12px 30px rgba(154, 109, 45, 0.08);
}

.ops-card span {
  color: #687671;
  font-size: 13px;
  font-weight: 700;
}

.ops-card strong {
  color: #173047;
  font-size: 32px;
  line-height: 1;
}

.ops-card em {
  color: #687671;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.launch-summary {
  margin-bottom: 12px;
}

.launch-score {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px;
}

.launch-score strong {
  color: #173047;
  font-size: 16px;
}

.launch-score span {
  color: #687671;
  font-size: 13px;
  font-weight: 800;
}

.launch-score.danger {
  border-color: rgba(161, 77, 27, 0.24);
}

.launch-score.warn {
  border-color: rgba(154, 109, 45, 0.24);
}

.launch-score.ok {
  border-color: rgba(47, 143, 132, 0.22);
}

.launch-next {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.04);
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

.launch-next-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.launch-next-head strong {
  color: #173047;
  font-size: 15px;
}

.launch-next-head span,
.launch-next-empty {
  color: #687671;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.launch-next-group {
  border-top: 1px solid rgba(23, 48, 71, 0.08);
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.launch-next-group h3 {
  color: #9a6d2d;
  font-size: 13px;
  margin: 0;
}

.launch-next-group article {
  background: rgba(247, 243, 236, 0.6);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.launch-next-group article strong {
  color: #173047;
  font-size: 13px;
}

.launch-next-group article p {
  color: #4d5d57;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.launch-list {
  display: grid;
  gap: 16px;
}

.launch-group {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.launch-group-title {
  color: #173047;
  font-size: 13px;
  font-weight: 900;
  grid-column: 1 / -1;
  letter-spacing: 0;
  line-height: 1.3;
  padding: 2px 2px 0;
}

.launch-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
}

.launch-item.danger {
  background: rgba(255, 247, 242, 0.94);
  border-color: rgba(161, 77, 27, 0.2);
}

.launch-item.warn {
  background: rgba(255, 250, 236, 0.94);
  border-color: rgba(154, 109, 45, 0.18);
}

.launch-item.ok {
  opacity: 0.82;
}

.launch-item > div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.launch-item strong {
  color: #173047;
  font-size: 14px;
}

.launch-item span {
  color: #2f8f84;
  font-size: 12px;
  font-weight: 800;
}

.launch-item.danger span {
  color: #a14d1b;
}

.launch-item.warn span {
  color: #9a6d2d;
}

.launch-item p {
  color: #4d5d57;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.audit-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
}

.audit-item > div,
.audit-item footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.audit-item strong {
  color: #173047;
  font-size: 14px;
}

.audit-item span {
  color: #687671;
  font-size: 12px;
  font-weight: 700;
}

.audit-item p {
  color: #4d5d57;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.finance-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 12px;
}

.customer-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 12px;
}

.finance-stat,
.customer-stat {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.05);
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
}

.finance-stat span,
.finance-stat em,
.customer-stat span,
.customer-stat em,
.finance-row span,
.finance-row em,
.finance-table span {
  color: #687671;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.finance-stat strong,
.customer-stat strong {
  color: #173047;
  font-size: 22px;
  line-height: 1.2;
}

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

.customer-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.06);
  display: grid;
  gap: 12px;
  padding: 16px;
}

.customer-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.customer-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-head strong {
  color: #173047;
  font-size: 17px;
}

.customer-head span,
.customer-detail span,
.customer-metrics span {
  color: #687671;
  font-size: 12px;
  font-weight: 700;
}

.customer-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customer-metrics div {
  background: #f8f6f0;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 9px;
}

.customer-metrics strong {
  color: #173047;
  font-size: 16px;
}

.customer-detail {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-detail div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-detail strong {
  color: #22313b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-tags span {
  background: rgba(38, 158, 143, 0.1);
  border-radius: 999px;
  color: #2f7f76;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.finance-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 12px;
}

.finance-grid-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.finance-card {
  min-width: 0;
}

.finance-card h2 {
  color: #173047;
  font-size: 16px;
  margin: 0 0 12px;
}

.finance-card h3 {
  color: #173047;
  font-size: 13px;
  margin: 0 0 8px;
}

.finance-list {
  display: grid;
  gap: 8px;
}

.finance-row,
.mini-record {
  align-items: center;
  background: #f8f6f0;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.finance-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.withdrawal-row {
  align-items: flex-start;
  flex-wrap: wrap;
}

.finance-actions {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.finance-actions button {
  min-height: 32px;
  padding: 0 12px;
}

.finance-row strong,
.mini-record span {
  color: #22313b;
  font-size: 13px;
  font-weight: 800;
}

.finance-amount,
.mini-record strong {
  color: #9a6d2d;
  flex: 0 0 auto;
  font-weight: 900;
}

.finance-amount.negative {
  color: #8d5f26;
}

.finance-outflow-form,
.commission-adjustment-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-outflow-form button,
.commission-adjustment-form button {
  grid-column: 1 / -1;
}

.commission-adjustment-form .span-2 {
  grid-column: span 2;
}

.finance-table {
  overflow-x: auto;
}

.finance-table table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.finance-table th,
.finance-table td {
  border-bottom: 1px solid rgba(23, 48, 71, 0.08);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.finance-table th {
  color: #687671;
  font-size: 12px;
  font-weight: 900;
}

.status-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 8px;
}

.status-chip.success {
  background: rgba(47, 143, 132, 0.12);
  color: #2f7f76;
}

.status-chip.muted {
  background: rgba(104, 118, 113, 0.12);
  color: #687671;
}

.ownership-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-width: 220px;
}

.ownership-actions select {
  background: #fff;
  border-color: rgba(23, 48, 71, 0.1);
  border-radius: 8px;
  color: #22313b;
  min-height: 32px;
  min-width: 132px;
  padding: 0 8px;
}

.ownership-actions button {
  min-height: 30px;
  padding: 0 10px;
}

.finance-record-section + .finance-record-section {
  border-top: 1px solid rgba(23, 48, 71, 0.08);
  margin-top: 12px;
  padding-top: 12px;
}

.account-form-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin-bottom: 12px;
}

.account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.06);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.account-card.readonly {
  background: rgba(238, 243, 242, 0.85);
}

.account-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.account-head div {
  display: grid;
  gap: 4px;
}

.account-head strong {
  color: #173047;
  font-size: 16px;
}

.account-head span,
.account-card p,
.account-meta {
  color: #687671;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.account-form {
  display: grid;
  gap: 8px;
}

.account-card .account-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.account-card .account-form-grid button {
  grid-column: 1 / -1;
}

.account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.distributor-create-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin-bottom: 12px;
}

.distributor-create-form .span-2 {
  grid-column: span 2;
}

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

.distributor-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.06);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.distributor-card-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.distributor-card-head div {
  display: grid;
  gap: 4px;
}

.distributor-card-head strong {
  color: #173047;
  font-size: 16px;
}

.distributor-card-head span,
.share-path span {
  color: #687671;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.distributor-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.distributor-stats span {
  background: #f8f6f0;
  border-radius: 10px;
  color: #687671;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 2px;
  padding: 8px;
}

.distributor-stats strong {
  color: #173047;
  font-size: 15px;
}

.share-path {
  align-items: center;
  background: rgba(47, 143, 132, 0.08);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.share-path span {
  color: #2f7f76;
  min-width: 0;
  overflow-wrap: anywhere;
}

.share-path button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
}

.distributor-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.distributor-form .span-2,
.distributor-actions {
  grid-column: 1 / -1;
}

.distributor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.distributor-actions button {
  min-height: 34px;
}

.distributor-detail {
  border-top: 1px solid rgba(23, 48, 71, 0.08);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.distributor-detail[hidden] {
  display: none;
}

.distributor-detail-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.distributor-detail-summary span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 48, 71, 0.06);
  border-radius: 10px;
  color: #687671;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 2px;
  padding: 8px;
}

.distributor-detail-summary strong {
  color: #9a6d2d;
  font-size: 15px;
}

.distributor-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.distributor-detail-grid section {
  background: rgba(248, 246, 240, 0.72);
  border-radius: 12px;
  min-width: 0;
  padding: 12px;
}

.distributor-detail-grid h3 {
  color: #173047;
  font-size: 13px;
  margin: 0 0 8px;
}

.distributor-detail-grid table {
  border-collapse: collapse;
  width: 100%;
}

.distributor-detail-grid th,
.distributor-detail-grid td {
  border-bottom: 1px solid rgba(23, 48, 71, 0.08);
  color: #22313b;
  font-size: 12px;
  line-height: 1.45;
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
}

.distributor-detail-grid th {
  color: #687671;
  font-weight: 900;
}

.distributor-detail-grid td span {
  color: #687671;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(23, 48, 71, 0.08);
  color: #687671;
  min-height: 32px;
  padding: 0 12px;
}

.filter-chip.active {
  background: #173047;
  color: #fff;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 71, 0.06);
  padding: 16px;
}

.inquiry-card.needs-action {
  border-color: rgba(154, 109, 45, 0.24);
  box-shadow: 0 12px 30px rgba(154, 109, 45, 0.08);
}

.card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.inquiry-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.inquiry-kicker span {
  color: #687671;
  font-size: 12px;
  font-weight: 700;
}

.muted {
  color: #687671;
  font-size: 13px;
  line-height: 1.5;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.meta-line span {
  background: #f5f5f5;
  border-radius: 999px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 5px 9px;
}

.status {
  background: #fff3df;
  border-radius: 999px;
  color: #9a5a00;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}

.status.ok {
  background: #eef3f2;
  color: #2f8f84;
}

.status.action {
  background: #eef3f2;
  color: #2f8f84;
}

.status.warn {
  background: #fff3df;
  color: #9a5a00;
}

.status.muted {
  background: #f5f5f5;
  color: #777;
}

.next-step {
  align-items: flex-start;
  background: #f6f3ed;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
}

.next-step strong {
  color: #9a5a00;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.5;
}

.next-step span {
  color: #4d5d57;
  font-size: 13px;
  line-height: 1.5;
}

.order-workbench {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  margin: 0 0 14px;
}

.order-workbench section {
  background: rgba(248, 246, 240, 0.72);
  border: 1px solid rgba(23, 48, 71, 0.06);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.order-workbench h3 {
  color: #173047;
  font-size: 13px;
  margin: 0;
}

.workbench-list,
.remark-stack,
.timeline-list {
  display: grid;
  gap: 7px;
}

.workbench-list span,
.timeline-list span,
.remark-stack span {
  color: #4d5d57;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.workbench-list.has-risk span {
  background: rgba(154, 90, 0, 0.08);
  border-radius: 8px;
  color: #9a5a00;
  padding: 7px 8px;
}

.remark-stack div {
  display: grid;
  gap: 3px;
}

.remark-stack strong {
  color: #687671;
  font-size: 12px;
}

.order-status-tools {
  border-top: 1px solid rgba(23, 48, 71, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.status-workbench {
  display: grid;
}

.status-workbench label {
  width: 100%;
}

.remark-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.status-workbench textarea {
  min-height: 58px;
}

.status-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.status-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.confirm-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-field {
  grid-column: 1 / -1;
}

label {
  color: #41504b;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 48, 71, 0.14);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-tools {
  align-items: center;
  border-top: 1px solid #edf2f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}

.hint {
  color: #9a5a00;
  font-size: 12px;
  font-weight: 700;
}

.material-box {
  background: rgba(238, 243, 242, 0.58);
  border: 1px solid rgba(47, 143, 132, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
}

.material-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.material-head > span:first-child {
  color: #173047;
  font-size: 13px;
  font-weight: 800;
}

.material-checklist {
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.material-checklist span {
  color: #4d5d57;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.material-checklist.has-problems {
  background: rgba(154, 90, 0, 0.08);
}

.material-checklist.has-problems span {
  color: #9a5a00;
}

.material-checklist.ready {
  background: rgba(47, 143, 132, 0.08);
}

.passenger-line {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 48, 71, 0.06);
  border-radius: 12px;
  color: #22313b;
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  padding: 10px;
}

.passenger-line strong,
.passenger-line span {
  display: block;
  line-height: 1.45;
}

.passenger-line strong {
  color: #22313b;
  font-size: 13px;
  font-weight: 800;
}

.passenger-line span {
  color: #687671;
  font-size: 12px;
}

.material-warning {
  background: #fff3df;
  border-radius: 10px;
  color: #9a5a00;
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
  line-height: 1.5;
  padding: 8px 10px;
}

.consent-line {
  align-items: center;
  background: rgba(154, 90, 0, 0.08);
  border-radius: 10px;
  color: #9a5a00;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  padding: 8px 10px;
}

.consent-line.ok {
  background: rgba(47, 143, 132, 0.08);
  color: #2f8f84;
}

.material-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-files a {
  background: #fff;
  border-radius: 999px;
  color: #2f8f84;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
}

.material-files a span {
  color: #687671;
  font-weight: 600;
}

.inquiry-actions button[data-action="confirm-create"] {
  background: #2f8f84;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-tools {
  align-items: end;
  border-top: 1px solid #edf2f0;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 280px) auto;
  justify-content: start;
  margin-top: 14px;
  padding-top: 14px;
}

.product-editor {
  margin-bottom: 12px;
}

.advanced-fields {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  margin-top: 12px;
  padding: 12px;
}

.advanced-fields > summary {
  color: #173047;
  font-size: 14px;
}

.paste-tools {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
}

.paste-tools textarea {
  min-height: 150px;
}

.paste-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.inline-editor {
  border-top: 1px solid #edf2f0;
  margin-top: 14px;
  padding-top: 12px;
}

.flight-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.schedule-editor {
  border: 1px solid #edf2f0;
  border-radius: 8px;
  overflow-x: auto;
  padding: 12px;
}

.schedule-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-row {
  align-items: end;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.2fr repeat(2, 1fr) repeat(5, 0.8fr) 1.1fr minmax(180px, 1.4fr) 0.8fr auto;
  min-width: 1180px;
  padding: 10px;
}

.schedule-row label {
  min-width: 0;
}

.cruise-schedule-row {
  grid-template-columns: 1.1fr 1fr 0.7fr 0.7fr minmax(160px, 1.4fr) minmax(170px, 1.4fr) 0.8fr minmax(150px, 1fr) 1fr 0.8fr auto;
  min-width: 1120px;
}

.danger {
  background: #fff3df;
  color: #9a5a00;
}

.secondary {
  background: #eef3f2;
  color: #173047;
}

.price {
  color: #9a6d2d;
  font-size: 22px;
  font-weight: 900;
}

.parse-preview {
  background: #fff;
  border: 1px solid rgba(23, 48, 71, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(23, 48, 71, 0.05);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.empty-preview {
  color: #687671;
  font-size: 13px;
  line-height: 1.6;
}

.preview-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.preview-route {
  color: #2f8f84;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.preview-title {
  color: #173047;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.preview-price {
  color: #9a6d2d;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.preview-meta,
.preview-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-meta span,
.preview-date,
.preview-more {
  background: #f5f5f5;
  border-radius: 999px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  padding: 7px 10px;
}

.preview-date strong {
  color: #9a6d2d;
}

.preview-groups {
  display: grid;
  gap: 10px;
}

.preview-group {
  border-top: 1px solid rgba(23, 48, 71, 0.08);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.preview-group-head {
  align-items: center;
  color: #173047;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.preview-group-head span {
  color: #888;
  font-size: 12px;
  font-weight: 700;
}

.empty {
  color: #687671;
  padding: 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .products {
    grid-column: auto;
  }

  .product-tools {
    grid-template-columns: 1fr;
  }

  .launch-score {
    align-items: flex-start;
    flex-direction: column;
  }

  .launch-list,
  .launch-group,
  .audit-list,
  .finance-summary,
  .customer-summary,
  .customer-grid,
  .finance-grid,
  .finance-grid-wide,
  .order-workbench,
  .remark-edit-grid,
  .ops-summary {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .account-form-grid,
  .account-grid,
  .account-card .account-form-grid,
  .distributor-create-form,
  .distributor-grid,
  .distributor-form,
  .distributor-stats,
  .distributor-detail-summary,
  .distributor-detail-grid,
  .finance-outflow-form {
    grid-template-columns: 1fr;
  }

  .distributor-create-form .span-2 {
    grid-column: auto;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }
}
