/* SignDesk – "My name, signature & stamp" setup page (3.5.0). Loaded after style.css and the theme. */
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 14px auto 24px; padding: 0 16px; }
.ptitle { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.ptitle h1 { margin: 0; font-size: 22px; }

/* one-time tip for people who saved a signature before 3.5.0 */
.su-tip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--gold-soft, #fff8e1); border: 1px solid #efdca0;
  border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.su-tip b { color: #5a4600; }

/* the three step cards */
.trio { display: grid; grid-template-columns: 0.9fr 1.15fr 1.15fr; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.wrap .card.su-step { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.wrap .card.su-step.is-saved { border-color: var(--green); }
.wrap .card.su-step.su-flash { box-shadow: 0 0 0 4px rgba(212, 175, 55, .55); }
.su-head { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.su-badge { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2, #cfc8b6); color: var(--muted); background: #fff;
  font-weight: 800; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.is-saved .su-badge { background: var(--green); border-color: var(--green); color: #fff; font-size: 26px; line-height: 1; }
.su-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wrap .card.su-step h2 { margin: 0; font-size: 20px; }
.su-state { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.is-saved .su-state { color: var(--green); }
.su-opt { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.su-prev { height: 104px; }
.su-prev img { max-height: 90px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-lg { padding: 10px 16px; font-size: 15px; }
.su-undo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.su-cardmsg { min-height: 0; }

/* Finish */
.su-finish { display: flex; align-items: center; justify-content: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px;
  border-radius: 16px; border: 2px dashed var(--line-2, #cfc8b6); background: rgba(255, 255, 255, .6); text-align: center; }
.su-finish.can-finish { border: 2px solid var(--green); background: var(--green-soft); }
.su-finish .hint { font-size: 14.5px; }
.btn-xl { font-size: 19px; padding: 13px 40px; min-height: 52px; }

/* editors open on top of the page, so Save is always on the first screen */
.su-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(12, 22, 18, .5); display: flex; align-items: center; justify-content: center; padding: 10px; }
.su-panel:focus { outline: none; }
.su-panel { background: #fff; border-radius: 16px; width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.su-phead { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.su-phead h2 { margin: 0; font-size: 19px; }
.su-phead .su-badge { width: 34px; height: 34px; font-size: 16px; }
.su-sp { flex: 1; }
.su-pbody { padding: 12px 16px; overflow: auto; flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; }
@media (max-width: 860px) { .su-pbody { grid-template-columns: 1fr; } }
.su-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.su-pfoot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); background: #faf8f2; }
.lbl3 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin: 0; }

/* photo frame (Adjust box) */
.crop { position: relative; height: clamp(190px, 40vh, 330px); border-radius: 12px; border: 1.5px solid var(--line-2, #cfc8b6); background: #fff; overflow: hidden; touch-action: none; cursor: grab; }
.crop.cropping { cursor: crosshair; }
.crop canvas { display: block; width: 100%; height: 100%; }
.crop .frame-tip { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .9); padding: 2px 8px; border-radius: 10px; pointer-events: none; }
.crop .cbox { position: absolute; border: 2px dashed var(--green); box-shadow: 0 0 0 9999px rgba(29, 36, 51, .35); pointer-events: none; }
.pad { width: 100%; height: clamp(190px, 40vh, 330px); border: 1px dashed #b7c2cc; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.adj-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.adj-row .lbl { font-weight: 700; min-width: 92px; }
.adj-row .lbl.inl { min-width: 0; margin-left: 4px; }
.adj-row input[type=range] { flex: 1 1 110px; min-width: 90px; accent-color: var(--green); }
.adj-row .val { min-width: 40px; font-variant-numeric: tabular-nums; color: var(--muted); }
.adj-row .hint.tiny { white-space: nowrap; }

/* before / after */
.su-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.su-ba figure { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.su-ba figcaption { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; font-weight: 800; color: var(--muted); }
.su-ba figure.after figcaption { color: var(--green); }
.su-ba .sigpreview { height: clamp(100px, 21vh, 170px); }
.su-ba .sigpreview img { max-height: calc(100% - 14px); max-width: 94%; }
.su-ba .before-box { background: #fff; }

/* choice buttons with words (and a colour dot where it helps) */
.su-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.su-chip { border: 1.5px solid var(--line-2, #cfc8b6); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.su-chip:hover { border-color: var(--green); }
.su-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.su-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.su-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); display: inline-block; flex: none; }
.su-dot.as { background: conic-gradient(#141414 0 25%, #1d3fbf 0 50%, #c0182b 0 75%, #13703c 0); }
.su-chip[aria-pressed="true"] .su-dot { border-color: #fff; }
.su-shape { width: 18px; height: 14px; border: 2px solid currentColor; display: inline-block; flex: none; }
.su-shape.round { width: 15px; height: 15px; border-radius: 50%; }
.su-shape.double { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px currentColor; }
.su-chip[aria-pressed="true"] .su-shape.double { box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3.5px currentColor; }
.su-shape.oval { width: 20px; height: 13px; border-radius: 50%; }
.su-shape.rounded { border-radius: 5px; }

/* make a stamp */
.su-form { display: flex; flex-direction: column; gap: 6px; }
.su-frow { display: grid; grid-template-columns: 150px 1fr; gap: 4px 10px; align-items: center; }
.su-frow > .lbl { font-weight: 700; font-size: 14px; }
.su-frow > .lbl i { font-weight: 500; font-style: normal; color: var(--muted); font-size: 12.5px; }
.su-frow .field { padding: 7px 10px; }
@media (max-width: 560px) { .su-frow { grid-template-columns: 1fr; } }
.su-radios { display: flex; flex-direction: column; gap: 3px; }
.su-radios label { display: flex; align-items: center; gap: 7px; cursor: pointer; flex-wrap: wrap; }
.su-radios input[type=radio] { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.su-radios .field { width: 150px; padding: 4px 8px; }
.su-slide { flex-wrap: nowrap; max-width: 420px; }
.su-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.su-mkprev { height: clamp(200px, 44vh, 380px); }
.su-mkprev img { max-height: calc(100% - 20px); max-width: 94%; }
.su-check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.su-check input { accent-color: var(--green); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.su-honest { border: 2px solid var(--line-2, #cfc8b6); border-radius: 12px; padding: 9px 12px; background: #fffdf6; }
.su-honest.need { border-color: var(--danger); background: #fdf1ef; }
.su-pfoot .status { font-size: 14px; font-weight: 600; }
