.generator-page { padding: 0 0 72px; background: #f3f4f6; }

/* Keep the number-sheet and filter-panel balls independent from global ball restyling. */
.generator-page .number-band-1 { --ball-top: #ffc43d; --ball-bottom: #ffad0a; --ball-number: #5a4000; }
.generator-page .number-band-2 { --ball-top: #3479e7; --ball-bottom: #2765d3; --ball-number: #fff; }
.generator-page .number-band-3 { --ball-top: #ff6c5f; --ball-bottom: #f45143; --ball-number: #fff; }
.generator-page .number-band-4 { --ball-top: #4c5358; --ball-bottom: #30363a; --ball-number: #fff; }
.generator-page .number-band-5 { --ball-top: #4c9853; --ball-bottom: #35843f; --ball-number: #fff; }

.generator-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.generator-hero-inner { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.generator-hero-copy h1 { margin: 0; font-size: 36px; line-height: 1.25; letter-spacing: -.05em; font-weight: 850; }
.generator-hero-copy > span { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.generator-studio { padding: 30px; background: #fff; }
.generator-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.generator-toolbar > div:first-child > p { margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.generator-toolbar h2 { margin: 0; font-size: 24px; letter-spacing: -.045em; }
.generator-toolbar h2 + span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.generator-toolbar > div:last-child { display: flex; gap: 8px; }
.preset-button, .reset-button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 15px; font-size: 11px; font-weight: 800; cursor: pointer; }
.preset-button { background: #242629; color: #fff; }
.reset-button { background: #f0f1f3; color: #656a72; }
.generator-toolbar-copy { min-width: 0; flex: 1; }
.selection-preview { margin-top: 17px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.selection-preview-row { min-height: 28px; display: flex; align-items: center; gap: 7px; }
.selection-preview-row > span { color: #4f565f; font-size: 12px; font-weight: 900; }
.selection-preview-row > strong { color: var(--green); font-size: 10px; }
.selection-preview-balls { display: flex; align-items: center; gap: 4px; }
.selection-ball { width: 25px; height: 25px; border: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--ball-top), var(--ball-bottom)); color: var(--ball-number); font-size: 8px; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; box-shadow: 0 4px 7px rgba(29,35,40,.17), 0 1px 2px rgba(29,35,40,.08); }

.selection-preview-balls em { margin-left: 3px; color: #858a91; font-size: 9px; font-style: normal; font-weight: 750; }
.selection-preview-balls small { color: #a0a4aa; font-size: 9px; }

.generator-filter-zone { position: relative; padding: 20px 0 24px; }
.generator-filter-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.generator-filter-chips > button { min-width: 0; min-height: 58px; border: 1px solid #e5e7ea; border-radius: 13px; background: #fff; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.generator-filter-chips > button:hover, .generator-filter-chips > button.active { border-color: #202124; box-shadow: 0 6px 16px rgba(24,27,32,.07); }
.generator-filter-chips > button.configured { background: #fff4f1; border-color: #ffc9c1; }
.generator-filter-chips span { color: #454a51; font-size: 11px; font-weight: 800; }
.generator-filter-chips strong { grid-column: 1; color: #90949a; font-size: 10px; font-weight: 650; }
.generator-filter-chips button.configured strong { color: var(--green); }
.generator-filter-chips i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #777c83; font-size: 13px; font-style: normal; }

.generator-filter-panel { position: absolute; z-index: 12; width: min(520px, 100%); max-height: 590px; overflow-y: auto; padding: 22px; border: 1px solid #e2e4e7; border-radius: 17px; background: #fff; box-shadow: 0 18px 42px rgba(28,32,38,.16); }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.filter-panel-head > div { display: grid; gap: 3px; }
.filter-panel-head span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.filter-panel-head strong { font-size: 17px; letter-spacing: -.03em; }
.filter-panel-head > button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f2f4; color: #666b72; font-size: 18px; cursor: pointer; }
.filter-panel-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.filter-panel-copy strong { font-size: 11px; line-height: 1.55; }
.filter-panel-copy span { flex: 0 0 auto; color: #999da3; font-size: 9px; }
.filter-number-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 7px; }
.filter-number-grid button { aspect-ratio: 1; border: 0; border-radius: 50%; background: #f1f2f4; color: #5c6168; font-size: 10px; font-weight: 800; cursor: pointer; }
.filter-number-grid button.selected { background: linear-gradient(160deg, var(--ball-top), var(--ball-bottom)); color: var(--ball-number); box-shadow: 0 5px 9px rgba(29,35,40,.17), 0 1px 3px rgba(29,35,40,.08); }
.filter-count-row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.filter-count-row > span { margin-right: auto; color: var(--muted); font-size: 10px; font-weight: 750; }
.filter-count-row button, .filter-option-grid button { border: 0; border-radius: 8px; background: #f1f2f4; padding: 9px 12px; color: #5e636a; font-size: 10px; font-weight: 750; cursor: pointer; }
.filter-count-row button.active, .filter-option-grid button.active { background: #242629; color: #fff; }
.filter-description { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.filter-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.filter-option-grid button { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 4px; line-height: 1.25; }
.filter-option-grid button small { color: #f45140; font-size: 8px; font-weight: 900; white-space: nowrap; }
.filter-option-grid button.active small { color: #ffb9b0; }
.filter-panel-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.filter-panel-actions button { min-width: 100px; min-height: 38px; border: 0; border-radius: 9px; background: #ffe6e2; color: #e0402f; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.filter-panel-actions button:hover { background: #ffd8d2; }

.generator-results-head { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.generator-results-head > div { display: flex; align-items: baseline; gap: 10px; }
.generator-results-head span { color: var(--muted); font-size: 11px; font-weight: 750; }
.generator-results-head strong { font-size: 17px; letter-spacing: -.035em; }
.generator-results-head p { margin: 0; color: #989ca2; font-size: 10px; }
.generator-result-grid { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 16px; scroll-snap-type: x proximity; scrollbar-color: #c6c9cd #eff0f2; scrollbar-width: thin; }
.generator-result-grid::-webkit-scrollbar { height: 10px; }
.generator-result-grid::-webkit-scrollbar-track { border-radius: 999px; background: #eff0f2; }
.generator-result-grid::-webkit-scrollbar-thumb { border: 2px solid #eff0f2; border-radius: 999px; background: #c6c9cd; }
.generator-result-card { flex: 0 0 292px; min-height: 618px; overflow: hidden; display: flex; flex-direction: column; border: 2px solid #ef6468; border-radius: 3px; background: #fffdfb; scroll-snap-align: start; }
.result-card-head { min-height: 66px; display: grid; grid-template-columns: 66px 1fr; border-bottom: 2px solid #ef6468; background: #ef6468; }
.result-card-head strong { display: grid; place-items: center; border-right: 2px solid #ef6468; background: #fffdfb; color: #ef6468; font-size: 27px; font-weight: 650; }
.result-card-head em { display: grid; place-items: center; color: #fff; font-size: 21px; font-style: normal; font-weight: 850; letter-spacing: -.025em; }
.result-number-grid { flex: 1; align-content: start; padding: 18px 13px 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px 5px; }
.result-number-grid > span { position: relative; min-width: 0; height: 43px; display: grid; place-items: center; color: #e95f64; font-size: 14px; font-weight: 750; }
.result-number-grid > span::before, .result-number-grid > span::after { content: ""; position: absolute; left: 3px; right: 3px; height: 7px; border-right: 2px solid #f3a2a5; border-left: 2px solid #f3a2a5; }
.result-number-grid > span::before { top: 3px; border-top: 2px solid #f3a2a5; }
.result-number-grid > span::after { bottom: 3px; border-bottom: 2px solid #f3a2a5; }
.result-number-grid > span.selected { width: 35px; height: 35px; place-self: center; border-radius: 50%; background: linear-gradient(160deg, var(--ball-top), var(--ball-bottom)); color: var(--ball-number); font-size: 14px; font-weight: 800; box-shadow: 0 6px 11px rgba(29,35,40,.17), 0 1px 3px rgba(29,35,40,.08); }
.result-number-grid > span.selected::before, .result-number-grid > span.selected::after { display: none; }
.result-card-summary { margin: 0 13px; padding: 13px 0; border-top: 1px solid #f1b6b8; display: grid; grid-template-columns: repeat(3, 1fr); }
.result-card-summary span { color: #9a8b8c; font-size: 9px; text-align: center; }
.result-card-summary strong { margin-left: 3px; color: #5f4b4c; font-size: 10px; }
.result-card-actions { padding: 0 13px 14px; }
.result-card-actions button { width: 100%; min-height: 38px; border: 0; border-radius: 5px; background: #ef6468; color: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }

.generator-action-bar { margin-top: 17px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 188px minmax(0, 1fr) 190px; gap: 12px; }
.set-stepper { height: 50px; display: grid; grid-template-columns: 45px 1fr 45px; overflow: hidden; border: 1px solid #dfe2e5; border-radius: 11px; }
.set-stepper button { border: 0; background: #fff; color: #747980; font-size: 18px; cursor: pointer; }
.set-stepper strong { border-left: 1px solid #e5e7e9; border-right: 1px solid #e5e7e9; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 15px; }
.set-stepper span { color: #898e94; font-size: 9px; }
.generate-button { border: 0; border-radius: 11px; background: #242629; color: #fff; font-size: 13px; font-weight: 850; cursor: pointer; }
.generate-button span { margin-right: 7px; color: #ffb600; }
.qr-create-button { border: 0; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 18px rgba(244,81,64,.17); }
.generator-disclaimer { margin: 13px 0 0; color: #989ca2; font-size: 9px; text-align: center; }

.ai-generator-studio { padding-top: 24px; }
.ai-generator-studio .generator-toolbar,
.ai-generator-studio .generator-filter-zone,
.ai-generator-studio .generator-filter-panel,
.ai-generator-studio .selection-preview,
.ai-generator-studio .generator-toolbar-actions { display: none !important; }
.ai-recommendation-banner { min-height: 148px; padding: 26px 28px; border: 1px solid #e5e8ec; border-radius: 17px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: center; gap: 36px; background: linear-gradient(135deg, #fff 0%, #fff7f4 100%); }
.ai-recommendation-copy p { margin: 0 0 8px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.ai-recommendation-copy h2 { margin: 0; color: #202226; font-size: 24px; line-height: 1.34; letter-spacing: -.045em; }
.ai-recommendation-copy h2 strong { color: #e94c3e; }
.ai-recommendation-copy > span { display: block; margin-top: 10px; color: #737780; font-size: 12px; line-height: 1.6; }
.ai-recommendation-action { display: grid; gap: 9px; }
.ai-analysis-list { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ai-analysis-list span { padding: 5px 8px; border-radius: 999px; background: #f2f4f6; color: #747981; font-size: 9px; font-weight: 800; }
.generate-button.ai-generate-button { min-height: 52px; border: 1px solid #d5ac42; background: #25272a; color: #fff; box-shadow: 0 0 0 0 rgba(213, 172, 66, 0), 0 9px 18px rgba(35, 38, 42, .13); animation: ai-gold-outline 2.5s ease-in-out infinite; }
.generate-button.ai-generate-button span { margin: 0; color: inherit; }
.generate-button.ai-generate-button i { margin-left: 9px; color: #f3d476; font-size: 16px; font-style: normal; }
.generate-button.ai-generate-button:hover { background: #34363a; color: #fff; box-shadow: 0 0 0 5px rgba(213, 172, 66, .13), 0 11px 22px rgba(35, 38, 42, .18); transform: translateY(-1px); }
.ai-recommendation-action small { color: #91969d; font-size: 10px; text-align: center; }
@keyframes ai-gold-outline { 50% { box-shadow: 0 0 0 4px rgba(213, 172, 66, .1), 0 9px 18px rgba(35, 38, 42, .13); } }

.ai-app-download-overlay { position: fixed; z-index: 1002; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(18, 20, 24, .6); backdrop-filter: blur(6px); }
.ai-app-download-dialog { position: relative; width: min(520px, calc(100vw - 56px)); padding: 38px; border: 1px solid #e7e9ec; border-radius: 24px; background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .3); }
.ai-app-download-dialog > p { margin: 0 0 11px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.ai-app-download-dialog h2 { margin: 0; color: #242629; font-size: 29px; line-height: 1.32; letter-spacing: -.055em; }
.ai-app-download-dialog h2 strong { color: var(--green); }
.ai-app-download-dialog > span { display: block; margin: 14px 0 25px; color: #737780; font-size: 14px; line-height: 1.65; }
.ai-app-download-close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f1f3; color: #646970; font-size: 22px; line-height: 1; cursor: pointer; }
.ai-app-store-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-app-store-links a { min-height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 9px; background: #242629; color: #fff; font-size: 13px; font-weight: 850; transition: transform .16s ease, background .16s ease; }
.ai-app-store-links a:first-child img { filter: invert(1); mix-blend-mode: screen; }
.ai-app-store-links a:last-child { border: 1px solid #e3e6ea; background: #fff; color: #34383f; box-shadow: 0 5px 13px rgba(35,39,44,.05); }
.ai-app-store-links a:last-child img { mix-blend-mode: multiply; }
.ai-app-store-links a:hover { transform: translateY(-1px); }
.ai-app-store-links img { display: block; width: 22px; height: 22px; object-fit: contain; }

.number-qr-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(20,22,25,.58); backdrop-filter: blur(5px); }
.number-qr-modal { width: min(820px, calc(100vw - 56px)); max-height: calc(100dvh - 56px); overflow-y: auto; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.number-qr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.number-qr-head span { display: block; margin-bottom: 6px; color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.number-qr-head h2 { margin: 0; color: #202226; font-size: 22px; letter-spacing: -.045em; }
.number-qr-head > button { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f1f3; color: #636870; font-size: 19px; cursor: pointer; }
.number-qr-copy { margin: 10px 0 20px; color: #777b82; font-size: 11px; line-height: 1.65; }
.number-qr-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: center; }
.number-qr-image-wrap { padding: 12px; border-radius: 16px; background: #f5f5f3; }
.number-qr-image-wrap img { display: block; width: 100%; height: auto; border-radius: 10px; }
.number-qr-set-list { display: grid; gap: 8px; }
.number-qr-set-list > div { min-height: 48px; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 13px; border-radius: 10px; background: #f7f7f5; }
.number-qr-set-list span { color: #969aa0; font-size: 9px; font-weight: 750; }
.number-qr-set-list strong { overflow: hidden; color: #363a3f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.number-qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.number-qr-actions button { min-height: 44px; border: 0; border-radius: 10px; background: #f0f1f3; color: #62676d; font-size: 11px; font-weight: 850; cursor: pointer; }
.number-qr-actions button:last-child { background: #242629; color: #fff; }
.number-qr-note { margin: 12px 0 0; color: #9a9da3; font-size: 9px; line-height: 1.55; text-align: center; }

.number-ticket-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px; background: linear-gradient(145deg, #fff8f3 0%, #ffe7df 100%); }
.number-ticket-card { width: min(100%, 470px); padding: 28px; border-radius: 24px; background: #fff; box-shadow: 0 22px 58px rgba(70,37,28,.13); }
.number-ticket-logo { display: block; width: 142px; height: auto; margin-bottom: 30px; }
.number-ticket-label { margin: 0 0 7px; color: #f45140; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.number-ticket-title { margin: 0; color: #202226; font-size: clamp(27px, 7vw, 36px); line-height: 1.28; letter-spacing: -.055em; }
.number-ticket-status { margin: 13px 0 22px; color: #747981; font-size: 13px; line-height: 1.6; }
.number-ticket-saved { margin: -7px 0 18px; padding: 14px 15px; border-radius: 12px; display: flex; align-items: center; gap: 12px; background: #eef8f2; }
.number-ticket-saved > span { flex: 0 0 auto; padding: 6px 8px; border-radius: 7px; background: #2f8f5b; color: #fff; font-size: 10px; font-weight: 900; }
.number-ticket-saved > div { min-width: 0; display: grid; gap: 3px; }
.number-ticket-saved strong { color: #234c35; font-size: 13px; letter-spacing: -.02em; }
.number-ticket-saved small { color: #668071; font-size: 10px; line-height: 1.45; }
.number-ticket-preview { overflow: hidden; border-radius: 16px; background: #fff3ee; box-shadow: inset 0 0 0 1px #eee8e5; }
.number-ticket-preview img { display: block; width: 100%; height: auto; }
.number-ticket-save, .number-ticket-back { width: 100%; min-height: 52px; margin-top: 16px; border: 0; border-radius: 12px; display: grid; place-items: center; background: #f45140; color: #fff; font-size: 14px; font-weight: 850; text-decoration: none; cursor: pointer; }
.number-ticket-help { margin: 12px 4px 0; color: #8d9197; font-size: 11px; line-height: 1.65; text-align: center; }
.number-ticket-loading { height: 140px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.number-ticket-loading span { width: 9px; height: 9px; border-radius: 50%; background: #f45140; animation: ticket-loading .9s ease-in-out infinite alternate; }
.number-ticket-loading span:nth-child(2) { animation-delay: .18s; }
.number-ticket-loading span:nth-child(3) { animation-delay: .36s; }
@keyframes ticket-loading { to { opacity: .25; transform: translateY(-6px); } }

.number-ticket-modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 36px; background: rgba(19, 22, 26, .58); backdrop-filter: blur(6px); }
.number-ticket-modal { width: min(1040px, calc(100vw - 72px)); max-height: calc(100dvh - 72px); overflow-y: auto; border-radius: 26px; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.number-ticket-modal .number-ticket-card { position: relative; width: 100%; min-height: 590px; padding: 38px; display: grid; grid-template-columns: minmax(255px, .78fr) minmax(0, 1.22fr); grid-template-areas: "intro preview" "save preview" "help preview"; column-gap: 36px; grid-template-rows: 1fr auto auto; border-radius: 26px; box-shadow: none; }
.number-ticket-modal .number-ticket-intro { grid-area: intro; align-self: center; }
.number-ticket-modal .number-ticket-logo { width: 154px; margin-bottom: 24px; }
.number-ticket-modal .number-ticket-title { font-size: 34px; }
.number-ticket-modal .number-ticket-status { max-width: 270px; margin-bottom: 0; font-size: 14px; }
.number-ticket-modal-close { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f2f4; color: #646970; font-size: 23px; line-height: 1; cursor: pointer; }
.number-ticket-modal-close:hover { background: #e7e9ec; color: #202226; }
.number-ticket-modal .number-ticket-preview { grid-area: preview; min-height: 0; padding: 16px; display: grid; place-items: center; border-radius: 19px; background: #fff6f2; }
.number-ticket-modal .number-ticket-preview img { width: auto; max-width: 100%; max-height: min(560px, calc(100dvh - 148px)); object-fit: contain; }
.number-ticket-modal .number-ticket-loading { grid-area: preview; height: 100%; min-height: 280px; border-radius: 19px; background: #fff6f2; }
.number-ticket-modal .number-ticket-save { grid-area: save; margin-top: 26px; }
.number-ticket-modal .number-ticket-help { grid-area: help; margin: 11px 0 0; text-align: left; }

@media (max-width: 1220px) {
  .generator-filter-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .generator-studio { padding: 25px; }
  .generator-result-grid { gap: 10px; }
  .result-number-grid { padding: 18px 13px 14px; gap: 9px 5px; }
}

@media (max-width: 760px) {
  .number-qr-overlay { padding: 15px; }
  .number-qr-modal { width: calc(100vw - 30px); max-height: calc(100dvh - 30px); padding: 22px; }
  .number-qr-body { grid-template-columns: 1fr; }
  .number-qr-image-wrap { width: min(100%, 280px); margin: 0 auto; }
  .number-ticket-card { padding: 22px; border-radius: 20px; }
  .number-ticket-modal-backdrop { padding: 16px; }
  .number-ticket-modal { width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
  .number-ticket-modal .number-ticket-card { min-height: 0; padding: 24px; display: block; border-radius: 20px; }
  .number-ticket-modal .number-ticket-preview { margin-top: 20px; }
  .number-ticket-modal .number-ticket-save { margin-top: 16px; }
  .number-ticket-modal .number-ticket-help { text-align: center; }
  .ai-recommendation-banner { grid-template-columns: 1fr; gap: 18px; }
  .ai-analysis-list { justify-content: flex-start; }
  .ai-app-download-dialog { width: calc(100vw - 32px); padding: 30px 24px 24px; }
  .ai-app-store-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .generate-button.ai-generate-button { animation: none; }
}

.generator-hero-inner { justify-content: flex-start; }
.generator-toolbar-compact { position: relative; align-items: center; padding-bottom: 16px; }
.generator-toolbar-compact .selection-preview { margin-top: 0; }
.generator-toolbar-actions { display: flex; gap: 8px; }

.generator-workspace {
  margin-top: 34px;
  overflow: visible;
  border: 1px solid #dfe3e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(39, 43, 49, .07);
}
.generator-workspace .generator-studio {
  margin-top: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: none;
}
.generation-mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.generation-mode-switch::after {
  content: "";
  min-height: 84px;
  border-bottom: 1px solid #dfe3e8;
}
.generation-mode-switch > button {
  position: relative;
  min-height: 84px;
  border: 0;
  border-right: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: #f7f8f9;
  color: #20242a;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.generation-mode-switch > button:first-child {
  border-radius: 23px 0 0 0;
}
.generation-mode-switch > button:hover {
  background: #fffaf8;
}
.generation-mode-switch > button.active {
  border-bottom-color: #fff;
  background: #fff;
  box-shadow: inset 0 3px 0 #f45140;
}
.generation-mode-switch strong {
  font-size: 15px;
  letter-spacing: -.03em;
}
.generation-mode-switch > button.active strong { color: #e94737; }
.generation-mode-switch span {
  color: #8b929b;
  font-size: 10px;
}
