.product-list {
  display: grid;
  gap: 9px;
}
[hidden] {
  display: none !important;
}
.toolbar input {
  min-width: 220px;
}
.toolbar select {
  width: auto;
  min-width: 220px;
}
.series-list {
  display: grid;
  gap: 11px;
}
.product-series {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff80;
  overflow: hidden;
}
.product-series > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  font: 500 20px Georgia, serif;
  list-style: none;
}
.product-series > summary::-webkit-details-marker {
  display: none;
}
.product-series > summary::after {
  content: "Aç";
  color: var(--muted);
  font: 800 11px Inter, system-ui, sans-serif;
}
.product-series[open] > summary::after {
  content: "Kapat";
}
.product-series > summary small {
  color: var(--muted);
  font: 700 11px Inter, system-ui, sans-serif;
}
.product-series > .product-list {
  padding: 0 10px 10px;
}
.product-line {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(230px, 1.5fr) minmax(170px, .8fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
}
.product-line h3 {
  margin: 2px 0;
  font: 500 18px Georgia, serif;
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.direct-cost-box {
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 11px 13px;
  border: 1px solid #315c48;
  border-radius: 12px;
  background: #193528;
}
.direct-cost-box small,
.direct-cost-box span {
  color: var(--muted);
}
.direct-cost-box strong {
  color: #b8e2cb;
  font: 500 21px Georgia, serif;
}
.profile-chip {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: #f6f8f5;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 11px;
}
.profile-chip.active {
  border-color: #7ba993;
  background: var(--mint2);
}
.profile-chip button {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 800;
}
.profile-chip .profile-detail {
  text-align: left;
}
.profile-chip .use-profile {
  color: var(--coral);
  font-size: 10px;
  text-align: left;
}
.profile-chip .use-profile.selected {
  color: #277553;
}
.cost-pair {
  display: grid;
  gap: 2px;
}
.cost-pair strong {
  font: 500 18px Georgia, serif;
}
.cost-pair small {
  color: var(--muted);
}
.recipe-wrap {
  max-height: 55vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.recipe-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, .65fr) 75px 34px;
  gap: 7px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
}
.recipe-row:last-child {
  border: 0;
}
.icon-button {
  border: 0;
  background: #fee5e0;
  color: var(--red);
  border-radius: 9px;
  font-weight: 900;
}
.color-swatch {
  width: 13px;
  height: 13px;
  border: 1px solid #0002;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 5px;
}
dialog.recipe-dialog {
  width: min(920px, calc(100vw - 28px));
}
@media (max-width: 980px) {
  .product-line {
    grid-template-columns: 1fr 1.2fr auto;
  }
  .product-line .cost-pair {
    display: none;
  }
}
@media (max-width: 620px) {
  .product-line {
    grid-template-columns: 1fr auto;
    padding: 12px;
  }
  .product-line .profile-chips {
    grid-column: 1 / -1;
  }
  .product-line .cost-pair {
    display: grid;
    grid-column: 1;
  }
  .recipe-row {
    grid-template-columns: 1fr 74px 32px;
  }
  .recipe-row .recipe-profile {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .section-intro > .inline-actions {
    grid-column: auto;
    grid-row: auto;
    flex-wrap: wrap;
  }
  .toolbar input,
  .toolbar select {
    width: 100%;
    min-width: 0;
  }
}

/* --- V3: sakin, görev odaklı kabuk --- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
.top-actions {
  position: relative;
}
.tabs {
  justify-content: center;
}
.tabs > button {
  min-width: 112px;
}
.more-menu {
  position: relative;
}
.more-menu > summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  color: #dbe7e1;
  background: #15231f;
}
.more-menu > summary::-webkit-details-marker {
  display: none;
}
.more-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 210px;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #14211d;
  box-shadow: 0 18px 50px #0008;
}
.more-menu-panel button {
  text-align: left;
  justify-content: flex-start;
  background: transparent;
  color: #e8efeb;
}
.more-menu-panel button:hover,
.more-menu-panel button.active {
  background: #243a33;
}
.install-button {
  white-space: nowrap;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}
#view-dashboard > .metrics {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.action-center {
  align-self: start;
}
.action-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.action-item:last-child {
  border-bottom: 0;
}
.action-item span {
  display: grid;
  gap: 2px;
}
.action-item small {
  color: var(--muted);
  font-weight: 500;
}
.action-item b {
  font-size: 24px;
  color: #f08a77;
}
.segmented {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101c18;
}
.segmented button {
  background: transparent;
  color: var(--muted);
}
.segmented button.active {
  color: #102019;
  background: #dcebe4;
}
.product-pane {
  display: none;
}
.product-pane.active {
  display: block;
}
.compact-intro {
  margin-top: 0;
  padding-top: 0;
}
.order-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, auto) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
}
.order-card:last-child {
  border-bottom: 0;
}
.order-card .main,
.order-card .main small,
.data-row .main,
.data-row .main small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-value {
  display: grid;
  text-align: right;
}
.order-value small {
  color: var(--muted);
}
.row-actions {
  position: relative;
}
.row-actions > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 900;
  color: var(--muted);
}
.row-actions > summary::-webkit-details-marker {
  display: none;
}
.row-actions > div {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  width: 150px;
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #172520;
  box-shadow: 0 14px 40px #0008;
}
.row-actions button {
  width: 100%;
}
.integration-disclosure {
  padding: 0;
  overflow: visible;
}
.integration-disclosure > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  padding: 18px;
}
.integration-disclosure > summary::-webkit-details-marker {
  display: none;
}
.integration-disclosure > summary > span:first-child {
  display: grid;
  gap: 3px;
}
.integration-disclosure > summary small {
  color: var(--muted);
}
.integration-disclosure form {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}
.expense-row {
  grid-template-columns: minmax(220px, 1fr) minmax(90px, auto) minmax(90px, auto) auto;
}
.data-row,
.inline-actions {
  min-width: 0;
}
.inline-actions {
  flex-wrap: wrap;
}
.install-guide ol {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .topbar {
    min-height: auto;
    padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  }
  .topbar h1 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .top-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 9px;
  }
  .top-actions .month {
    min-width: 0;
  }
  .top-actions .status {
    align-self: end;
  }
  .install-button {
    grid-column: 1;
  }
  .more-menu {
    grid-column: 2;
    grid-row: 2;
  }
  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: hidden;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: #0f1a17f7;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .tabs > button {
    min-width: 0;
    padding: 9px 2px;
    font-size: 11px;
    white-space: normal;
  }
  .tabs > button.active {
    box-shadow: none;
  }
  main {
    width: 100%;
    max-width: 100%;
    padding: 18px 12px 28px;
    box-sizing: border-box;
  }
  #view-dashboard > .metrics,
  .metrics,
  .metrics.quad,
  .metrics.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .quick-actions button {
    flex: 0 0 auto;
  }
  .section-intro {
    align-items: end;
  }
  .section-intro > div:first-child {
    min-width: 0;
  }
  .order-card,
  .bundle-summary {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    padding: 14px 4px;
  }
  .order-card .main {
    grid-column: 1 / -1;
  }
  .order-value {
    grid-column: 1;
    text-align: left;
  }
  .order-card > .order-profit {
    grid-column: 2;
  }
  .row-actions {
    grid-column: 3;
  }
  .bundle-open-hint {
    grid-column: 3;
    grid-row: 2;
  }
  .order-bundle-line > .edit-order {
    grid-column: 3;
  }
  .expense-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .expense-row .main {
    grid-column: 1 / -1;
  }
  .expense-row .inline-actions {
    grid-column: 1 / -1;
  }
  .toolbar {
    grid-template-columns: 1fr;
  }
  .toolbar input,
  .toolbar select {
    min-width: 0;
    width: 100%;
  }
  .sets-grid,
  .integration-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .more-menu-panel {
    position: fixed;
    right: 12px;
    top: 156px;
    width: min(240px, calc(100vw - 24px));
  }
}

/* V3.2: günlük / aylık / yıllık / özel tarih aralığı */
.period-picker {
  display: flex;
  align-items: end;
  gap: 6px;
}
.period-picker > select {
  width: 112px;
  min-width: 112px;
  padding: 8px 9px;
}
.period-picker label {
  display: grid;
  gap: 2px;
  color: #aebdb7;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.period-picker input {
  width: 142px;
  min-height: 36px;
  padding: 7px 9px;
  color: #edf5f1;
  background: #ffffff0e;
  border-color: #ffffff35;
}
.period-picker input[type="number"] {
  width: 92px;
}

@media (max-width: 760px) {
  .app-brand div {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 56px;
    align-items: flex-start;
  }
  .top-actions {
    align-items: flex-start;
  }
  .period-picker {
    display: grid;
    grid-template-columns: 82px 122px;
    align-items: center;
    gap: 4px;
  }
  .period-picker > select {
    grid-row: 1;
    width: 82px;
    min-width: 82px;
    padding: 7px 5px;
  }
  .period-picker label {
    grid-column: 2;
  }
  .period-picker label > span {
    display: none;
  }
  .period-picker input,
  .period-picker input[type="number"] {
    width: 122px;
    min-height: 34px;
    padding: 6px 7px;
  }
  #periodEndWrap:not([hidden]) {
    grid-row: 2;
  }
}

/* Compact program flow: collection -> item -> detail */
.sets-grid {
  display: grid;
  gap: 8px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.sale-series,
.product-series {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.sale-series > summary,
.product-series > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 750;
}
.sale-series > summary::-webkit-details-marker,
.product-series > summary::-webkit-details-marker,
.component-row > summary::-webkit-details-marker {
  display: none;
}
.sale-series > summary::after,
.product-series > summary::after {
  content: "+";
  width: 24px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 500;
  text-align: center;
}
.sale-series[open] > summary::after,
.product-series[open] > summary::after {
  content: "−";
}
.sale-series > summary small,
.product-series > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.sale-series-list,
.product-list {
  border-top: 1px solid var(--line);
}
.product-compact-row {
  grid-template-columns: minmax(220px, 1fr) 90px auto auto auto;
  min-height: 54px;
  padding: 7px 11px;
}
.product-identity.open-set {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.product-identity.open-set:hover strong {
  color: var(--coral);
}
.product-identity small {
  display: block;
}
.component-row {
  border-bottom: 1px solid var(--line);
}
.component-row:last-child {
  border-bottom: 0;
}
.component-row > summary {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 95px 105px auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}
.component-row > summary:hover {
  background: color-mix(in srgb, var(--mint2) 35%, transparent);
}
.component-name,
.component-stat,
.component-cost {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.component-name strong,
.component-stat strong,
.component-cost strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.component-name small,
.component-stat small,
.component-cost small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.component-row[open] > summary {
  background: color-mix(in srgb, var(--mint2) 45%, transparent);
}
.component-body {
  display: grid;
  gap: 10px;
  padding: 11px 12px 13px;
  border-top: 1px solid var(--line);
}
.component-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.component-breakdown span {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--mint2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 8px 2px;
  color: var(--muted);
  font-size: 11px;
}
.set-overview {
  width: min(680px, 86vw);
}
.set-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.set-overview-head h2 {
  margin: 2px 0 4px;
}
.set-overview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.set-total {
  min-width: 130px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--mint2);
  text-align: right;
}
.set-total small,
.set-cost-strip small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.set-total strong {
  font-size: 20px;
}
.set-cost-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 14px 0 18px;
}
.set-cost-strip > span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.set-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.set-content-head h3 {
  margin: 0;
  font-size: 14px;
}
.set-content-head span {
  color: var(--muted);
  font-size: 10px;
}
.set-content-list {
  max-height: min(48vh, 480px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.set-content-row {
  min-height: 45px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 65px 75px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.set-content-row:last-child {
  border-bottom: 0;
}
.set-content-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.set-content-row > div strong,
.set-content-row > div small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.set-content-row > div small,
.set-content-row > span {
  color: var(--muted);
  font-size: 9px;
}
.set-content-row > strong {
  text-align: right;
}
.overview-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .sale-series > summary,
  .product-series > summary {
    min-height: 48px;
    padding: 9px 10px;
  }
  .sale-series > summary small,
  .product-series > summary small {
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .product-compact-row {
    grid-template-columns: minmax(0, 1fr) 65px auto auto;
  }
  .product-compact-row > .pill {
    display: none;
  }
  .product-identity small {
    display: block;
  }
  .component-row > summary {
    grid-template-columns: minmax(0, 1fr) 70px 72px;
    gap: 7px;
    padding: 8px 9px;
  }
  .component-row > summary > .pill {
    display: none;
  }
  .set-overview {
    width: auto;
  }
  .set-overview-head {
    display: grid;
  }
  .set-total {
    width: 100%;
    text-align: left;
  }
  .set-content-row {
    grid-template-columns: minmax(0, 1fr) 52px 62px;
    gap: 7px;
  }
}

.pricing-grid,
.price-channels {
  display: grid;
  gap: 12px;
}
.workspace-disclosure,
.pricing-group,
.audit-category {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.workspace-disclosure > summary,
.pricing-group > summary,
.audit-category > summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}
.workspace-disclosure > summary::-webkit-details-marker,
.pricing-group > summary::-webkit-details-marker,
.audit-category > summary::-webkit-details-marker {
  display: none;
}
.workspace-disclosure > summary::after,
.pricing-group > summary::after,
.audit-category > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--muted);
  font-size: 20px;
}
.workspace-disclosure[open] > summary::after,
.pricing-group[open] > summary::after,
.audit-category[open] > summary::after {
  content: "−";
}
.workspace-disclosure > summary span,
.pricing-group > summary span,
.audit-category > summary span {
  display: grid;
  gap: 2px;
}
.workspace-disclosure > summary small,
.pricing-group > summary small,
.audit-category > summary small,
.audit-source small {
  color: var(--muted);
}
.workspace-disclosure-body,
.pricing-group-body,
.audit-category > div {
  padding: 12px;
  border-top: 1px solid var(--line);
}
.compact-action-head,
.audit-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.compact-action-head p {
  margin: 0;
}
.pricing-group-body .pricing-card:last-child {
  margin-bottom: 0;
}
.audit-category .alert {
  margin-bottom: 8px;
}
.pricing-card {
  margin-bottom: 14px;
}
.cost-badge {
  display: grid;
  text-align: right;
}
.cost-badge small,
.price-channel small {
  color: var(--muted);
}
.cost-badge strong {
  font: 500 20px Georgia, serif;
}
.price-channel {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(110px, .6fr) minmax(150px, .8fr) minmax(120px, .7fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111d1a;
}
.price-channel > div:first-child,
.price-profit {
  display: grid;
}
.price-channel label > strong {
  font: 500 19px Georgia, serif;
}
.price-profit strong {
  font: 500 20px Georgia, serif;
}
.profit-details {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 14, 24, .5);
  overflow: hidden;
}
.profit-details summary {
  padding: 12px 14px;
  cursor: pointer;
  color: #9fd6c2;
  font-weight: 750;
  user-select: none;
}
.profit-details[open] summary {
  border-bottom: 1px solid var(--line);
}
.profit-breakdown {
  display: grid;
  gap: 0;
  padding: 8px 14px 14px;
}
.profit-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  margin: 8px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(250, 204, 21, .28);
  border-radius: 12px;
  background: rgba(250, 204, 21, .07);
}
.profit-compare strong {
  color: #fde68a;
}
.profit-compare small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.profit-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(148, 163, 184, .13);
}
.profit-line strong {
  white-space: nowrap;
}
.profit-line.income strong {
  color: #9fddba;
}
.profit-line.subtotal {
  margin-bottom: 6px;
  font-weight: 750;
}
.profit-line.total {
  margin-top: 8px;
  padding: 12px 2px 4px;
  border: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.profit-explain {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}
.order-profit-dialog {
  width: min(620px, 100%);
}
.order-profit-dialog h2 {
  margin: 4px 0;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.integration-card {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0 0 20px;
}
.integration-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}
.integration-head h2 {
  text-transform: capitalize;
}
.integration-fields {
  display: grid;
  gap: 10px;
}
.connection {
  padding: 5px 8px;
  border-radius: 99px;
  background: #49381f;
  color: #f3ca82;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.connection.connected {
  background: #203b34;
  color: #bfe1d4;
}
.inbox-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, .6fr) minmax(200px, .8fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.inbox-row:last-child {
  border-bottom: 0;
}
.inbox-row .main {
  display: grid;
}
.inbox-row small {
  color: var(--muted);
}
.subform {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: #111d1a;
}
.channel-row > div {
  display: grid;
}
.channel-row small {
  color: var(--muted);
}

@media (max-width: 1050px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .price-channel {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .price-channel > button {
    grid-column: 3;
  }
}
@media (max-width: 700px) {
  .price-channel,
  .inbox-row {
    grid-template-columns: 1fr;
  }
  .price-channel > button {
    grid-column: auto;
  }
  .cost-badge {
    display: none;
  }
  .profit-line,
  .profit-compare {
    font-size: .9rem;
  }
  .integration-card .inline-actions {
    display: grid;
    grid-column: auto;
    grid-row: auto;
  }
}

/* Düşük parlamalı koyu tema */
:root {
  --ink: #edf5f1;
  --muted: #9eb1aa;
  --paper: #0f1816;
  --card: #182521;
  --mint: #29483f;
  --mint2: #203b34;
  --coral: #e78b72;
  --red: #ff9186;
  --amber: #e8b560;
  --line: #324640;
  --shadow: 0 14px 34px #00000035;
}
html {
  color-scheme: dark;
}
body {
  background: var(--paper);
}
.topbar {
  background: #0a1412;
}
.tabs {
  background: #101b18f2;
}
.tabs button {
  color: #adbbb6;
}
.tabs button.active {
  background: #dfece7;
  color: #14231f;
}
.card,
.metric,
.product-line,
.product-series {
  background: var(--card);
}
input,
select,
textarea {
  color: var(--ink);
  background: #111d1a;
  border-color: #3b514a;
}
input::placeholder,
textarea::placeholder {
  color: #7f928b;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #76a895;
  box-shadow: 0 0 0 3px #416e5d70;
}
.month input {
  color: #edf5f1;
  background: #ffffff0e;
  border-color: #ffffff35;
}
.secondary {
  background: #284039;
  color: #e7f2ed;
}
.danger {
  background: #4a2727;
  color: #ffb0a8;
}
.breakdown div {
  background: #111d1a;
}
.pill {
  background: #29483f;
  color: #cce7dc;
}
.pill.missing {
  background: #49381f;
  color: #f3ca82;
}
.profile-chip {
  background: #111d1a;
}
.profile-chip.active {
  border-color: #6b9e8a;
  background: #203b34;
}
.price-channel,
.subform {
  background: #111d1a;
}
.alert.warning {
  background: #3a2d1c;
  border-color: #6b512d;
  color: #f0ce91;
}
.alert.good {
  background: #193528;
  border-color: #315c48;
  color: #b8e2cb;
}
.status.ok {
  background: #234a36;
  color: #c5efd5;
}
.status.wait {
  background: #4b3b20;
  color: #f5d999;
}
.status.bad {
  background: #522c29;
  color: #ffc0b8;
}
dialog {
  background: #182521;
  color: var(--ink);
}
dialog::backdrop {
  background: #020706cc;
}
.toast {
  background: #dfece7;
  color: #12211d;
}
.positive,
.metric.good strong {
  color: #72d29e;
}
.negative,
.metric.bad strong {
  color: #ff9186;
}
.product-series {
  background: #131f1c;
}
.order-bundle {
  border-bottom: 1px solid var(--line);
}
.order-bundle:last-child {
  border-bottom: 0;
}
.order-bundle > summary {
  cursor: pointer;
  list-style: none;
}
.order-bundle > summary::-webkit-details-marker {
  display: none;
}
.order-bundle > .bundle-summary {
  border-bottom: 0;
}
.order-bundle[open] {
  margin: 5px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111d1a;
}
.order-bundle[open] > .bundle-summary {
  border-bottom: 1px solid var(--line);
}
.bundle-open-hint {
  min-width: 92px;
  color: #cce7dc;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}
.bundle-open-hint::after {
  content: "Ürünleri aç";
}
.order-bundle[open] .bundle-open-hint::after {
  content: "Ürünleri kapat";
}
.bundle-body {
  padding: 8px 12px 12px 25px;
}
.bundle-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 3px 0 8px;
}
.order-bundle-line {
  padding-right: 0;
  padding-left: 11px;
  background: #182521;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-top: 6px;
}
.source-summary {
  color: #b8e2cb !important;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 620px) {
  .bundle-body {
    padding: 8px;
  }
  .bundle-open-hint {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .bundle-actions {
    flex-wrap: wrap;
  }
}

/* --- Analiz ekranı --- */
.metric .delta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 8px 0 0;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  background: #1e2f2a;
  color: var(--muted);
}
.metric .delta em {
  font-style: normal;
  font-weight: 600;
  opacity: .75;
}
.metric .delta.up {
  background: #1d3b2c;
  color: #a8e6c1;
}
.metric .delta.down {
  background: #402725;
  color: #ffb0a8;
}
.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.chart-legend .key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.chart-legend .key::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
}
.chart-legend .revenue::before { background: #7fb6a1; }
.chart-legend .contribution::before { background: #e78b72; }
.chart-legend .net::before { background: #e8b560; }
.chart-wrap {
  position: relative;
  margin-top: 8px;
}
.chart-wrap svg {
  width: 100%;
  height: 250px;
  overflow: visible;
}
.chart-wrap .bar.revenue { fill: #7fb6a1; }
.chart-wrap .bar.contribution { fill: #e78b72; }
.chart-wrap .bar.net { fill: #e8b560; }
.chart-wrap .bar.net.negative { fill: #ff9186; }
.chart-wrap .grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-wrap .axis {
  fill: var(--muted);
  font: 700 11px Inter, system-ui, sans-serif;
}
.chart-wrap .axis.year {
  font-size: 9px;
  opacity: .65;
}
.chart-wrap .axis.faint { opacity: .35; }
.chart-scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.breakeven-bar {
  position: relative;
  height: 30px;
  border-radius: 99px;
  background: #111d1a;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}
.breakeven-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #b96a52, #e78b72);
}
.breakeven-bar .fill.done {
  background: linear-gradient(90deg, #2f6a4c, #6fc294);
}
.breakeven-bar span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #f2f8f5;
}
.breakeven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.breakeven-grid > div {
  background: #111d1a;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  display: grid;
  gap: 3px;
}
.breakeven-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.breakeven-grid strong {
  font-size: 21px;
  font-family: Georgia, serif;
  font-weight: 500;
}
.breakeven-grid span {
  color: var(--muted);
  font-size: 12px;
}
.hour-row .hour-bar {
  display: block;
  width: 100%;
  min-width: 70px;
  height: 8px;
  border-radius: 99px;
  background: #111d1a;
  overflow: hidden;
}
.hour-row .hour-bar i {
  display: block;
  height: 100%;
  background: #7fb6a1;
}
.hour-row .basis {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.metrics.quad {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.ad-auto-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.ad-auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #111d1a;
}
.ad-auto-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.ad-auto-value {
  font: 500 18px Georgia, serif;
}
.ad-card .integration-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.plan-filaments {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.plan-filament {
  display: grid;
  grid-template-columns: 18px minmax(160px, 1.4fr) minmax(110px, .7fr) minmax(110px, .7fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111d1a;
  font-size: 13px;
}
.plan-filament.short {
  border-color: #7a4038;
  background: #2a1b1a;
}
.plan-filament small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 620px) {
  .plan-filament {
    grid-template-columns: 18px 1fr;
  }
}
.audit-row .cell small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.audit-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  background: #29483f;
  color: #cce7dc;
}
.audit-badge.warn {
  background: #49381f;
  color: #f3ca82;
}
.audit-badge.bad {
  background: #4a2727;
  color: #ffb0a8;
}
.audit-unmatched {
  margin-top: 12px;
}
.audit-unmatched > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 0;
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  padding: clamp(28px, 6vw, 48px);
}
.login-card h1 {
  margin: 4px 0 10px;
  font-size: clamp(34px, 7vw, 48px);
}
.login-card form {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
}
.login-card button {
  min-height: 50px;
}

/* --- V3.1: kompakt uygulama kabuğu --- */
body {
  font-size: 13px;
  line-height: 1.4;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.app-brand div {
  display: grid;
  line-height: 1.1;
}
.app-brand strong {
  font-size: 16px;
}
.app-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topbar {
  min-height: 64px;
  height: 64px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.top-actions {
  align-items: center;
  gap: 8px;
}
.month {
  display: flex;
  align-items: center;
  gap: 7px;
}
.month input {
  width: 148px;
  padding: 8px 10px;
}
.status {
  padding: 7px 10px;
  font-size: 10px;
}
.more-menu > summary {
  padding: 7px 11px;
}
body > main:not(.login-shell) .eyebrow,
body > main:not(.login-shell) .section-intro p:not(.source-summary),
body > main:not(.login-shell) .card-head p.muted,
body > main:not(.login-shell) .action-item small,
body > main:not(.login-shell) .delta em {
  display: none;
}
body > main:not(.login-shell) .section-intro {
  min-height: 40px;
  margin-bottom: 12px;
}
body > main:not(.login-shell) .section-intro h2,
body > main:not(.login-shell) .card h2,
body > main:not(.login-shell) .set-card h3,
body > main:not(.login-shell) .product-line h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: -.02em;
}
body > main:not(.login-shell) .section-intro h2 {
  font-size: 22px;
}
body > main:not(.login-shell) .card h2 {
  font-size: 17px;
}
.card {
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 13px;
  box-shadow: 0 5px 16px #0002;
}
.metrics,
.metrics.compact,
.metrics.quad,
#view-dashboard > .metrics {
  gap: 8px;
  margin-bottom: 12px;
}
.metric {
  min-height: 92px;
  padding: 13px;
  border-radius: 12px;
  box-shadow: none;
}
.metric strong {
  margin-top: 6px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 750;
}
.metric .delta {
  margin-top: 7px;
  padding: 2px 6px;
  font-size: 9px;
}
.two-col {
  gap: 12px;
}
.quick-actions {
  gap: 7px;
  margin-bottom: 12px;
}
.primary,
.secondary,
.danger {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12px;
}
.action-item {
  padding: 10px 2px;
}
.action-item b {
  font-size: 18px;
}
.data-row,
.order-card {
  padding: 10px 4px;
  gap: 9px;
  font-size: 12px;
}
.data-row .main strong,
.order-card .main strong {
  display: block;
  font-size: 13px;
}
.data-row .main small,
.order-card .main small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toolbar {
  gap: 7px;
  margin-bottom: 10px;
}
.toolbar input,
.toolbar select,
input,
select,
textarea {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
}
.segmented {
  margin-bottom: 10px;
  padding: 3px;
  border-radius: 10px;
}
.segmented button {
  padding: 7px 12px;
  font-size: 11px;
}
.sets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}
.product-compact-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 105px 105px auto auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}
.product-compact-row:last-child {
  border-bottom: 0;
}
.product-identity,
.compact-value {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.product-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-identity small,
.compact-value small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-identity small {
  display: none;
}
.compact-value strong {
  font-size: 12px;
  font-weight: 750;
}
.product-compact-row .pill {
  padding: 3px 7px;
  font-size: 9px;
}
.product-actions > div {
  width: 125px;
}
.product-line {
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: none;
}
.product-line h3 {
  overflow: hidden;
  max-width: 330px;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-series > summary {
  padding: 10px 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 750;
}
.source-summary {
  display: none !important;
}
#view-dashboard #recentOrders .order-profit,
#view-dashboard #recentOrders .row-actions,
#view-dashboard #recentOrders .order-value small,
#view-dashboard #recentOrders .bundle-open-hint {
  display: none;
}
#view-dashboard #recentOrders .bundle-summary .main small {
  display: none;
}
.profit-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.profit-warning span {
  display: grid;
  gap: 2px;
}
.profit-warning small {
  color: inherit;
  opacity: .82;
}
.profit-snapshot-card {
  padding: 14px;
}
.profit-bridge {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}
.profit-bridge > i {
  align-self: center;
  color: var(--muted);
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
}
.profit-bridge-step {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111d1a;
}
.profit-bridge-step small,
.profit-bridge-step span {
  color: var(--muted);
  font-size: 9px;
}
.profit-bridge-step strong {
  font-size: 17px;
}
.profit-bridge-step.net {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 8%, #111d1a);
}
.analysis-disclosure .chart-legend {
  justify-content: flex-end;
  margin-bottom: 10px;
}
.performance-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  gap: 9px;
  padding: 2px 4px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.performance-head span:not(:first-child) {
  text-align: right;
}
#skuPerformance .data-row {
  grid-template-columns: minmax(0, 1fr) 90px 90px;
}
#skuPerformance .data-row > div:last-child {
  display: none;
}
#skuPerformance .data-row .cell {
  text-align: right;
}
#view-dashboard #recentOrders .order-card {
  grid-template-columns: minmax(220px, 1fr) auto;
}

@media (min-width: 761px) {
  .topbar {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 184px;
  }
  .tabs {
    position: fixed;
    z-index: 45;
    top: 0;
    bottom: 0;
    left: 0;
    width: 184px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 76px 10px 16px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--line);
    background: #0a1412;
  }
  .tabs > button {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    text-align: left;
    font-size: 12px;
  }
  .tabs > button::before {
    width: 18px;
    color: currentColor;
    font-size: 17px;
    text-align: center;
  }
  .tabs > button[data-tab="dashboard"]::before { content: "⌂"; }
  .tabs > button[data-tab="orders"]::before { content: "≡"; }
  .tabs > button[data-tab="products"]::before { content: "□"; }
  .tabs > button[data-tab="stock"]::before { content: "▦"; }
  .tabs > button[data-tab="expenses"]::before { content: "₺"; }
  .tabs > button[data-tab="analysis"]::before { content: "↗"; }
  .tabs > button.active {
    background: #284039;
    color: #f1f7f4;
  }
  body > main:not(.login-shell) {
    width: auto;
    max-width: none;
    margin: 0 0 0 184px;
    padding: 84px 18px 48px;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    z-index: 35;
    top: 0;
    min-height: 56px;
    height: 56px;
    padding: max(8px, env(safe-area-inset-top)) 11px 8px;
  }
  .app-brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .app-brand span,
  .month > span,
  .install-button {
    display: none !important;
  }
  .top-actions {
    display: flex;
    gap: 6px;
  }
  .month input {
    width: 125px;
    padding: 7px 8px;
  }
  .top-actions .status {
    width: 9px;
    height: 9px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }
  .more-menu {
    grid-column: auto;
    grid-row: auto;
  }
  .more-menu-panel {
    top: 58px;
  }
  body > main:not(.login-shell) {
    padding: 12px 9px 82px;
  }
  .tabs {
    position: fixed;
    z-index: 40;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 5px 5px max(5px, env(safe-area-inset-bottom));
    overflow: visible;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: #0a1412f5;
  }
  .tabs > button {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 1px;
    padding: 5px 2px;
    border-radius: 8px;
    font-size: 9px;
  }
  .tabs > button::before {
    color: currentColor;
    font-size: 15px;
    line-height: 1;
  }
  .tabs > button[data-tab="dashboard"]::before { content: "⌂"; }
  .tabs > button[data-tab="orders"]::before { content: "≡"; }
  .tabs > button[data-tab="products"]::before { content: "□"; }
  .tabs > button[data-tab="stock"]::before { content: "▦"; }
  .tabs > button[data-tab="expenses"]::before { content: "₺"; }
  .tabs > button[data-tab="analysis"]::before { content: "↗"; }
  .profit-warning {
    align-items: flex-start;
  }
  .profit-bridge {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .profit-bridge > i {
    display: none;
  }
  .profit-bridge-step {
    position: relative;
    min-height: 67px;
  }
  .profit-bridge-step.deduction,
  .profit-bridge-step.net {
    margin-left: 24px;
  }
  .profit-bridge-step.deduction::before,
  .profit-bridge-step.net::before {
    position: absolute;
    left: -21px;
    top: 50%;
    color: var(--muted);
    font-size: 18px;
    font-weight: 900;
    transform: translateY(-50%);
  }
  .profit-bridge-step.deduction::before {
    content: "−";
  }
  .profit-bridge-step.net::before {
    content: "=";
  }
  .performance-head {
    grid-template-columns: minmax(0, 1fr) 64px 70px;
  }
  #skuPerformance .data-row {
    grid-template-columns: minmax(0, 1fr) 64px 70px;
  }
  #view-dashboard > .metrics,
  .metrics,
  .metrics.quad,
  .metrics.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric {
    min-height: 78px;
    padding: 10px;
  }
  .metric strong {
    font-size: 18px;
  }
  .section-intro {
    align-items: center;
  }
  .section-intro .inline-actions {
    gap: 5px;
  }
  .product-compact-row {
    grid-template-columns: minmax(0, 1fr) 72px auto auto;
    gap: 7px;
    min-height: 54px;
    padding: 8px 9px;
  }
  .product-compact-row .compact-value + .compact-value {
    display: none;
  }
  .product-identity small {
    display: none;
  }
  .product-compact-row .pill {
    max-width: 45px;
    overflow: hidden;
  }
  .order-card .main small,
  .data-row .main small {
    max-width: 78vw;
  }
  .quick-actions button {
    padding: 8px 10px;
  }
}

/* v3 ordering overrides */
.sets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.product-compact-row {
  grid-template-columns: minmax(220px, 1fr) 90px auto auto auto;
  min-height: 54px;
  padding: 7px 11px;
}
.product-identity.open-set {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.product-identity small {
  display: block;
}
dialog:has(.set-overview) {
  width: min(720px, calc(100vw - 28px));
}
.set-overview {
  width: auto;
}
@media (max-width: 760px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .app-brand {
    flex: 0 0 auto;
  }
  .top-actions {
    width: auto;
    margin: 0;
    flex: 0 1 auto;
    justify-content: flex-end;
  }
  .product-compact-row {
    grid-template-columns: minmax(0, 1fr) 65px auto auto;
  }
  .product-compact-row > .pill {
    display: none;
  }
  .product-identity small {
    display: block;
  }
}

@media (max-width: 760px) {
  .app-brand div {
    display: none;
  }
}
