/* Illustrator import: the «Ai» badge, the home button, the drop veil, the progress dialog. */
.ai-badge { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #330000; color: #ff9a00; font: 800 11px/1 'Helvetica Neue', Arial, sans-serif; letter-spacing: -.02em; direction: ltr; box-shadow: inset 0 0 0 1.5px #ff9a00; }
.ai-open-button { display: inline-flex; align-items: center; gap: 8px; }

.ai-drop-veil { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: #0b1430b8; backdrop-filter: blur(3px); pointer-events: none; }
.ai-drop-veil > div { display: grid; justify-items: center; gap: 10px; padding: 34px 44px; border: 2px dashed #ff9a00; border-radius: 22px; background: #10182cde; color: #fff; text-align: center; }
.ai-drop-veil .ai-badge { width: 54px; height: 54px; border-radius: 13px; font-size: 24px; box-shadow: inset 0 0 0 2.5px #ff9a00; }
.ai-drop-veil b { font-size: 18px; }
.ai-drop-veil small { color: #c3cbd9; font-size: 12.5px; }

.ai-import-dialog { width: min(420px, calc(100vw - 32px)); padding: 28px 26px 22px; border: 0; border-radius: 22px; box-shadow: 0 30px 90px #0f1d4a55; text-align: center; color: #1d2a32; background: #fff; font-family: inherit; }
.ai-import-dialog::backdrop { background: #0b1430a6; backdrop-filter: blur(3px); }
.ai-import-dialog h2 { margin: 16px 0 2px; font-size: 18px; font-weight: 800; }
.ai-import-name { margin: 0 0 16px; font-size: 12px; color: #6f7f89; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-import-bar { height: 8px; border-radius: 8px; background: #eef2f5; overflow: hidden; }
.ai-import-bar i { display: block; height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, #0200fc, #0290fe 60%, #01cbfb); transition: width .25s; }
.ai-import-stage { min-height: 20px; margin: 10px 0 0; font-size: 12.5px; color: #4b5c66; }
.ai-import-note { margin: 12px auto 0; max-width: 32ch; font-size: 11.5px; line-height: 1.7; color: #8b99a2; }
.ai-import-dialog.is-error .ai-import-bar { display: none; }
.ai-import-dialog.is-error .ai-import-stage { color: #c0392b; line-height: 1.8; }
.ai-import-dialog .pz-cta { margin-top: 16px; height: 42px; padding: 0 26px; border: 0; border-radius: 11px; background: #0290fe; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* An «Ai» page that comes apart into Preznta layers. */
.ai-import-art { display: flex; align-items: center; justify-content: center; gap: 14px; height: 70px; direction: ltr; }
.ai-import-file { width: 52px; height: 62px; display: grid; place-items: center; border-radius: 10px; background: #330000; color: #ff9a00; font: 800 22px/1 'Helvetica Neue', Arial, sans-serif; box-shadow: inset 0 0 0 2.5px #ff9a00, 0 8px 18px #33000033; }
.ai-import-flow { display: flex; gap: 5px; }
.ai-import-flow i { width: 6px; height: 6px; border-radius: 50%; background: #0290fe; animation: ai-flow 1.1s infinite ease-in-out; }
.ai-import-flow i:nth-child(2) { animation-delay: .15s; } .ai-import-flow i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-flow { 0%, 100% { opacity: .2; transform: translateX(-3px); } 50% { opacity: 1; transform: translateX(3px); } }
.ai-import-layers { position: relative; width: 58px; height: 62px; }
.ai-import-layers i { position: absolute; left: 0; width: 46px; height: 30px; border-radius: 7px; animation: ai-layer 2.2s infinite ease-in-out; }
.ai-import-layers i:nth-child(1) { top: 0; background: #9afffe; }
.ai-import-layers i:nth-child(2) { top: 14px; left: 6px; background: linear-gradient(135deg, #01cbfb, #0290fe); animation-delay: .2s; }
.ai-import-layers i:nth-child(3) { top: 28px; left: 12px; background: #0200fc; animation-delay: .4s; }
@keyframes ai-layer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ai-import-flow i, .ai-import-layers i { animation: none; } }

/* «قوالب المقاس»: import card and the editable mark on organization designs. */
.dm-ai-import { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border: 1px dashed #c8d3dc; border-radius: 14px; background: #fafcfd; color: #1d2a32; text-align: start; font: inherit; cursor: pointer; }
.dm-ai-import:hover { border-color: #ff9a00; background: #fffaf2; }
.dm-ai-import .ai-badge { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.dm-ai-import span:last-child { display: grid; gap: 2px; }
.dm-ai-import b { font-size: 13px; }
.dm-ai-import small { font-size: 11px; color: #6f7f89; line-height: 1.5; }
.dm-mini { position: relative; }
.dm-editable { position: absolute; inset-inline-start: 6px; bottom: 6px; padding: 2px 7px; border-radius: 99px; background: #0b1430cc; color: #fff; font-style: normal; font-size: 9.5px; font-weight: 700; }
.dm-ai-hint { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff8ee; color: #5b4a33; font-size: 11.5px; line-height: 1.7; }
.dm-ai-hint .ai-badge { margin-top: 2px; }
.dm-designer-form.dm-auto-size [data-pick] { display: none; }
.dm-designer-form.dm-auto-size .dm-ai-hint { background: #eef7ff; color: #1d3a55; }

/* An imported text shows its exact glyphs until edited. */
.ai-outline-content { line-height: 0; }
.ai-outline-content img { user-select: none; -webkit-user-drag: none; }

html[data-editor-theme="midnight"] .dm-ai-import { background: #172131; border-color: #34445a; color: #e8eef4; }

/* «الطبقات» */
.lp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.lp-hint { margin: 0; font-size: 11.5px; line-height: 1.7; color: #6f7f89; }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.lp-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 6px; border: 1px solid transparent; border-radius: 11px; background: #fff; cursor: pointer; user-select: none; }
.lp-row:hover { background: #f4f7fa; }
.lp-row.is-selected { background: var(--brand-primary-tint, #eaf4ff); border-color: var(--brand-primary, #0290fe); }
.lp-row.is-hidden .lp-thumb, .lp-row.is-hidden .lp-name { opacity: .45; }
.lp-row.is-dragging { opacity: .4; }
.lp-row.drop-before::before, .lp-row.drop-after::after { content: ''; position: absolute; inset-inline: 6px; height: 2px; border-radius: 2px; background: var(--brand-primary, #0290fe); }
.lp-row.drop-before::before { top: -3px; } .lp-row.drop-after::after { bottom: -3px; }
.lp-grip { display: grid; color: #b4c0c8; cursor: grab; } .lp-grip svg { width: 14px; height: 14px; }
.lp-thumb { flex: none; width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #eef2f5 repeating-conic-gradient(#e3e8ec 0 25%, #f4f6f8 0 50%) 0 0 / 10px 10px; color: #6f7f89; }
.lp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-thumb svg { width: 16px; height: 16px; }
.lp-aa { font-weight: 800; font-size: 14px; }
.lp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #1d2a32; }
.lp-rename { flex: 1; min-width: 0; height: 28px; padding: 0 8px; border: 1px solid var(--brand-primary, #0290fe); border-radius: 7px; font: inherit; font-size: 12px; }
.lp-tag { flex: none; padding: 2px 7px; border-radius: 99px; background: #eef2f5; color: #4b5c66; font-size: 10px; font-weight: 700; }
.lp-open { flex: none; height: 26px; padding: 0 10px; border: 1px solid #dfe5ea; border-radius: 8px; background: #fff; color: #1d2a32; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.lp-open:hover { border-color: var(--brand-primary, #0290fe); color: var(--brand-primary, #0290fe); }
.lp-eye { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #6f7f89; cursor: pointer; }
.lp-eye:hover { background: #eef2f5; } .lp-eye svg { width: 15px; height: 15px; }
.lp-empty { font-size: 12px; color: #8b99a2; }
.ai-font-note { display: flex; gap: 8px; align-items: flex-start; max-width: 38ch; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #f4f7f9; color: #6f7f88; text-align: start; }
.ai-font-note svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--brand-primary, #0f7a6e); }
.pptx-badge { background: #c43e1c; color: #fff; box-shadow: inset 0 0 0 1.5px #e86b4a; font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }
.ai-import-dialog.is-pptx .ai-import-file { background: #c43e1c; color: #fff; box-shadow: inset 0 0 0 2px #e86b4a, 0 10px 24px #c43e1c33; }
.ai-drop-badges { display: flex; gap: 12px; justify-content: center; direction: ltr; }
