/* All new controls remain scoped to the Corks application. */
.cm-app .cm-language{display:flex;justify-content:flex-end;gap:6px;margin-bottom:16px}
.cm-app .cm-language [aria-pressed=true]{background:var(--cm-wine);color:#fff;border-color:var(--cm-wine)}
.cm-app .cm-daily{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #cddbd0;background:#eef3ee;border-radius:10px;margin:0 0 20px}
.cm-app .cm-daily strong{font-size:14px}.cm-app .cm-daily .cm-photo-help{margin:4px 0 0!important}.cm-app .cm-daily-pending{background:#f6eddf;border-color:#e6d5ba}
.cm-app .cm-more{position:relative;font-size:12px}.cm-app .cm-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;color:var(--cm-wine);list-style:none;user-select:none}
.cm-app .cm-more summary:after{content:'⌄';font-size:15px}.cm-app .cm-more[open] summary:after{content:'⌃'}
.cm-app .cm-more-body{padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:8px;background:#fffdfa;border:1px solid var(--cm-line);border-radius:9px;max-width:100%}
.cm-app .cm-more-body .cm-btn{text-align:left;white-space:normal;padding:9px 12px;font-size:12px!important;min-height:44px}
.cm-app .cm-secondary-tools{margin-bottom:16px}.cm-app .cm-secondary-tools>.cm-more>.cm-more-body{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}
.cm-app .cm-primary-actions .cm-transfer{align-self:center}.cm-app .cm-primary-actions .cm-transfer[open]{flex-basis:100%}.cm-app .cm-primary-actions .cm-transfer>.cm-more-body{flex-direction:row;flex-wrap:wrap}
.cm-app .cm-secondary-tools .cm-photo-help{flex-basis:100%}.cm-app .cm-category-actions>.cm-more{flex-basis:100%;text-align:left}
.cm-app .cm-category-actions>.cm-more>.cm-more-body{max-width:400px}.cm-app .cm-category-actions{max-width:440px}
.cm-app .cm-variants{margin-top:10px;max-width:360px;display:grid;gap:8px}.cm-app .cm-variant{display:flex;align-items:baseline;gap:18px;justify-content:space-between;font-size:14px}
.cm-app .cm-translation-fallback{display:block;font-size:11px;color:var(--cm-muted);margin-top:9px}
.cm-app .cm-paused-badge{display:block;font-size:12px;color:#6f4b23;margin-top:9px}
.cm-app .cm-variant-field{border:1px solid var(--cm-line);border-radius:9px;padding:14px;margin:14px 0;min-width:0}.cm-app .cm-variant-field legend{font-size:13px;color:var(--cm-wine);padding:0 6px}
.cm-app .cm-variant-field .cm-form-row{grid-template-columns:1fr 1fr}.cm-app .cm-extra-dialog .cm-select{width:100%;white-space:normal;max-width:100%}
.cm-app .cm-days{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin:12px 0 20px}.cm-app .cm-unused-photo{display:flex;gap:12px;align-items:center;margin:14px 0;overflow-wrap:anywhere}
.cm-app .cm-unused-photo img{object-fit:contain;flex-shrink:0}.cm-app .cm-group-choices{max-height:45vh;overflow:auto;margin:16px 0;padding:4px}
.cm-app .cm-collapsed>.cm-card,.cm-app .cm-collapsed>.cm-category-note{display:none}
@media(max-width:700px){
  .corks-menu-team-page .cm-team-page-heading{padding:16px}.corks-menu-team-page .cm-team-page-main{padding-top:8px}
  .cm-team-app .cm-header{padding:22px 18px}.cm-team-app .cm-header h2{font-size:28px;line-height:1.15}.cm-team-app .cm-header p{font-size:13px}.cm-team-app .cm-eyebrow{margin-bottom:10px}
  .cm-app .cm-account{margin-bottom:14px}.cm-app .cm-stats{margin-bottom:16px}.cm-app .cm-primary-actions{margin-bottom:10px;align-items:center}
  .cm-app .cm-primary-actions>.cm-btn:first-child{width:auto;flex:1}.cm-app .cm-filters{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:3px}.cm-app .cm-filter{flex-shrink:0}
  .cm-app .cm-daily{display:block;padding:14px}.cm-app .cm-daily .cm-btn{margin-top:12px;width:100%;font-size:12px!important}
  .cm-app .cm-card-title{flex-wrap:wrap}.cm-app .cm-card-title h3{flex:1 1 150px}.cm-app .cm-card .cm-price{white-space:normal;overflow-wrap:anywhere}
  .cm-app .cm-category-actions{max-width:none;align-items:center}.cm-app .cm-category-actions>.cm-more{flex-basis:auto}
  .cm-app .cm-card-actions{flex-wrap:wrap}.cm-app .cm-card-actions>.cm-more{flex-basis:100%}.cm-app .cm-card-actions>.cm-more>summary{min-height:32px}
  .cm-app .cm-category-header .cm-category-title{font-size:25px!important;overflow-wrap:anywhere}.cm-app .cm-variant-field .cm-form-row{grid-template-columns:1fr}
.cm-app .cm-secondary-tools>.cm-more>.cm-more-body{display:flex;flex-direction:column;align-items:stretch}
  .cm-app .cm-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.cm-app .cm-stat{min-width:0}.cm-app .cm-form-row{grid-template-columns:1fr}
}
@media(max-width:380px){.cm-app [data-cm-shell]{padding:16px}.cm-app .cm-header{padding:26px 18px}.cm-app .cm-form{padding:18px}.cm-app .cm-category-actions{gap:8px}.cm-app .cm-card-title h3{flex-basis:100%}}
/* Category controls follow the title and shared note in reading order. */
.cm-app .cm-category-header{align-items:flex-start}
.cm-app .cm-category-heading>.cm-category-edit-note{display:block;margin-top:4px}
.cm-app .cm-category-heading>.cm-more{display:block;margin-top:0;text-align:left}
.cm-app .cm-category-heading>.cm-more>.cm-more-body{max-width:440px}
.cm-app .cm-category-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;padding-top:0}
@media(max-width:700px){.cm-app .cm-category-header{flex-wrap:nowrap}.cm-app .cm-category-heading{flex:1;min-width:0}.cm-app .cm-category-actions{width:auto;flex:0 0 auto;max-width:46%}.cm-app .cm-category-toggle{white-space:normal}.cm-app .cm-category-header .cm-category-title{font-size:23px!important}}
/* Shared right edge for prices and portions in public and team cards. */
.cm-app .cm-card-title>.cm-price{margin-left:auto;text-align:right;flex-shrink:0}
.cm-app .cm-meta-row{display:flex;justify-content:space-between;gap:16px}
.cm-app .cm-meta-row>.cm-portion{margin-left:auto;text-align:right}
.cm-app .cm-variants{max-width:none;width:100%;margin-left:auto}
.cm-app .cm-variant{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,auto);column-gap:22px;justify-content:normal;align-items:baseline}
.cm-app .cm-variant>span{text-align:right;overflow-wrap:anywhere}
.cm-app .cm-variant>.cm-price{text-align:right;justify-self:end}
@media(max-width:700px){.cm-app .cm-variant{grid-template-columns:minmax(0,1fr) minmax(90px,auto);column-gap:14px}}
/* Variant pricing starts on the same baseline as the dish title. */
.cm-app .cm-card-title>.cm-variants{flex:0 1 340px;width:auto;margin:0 0 0 auto;align-self:baseline}
.cm-app .cm-card-title:has(>.cm-variants){align-items:baseline;flex-wrap:nowrap}
.cm-app .cm-card-title:has(>.cm-variants)>h3{flex:1;min-width:0}
@media(max-width:700px){.cm-app .cm-card-title>.cm-variants{flex:0 1 58%;min-width:0}.cm-app .cm-card-title:has(>.cm-variants)>h3{flex:1 1 35%;min-width:0}.cm-app .cm-card-title>.cm-variants .cm-variant{grid-template-columns:minmax(0,1fr) auto;gap:8px;font-size:12px}.cm-app .cm-card-title>.cm-variants .cm-price{font-size:12px}}

.cm-app .cm-team-description .cm-description-preview,
.cm-app .cm-team-description .cm-description-toggle { display: none; }
@media (max-width: 700px) {
  .cm-team-app .cm-card { padding: 14px; gap: 10px; }
  .cm-team-app .cm-card-with-photo .cm-dish-photo { width: 76px; height: 66px; flex: 0 0 76px; align-self: flex-start; }
  .cm-team-app .cm-card-with-photo .cm-card-content { flex: 1 1 0; min-width: 0; }
  .cm-team-app .cm-card-title h3 { font-size: 15px !important; }
  .cm-team-app .cm-card .cm-description { font-size: 13px; line-height: 1.4; }
  .cm-team-app .cm-card .cm-allergens { font-size: 11px; line-height: 1.4; }
  .cm-team-app .cm-team-description:not(.cm-description-expanded) .cm-description-full { display: none; }
  .cm-team-app .cm-team-description:not(.cm-description-expanded) .cm-description-preview,
  .cm-team-app .cm-team-description .cm-description-toggle { display: block; }
  .cm-team-app .cm-team-description .cm-description-toggle { min-height: 36px; }
}

.cm-app .cm-secondary-tools { display:flex; flex-wrap:wrap; gap:8px; }
.cm-app .cm-item-direct-actions { display:grid; gap:6px; justify-items:start; }
.cm-app .cm-item-direct-actions .cm-btn { font-size:12px !important; padding:7px 10px; min-height:40px; }
@media (max-width:700px) {
  .cm-team-app .cm-card-actions { flex-direction:column; align-items:flex-start; gap:6px; }
}
