/* WTS soap calculator 1.6.0: Save to my account (calculator page) and My recipes (My Account).
   Phone first at 390 px: 44 px targets, forest green for primary, no side rails, sans-serif. */

/* ---------- Calculator page ---------- */
.wts-calc .wca-i { width: 18px; height: 18px; flex: none; }
.wts-calc .wca-sheet, .wts-calc .wca-sheet *, .wts-calc .wca-vlist, .wts-calc .wca-vlist * { box-sizing: border-box; }
.wts-calc [data-wc-acct-save] .wca-i { margin-right: 2px; }
.wts-calc [data-wc-acct-save][aria-busy="true"], .wts-calc [data-wc-acct-save-dock][aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.wts-calc [data-wc-acct-save-dock] { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 12px; background: none; color: var(--wc-forest, #304036); font: 600 11px/1.1 var(--wc-font, sans-serif); cursor: pointer; }
.wts-calc [data-wc-acct-save-dock][hidden] { display: none; }
.wts-calc [data-wc-acct-save-dock] .wca-i { width: 20px; height: 20px; }

/* Account list inside the saved-versions dialog */
.wts-calc .wca-vlist { margin: 0 0 16px; padding: 14px; border: 1px solid var(--wc-line-soft); border-radius: var(--wc-r); background: var(--wc-cream); }
.wts-calc .wca-vlist__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.wts-calc .wca-vlist__head h4 { margin: 0; font-size: 15px; font-weight: 600; }
.wts-calc .wca-vlist__head .wc-link { display: inline-flex; align-items: center; min-height: 44px; }
.wts-calc .wca-vlist__items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--wc-line-soft); }
.wts-calc .wca-vlist__items li:first-child { border-top: 0; }
.wts-calc .wca-vlist__text { display: grid; gap: 2px; min-width: 0; }
.wts-calc .wca-vlist__text b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.wts-calc .wca-vlist__text small { font-size: 13px; color: var(--wc-muted); }
.wts-calc .wca-vlist__sum { overflow-wrap: anywhere; }
.wts-calc .wca-vlist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.wts-calc .wca-vlist__items .wc-btn { flex: none; min-height: 44px; min-width: 64px; }
.wts-calc .wca-vlist__empty { margin: 0; font-size: 14px; color: var(--wc-muted); }
.wts-calc .wca-vlist__guest { display: grid; gap: 10px; justify-items: start; }
.wts-calc .wca-vlist__guest p { margin: 0; font-size: 14px; color: var(--wc-ink-soft); }
.wts-calc .wca-vlist__guest .wc-btn { min-height: 44px; }
.wts-calc .wca-leaf { display: inline-flex; align-items: center; gap: 4px; color: var(--wc-forest); font-weight: 600; }
.wts-calc .wca-leaf .wca-i { width: 14px; height: 14px; --i-fill: rgba(48, 64, 54, 0.16); --i-knock: var(--wc-forest); }

/* Sign-in sheet: a bottom sheet on phones, a centered card from 640 px */
.wts-calc .wca-sheet { position: fixed; inset: 0; z-index: 1015; display: flex; align-items: flex-end; justify-content: center; background: rgba(26, 36, 30, 0.55); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wts-calc .wca-sheet[hidden] { display: none !important; }
.wts-calc .wca-sheet__box { width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; background: var(--wc-paper); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px -30px rgba(26, 36, 30, 0.6); padding-bottom: env(safe-area-inset-bottom, 0px); }
.wts-calc .wca-sheet__head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 12px 12px 16px; background: var(--wc-paper); border-bottom: 1px solid var(--wc-line-soft); }
.wts-calc .wca-sheet__head h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.wts-calc .wca-sheet__head .wc-modal__x { width: 44px; height: 44px; }
.wts-calc .wca-sheet__badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wc-forest); color: var(--wc-bone); }
.wts-calc .wca-sheet__badge .wca-i { width: 20px; height: 20px; }
.wts-calc .wca-sheet__body { padding: 14px 16px 18px; }
.wts-calc .wca-sheet__lead { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--wc-ink-soft); }
.wts-calc .wca-google { display: grid; gap: 6px; }
.wts-calc .wca-google[hidden], .wts-calc .wca-sheet[data-step="code"] .wca-google { display: none !important; }
.wts-calc .wca-google__btn { display: flex; justify-content: center; min-height: 44px; }
.wts-calc .wca-google__btn iframe { max-width: none !important; }
.wts-calc .wca-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wc-stone); }
.wts-calc .wca-divider::before, .wts-calc .wca-divider::after { content: ""; flex: 1; height: 1px; background: var(--wc-line-soft); }
.wts-calc .wca-step { margin: 0; }
.wts-calc .wca-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--wc-ink); }
.wts-calc input.wca-input { display: block; width: 100%; min-height: 50px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--wc-line); border-radius: 12px; background: var(--wc-paper); color: var(--wc-ink); font: 400 16px/1.4 var(--wc-font); }
.wts-calc input.wca-input:focus { border-color: var(--wc-forest); box-shadow: 0 0 0 3px rgba(48, 64, 54, 0.14); outline: 0; }
.wts-calc input.wca-input[aria-invalid="true"] { border-color: var(--wc-watch); box-shadow: 0 0 0 3px rgba(212, 145, 28, 0.16); }
.wts-calc input.wca-code { min-height: 58px; font-size: 26px; font-weight: 600; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.wts-calc input.wca-code::placeholder { color: var(--wc-line); }
.wts-calc .wca-hint { display: block; margin: -8px 0 14px; font-size: 13px; color: var(--wc-muted); }
.wts-calc .wca-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wts-calc .wca-block { width: 100%; min-height: 50px; font-size: 16px; }
.wts-calc .wca-block .wca-i { width: 18px; height: 18px; --i-fill: rgba(241, 238, 231, 0.2); --i-knock: var(--wc-forest); }
.wts-calc .wca-status { margin: 0 0 10px; min-height: 0; font-size: 14px; line-height: 1.45; color: var(--wc-ink-soft); }
.wts-calc .wca-status:empty { display: none; }
.wts-calc .wca-status.is-error { padding: 10px 12px; border-radius: 10px; background: var(--wc-watch-bg); color: var(--wc-watch-ink); }
.wts-calc .wca-fine { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--wc-muted); text-align: center; }
.wts-calc .wca-fine .wc-link { font-size: 13px; }
.wts-calc .wca-fine .wc-link:disabled { color: var(--wc-muted); text-decoration: none; cursor: default; }
.wts-calc .wca-sent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px; border-radius: 12px; background: var(--wc-cream); font-size: 14px; line-height: 1.45; }
.wts-calc .wca-sent b { overflow-wrap: anywhere; }
.wts-calc .wca-sent .wca-i { margin-top: 1px; color: var(--wc-forest); }
.wts-calc .wca-sent .wc-link { white-space: nowrap; }
.wts-calc .wca-privacy, .wts-calc .wca-privacy p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--wc-muted); }
.wts-calc .wca-privacy a { color: var(--wc-forest); }
.wts-calc .wca-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: -4px 0 12px; }
.wts-calc .wca-row .wc-link { display: inline-flex; align-items: center; min-height: 44px; }
.wts-calc .wca-check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; cursor: pointer; }
.wts-calc .wca-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--wc-forest); }
.wts-calc .wca-switch { margin: 14px 0 0; font-size: 14px; text-align: center; color: var(--wc-muted); }
.wts-calc .wca-switch:empty { display: none; }
.wts-calc .wca-switch .wc-link { display: inline-flex; align-items: center; min-height: 44px; }
.wts-calc .wca-sheet__note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px; border-radius: 12px; background: var(--wc-cream); font-size: 13px; line-height: 1.45; color: var(--wc-ink-soft); }
.wts-calc .wca-sheet__note .wca-i { margin-top: 1px; color: var(--wc-forest); --i-fill: rgba(48, 64, 54, 0.12); --i-knock: var(--wc-forest); }
@media (min-width: 640px) {
  .wts-calc .wca-sheet { align-items: center; padding: 4vh 16px; }
  .wts-calc .wca-sheet__box { max-width: 440px; max-height: none; border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(26, 36, 30, 0.6); padding-bottom: 0; }
  .wts-calc .wca-sheet__head { position: static; border-radius: 18px 18px 0 0; }
  .wts-calc .wca-sheet__body { padding: 16px 20px 20px; }
}

/* ---------- My Account: My recipes ---------- */
.wt .wca-page, .wt .wca-page *, .wt .wca-page *::before, .wt .wca-page *::after { box-sizing: border-box; }
.wt .wca-page .wt-icon { width: 18px; height: 18px; flex: none; }
.wt .wca-panel__head { flex-wrap: wrap; align-items: flex-start; margin-bottom: 4px; }
.wt .wca-panel__text { display: grid; gap: 2px; }
.wt .wca-panel__count { margin: 0; font-size: 0.88rem; color: var(--wt-muted); }
.wt .wca-panel__count[hidden], .wt .wca-panel__calc[hidden] { display: none; }
.wt .wca-page .wt-btn { min-height: 44px; }
.wt .wca-flash { display: none; margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; background: #eaeee8; color: var(--wt-forest-deep); font-size: 0.93rem; }
.wt .wca-flash.is-on { display: block; }
.wt .wca-flash.is-error { background: #fdf4e3; color: #7a4f00; }
.wt .wca-list { margin: 0; padding: 0; list-style: none; }
.wt .wca-list[hidden], .wt .wca-empty[hidden] { display: none; }
.wt .wca-item { display: grid; gap: 12px; margin: 0; padding: 16px 0; border-top: 1px solid var(--wt-border-soft); }
.wt .wca-item:first-child { border-top: 0; }
.wt .wca-item__main { display: grid; gap: 4px; min-width: 0; }
.wt .wca-item__name { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.wt .wca-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 0.86rem; color: var(--wt-muted); }
.wt .wca-item__oils { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--wt-ink-soft); overflow-wrap: anywhere; }
.wt .wca-leaf { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #eaeee8; color: var(--wt-forest); font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.wt .wca-leaf .wt-icon { width: 14px; height: 14px; --i-fill: rgba(48, 64, 54, 0.18); --i-knock: var(--wt-forest); }
.wt .wca-item__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wt .wca-item__actions[hidden] { display: none; }
.wt .wca-item__actions .wca-open { grid-column: 1 / -1; width: 100%; }
.wt .wca-item__actions .wca-open .wt-icon { --i-fill: rgba(241, 238, 231, 0.2); --i-knock: var(--wt-forest); }
.wt .wca-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 0; padding: 8px 14px; border: 1px solid var(--wt-border); border-radius: 999px; background: var(--wt-paper); color: var(--wt-ink-soft); font: 600 0.9rem/1.2 var(--wt-font); cursor: pointer; transition: border-color 0.2s var(--wt-ease), color 0.2s var(--wt-ease); }
.wt .wca-tool[hidden] { display: none; }
.wt .wca-tool:hover { border-color: var(--wt-stone); color: var(--wt-ink); background: var(--wt-paper); }
.wt .wca-tool:focus-visible, .wt .wca-page .wt-btn:focus-visible { outline: 2px solid var(--wt-forest); outline-offset: 2px; }
.wt .wca-tool .wt-icon { color: var(--wt-forest); --i-fill: rgba(48, 64, 54, 0.12); --i-knock: var(--wt-forest); }
.wt .wca-rename, .wt .wca-confirm { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--wt-border-soft); border-radius: var(--wt-radius); background: var(--wt-cream); }
.wt .wca-rename .wca-label { margin: 0; font-size: 0.9rem; font-weight: 600; }
.wt .wt-acct .wca-rename input.wca-input { margin: 0; }
.wt .wca-confirm p { margin: 0; font-size: 0.94rem; line-height: 1.45; color: var(--wt-ink-soft); }
.wt .wca-inline-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wt .wca-inline-actions .wt-btn { width: 100%; }
.wt .wt-acct .wca-btn-delete, .wt .wt-acct .wca-btn-delete:visited { border: 1px solid #8e3a31; background: #8e3a31; color: #fff; }
.wt .wt-acct .wca-btn-delete:hover { border-color: #74301f; background: #74301f; color: #fff; }
.wt .wca-btn-delete .wt-icon { color: #fff; }
.wt .wca-noscript { margin: 12px 0 0; font-size: 0.88rem; color: var(--wt-muted); }
.wt .wca-empty .wt-ico { --i-fill: rgba(48, 64, 54, 0.12); --i-knock: var(--wt-bone); color: var(--wt-forest); }
@media (min-width: 768px) {
  .wt .wca-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; }
  .wt .wca-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .wt .wca-item__actions .wca-open { width: auto; }
  .wt .wca-rename, .wt .wca-confirm { grid-column: 1 / -1; }
  .wt .wca-rename { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .wt .wca-rename .wca-label { grid-column: 1 / -1; }
  .wt .wca-inline-actions { display: flex; }
  .wt .wca-inline-actions .wt-btn { width: auto; }
}
