@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/jost-regular.ttf") format("truetype"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/jost-bold.ttf") format("truetype"); }
:root { font-family: "Jost", ui-sans-serif, system-ui, sans-serif; color: #343a30; background: #f7efdf; }
* { box-sizing: border-box; }
.action-icon { display: block; flex-shrink: 0; }
.title-link { flex-shrink: 0; color: #405a3c; }
.detail-title-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.detail-title-row .recipe-actions { flex-shrink: 0; align-items: center; }
.share-dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid #cccdbf; border-radius: 16px; padding: 22px; color: #343a30; background: #fffdf7; }
.share-dialog::backdrop { background: #0006; }
.share-dialog input { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #cccdbf; border-radius: 8px; font: inherit; }
.share-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-personal-option { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.share-dialog .share-personal-option input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.shared-personal-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.shared-tags { margin-top: 18px; }
.shared-tags span { padding: 4px 9px; border-radius: 16px; background: #e7ecdf; }
@media (max-width: 560px) { .detail-title-row { flex-wrap: wrap; }.detail-title-row > div:first-child { flex-basis: 100%; } }
.instruction-steps { margin: 0; padding-left: 1.8em; }
.instruction-steps li::marker { color: #405a3c; font-weight: 800; }
.ingredient-list { margin: 0; padding-left: 1.5em; list-style-type: "–  "; }
.ingredient-list li::marker { color: #405a3c; font-weight: 800; }
.ingredients-section li:last-child { margin-bottom: 0; }
.recipe-method { margin-top: 32px; padding: 22px 20px; border-radius: 14px; background: #fcfaf5; }
.recipe-method > .detail-section { margin-top: 0; }
.recipe-method > .instructions-section + .tips-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid #cccdbf; }
.recipe-notes { padding: 18px 20px; border-left: 4px solid #ad8950; border-radius: 12px; background: #eee2cc; color: #343a30; overflow-wrap: anywhere; }
.recipe-notes label { cursor: text; }
.recipe-notes textarea { display: block; width: 100%; min-height: 3.45em; border: 0; border-radius: 6px; padding: 8px; background: transparent; color: inherit; font: inherit; font-size: 1.05rem; line-height: 1.55; resize: vertical; }
.recipe-notes textarea::placeholder { color: #625c50; opacity: 1; }
#notes-save-status { margin-top: 8px; color: #625c50; font-size: .75rem; }
body { margin: 0; min-width: 320px; background: #f7efdf; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
main { max-width: 820px; margin: auto; padding: 0 16px 100px; }
header { padding: 28px 8px 20px; }
.app-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.04em; }
.controls { display: flex; gap: 8px; align-items: center; position: sticky; top: 0; z-index: 1; padding: 10px 0 16px; background: #f7efdfeF; backdrop-filter: blur(8px); }
.icon-button, .current-category { border: 0; background: transparent; color: #343a30; padding: 9px; }
.icon-button { font-size: 1.25rem; }
.current-category { font-weight: 750; white-space: nowrap; padding-left: 0; }
.search { min-width: 0; flex: 1; display: flex; gap: 6px; align-items: center; border: 1px solid #cccdbf; background: #fffdf7; border-radius: 999px; padding: 0 12px; color: #686d60; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; padding: 10px 0; background: transparent; }
.feed { display: grid; gap: 12px; }
.recipe-card { display: flex; gap: 14px; width: 100%; padding: 12px; border: 1px solid #ddded2; border-radius: 16px; background: #fffdf7; box-shadow: 0 2px 8px #343a300a; }
.recipe-image { position: relative; display: grid; flex: 0 0 112px; width: 112px; min-width: 0; height: 112px; overflow: hidden; place-items: center; border-radius: 11px; font-size: 3.25rem; }
.recipe-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.peach { background: #c6d1b6; } .latte { background: #c4ac8d; } .apple { background: #caa48b; } .egg { background: #ddd0a5; }
.recipe-info { min-width: 0; flex: 1; }
h2 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.25; }
p { margin: 0; } .author { font-size: .9rem; } .date { margin-top: 2px; color: #686d60; font-size: .8rem; } .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }.tags button { border: 0; border-radius: 999px; padding: 4px 8px; background: #e7ecdf; color: #405a3c; font-size: .75rem; font-weight: 750; }
.save-button { float: right; margin-top: 8px; border: 0; border-radius: 999px; background: #e7ecdf; color: #405a3c; padding: 6px 10px; font-size: .8rem; font-weight: 750; }
.save-button.is-saved { background: #526b48; color: white; }
.add-button { position: fixed; right: max(24px, calc((100vw - 820px) / 2)); bottom: 24px; display: grid; width: 58px; height: 58px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #526b48; color: white; box-shadow: 0 7px 20px #405a3c55; font-size: 0; }.add-button::before, .add-button::after { position: absolute; width: 22px; height: 3px; border-radius: 999px; background: currentColor; content: ""; }.add-button::after { transform: rotate(90deg); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 3; width: min(82vw, 320px); padding: 22px 16px; background: #f7efdf; box-shadow: 4px 0 20px #343a3033; transform: translateX(-105%); transition: transform .2s ease; }
.drawer.is-open { transform: translateX(0); }.drawer-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 1.15rem; font-weight: 800; }.drawer-heading button { border: 0; background: none; font-size: 1.7rem; }
.category { display: block; width: 100%; border: 0; border-radius: 10px; padding: 12px; background: transparent; color: #343a30; text-align: left; }.category.is-active { background: #dce5d2; color: #405a3c; font-weight: 750; }
.fixed-categories { padding-bottom: 12px; border-bottom: 1px solid #ddded2; }.tag-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 12px 7px; color: #686d60; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.edit-tags { border: 0; background: transparent; color: #405a3c; font-size: .8rem; font-weight: 800; }.editable-tag { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 4px 4px 4px 12px; }.tag-actions { display: flex; gap: 1px; }.tag-actions button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: #e7ecdf; color: #405a3c; font-weight: 800; }.tag-actions button:disabled { opacity: .3; }.tag-actions .delete-tag { background: #dce5d2; }.add-tag-form { display: flex; gap: 7px; margin: 12px; }.add-tag-form select { min-width: 0; flex: 1; border: 1px solid #cccdbf; border-radius: 8px; padding: 8px; background: #fffdf7; outline-color: #526b48; }.add-tag-form button { border: 0; border-radius: 8px; padding: 8px 11px; background: #526b48; color: white; font-weight: 750; }.all-tags-added { margin: 12px; color: #686d60; font-size: .8rem; }
.scrim { position: fixed; inset: 0; z-index: 2; border: 0; background: #343a3055; }.empty-state { padding: 35px 10px; text-align: center; color: #686d60; }
.recipe-image img, .detail-image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }.detail-page { max-width: 680px; padding-top: 20px; }.back-button { border: 0; padding: 8px 0; background: transparent; color: #405a3c; font-weight: 750; }.detail-section-label { margin-top: 14px; color: #686d60; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.detail-image { display: grid; height: 280px; margin-top: 8px; place-items: center; border-radius: 18px; font-size: 7rem; overflow: hidden; }.detail-title-row { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-top: 22px; }.detail-title-row h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.15; }.edit-recipe { margin-right: 6px; border: 0; border-radius: 999px; padding: 6px 10px; background: #eae5da; color: #625748; font-size: .8rem; font-weight: 750; }.detail-tags { margin-top: 0; }.description { font-size: 1.05rem; line-height: 1.55; }.detail-section { margin-top: 28px; }.detail-section h2 { margin: 0 0 10px; font-size: 1.2rem; }.detail-section li { padding-left: 4px; margin-bottom: 8px; }.recipe-link { color: #405a3c; font-weight: 750; }.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 20px; }.editor-heading h1 { margin: 0; font-size: 1.8rem; }.editor-heading button { border: 0; border-radius: 9px; padding: 10px 13px; background: #526b48; color: white; font-weight: 800; }.edit-section { margin-top: 20px; }.edit-section label { display: grid; gap: 7px; font-size: .95rem; font-weight: 800; }.edit-section input, .edit-section textarea { width: 100%; border: 1px solid #cccdbf; border-radius: 10px; padding: 10px; background: #fffdf7; color: #343a30; font: inherit; font-weight: 400; outline-color: #526b48; resize: vertical; }.edit-section p { margin-top: 5px; color: #686d60; font-size: .8rem; font-weight: 400; }
.add-recipe-page h1 { margin: 12px 0 8px; font-size: 1.8rem; }.source-options { display: grid; gap: 12px; margin-top: 24px; }.source-options button { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; border: 1px solid #ddded2; border-radius: 14px; padding: 16px; background: #fffdf7; color: #343a30; text-align: left; }.source-options button span { grid-row: 1 / 3; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: #e7ecdf; color: #405a3c; font-weight: 900; }.source-options button strong { font-size: 1rem; }.source-options button small { margin-top: 3px; color: #686d60; line-height: 1.35; }.import-form { display: grid; gap: 15px; margin-top: 24px; }.import-form label { display: grid; gap: 7px; font-weight: 800; }.import-form input { width: 100%; border: 1px solid #cccdbf; border-radius: 10px; padding: 11px; outline-color: #526b48; }.import-form button { justify-self: start; border: 0; border-radius: 9px; padding: 11px 14px; background: #526b48; color: white; font-weight: 800; }.import-form button:disabled { opacity: .6; }
.import-notice { margin: -8px 0 18px; border-left: 3px solid #ad8950; padding: 9px 11px; background: #f1ead5; color: #66522d; font-size: .9rem; line-height: 1.4; }
.recipe-lines { display: grid; gap: 8px; line-height: 1.5; }
.recipe-title { display: flex; align-items: center; gap: 8px; }.title-link { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e7ecdf; font-size: .9rem; text-decoration: none; }
.tag-picker { display: grid; gap: 9px; }.selected-tags { display: flex; flex-wrap: wrap; gap: 6px; }.selected-tags span { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 7px 5px 9px; background: #e7ecdf; color: #405a3c; font-size: .8rem; font-weight: 750; }.selected-tags button { width: 17px; height: 17px; border: 0; border-radius: 50%; padding: 0; background: #526b48; color: white; line-height: 1; }.tag-entry { display: flex; gap: 7px; }.tag-entry input { min-width: 0; flex: 1; border: 1px solid #cccdbf; border-radius: 8px; padding: 8px; background: #fffdf7; font: inherit; font-weight: 400; outline-color: #526b48; }.tag-entry button { border: 0; border-radius: 8px; padding: 8px 11px; background: #eae5da; color: #554c3f; font-weight: 750; }
.delete-recipe { margin-right: 6px; border: 0; border-radius: 999px; padding: 6px 10px; background: #dce5d2; color: #405a3c; font-size: .8rem; font-weight: 750; }.confirmation-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: #343a3077; }.confirmation { width: min(100%, 370px); border-radius: 16px; padding: 22px; background: #f7efdf; box-shadow: 0 12px 38px #343a3044; }.confirmation h2 { margin: 0; font-size: 1.25rem; }.confirmation p { margin: 9px 0 20px; color: #625c50; line-height: 1.45; }.confirmation > div { display: flex; justify-content: end; gap: 8px; }.confirmation button { border: 0; border-radius: 8px; padding: 9px 11px; font-weight: 800; }.confirmation-secondary { background: #eae5da; color: #554c3f; }.confirmation-primary { background: #526b48; color: white; }
.recipe-actions { display: flex; gap: 6px; }.icon-action { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: #eae5da; color: #554c3f; font-size: 1.1rem; line-height: 1; }.icon-action.delete-icon { background: #dce5d2; color: #405a3c; font-size: 1rem; }.icon-action.save-icon { background: #e7ecdf; color: #405a3c; font-size: 1.25rem; }.icon-action.save-icon.is-saved { background: #526b48; color: white; }
.annotatable { user-select: text; }.annotation-mark { border-radius: 3px; padding: 1px 2px; background: #e4d39d; color: inherit; }.annotation-action { position: fixed; z-index: 5; right: 22px; bottom: 92px; border: 0; border-radius: 999px; padding: 10px 13px; background: #343a30; color: white; box-shadow: 0 5px 18px #343a3044; font-weight: 800; }.recipe-comments article { margin-top: 10px; border-left: 3px solid #b39657; padding: 8px 11px; background: #f1ead5; }.recipe-comments q { font-size: .9rem; color: #625c50; }.recipe-comments p { margin-top: 5px; line-height: 1.4; }.recipe-comments article > div { display: flex; gap: 6px; margin-top: 9px; }.recipe-comments article button { border: 0; border-radius: 7px; padding: 5px 8px; background: #eae5da; color: #554c3f; font-size: .75rem; font-weight: 800; }.recipe-comments article button[data-delete-comment] { background: #dce5d2; color: #405a3c; }.annotation-composer q { display: block; margin: 12px 0; color: #625c50; line-height: 1.4; }.annotation-composer form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 800; }.annotation-composer textarea { width: 100%; border: 1px solid #cccdbf; border-radius: 8px; padding: 8px; font: inherit; resize: vertical; }.annotation-composer form > div { display: flex; justify-content: end; gap: 8px; margin-top: 14px; }
.account-page h1 { margin: 12px 0 8px; font-size: 1.8rem; }.account-form { display: grid; gap: 15px; margin-top: 24px; }.account-form label { display: grid; gap: 7px; font-weight: 800; }.account-form input { width: 100%; border: 1px solid #cccdbf; border-radius: 10px; padding: 11px; background: #fffdf7; outline-color: #526b48; }.account-button { margin-top: 16px; border: 0; border-radius: 9px; padding: 11px 14px; background: #526b48; color: white; font-weight: 800; }.account-button:disabled { opacity: .6; cursor: wait; }.account-button.secondary { background: #eae5da; color: #554c3f; }.text-button { margin-top: 17px; border: 0; padding: 0; background: transparent; color: #405a3c; font-weight: 750; }.account-message { margin-top: 18px; color: #625c50; line-height: 1.45; }
@media (max-width: 560px) { main { padding-inline: 10px; }.controls { gap: 3px; flex-wrap: wrap; }.current-category { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }.controls > .icon-button { flex-shrink: 0; }.controls .search { order: 1; flex-basis: 100%; margin-top: 5px; }.recipe-image { flex-basis: 92px; width: 92px; height: 92px; font-size: 2.75rem; }.recipe-card { gap: 10px; }.add-button { right: 20px; bottom: 20px; } }
.edit-section select { width: 100%; min-width: 0; border: 1px solid #cccdbf; border-radius: 10px; padding: 10px; background: #fffdf7; color: #343a30; font: inherit; font-weight: 400; outline-color: #526b48; }
.edit-section [hidden] { display: none; }


.author-picker { position: relative; margin-top: 7px; }
.author-entry { display: flex; }
.author-entry input { min-width: 0; border-radius: 10px 0 0 10px; }
.author-entry button { flex: 0 0 44px; border: 1px solid #cccdbf; border-left: 0; border-radius: 0 10px 10px 0; background: #e7ecdf; color: #405a3c; }
#author-options { position: absolute; top: 100%; left: 0; right: 0; z-index: 6; max-height: 220px; overflow-y: auto; background: #fffdf7; border: 1px solid #cccdbf; border-radius: 10px; box-shadow: 0 6px 18px #343a3022; }
#author-options [role="option"] { padding: 10px 12px; cursor: pointer; overflow-wrap: anywhere; }
#author-options [role="option"]:hover, #author-options [aria-selected="true"] { background: #e7ecdf; }

.tag-dropdown { position: relative; margin-top: 7px; }
.tag-dropdown .author-entry { display: flex; }
.tag-dropdown .author-entry input { min-width: 0; border-radius: 10px 0 0 10px; }
.tag-dropdown .author-entry button { flex: 0 0 44px; border: 1px solid #cccdbf; border-left: 0; border-radius: 0 10px 10px 0; background: #e7ecdf; color: #405a3c; }
#tag-options { position: absolute; top: 100%; left: 0; right: 0; z-index: 6; max-height: 220px; overflow-y: auto; background: #fffdf7; border: 1px solid #cccdbf; border-radius: 10px; box-shadow: 0 6px 18px #343a3022; }
#tag-options [role="option"] { padding: 10px 12px; cursor: pointer; overflow-wrap: anywhere; }
#tag-options [role="option"]:hover, #tag-options [aria-selected="true"] { background: #e7ecdf; }



.annotation-mark { cursor: pointer; }
.annotation-mark:focus-visible { outline: 2px solid #405a3c; outline-offset: 3px; }
.comment-popup { width: min(370px, calc(100vw - 32px)); max-height: 70dvh; overflow-y: auto; border: 1px solid #ddded2; border-radius: 16px; padding: 20px; background: #f7efdf; color: #343a30; box-shadow: 0 12px 38px #343a3044; }
.comment-popup::backdrop { background: #343a3055; }
.comment-popup-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.comment-popup h2 { margin: 0; font-size: 1.15rem; }
.comment-popup q { display: block; margin: 12px 0; color: #625c50; overflow-wrap: anywhere; }
.comment-popup p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.comment-popup-actions { display: flex; justify-content: end; gap: 8px; margin-top: 18px; }
.comment-popup button { border: 0; border-radius: 8px; padding: 9px 12px; background: #eae5da; color: #554c3f; font-weight: 750; }
.comment-popup button[data-delete-comment] { background: #dce5d2; color: #405a3c; }


#comment-peek { position: fixed; z-index: 20; width: max-content; max-width: min(260px, calc(100vw - 24px)); max-height: 35vh; overflow: hidden; padding: 10px 12px; border: 1px solid #cccdbf; border-radius: 10px; background: #f1ead5; color: #343a30; box-shadow: 0 3px 12px #343a3022; font-size: .85rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; }
@media (hover: none) and (pointer: coarse) {
  .annotation-mark { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

.annotation-action { right: auto; bottom: auto; width: 44px; height: 44px; padding: 11px; border-radius: 50%; line-height: 0; }


.tags .feed-add-tag { min-width: 28px; min-height: 28px; padding: 2px 8px; font-size: 1.1rem; line-height: 1; }
.feed-tag-popup form { margin-top: 14px; }
.feed-tag-entry { display: flex; gap: 8px; margin-top: 6px; }
.feed-tag-entry input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cccdbf; border-radius: 8px; font: inherit; }
.feed-tag-options { display: grid; max-height: 200px; overflow-y: auto; gap: 4px; margin-top: 8px; }
.feed-tag-options button { text-align: left; }

#sync-status { margin-top: 12px; color: #625c50; font-size: .875rem; }
.app-version { margin-top: 32px; color: #625c50; font-size: .8rem; }
.image-editor-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; }
.image-preview-button { position: relative; display: block; flex-shrink: 0; padding: 0; border: 0; border-radius: 11px; overflow: hidden; background: #f3e7cd; }
.image-change-hint { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; background: #343a30b8; color: white; font-size: .85rem; font-weight: 700; opacity: 0; transition: opacity .15s; pointer-events: none; }
.image-preview-button:hover .image-change-hint, .image-preview-button:focus-visible .image-change-hint { opacity: 1; }
@media (hover: none), (pointer: coarse) { .image-change-hint { top: auto; padding: 5px 3px; font-size: .75rem; opacity: 1; } }

.recipe-image img.is-placeholder, .detail-image img.is-placeholder, .editor-image img.is-placeholder { object-fit: contain; background: #f3e7cd; }
.image-editor > label { margin-top: 14px; }
.image-editor-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.image-editor-actions button { min-height: 44px; border: 1px solid #cccdbf; border-radius: 9px; background: #fffdf7; color: #405a3c; padding: 8px 12px; }
.image-editor-actions button[data-image-choice="remove"] { color: #b3261e; }
.editor-heading button:disabled { opacity: .6; cursor: wait; }
#sync-status button { margin-left: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; pointer-events: auto; }

/* Clay distinguishes destructive actions from sage primary controls. */
.delete-recipe, .icon-action.delete-icon, .tag-actions .delete-tag, .recipe-comments article button[data-delete-comment], .comment-popup button[data-delete-comment] { background: #f0e1d7; color: #874c36; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #526b48; outline-offset: 3px; }
.search:focus-within { outline: 2px solid #526b48; outline-offset: 2px; }

.recipe-tips { white-space: pre-wrap; }

.app-header { display: flex; align-items: center; gap: 12px; }
.app-logo { display: block; width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
