/* A recipe notebook, not a second dashboard. Inherits Little Nourish's semantic palette. */
.cc-hub-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 24px}
.cc-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 17px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);font-family:inherit;font-weight:600;font-size:15px;line-height:1.3;text-align:center;text-decoration:none;white-space:normal;word-break:normal;overflow-wrap:normal;cursor:pointer}
.cc-button.cc-primary{background:var(--purple);color:var(--on-accent);border-color:transparent}
.cc-button:disabled{opacity:.55;cursor:wait}.cc-button:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.cc-mine{margin:20px 0 28px}.cc-mine>p{color:var(--muted);line-height:1.6}
.cc-recipe-row{display:flex;align-items:center;gap:14px;width:100%;padding:18px 0;min-height:76px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left;font:inherit;line-height:1.4}
.cc-recipe-row>span:nth-child(2){flex:1;min-width:0}.cc-recipe-row strong{display:block;font-size:17px;overflow-wrap:anywhere}.cc-recipe-row small{display:block;margin-top:5px;color:var(--muted);font-size:13px}
.cc-recipe-mark{display:grid;place-items:center;flex:none;width:44px;height:50px;background:var(--blue-soft);color:var(--purple);font-size:28px;border-radius:5px 13px 13px 5px}
.bottom-nav a[href="#groceries"]{position:relative}.cc-notification-badge{position:absolute;top:0;right:10px;border-radius:20px;background:var(--purple);color:var(--on-accent);min-width:19px;padding:2px;font:600 11px/15px sans-serif;text-align:center}
#communityDialog{position:fixed;inset:0;width:min(680px,100%);max-width:100%;height:min(900px,94dvh);max-height:100dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:28px;color:var(--ink);background:var(--canvas);overflow:hidden;box-sizing:border-box}
#communityDialog[open]{display:flex;flex-direction:column}#communityDialog::backdrop{background:#160e12aa;backdrop-filter:blur(8px)}
#communityDialog .cc-dialog-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);background:var(--canvas)}
#communityDialog h2{font-size:21px;line-height:1.25;margin:0;letter-spacing:-.025em;min-width:0;overflow-wrap:anywhere}
#communityDialog .cc-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--blue-soft);color:var(--ink);font-size:28px}
#communityDialog .cc-dialog-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px 24px max(28px,env(safe-area-inset-bottom));touch-action:pan-y}
#communityDialog p{font-size:16px;line-height:1.6;max-width:60ch;margin:0 0 20px}#communityDialog h3{font-size:20px;margin:26px 0 14px}
#communityDialog .cc-subtle{font-size:13px;color:var(--muted);line-height:1.65;margin-top:18px}
#ccStatus{flex:none;padding:12px 24px;margin:0!important;color:var(--success);font-size:14px!important;max-height:110px;overflow:auto}#ccStatus:empty{display:none}#ccStatus.cc-error{color:var(--danger)}
#communityDialog form{display:grid;gap:20px}#communityDialog label{display:grid;gap:8px;font-size:14px;font-weight:600;min-width:0}
#communityDialog input:not([type="checkbox"]),#communityDialog textarea,#communityDialog select{box-sizing:border-box;width:100%;min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:16px;line-height:1.5;font-weight:400;margin:0}
#communityDialog textarea{resize:vertical;min-height:150px}#communityDialog .cc-number-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}
#communityDialog .cc-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}#communityDialog .cc-actions>.cc-button{flex:1 1 auto}
#communityDialog .cc-scan-intro{padding:24px 0 12px}#communityDialog .cc-scan-intro h3{font:400 34px/1.1 Georgia,serif;letter-spacing:-.03em;margin:20px 0 16px}
#communityDialog .cc-scan-symbol{display:block;width:48px;height:48px;color:var(--purple)}#communityDialog .cc-photo-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}
#communityDialog .cc-original{margin:0 0 20px}#communityDialog .cc-original summary{padding:12px 0;color:var(--purple);cursor:pointer}
#communityDialog .cc-photo-preview{display:block;object-fit:contain;max-height:42dvh;width:100%;border-radius:16px;background:var(--surface)}
#communityDialog .cc-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#communityDialog .cc-photo-heading h3{margin:0}#communityDialog .cc-photo-heading>span{white-space:nowrap;color:var(--muted);font-size:.875rem;font-variant-numeric:tabular-nums}
#communityDialog [data-cc="read"]{width:100%}
#communityDialog .cc-photo-list{display:grid;gap:12px;list-style:none;padding:0;margin:20px 0}
#communityDialog .cc-photo-list>li{display:flex;align-items:center;gap:16px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
#communityDialog .cc-photo-list img{width:76px;height:96px;object-fit:contain;background:var(--canvas);border-radius:8px;flex:none}
#communityDialog .cc-photo-list li>div{min-width:0;flex:1}#communityDialog .cc-photo-list strong{font-size:.9375rem}
#communityDialog .cc-photo-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#communityDialog .cc-photo-tools button{min-width:44px;min-height:44px;padding:8px;font-size:1.25rem;border-radius:12px}
#communityDialog .cc-photo-tools button:last-child{margin-left:auto}#communityDialog .cc-photo-tools button:disabled{cursor:default;opacity:.35}
#communityDialog .cc-original figure{margin:16px 0}#communityDialog .cc-original figcaption{font-size:.875rem;color:var(--muted);margin:0 0 8px}
#communityDialog .cc-review-note{padding:16px;border-radius:14px;background:var(--warning-soft);color:var(--warning);line-height:1.6;margin-bottom:20px}
#communityDialog .cc-recipe-heading span{font-size:13px;color:var(--purple)}#communityDialog .cc-recipe-heading h3{font:400 32px/1.17 Georgia,serif;margin:12px 0 24px;overflow-wrap:anywhere}
#communityDialog .cc-facts{display:flex;gap:24px;padding-bottom:20px;border-bottom:1px solid var(--line)}#communityDialog .cc-facts small{display:block;font-size:12px;color:var(--muted)}#communityDialog .cc-facts strong{display:block;margin-top:6px;font-size:20px}
#communityDialog .cc-ingredients,#communityDialog .cc-steps{padding-left:25px;font-size:16px;line-height:1.7}#communityDialog li{padding:6px 0 6px 4px;overflow-wrap:anywhere}#communityDialog .cc-steps li{padding-bottom:18px}
#communityDialog .cc-checkbox{display:flex;gap:12px;align-items:flex-start;line-height:1.6}#communityDialog .cc-checkbox input{width:22px;height:22px;flex:none;margin-top:2px}
#communityDialog .cc-friend-row{padding:18px 0;border-bottom:1px solid var(--line)}#communityDialog .cc-friend-row strong{overflow-wrap:anywhere}#communityDialog .cc-friend-row .cc-actions{align-items:center}
#communityDialog .cc-shared>small{color:var(--purple)}#communityDialog [hidden]{display:none!important}
#ccInviteResult:not(:empty){margin-top:18px}
/* Honor browser text sizing without shrinking touch targets. */
.cc-button{font-size:.9375rem}.cc-recipe-row strong{font-size:1.0625rem}.cc-recipe-row small{font-size:.8125rem}
#communityDialog h2{font-size:1.3125rem}#communityDialog h3{font-size:1.25rem}#communityDialog p{font-size:1rem}
#communityDialog .cc-subtle{font-size:.8125rem}#communityDialog label{font-size:.875rem}
#communityDialog input:not([type="checkbox"]),#communityDialog textarea,#communityDialog select{font-size:1rem}
#communityDialog .cc-ingredients,#communityDialog .cc-steps{font-size:1rem}
#communityDialog .cc-scan-intro h3{font-size:2.125rem}#communityDialog .cc-recipe-heading h3{font-size:2rem}
#communityDialog .cc-facts small{font-size:.75rem}#communityDialog .cc-facts strong{font-size:1.25rem}
#communityDialog .cc-recipe-heading span{font-size:.8125rem}
@media(max-width:600px){#communityDialog{height:100dvh;max-height:100dvh;border:0;border-radius:0;width:100%;margin:0}#communityDialog .cc-dialog-header{padding:calc(12px + env(safe-area-inset-top)) 20px 12px}#communityDialog .cc-dialog-body{padding:20px 20px max(28px,env(safe-area-inset-bottom))}.cc-hub-actions>.cc-button:first-child{flex-basis:100%}#communityDialog .cc-number-fields label{font-size:12px}#communityDialog .cc-number-fields input{padding:12px 8px}}
@media(prefers-reduced-motion:no-preference){#communityDialog[open]{animation:cc-arrive .18s ease-out}@keyframes cc-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
