.df-product-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.df-product-controls button, .df-flow-controls button, .df-product-dialog-head button { min-height: 44px; padding: 0.6rem 1rem; border: 1px solid var(--df-line); background: #101f2c; color: var(--df-text); border-radius: 9px; cursor: pointer; }
.df-product-controls button[aria-selected="true"] { color: #0a2630; background: var(--df-accent-1); border-color: var(--df-accent-1); }
.df-product-frame { margin: 0; border: 1px solid #43616c; border-radius: 20px; overflow: hidden; background: #101f2c; }
.df-product-image-wrap { display: grid; place-items: center; padding: clamp(0.5rem, 2vw, 1.8rem); height: clamp(360px, 42vw, 680px); background: radial-gradient(ellipse at 50% 0, #1b3b48, #0c1924 70%); }
.df-product-image-wrap img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 12px; }
.df-product-image-wrap picture { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.df-product-frame figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--df-line); padding: 1rem 1.5rem; }
.df-product-frame figcaption p { margin: 0; color: var(--df-muted); font-size: 0.75rem; }
.df-product-frame figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: var(--df-accent-1); font-size: 0.8rem; text-underline-offset: 4px; padding-block: 0.5rem; }
.df-product-dialog { width: min(1280px, calc(100% - 2rem)); max-width: calc(100% - 2rem); max-height: calc(100dvh - 3rem); margin: auto; padding: 1.25rem; border: 1px solid #547b86; border-radius: 16px; background: #101f2c; color: var(--df-text); }
.df-product-dialog:not([open]) { display: none; }
.df-product-dialog::backdrop { background: rgba(3, 10, 16, 0.88); }
.df-product-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.df-product-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.df-product-dialog img { width: 100%; height: auto; border-radius: 10px; }
.df-product-dialog-image { overflow: auto; max-width: 100%; overscroll-behavior: contain; }
.df-product-dialog > p { color: var(--df-muted); font-size: 0.75rem; }

.df-flow { margin-bottom: 3.5rem; padding: clamp(1rem, 2.6vw, 2rem); border: 1px solid #456772; border-radius: 22px; background: linear-gradient(145deg, #142e39, #0d1c28 70%); min-width: 0; }
.df-flow-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.df-flow-heading h3 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); letter-spacing: -0.035em; line-height: 1.3; margin: 0; }
.df-flow-heading .df-section-kicker { color: var(--df-accent-1); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.65rem; margin: 0 0 0.65rem; }
.df-flow-intro { max-width: 65ch; color: var(--df-muted); font-size: 0.83rem; line-height: 1.8; margin: 0.9rem 0 1.5rem; }
.df-flow-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.2rem; }
.df-flow-tabs button { display: flex; align-items: center; gap: 0.65rem; padding: 0.85rem; min-height: 52px; border: 1px solid var(--df-line); border-radius: 10px; color: #c4d1d8; background: #0c1a26; text-align: start; cursor: pointer; font-size: 0.78rem; }
.df-flow-tabs button > span:first-child { color: #86aaa9; font-size: 0.67rem; }
.df-flow-tabs button[aria-selected="true"] { background: #22413f; color: #ceeee3; border-color: #94c9b9; }
.df-flow-tabs button[aria-selected="true"] > span:first-child { color: #a3e4cf; }
.df-flow-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding: 1.4rem; min-width: 0; border: 1px solid var(--df-line); border-radius: 14px; background: rgba(8, 21, 31, 0.85); margin-top: 1rem; }
.df-flow.is-ready .df-flow-panel { min-height: 350px; }
.df-flow-panel > * { min-width: 0; }
.df-flow-explanation h4 { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; color: var(--df-text); margin: 0 0 0.8rem; letter-spacing: -0.03em; }
.df-flow-explanation > p { color: var(--df-muted); font-size: 0.83rem; line-height: 1.85; margin: 0; }
.df-flow-object { padding: 1.7rem; border: 1px solid #496c78; border-radius: 12px; background: #142b3a; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15); position: relative; }
.df-flow-object h5 { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; letter-spacing: -0.025em; margin: 0.7rem 0; color: var(--df-text); }
.df-flow-object p { color: #c0cfd7; font-size: 0.78rem; line-height: 1.8; margin: 0.45rem 0; overflow-wrap: anywhere; }
.df-flow-object .df-flow-object-kicker { color: #9bc9c2; letter-spacing: 0.05em; font-size: 0.65rem; }
.df-flow-object-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #63847a; background: #24433e; color: #bce8d7; font-family: "Space Grotesk", sans-serif; border-radius: 12px; font-size: 1.2rem; }
.df-flow-attachment { display: flex; align-items: center; gap: 0.7rem; border-top: 1px solid var(--df-line); padding-top: 1rem; margin-top: 1.5rem; color: #c2d8e0; font-size: 0.75rem; }
.df-flow-attachment > span:first-child { padding: 0.25rem 0.4rem; color: #efd4b6; background: #493c33; border-radius: 4px; font-size: 0.65rem; }
.df-flow-document dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.df-flow-document dt { color: #afc6d0; font-size: 0.66rem; }
.df-flow-document dd { font-family: "Space Grotesk", sans-serif; margin: 0.4rem 0 0; color: #f1f4ee; font-size: 1rem; font-variant-numeric: tabular-nums; }
.df-flow-status { display: inline-block; border: 1px solid #826d4a; border-radius: 6px; padding: 0.3rem 0.6rem; color: #f3d2a0; background: #403528; font-size: 0.7rem; }
.df-flow-status.is-paid { color: #beeada; background: #214137; border-color: #579682; }
.df-flow-report { padding: 1.2rem; }
#df-flow-report-preview { overflow-x: auto; max-width: 100%; margin-top: 1.1rem; }
#df-flow-report-preview table { width: 100%; border-collapse: collapse; font-size: 0.67rem; }
#df-flow-report-preview th, #df-flow-report-preview td { padding: 0.6rem; border-bottom: 1px solid #35515e; text-align: start; vertical-align: top; white-space: nowrap; }
#df-flow-report-preview th { color: #a9d6ca; font-weight: 500; }
#df-flow-report-preview td { color: #d0dee4; }
.df-flow-fields { margin: 1.1rem 0; padding: 0.7rem 0; border: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.df-flow-fields legend { color: #c3d3db; font-size: 0.72rem; padding: 0; margin-bottom: 0.3rem; }
.df-flow-fields label { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-size: 0.71rem; color: #c3d3db; }
.df-flow-fields input { accent-color: #a3e4cf; width: 16px; height: 16px; }
.df-flow-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.df-flow-controls button { font-size: 0.74rem; }
.df-flow-controls button[aria-pressed="true"] { color: #c1eadc; background: #26483f; border-color: #73ab96; }
.df-flow button:disabled { opacity: 0.5; cursor: default; }
.df-flow-notice { margin: 1rem 0 0; color: #b4c6d0; font-size: 0.67rem; line-height: 1.7; }
@keyframes df-flow-object-enter { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: no-preference) { .df-flow.is-ready .df-flow-panel.is-active .df-flow-object { animation: df-flow-object-enter 0.45s ease both; } }
@media (max-width: 760px) {
  .df-product-image-wrap { height: 240px; padding: 0.7rem; }
  .df-product-frame figcaption { flex-direction: column; align-items: start; padding: 1rem; gap: 0.4rem; }
  .df-flow-panel { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; gap: 1.2rem; }
  .df-flow.is-ready .df-flow-panel { min-height: 0; }
  .df-flow-tabs { gap: 0.4rem; }
  .df-flow-tabs button { padding: 0.65rem 0.4rem; flex-direction: column; align-items: start; gap: 0.2rem; font-size: 0.7rem; }
  .df-flow-object { padding: 1.15rem; }
  .df-product-dialog-head { align-items: start; }
  .df-product-dialog-head h2 { font-size: 1rem; }
  .df-product-dialog-image img { min-width: 900px; max-width: none; }
}
@media (max-width: 380px) { .df-flow-tabs { grid-template-columns: 1fr 1fr; } .df-flow-document dl { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .df-flow-panel .df-flow-object { animation: none !important; } }
