/* LND-130 / WIZ-54 / ED-295: the photo tips line and its sheet, shared by
   the landing page (which doesn't load theme.css, so every colour here has
   its own fallback), /new and the editor. */
.phtip-line { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 20px; color: var(--text, #1F2418); }
.phtip-line .phtip-thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; }
.phtip-line .phtip-thumb svg { width: 100%; height: 100%; display: block; }
.phtip-line button { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--green-500, #677E32);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.phtip-line button:hover { color: var(--green-800, #414E26); }
.phtip-line.small { font-size: 13px; line-height: 19px; }
.phtip-line.small .phtip-thumb { width: 32px; height: 32px; border-radius: 8px; }

.phtip-open { overflow: hidden; }
.phtip-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(28, 36, 15, .45);
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.phtip-scrim[hidden] { display: none; }
.phtip-sheet { box-sizing: border-box; width: min(480px, 100%); max-height: 90vh; overflow: auto; background: var(--surface, #fff); color: var(--text, #1F2418);
  border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); padding: 18px 20px 20px; font-family: var(--f-ui, 'Inter Tight', system-ui, sans-serif); }
.phtip-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.phtip-hd h4 { margin: 4px 0 0; font-size: 19px; line-height: 26px; font-weight: 600; }
.phtip-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--green-50, #EDF1DE); color: inherit;
  font-size: 24px; line-height: 1; cursor: pointer; }
.phtip-pic { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.phtip-pic svg { width: 100%; height: 100%; display: block; }
.phtip-mark { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.phtip-mark svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.phtip-mark.ok { background: var(--green-500, #677E32); }
.phtip-mark.no { background: var(--orange-text, #C8390D); }
.phtip-good { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.phtip-good .phtip-pic { width: 104px; flex: none; box-shadow: 0 0 0 3px var(--green-500, #677E32); }
.phtip-good .phtip-mark { width: 24px; height: 24px; }
.phtip-good ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; line-height: 20px; }
.phtip-good li { display: flex; gap: 8px; align-items: flex-start; }
.phtip-good li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--green-500, #677E32); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.phtip-sheet h5 { margin: 16px 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text-2, #6D6D6D); }
.phtip-hard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phtip-hard figure { margin: 0; display: grid; align-content: start; gap: 6px; min-width: 0; }
.phtip-hard figcaption { font-size: 12.5px; line-height: 17px; }
.phtip-hard figcaption b { display: block; font-weight: 600; }
.phtip-hard figcaption span { color: var(--text-2, #6D6D6D); }
.phtip-more { display: grid; gap: 6px; margin-top: 14px; background: var(--surface-2, #F7F8F3); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 18px; }
.phtip-more p { margin: 0; }
.phtip-ft { display: flex; justify-content: flex-end; margin-top: 14px; }
.phtip-close { height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--green-500, #677E32); color: #fff;
  font: 600 15px var(--f-ui, 'Inter Tight', system-ui, sans-serif); cursor: pointer; }
.phtip-close:hover { background: var(--green-600, #859F43); }
@media (max-width: 600px) {
  .phtip-scrim { align-items: flex-end; padding: 0; }
  .phtip-sheet { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; padding: 16px 16px max(20px, env(safe-area-inset-bottom, 0px)); }
  .phtip-good .phtip-pic { width: 88px; }
}
@media (max-width: 360px) {
  .phtip-hard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
