.ai-order-preview{margin:22px 0 4px;border:1px solid rgba(37,74,58,.14);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,250,247,.96));box-shadow:0 18px 44px rgba(34,62,49,.08);overflow:hidden}.ai-order-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 14px}.ai-order-preview-title{display:flex;gap:12px;align-items:flex-start}.ai-order-preview-title>span{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#173f31;color:#fff;font-size:18px;flex:0 0 auto}.ai-order-preview-title strong{display:block;font-size:17px;color:#18372c}.ai-order-preview-title small{display:block;margin-top:4px;line-height:1.8;color:#68766f}.ai-order-preview-badge{white-space:nowrap;border:1px solid rgba(37,74,58,.12);background:#fff;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;color:#486357}.ai-preview-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 22px 14px;padding:5px;border-radius:16px;background:#eef3ef}.ai-preview-mode-switch button{border:0;border-radius:12px;background:transparent;padding:10px 12px;font:inherit;font-size:13px;font-weight:800;color:#607168;cursor:pointer}.ai-preview-mode-switch button.active{background:#fff;color:#173f31;box-shadow:0 4px 13px rgba(30,60,47,.09)}.ai-preview-note{display:block;margin:0 22px 16px}.ai-preview-note span{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:12px;font-weight:800;color:#3f554b}.ai-preview-note span small{font-weight:500;color:#89938e}.ai-preview-note textarea{width:100%;min-height:82px;resize:vertical;border:1px solid #dce5df;border-radius:14px;background:#fff;padding:12px 14px;font:inherit;font-size:13px;line-height:1.8;color:#243e33;outline:none}.ai-preview-note textarea:focus{border-color:#789786;box-shadow:0 0 0 3px rgba(49,102,77,.08)}.ai-preview-stage{position:relative;min-height:330px;margin:0 16px;border-radius:20px;overflow:hidden;background:radial-gradient(circle at 30% 20%,#fff 0,#eef3ef 54%,#e5ece7 100%);isolation:isolate}.ai-preview-stage img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;animation:aiPreviewReveal .36s ease both}.ai-preview-placeholder,.ai-preview-loading,.ai-preview-error{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:28px;color:#617269}.ai-preview-placeholder>div,.ai-preview-error>div{max-width:380px}.ai-preview-placeholder b{display:block;font-size:34px;color:#345c4a;margin-bottom:8px}.ai-preview-placeholder strong,.ai-preview-error strong{display:block;color:#203f33;font-size:15px;margin-bottom:6px}.ai-preview-placeholder small,.ai-preview-error small{display:block;line-height:1.85}.ai-preview-loading{background:linear-gradient(110deg,rgba(237,243,239,.88) 8%,rgba(255,255,255,.96) 18%,rgba(237,243,239,.88) 33%);background-size:220% 100%;animation:aiPreviewShimmer 1.35s linear infinite;backdrop-filter:blur(2px)}.ai-preview-loading[hidden],.ai-preview-placeholder[hidden],.ai-preview-error[hidden]{display:none}.ai-preview-loading>div{display:grid;place-items:center;gap:9px;padding:18px 24px;border-radius:18px;background:rgba(255,255,255,.84);box-shadow:0 10px 35px rgba(34,62,49,.1)}.ai-preview-spinner{width:29px;height:29px;border:3px solid rgba(29,71,53,.16);border-top-color:#1d4735;border-radius:50%;animation:aiPreviewSpin .8s linear infinite}.ai-preview-loading strong{font-size:14px;color:#1e4736}.ai-preview-loading small{font-size:11px;color:#708078}.ai-preview-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px 0;font-size:11px;color:#79867f}.ai-preview-status span.stale{color:#95693f}.ai-preview-actions{display:flex;align-items:center;gap:8px;padding:14px 22px 20px}.ai-preview-actions button{border:0;border-radius:13px;padding:10px 14px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.ai-preview-refresh{background:#173f31;color:#fff}.ai-preview-alt{background:#eef3ef;color:#294a3b}.ai-preview-actions button:disabled{opacity:.5;cursor:not-allowed}.ai-preview-history{display:flex;gap:8px;margin-inline-start:auto}.ai-preview-thumb{width:48px;height:38px;padding:0!important;overflow:hidden;border:2px solid transparent!important;background:#e9efeb!important}.ai-preview-thumb.active{border-color:#1f4b38!important}.ai-preview-thumb img{width:100%;height:100%;object-fit:cover}.ai-preview-disclaimer{padding:0 22px 19px;font-size:11px;line-height:1.7;color:#7b8882}.ai-preview-error button{margin-top:12px;border:0;border-radius:12px;padding:9px 13px;background:#fff;color:#284b3b;font:inherit;font-weight:800;box-shadow:0 4px 14px rgba(31,68,51,.1);cursor:pointer}@keyframes aiPreviewSpin{to{transform:rotate(360deg)}}@keyframes aiPreviewShimmer{to{background-position-x:-220%}}@keyframes aiPreviewReveal{from{opacity:.25;transform:scale(1.008)}to{opacity:1;transform:scale(1)}}
@media(min-width:681px){.ai-preview-stage{width:min(calc(100% - 32px),1040px);min-height:0;aspect-ratio:4/3;margin-inline:auto}.ai-preview-stage img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover}}
@media(max-width:680px){.ai-order-preview{margin:18px -2px 0;border-radius:20px}.ai-order-preview-head{padding:17px 16px 12px}.ai-order-preview-badge{display:none}.ai-preview-mode-switch{margin:0 16px 13px}.ai-preview-note{margin:0 16px 14px}.ai-preview-stage{min-height:260px;margin:0 10px;border-radius:17px}.ai-preview-actions{padding:12px 16px 17px;flex-wrap:wrap}.ai-preview-history{width:100%;margin:2px 0 0}.ai-preview-disclaimer{padding:0 16px 16px}.ai-preview-status{padding:10px 16px 0}}