/* UAE Calcs - free tools. Reuses the calculator look (uc.css) and variables. */
.ut-tool { max-width: 860px; }
.ut-file { display: none !important; }
.ut-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; margin: 0 0 14px; text-align: center;
  border: 2px dashed var(--uc-primary); border-radius: 14px; background: #f4f8f9; color: var(--uc-primary); cursor: pointer; transition: background .15s, border-color .15s; }
.ut-drop strong { font-size: 17px; }
.ut-drop span { font-size: 14px; color: #5a6b72; }
.ut-drop:hover, .ut-drop:focus-visible, .ut-drop.is-over { background: #e6f1f2; border-color: var(--uc-primary-dark); outline: none; }
.ut-info { margin: 6px 0 10px; font-weight: 600; color: #14262b; word-break: break-word; }
.ut-info:empty { display: none; }
.ut-ok { color: #0b6b3a; font-weight: 600; }
.ut-h { margin: 22px 0 8px; font-size: 18px; }
.ut-list { list-style: none; margin: 0 0 12px; padding: 0; }
.ut-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0 0 6px; border: 1px solid #dbe5e8; border-radius: 10px; background: #fff; flex-wrap: wrap; }
.ut-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--uc-primary); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ut-name { flex: 1 1 160px; min-width: 0; font-weight: 600; word-break: break-word; }
.ut-size { color: #5a6b72; font-size: 14px; }
.ut-tool button.ut-ic { flex: none; width: 34px; height: 34px; padding: 0 !important; min-height: 0 !important; border-radius: 8px !important; font-size: 16px !important;
  background: #fff !important; color: var(--uc-primary) !important; border: 1px solid #c3d3d6 !important; cursor: pointer; line-height: 1 !important; -webkit-text-fill-color: var(--uc-primary); }
.ut-tool button.ut-ic:hover { background: #eaf3f4 !important; }
.ut-tool button.ut-x { color: #b3261e !important; -webkit-text-fill-color: #b3261e; }
a.ut-dl { display: inline-block; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--uc-primary); color: var(--uc-primary) !important; font-weight: 700; font-size: 14px; text-decoration: none; background: #fff; }
a.ut-dl:hover { background: #eaf3f4; }
.ut-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.ut-thumb { margin: 0; border: 1px solid #dbe5e8; border-radius: 10px; overflow: hidden; background: #fff; }
.ut-thumb img { display: block; width: 100%; height: auto; background: #f4f8f9; }
.ut-thumb figcaption { display: flex; flex-direction: column; gap: 6px; padding: 8px; font-size: 13px; color: #5a6b72; }
.ut-range { display: flex; align-items: center; gap: 10px; }
.ut-range input { flex: 1; padding: 0; }
.ut-qv { min-width: 44px; font-weight: 700; }
.ut-chk { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-top: 8px; font-weight: 400; }
.ut-chk input { width: auto; }

/* photo resizer */
.ut-photo { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 22px; align-items: start; margin-top: 10px; }
.ut-stage { position: relative; width: 100%; max-width: 320px; border: 1px solid #c3d3d6; border-radius: 10px; overflow: hidden; background: #fff; touch-action: none; cursor: grab; }
.ut-stage:active { cursor: grabbing; }
.ut-cv { display: block; width: 100%; height: 100%; }
.ut-guide { position: absolute; left: 50%; top: 42%; width: 56%; height: 62%; transform: translate(-50%, -50%); border: 2px dashed rgba(13, 92, 99, .75); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 9999px rgba(255, 255, 255, 0); }
@media (max-width: 700px) { .ut-photo { grid-template-columns: 1fr; } .ut-stage { margin: 0 auto; } }

/* letters */
.ut-letter { width: 100%; min-height: 360px; padding: 16px; font: 15px/1.55 Georgia, "Times New Roman", serif; border: 1px solid #c3d3d6; border-radius: 10px; background: #fffdf8; color: #14262b; resize: vertical; }

/* qr */
.ut-qrbox { display: grid; place-items: center; padding: 16px; margin: 6px 0 4px; border: 1px solid #dbe5e8; border-radius: 12px; background: #f4f8f9; }
.ut-qr { width: 240px; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; }
.ut-tool input[type=color] { height: 46px; padding: 4px; }
.ut-tool .uc-check { display: flex; align-items: center; gap: 8px; }
.ut-tool .uc-check input { width: auto; }
.ut-tool .uc-check label { margin: 0; font-weight: 600; }

/* hub */
h2.uc-grp { margin: 28px 0 10px; font-size: 21px; }

/* sponsor box (paid placement, always labelled) */
.uc-sponsor { position: relative; margin: 18px 0; padding: 22px 18px 16px; border: 1px solid #e3d3a5; border-radius: 14px; background: #fffaf0; }
.uc-sponsor-label { position: absolute; top: -10px; left: 16px; padding: 2px 10px; border-radius: 99px; background: #fff; border: 1px solid #e3d3a5; font-size: 12px; font-weight: 700; color: #7a5b00; letter-spacing: .03em; }
.uc-sponsor-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.uc-sponsor-in img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
.uc-sponsor-body { flex: 1 1 220px; min-width: 0; }
.uc-sponsor-body b { display: block; font-size: 17px; color: #14262b; }
.uc-sponsor-body p { margin: 4px 0 0; color: #4a5a60; font-size: 14.5px; }

.uc-morebar { text-align: center; margin: 18px 0 4px; }
.uc-moretools { margin-top: 28px; }

.ut-partner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border: 1px dashed #e3d3a5; border-radius: 12px; background: #fffaf0; }
.ut-partner-label { font-size: 12px; font-weight: 700; color: #7a5b00; letter-spacing: .03em; text-transform: uppercase; }
