/* PDF Suite — واجهة أدوات PDF (تُحمَّل في صفحات أدوات PDF فقط) */
.pdx { --pc: var(--c, #e5322d); position: relative; min-height: 340px; }
.pdx [hidden] { display: none !important; }
.pdx-dragover::after { content: ""; position: absolute; inset: 0; border: 3px dashed var(--pc); border-radius: inherit; background: color-mix(in srgb, var(--pc) 8%, transparent); pointer-events: none; z-index: 5; }

/* منطقة الاختيار */
.pdx-drop { display: grid; place-items: center; min-height: 340px; padding: 40px 16px; text-align: center; border-radius: 16px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--pc) 7%, transparent), transparent 70%); }
.pdx-drop-in { display: grid; justify-items: center; gap: 12px; width: 100%; max-width: 520px; }
.pdx-pick { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(360px, 100%); padding: 22px 34px; border: 0; border-radius: 14px; background: var(--pc); color: #fff; font: inherit; font-size: 1.25rem; font-weight: 800; cursor: pointer; box-shadow: 0 14px 30px color-mix(in srgb, var(--pc) 34%, transparent); transition: transform .15s, box-shadow .2s, filter .2s; }
.pdx-pick:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 18px 36px color-mix(in srgb, var(--pc) 42%, transparent); }
.pdx-pick:active { transform: translateY(1px); }
.pdx-or { margin: 0; color: var(--muted); font-size: .95rem; }
.pdx-cam { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.pdx-priv { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .82rem; color: var(--ok, #059669); }

/* مساحة العمل */
.pdx-work { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface-2); min-height: 460px; }
.pdx-main { min-width: 0; display: flex; flex-direction: column; }
.pdx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.pdx-bar-info { margin-inline-start: auto; color: var(--muted); font-size: .85rem; font-weight: 600; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.pdx-btn:hover { border-color: var(--pc); color: var(--pc); }
.pdx-stage { flex: 1; padding: 22px; overflow: auto; max-height: 78vh; }
.pdx-side { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border-inline-start: 1px solid var(--border); }
.pdx-side-t { margin: 0 0 4px; font-size: 1.1rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.pdx-opts { display: grid; gap: 12px; align-content: start; flex: 1; }
.pdx-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 10px; padding: 16px 18px; border: 0; border-radius: 12px; background: var(--pc); color: #fff; font: inherit; font-size: 1.08rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px color-mix(in srgb, var(--pc) 30%, transparent); transition: filter .2s, transform .15s; }
.pdx-go:hover { filter: brightness(1.07); }
.pdx-go:active { transform: translateY(1px); }
.pdx-go.sm { width: auto; margin: 0; padding: 10px 22px; font-size: .95rem; }
[dir="rtl"] .pdx-go .ic, [dir="rtl"] .pdx-arrow .ic { transform: scaleX(-1); }
.pdx-msg { padding: 10px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; }
.pdx-msg.err { background: color-mix(in srgb, #dc2626 10%, transparent); color: #b91c1c; }
.pdx-msg.ok { background: color-mix(in srgb, #059669 12%, transparent); color: #047857; }
[data-theme="dark"] .pdx-msg.err { color: #fca5a5; } [data-theme="dark"] .pdx-msg.ok { color: #6ee7b7; }

/* البطاقات والمصغرات */
.pdx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; align-items: start; }
.pdx-pages { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px; }
.pdx-card { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: box-shadow .2s, border-color .2s, transform .2s; }
.pdx-card:hover { box-shadow: 0 10px 24px rgba(20, 22, 40, .12); }
.pdx-thumb { display: grid; place-items: center; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: transform .25s; }
.pdx-thumb::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--pc) 25%, transparent); border-top-color: var(--pc); animation: pdx-spin .8s linear infinite; }
.pdx-thumb:has(canvas)::before, .pdx-thumb:has(img)::before, .pdx-thumb:has(.pdx-fileic)::before, .pdx-thumb:has(.pdx-blank)::before, .pdx-thumb.err::before { display: none; }
.pdx-thumb canvas, .pdx-thumb img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
.pdx-thumb-c { width: 100%; height: auto; }
.pdx-thumb.img { background: var(--surface-2); }
.pdx-fileic { display: grid; justify-items: center; gap: 6px; color: var(--pc); }
.pdx-fileic b { font-size: .8rem; }
.pdx-card-n { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdx-card-m { font-size: .74rem; color: var(--muted); }
.pdx-card-a { position: absolute; top: 4px; inset-inline-end: 4px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.pdx-card:hover .pdx-card-a, .pdx-card:focus-within .pdx-card-a { opacity: 1; }
@media (hover: none) { .pdx-card-a { opacity: 1; } }
.pdx-card-a button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: #22242f; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
.pdx-card-a button:hover { background: var(--pc); color: #fff; }
.pdx-pg-n { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.pdx-pg-n b { color: var(--pc); }
.pdx-pages.selectable .pdx-card { cursor: pointer; }
.pdx-chk { position: absolute; top: 8px; inset-inline-start: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; color: transparent; }
.pdx-pg.sel { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); }
.pdx-pg.sel .pdx-chk { background: var(--pc); border-color: var(--pc); color: #fff; }
.pdx-blank { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #fff, #fff 8px, #f4f4f7 8px, #f4f4f7 16px); }
.pdx-ghost { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: .92; transform-origin: 0 0; box-shadow: 0 20px 40px rgba(0,0,0,.25) !important; rotate: 2deg; }
.pdx-placeholder { opacity: .35; outline: 2px dashed var(--pc); outline-offset: 2px; }

/* العارض وطبقة العناصر */
.pdx-viewer { display: grid; justify-items: center; gap: 22px; }
.pdx-vpage { position: relative; max-width: 100%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); border-radius: 2px; }
.pdx-vcanvas, .pdx-vc { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdx-layer { position: absolute; inset: 0; touch-action: pan-y; }
.mode-rect .pdx-layer { cursor: crosshair; touch-action: none; }
.pdx-vnum { position: absolute; bottom: -20px; inset-inline-start: 50%; translate: -50% 0; font-size: .74rem; color: var(--muted); font-weight: 600; }
[dir="rtl"] .pdx-vnum { translate: 50% 0; }
.pdx-item { position: absolute; box-sizing: border-box; cursor: move; touch-action: none; outline: 1.5px dashed transparent; }
.pdx-item img { width: 100%; height: 100%; display: block; pointer-events: none; }
.pdx-item.on, .pdx-item:hover { outline-color: var(--pc); }
.pdx-item.t-redact { background: #000; }
.pdx-item.t-crop { outline: 2px solid var(--pc) !important; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .45); }
.pdx-x, .pdx-rs { position: absolute; display: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pc); color: #fff; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pdx-item.on .pdx-x, .pdx-item.on .pdx-rs { display: grid; }
.pdx-x { top: -11px; inset-inline-end: -11px; cursor: pointer; }
.pdx-rs { bottom: -9px; right: -9px; width: 18px; height: 18px; cursor: nwse-resize; border: 3px solid #fff; }

/* عناصر الخيارات */
.pdx-f { display: grid; gap: 6px; margin: 0; font-weight: 600; font-size: .88rem; }
.pdx-f > span { color: var(--text); }
.pdx-f small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.pdx-f input[type=text], .pdx-f input[type=number], .pdx-f input[type=password], .pdx-f select, .pdx-f textarea { width: 100%; padding: 9px 12px; border-radius: 10px; font-weight: 400; }
.pdx-f input[type=color] { width: 100%; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.pdx-f input[type=range] { width: 100%; accent-color: var(--pc); }
.pdx-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.pdx-seg button { flex: 1 1 auto; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pdx-seg button.on { background: var(--surface); color: var(--pc); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.pdx-rc { display: grid; gap: 8px; }
.pdx-rcard { position: relative; display: grid; gap: 2px; padding: 12px 14px; padding-inline-start: 40px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: border-color .15s, background .15s; }
.pdx-rcard input { position: absolute; inset-inline-start: 14px; top: 15px; accent-color: var(--pc); width: 16px; height: 16px; margin: 0; }
.pdx-rcard b { font-size: .92rem; }
.pdx-rcard small { color: var(--muted); font-size: .8rem; }
.pdx-rcard.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 6%, var(--surface)); }
.pdx-check { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 500; cursor: pointer; margin: 0; }
.pdx-check input { width: 17px; height: 17px; accent-color: var(--pc); margin: 0; flex-shrink: 0; }
.pdx-hint { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.pdx-hint .ic { vertical-align: -2px; }
.pdx-sub { margin: 4px 0 0; font-weight: 700; font-size: .86rem; }
.pdx-warn { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .82rem; background: color-mix(in srgb, #f59e0b 13%, transparent); color: #92400e; }
[data-theme="dark"] .pdx-warn { color: #fcd34d; }
.pdx-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pdx-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdx-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pdx-pos button { padding: 10px 0; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.pdx-pos button.on { background: var(--pc); border-color: var(--pc); color: #fff; }
.pdx-pw { display: flex; gap: 6px; }
.pdx-pw input { flex: 1; }
.pdx-pw button { flex-shrink: 0; width: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.pdx-meter { height: 5px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.pdx-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pdx-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.pdx-tool { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pdx-tool .ic { color: var(--pc); }
.pdx-tool:hover, .pdx-tool.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 7%, var(--surface)); }
.pdx-sigthumb { width: 100%; height: 70px; padding: 6px; border-radius: 10px; border: 1px dashed var(--border); background: #fff; cursor: pointer; }
.pdx-sigthumb img { max-height: 100%; max-width: 100%; margin: auto; }

/* المعالجة والنتيجة */
.pdx-busy { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(3px); text-align: center; }
.pdx-spin { width: 54px; height: 54px; border-radius: 50%; border: 5px solid color-mix(in srgb, var(--pc) 20%, transparent); border-top-color: var(--pc); animation: pdx-spin .9s linear infinite; }
.pdx-spin.sm { width: 30px; height: 30px; border-width: 3px; margin: 40px auto; }
@keyframes pdx-spin { to { transform: rotate(360deg); } }
.pdx-busy-t { margin: 0; font-weight: 700; font-size: 1.05rem; }
.pdx-prog { width: min(320px, 70vw); height: 8px; border-radius: 9px; background: color-mix(in srgb, var(--pc) 15%, transparent); overflow: hidden; }
.pdx-prog i { display: block; height: 100%; width: 0; background: var(--pc); border-radius: 9px; transition: width .25s; }
.pdx-done { padding: 34px 16px 20px; }
.pdx-done-in { display: grid; justify-items: center; gap: 14px; max-width: 760px; margin: 0 auto; text-align: center; }
.pdx-ok { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; animation: pdx-pop .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pdx-pop { from { transform: scale(.5); opacity: 0; } }
.pdx-done h3 { margin: 0; font-size: 1.6rem; }
.pdx-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.pdx-stats b { color: var(--text); }
.pdx-save { padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-weight: 800; }
.pdx-note { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.pdx-dl { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; width: min(380px, 100%); padding: 18px 30px; border: 0; border-radius: 14px; background: var(--pc); color: #fff; font: inherit; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 14px 30px color-mix(in srgb, var(--pc) 34%, transparent); }
.pdx-dl:hover { filter: brightness(1.06); }
.pdx-dl small { flex-basis: 100%; font-size: .78rem; font-weight: 500; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdx-list { list-style: none; margin: 0; padding: 0; width: min(520px, 100%); max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; text-align: start; }
.pdx-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: .86rem; }
.pdx-list li + li { border-top: 1px solid var(--border); }
.pdx-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdx-list small { color: var(--muted); }
.pdx-list button { border: 0; background: none; color: var(--pc); cursor: pointer; padding: 4px; }
.pdx-custom { width: 100%; }
.pdx-custom:empty { display: none; }
.pdx-done-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pdx-next { width: 100%; padding-top: 16px; border-top: 1px solid var(--border); }
.pdx-next p { margin: 0 0 10px; font-weight: 700; font-size: .9rem; }
.pdx-next div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pdx-next a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--text); font-size: .85rem; font-weight: 600; text-decoration: none; }
.pdx-next a:hover { border-color: var(--pc); color: var(--pc); }

/* معاينات خاصة */
.pdx-preview { display: grid; justify-items: center; gap: 8px; }
.pdx-preview canvas { max-width: 100%; height: auto; box-shadow: 0 2px 12px rgba(0,0,0,.14); background: #fff; }
.pdx-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 10px; color: var(--muted); text-align: center; }
.pdx-formlist { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.pdx-ff { display: grid; gap: 4px; font-size: .86rem; font-weight: 600; }
.pdx-ff input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pc); }
.pdx-doc-prev { display: grid; justify-items: center; }
.pdx-paper { width: min(760px, 100%); padding: 48px 52px; background: #fff; color: #111; box-shadow: 0 2px 12px rgba(0,0,0,.12); font-size: 14px; line-height: 1.6; overflow: auto; max-height: 70vh; }
.pdx-paper.wide { width: 100%; padding: 20px; }
.pdx-paper table { border-collapse: collapse; } .pdx-paper td, .pdx-paper th { border: 1px solid #ccc; padding: 3px 6px; font-size: 12px; }
.pdx-paper img { max-width: 100%; height: auto; }
.pdx-sheets { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.pdx-ocr { display: grid; gap: 8px; width: 100%; text-align: start; }
.pdx-ocr textarea { width: 100%; font: inherit; font-size: .92rem; line-height: 1.7; padding: 12px; border-radius: 12px; }
.pdx-diff { width: 100%; text-align: start; }
.pdx-diff-sum { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; font-weight: 700; }
.pdx-diff-sum .del { color: #b91c1c; } .pdx-diff-sum .ins { color: #15803d; }
.pdx-diff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdx-diff-cols h4 { margin: 0 0 6px; font-size: .86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdx-diff-t { max-height: 60vh; overflow: auto; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; line-height: 1.9; }
.pdx-diff-t del { background: #fee2e2; color: #991b1b; text-decoration: line-through; border-radius: 3px; }
.pdx-diff-t ins { background: #dcfce7; color: #166534; text-decoration: none; border-radius: 3px; }
.pdx-vdiff { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; width: 100%; }
.pdx-vd { margin: 0; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.pdx-vd.has { border-color: #fca5a5; }
.pdx-vd figcaption { font-size: .8rem; margin-bottom: 6px; color: var(--muted); } .pdx-vd figcaption b { color: #dc2626; }
.pdx-vd canvas { width: 100%; height: auto; display: block; }

/* نافذة التوقيع */
.pdx-modal, .pdx-toast { --pc: var(--c, #e5322d); }
.pdx-modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.pdx-modal-in { display: grid; gap: 14px; width: min(640px, 100%); max-height: 92vh; overflow: auto; padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.pdx-modal-h { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.pdx-modal-h button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.pdx-modal-f { display: flex; justify-content: flex-end; gap: 8px; }
.pdx-sp { display: grid; gap: 10px; }
.pdx-pad { width: 100%; aspect-ratio: 3 / 1; border-radius: 12px; border: 1.5px dashed var(--border); background: #fff; touch-action: none; cursor: crosshair; }
.pdx-colors { display: flex; gap: 8px; }
.pdx-colors button { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.pdx-colors button.on { box-shadow: 0 0 0 2px var(--pc); }
.pdx-sig-name { width: 100%; padding: 12px; border-radius: 10px; font-size: 1.1rem; }
.pdx-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdx-fonts button { padding: 14px 8px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; color: #111827; font-size: 1.7rem; line-height: 1.3; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pdx-fonts button.on { border-color: var(--pc); }
.pdx-printframe { position: fixed; width: 0; height: 0; border: 0; visibility: hidden; }
.pdx-toast { position: fixed; z-index: 9500; bottom: 24px; left: 50%; translate: -50% 20px; max-width: min(520px, 92vw); padding: 12px 18px; border-radius: 12px; background: #22242f; color: #fff; font-size: .9rem; font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.25); opacity: 0; transition: opacity .25s, translate .25s; }
.pdx-toast.show { opacity: 1; translate: -50% 0; }

/* الجوال */
@media (max-width: 900px) {
  .pdx-work { grid-template-columns: 1fr; }
  .pdx-side { border-inline-start: 0; border-top: 1px solid var(--border); }
  .pdx-go:not(.sm) { position: sticky; bottom: 10px; z-index: 4; }
  .pdx-stage { max-height: none; padding: 14px; }
  .pdx-diff-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pdx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pdx-pages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pdx-pick { font-size: 1.05rem; padding: 18px 16px; }
  .pdx-drop { padding: 28px 8px; min-height: 280px; }
  .pdx-paper { padding: 22px; }
  .pdx-bar-info { max-width: 100%; margin-inline-start: 0; flex-basis: 100%; }
}

/* ===================== استوديو الصور ===================== */
.st { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 520px; }
.st-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.st-tb { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.st-tb button { display: inline-grid; place-items: center; min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.st-tb button:hover { background: var(--surface-2); }
.st-tb button.on { background: var(--pc); color: #fff; }
.st-zoom { min-width: 48px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); direction: ltr; }
.st-info { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--muted); direction: ltr; }
.st-info b { color: var(--text); } .st-info em { font-style: normal; font-weight: 800; color: #15803d; }
.st-view { position: relative; flex: 1; min-height: 440px; max-height: 70vh; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #e9eaf0; padding: 16px; }
[data-theme="dark"] .st-view { background: #0b0e15; }
.st-view.scroll { overflow: auto; place-items: start; }
.st-view.pan, .st-view.pan * { cursor: grab !important; }
.st-wrap { position: relative; flex-shrink: 0; box-shadow: 0 6px 24px rgba(0,0,0,.18); background-color: #fff; background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%); background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.st-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-ov { position: absolute; inset: 0; touch-action: none; }
.st-ov.draw, .st-ov.brush { cursor: crosshair; }
.st-split { position: absolute; top: 0; bottom: 0; width: 0; z-index: 3; cursor: ew-resize; }
.st-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.st-split i { position: absolute; top: 50%; left: -16px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.st-split i::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px/1 system-ui; color: #22242f; }
.st-busy { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 6px; background: rgba(255,255,255,.72); font-weight: 700; font-size: .9rem; }
[data-theme="dark"] .st-busy { background: rgba(10,12,18,.72); }
.st-busy .pdx-spin.sm { margin: 0; }
.st-strip { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.st-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: .86rem; font-weight: 700; color: var(--text); }
.st-sh span { display: inline-flex; align-items: center; gap: 6px; } .st-sh svg { color: var(--pc); }
.st-sh b { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--pc) 14%, transparent); color: var(--pc); font-size: .75rem; text-align: center; }
.st-sh small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.st-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.st-th { position: relative; flex: 0 0 148px; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; overflow: hidden; scroll-snap-align: start; transition: border-color .15s, box-shadow .15s, transform .15s; outline: none; }
.st-th:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 24, 40, .1); }
.st-th:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 35%, transparent); }
.st-th.on { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc), 0 6px 18px color-mix(in srgb, var(--pc) 22%, transparent); }
.st-th-i { height: 104px; display: grid; place-items: center; background-color: #eef0f4; background-image: linear-gradient(45deg, #dfe2e8 25%, transparent 25%, transparent 75%, #dfe2e8 75%), linear-gradient(45deg, #dfe2e8 25%, transparent 25%, transparent 75%, #dfe2e8 75%); background-size: 14px 14px; background-position: 0 0, 7px 7px; overflow: hidden; }
.st-th-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-th-m { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px 8px; min-width: 0; }
.st-th-n { font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.st-th-s { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.st-th-k { position: absolute; top: 7px; inset-inline-start: 7px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: rgba(17, 20, 32, .72); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(4px); }
.st-th.on .st-th-k { background: var(--pc); }
.st-th-b { position: absolute; top: 7px; inset-inline-start: 36px; padding: 2px 7px; border-radius: 6px; background: var(--pc); color: #fff; font-size: .66rem; font-weight: 700; }
.st-th-x { position: absolute; top: 7px; inset-inline-end: 7px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #b42318; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; opacity: 0; transition: opacity .15s; }
.st-th:hover .st-th-x, .st-th.on .st-th-x, .st-th:focus-within .st-th-x { opacity: 1; } @media (hover: none) { .st-th-x { opacity: 1; } }
.st-add { flex: 0 0 120px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed color-mix(in srgb, var(--pc) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--pc) 5%, transparent); color: var(--pc); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.st-add:hover { background: color-mix(in srgb, var(--pc) 12%, transparent); }
.st-add svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--pc); color: #fff; }
@media (max-width: 600px) { .st-th { flex-basis: 118px; } .st-th-i { height: 84px; } .st-add { flex-basis: 96px; min-height: 128px; } }
[data-theme="dark"] .st-th-i { background-color: #2a2d38; background-image: linear-gradient(45deg, #333744 25%, transparent 25%, transparent 75%, #333744 75%), linear-gradient(45deg, #333744 25%, transparent 25%, transparent 75%, #333744 75%); }
/* صناديق التحرير فوق الصورة */
.st-box { position: absolute; box-sizing: border-box; border: 1.5px dashed rgba(255,255,255,.95); outline: 1px solid rgba(0,0,0,.35); cursor: move; touch-action: none; }
.st-box.on { border-style: solid; border-color: var(--pc); outline-color: rgba(255,255,255,.7); }
.st-box.ghost { background: rgba(255,255,255,.04); }
.st-box.auto { border-color: #22c55e; }
.st-box.crop { border: 1.5px solid #fff; outline: 0; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55); background-image: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)); background-size: 1px 100%, 1px 100%, 100% 1px, 100% 1px; background-position: 33.33% 0, 66.66% 0, 0 33.33%, 0 66.66%; background-repeat: no-repeat; }
.st-box.crop.round { border-radius: 50%; }
.st-h { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--pc); box-shadow: 0 1px 4px rgba(0,0,0,.3); z-index: 2; }
.h-nw { left: -8px; top: -8px; cursor: nwse-resize; } .h-ne { right: -8px; top: -8px; cursor: nesw-resize; } .h-sw { left: -8px; bottom: -8px; cursor: nesw-resize; } .h-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.h-n { left: 50%; top: -8px; margin-left: -7px; cursor: ns-resize; } .h-s { left: 50%; bottom: -8px; margin-left: -7px; cursor: ns-resize; } .h-e { right: -8px; top: 50%; margin-top: -7px; cursor: ew-resize; } .h-w { left: -8px; top: 50%; margin-top: -7px; cursor: ew-resize; }
.st-box:not(.on) .st-h:not(.h-se), .st-box:not(.on) .st-x { display: none; }
.st-box.crop .st-h { display: block !important; }
.st-x { position: absolute; top: -12px; left: -12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e5322d; color: #fff; cursor: pointer; z-index: 3; }
.st-lbl { position: absolute; bottom: 100%; left: 0; font-size: 10px; background: var(--pc); color: #fff; padding: 0 5px; border-radius: 4px 4px 0 0; }
/* عناصر التحكم */
.pdx-range { display: flex; align-items: center; gap: 10px; }
.pdx-range input { flex: 1; accent-color: var(--pc); }
.pdx-range b { min-width: 42px; text-align: center; font-size: .78rem; color: var(--pc); direction: ltr; }
.pdx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pdx-chips button, .pdx-chips label { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.pdx-chips button.on { background: var(--pc); border-color: var(--pc); color: #fff; }
.pdx-chips input { accent-color: var(--pc); margin: 0; }
.pdx-grid9 { display: grid; grid-template-columns: repeat(3, 34px); gap: 5px; }
.pdx-grid9 button { width: 34px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; position: relative; }
.pdx-grid9 button::after { content: ""; position: absolute; inset: 9px 13px; border-radius: 2px; background: var(--muted); }
.pdx-grid9 button.on { border-color: var(--pc); } .pdx-grid9 button.on::after { background: var(--pc); }
.pdx-swatch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pdx-swatch button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--c); cursor: pointer; }
.pdx-out { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.pdx-code { font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace !important; white-space: pre; tab-size: 2; }
.pdx-gif { max-width: min(100%, 520px); border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.15); margin-inline: auto; }
.pe-hist { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.pe-tabs button { flex: 1 1 auto; padding: 7px 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.pe-tabs button.on { background: var(--surface); color: var(--pc); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.pe-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pe-filters button { display: grid; gap: 4px; padding: 4px; border-radius: 10px; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; font: inherit; font-size: .72rem; font-weight: 600; color: var(--text); }
.pe-filters button.on { border-color: var(--pc); }
.pe-filters canvas { width: 100%; height: auto; border-radius: 6px; display: block; }
.pe-trow { display: flex; gap: 6px; margin-bottom: 6px; }
.pe-trow textarea { flex: 1; resize: vertical; padding: 8px 10px; border-radius: 10px; font-size: .9rem; }
.pe-trow button { width: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
/* PowerPoint */
.pp-list { display: grid; gap: 18px; justify-items: center; }
.pp-fig { position: relative; margin: 0; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.18); background: #fff; }
.pp-fig.hid { opacity: .5; }
.pp-fig figcaption { position: absolute; bottom: 6px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font: 600 11px system-ui; }
@media (max-width: 900px) { .st-view { min-height: 340px; max-height: 60vh; } .st { min-height: 0; } }
@media (max-width: 560px) { .st-view { min-height: 280px; padding: 8px; } .pe-filters { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   v2.2 — مساحة عمل بملء الشاشة على طريقة iLovePDF / iLoveIMG
   ========================================================================== */
html.pdx-lock, html.pdx-lock body { overflow: hidden; }
.pdx-wa { display: inline-flex; gap: 4px; margin-inline-start: auto; }
.pdx-bar-info + .pdx-wa, .pdx-bar .pdx-bar-info { margin-inline-start: auto; }
.pdx-bar .pdx-bar-info ~ .pdx-wa { margin-inline-start: 6px; }
.pdx-ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.pdx-ib:hover { color: var(--pc); border-color: var(--pc); }
.pdx-side-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 0 0 4px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; text-align: start; cursor: default; }
.pdx-side-t span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdx-side-t small { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pdx-side-t b { font-size: 1.15rem; font-weight: 800; }
.pdx-side-t > .ic { display: none; }

.pdx.pdx-full { position: fixed; z-index: 45; inset: var(--pdx-top, 0px) 0 0 0; min-height: 0; margin: 0; background: var(--surface-2); animation: pdxFull .18s ease; }
@keyframes pdxFull { from { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .pdx.pdx-full { animation: none; } }
.pdx-full .pdx-work { height: 100%; min-height: 0; border: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr) 380px; }
.pdx-full .pdx-main { min-height: 0; }
.pdx-full .pdx-bar { padding: 10px 18px; }
.pdx-full .pdx-stage { max-height: none; min-height: 0; padding: 26px 28px; overflow: auto; }
.pdx-full .pdx-side { min-height: 0; overflow-y: auto; padding: 22px 22px 0; box-shadow: 0 0 24px rgba(20, 22, 40, .06); }
.pdx-full .pdx-side .pdx-go:not(.sm) { position: sticky; bottom: 0; margin-top: auto; margin-inline: -22px; width: calc(100% + 44px); border-radius: 0; padding: 20px; font-size: 1.12rem; box-shadow: 0 -10px 20px color-mix(in srgb, var(--surface) 80%, transparent); }
.pdx-full .pdx-busy { border-radius: 0; }
.pdx-full .pdx-wa [data-full] .ic { transform: rotate(180deg); }
/* استوديو الصور يملأ المساحة */
.pdx-full .pdx-stage:has(> .st) { display: flex; flex-direction: column; overflow: hidden; padding: 16px 20px; }
.pdx-full .st { flex: 1; min-height: 0; }
.pdx-full .st-view { min-height: 0; max-height: none; }
.pdx-full .st-strip { flex-shrink: 0; margin-top: 8px; padding: 10px 12px; }
.pdx-full .st-th-i { height: 78px; } .pdx-full .st-th { flex-basis: 128px; } .pdx-full .st-add { min-height: 124px; flex-basis: 104px; }
@media (max-height: 760px) { .pdx-full .st-strip .st-sh { display: none; } .pdx-full .st-th-i { height: 60px; } .pdx-full .st-th-m { padding: 5px 8px; } .pdx-full .st-add { min-height: 96px; } }

@media (max-width: 900px) {
  .pdx-full .pdx-work { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .pdx-full .pdx-stage { padding: 14px; }
  .pdx-full .pdx-side { max-height: 92px; padding: 12px 16px 0; overflow: hidden; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px rgba(20, 22, 40, .12); transition: max-height .25s ease; }
  .pdx-full.pdx-sheet .pdx-side { max-height: 78vh; overflow-y: auto; }
  .pdx-full .pdx-side-t { cursor: pointer; padding-bottom: 10px; }
  .pdx-full .pdx-side-t > .ic { display: block; transition: transform .2s; }
  .pdx-full.pdx-sheet .pdx-side-t > .ic { transform: rotate(180deg); }
  .pdx-full .pdx-side .pdx-go:not(.sm) { position: fixed; inset-inline: 0; bottom: 0; margin: 0; width: 100%; z-index: 6; padding: 16px; }
  .pdx-full .pdx-main { padding-bottom: 0; }
  .pdx-full .pdx-work { padding-bottom: 58px; }
  .pdx-full .pdx-side-t small { display: none; }
  .pdx-full .pdx-side-t b { font-size: 1rem; }
}

/* واجهة الدخول: عنوان كبير في المنتصف وزر اختيار ملفات بارز */
.tool-hero { padding: 6px 0 34px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--bg)), var(--bg) 85%); }
.tool-hero .page-head { text-align: center; padding-top: 18px; padding-bottom: 8px; }
.tool-hero .breadcrumbs { justify-content: center; }
.tool-hero .tool-title { flex-direction: column; align-items: center; gap: 12px; }
.tool-hero .tool-title h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.25; margin: 0; }
.tool-hero .tool-title .lead { max-width: 720px; margin: 8px auto 0; font-size: 1.1rem; }
.tool-hero .fav-btn { margin: 0; }
.tool-hero .tool-app { max-width: 1080px; margin-inline: auto; border: 0; background: transparent; box-shadow: none; padding: 0; }
.tool-hero .pdx-drop { min-height: 300px; border: 2px dashed color-mix(in srgb, var(--pc) 28%, var(--border)); border-radius: 22px; background: var(--surface); transition: border-color .15s, background .15s; }
.tool-hero .pdx-drop:hover { border-color: color-mix(in srgb, var(--pc) 55%, var(--border)); }
.tool-hero .pdx-pick { padding: 24px 58px; font-size: 1.32rem; border-radius: 14px; box-shadow: 0 12px 28px color-mix(in srgb, var(--pc) 32%, transparent); }
.tool-hero .pdx-pick:hover { transform: translateY(-2px); }
.tool-hero .tool-foot { max-width: 1080px; margin-inline: auto; }
@media (max-width: 600px) { .tool-hero .pdx-pick { padding: 18px 26px; font-size: 1.1rem; width: 100%; justify-content: center; } .tool-hero .pdx-drop { min-height: 240px; } }
.tool-hero .pdx-pick { width: auto; min-width: min(380px, 100%); }
/* زر التنفيذ: مستدير داخل اللوحة ومثبّت أسفلها */
@media (min-width: 901px) {
  .pdx-full .pdx-side { padding-bottom: 18px; }
  .pdx-full .pdx-side .pdx-go:not(.sm) { bottom: 0; margin: auto 0 0; width: 100%; border-radius: 14px; padding: 18px; box-shadow: 0 0 0 18px var(--surface), 0 10px 24px color-mix(in srgb, var(--pc) 30%, transparent); }
}
@media (max-width: 900px) {
  .pdx-full.pdx-sheet .pdx-side { max-height: 62vh; padding-bottom: 84px; }
  .pdx-full .pdx-side .pdx-go:not(.sm) { inset-inline: 12px; bottom: 10px; width: auto; border-radius: 14px; box-shadow: 0 0 0 10px var(--surface), 0 8px 20px color-mix(in srgb, var(--pc) 30%, transparent); }
  .pdx-full .pdx-work { padding-bottom: 76px; }
  .pdx-full .pdx-stage:has(> .st) { padding: 8px; }
  .pdx-full .st-strip { padding: 6px 8px; margin-top: 6px; }
  .pdx-full .st-strip .st-sh { display: none; }
  .pdx-full .st-th { flex-basis: 76px; } .pdx-full .st-th-i { height: 52px; } .pdx-full .st-th-m { display: none; }
  .pdx-full .st-add { flex-basis: 64px; min-height: 52px; font-size: 0; gap: 0; } .pdx-full .st-add svg { width: 28px; height: 28px; padding: 5px; }
  .pdx-full .st-th-k { width: 20px; height: 20px; min-width: 0; font-size: .66rem; top: 4px; inset-inline-start: 4px; }
  .pdx-full .st-th-x { width: 22px; height: 22px; top: 4px; inset-inline-end: 4px; }
  .pdx-full .pdx-bar { padding: 8px 10px; }
}
.pdx-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdx-tgrid .pdx-btn { justify-content: center; padding: 10px 8px; font-size: .84rem; min-height: 42px; }
