/* Shared product language. Existing status, data and permission owners are unchanged. */
#content>.product-screen{font-size:14px;min-width:0}
.product-screen>h1,.product-screen>.restaurant-heading h1,.cw-page>h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:6px 0 12px;color:var(--text)}
.product-screen>p.muted{max-width:78ch;margin-bottom:26px}.product-screen h2{font-size:19px;letter-spacing:-.35px}.product-screen h3{font-size:15px}
.product-screen .card,.product-screen .settings-choice,.product-screen>.form{border:1px solid var(--border);border-radius:12px;background:white;padding:24px;box-shadow:0 2px 4px #18253f03}
.product-screen .grid{gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}.product-screen .card{margin-bottom:18px}
.product-screen .source-card{border-top:3px solid #d7d2ff}.product-screen .source-card .metrics{gap:12px}.product-screen .source-card h3{border-top:1px solid var(--border);padding-top:18px;color:var(--muted)}
.product-screen .metric{background:#f7f8fd;border:1px solid #e9edf5;border-radius:9px;padding:16px;min-width:0}.product-screen .metric>span{font-size:11px;color:var(--muted)}.product-screen .metric>strong{font-size:25px;line-height:1.3;font-variant-numeric:tabular-nums;letter-spacing:-.6px;overflow-wrap:anywhere}
.product-screen .source-card>button{width:100%;margin-top:8px}.product-screen .source-card>.muted{font-size:12px;line-height:1.6}.product-screen .badge{font-size:11px;border-radius:6px;padding:5px 9px}
.product-screen .note{border:1px solid #efd9b3;border-left:3px solid #e5aa48;border-radius:8px;background:#fff8ec;padding:14px 16px;font-size:13px;line-height:1.65}
.product-screen .error{border-radius:8px;padding:12px;background:#fff0ed;color:#a4302d}
.product-screen .form{max-width:720px;gap:10px}.product-screen label{font-size:13px;font-weight:550}.product-screen input,.product-screen select,.product-screen textarea{background:white;border-color:var(--border);border-radius:8px;min-height:44px;font-size:14px}.product-screen input[type=checkbox]{min-height:20px;width:20px;height:20px;accent-color:var(--accent)}
.product-screen button{font-size:13px;line-height:1.4}.product-screen .form>button[type=submit]{justify-self:start;min-width:160px;margin-top:12px}.product-screen .form>label:not(:first-child){margin-top:8px}
.product-screen .settings-grid{margin-top:30px;gap:18px}.product-screen .settings-choice{position:relative;padding:22px;min-height:155px;border-top:3px solid #d7d2ff}.product-screen .settings-choice>button{border:0;padding:0 30px 0 0;font-size:17px;letter-spacing:-.3px;min-height:44px}.product-screen .settings-choice>button:after{content:'';position:absolute;right:24px;top:23px;width:16px;height:16px;background:var(--accent);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18L18 6M6 6h12v12' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat}.product-screen .settings-choice p{font-size:13px;max-width:34ch;margin-bottom:0}
.product-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#eeedff;border:1px solid #dcd8fb;border-radius:12px;padding:22px;margin:24px 0}.product-toolbar>div{flex:1;min-width:200px}.product-toolbar p{margin:6px 0 0;font-size:12px}
.product-screen .table-scroll{border:1px solid var(--border);border-radius:10px;background:white;margin-top:18px}.product-screen table{font-size:13px;width:100%;font-variant-numeric:tabular-nums}.product-screen th{font-size:11px;color:var(--muted);background:#f8f9fd}.product-screen td,.product-screen th{padding:14px 16px}.product-screen caption{padding:18px;text-align:left;font-weight:600;color:var(--text)}
.product-screen .financial-scope{padding:18px;background:white;border:1px solid var(--border);border-radius:10px}.product-screen .financial-tabs{gap:8px;margin:20px 0;display:flex;flex-wrap:wrap}.product-screen .financial-tabs [aria-current=page]{background:var(--accent-soft);color:var(--accent);border-color:#cdc8fb}.product-screen .financial-summary{padding:22px;background:white;border:1px solid var(--border);border-radius:12px;gap:14px}.product-screen .financial-summary dd{font-variant-numeric:tabular-nums;font-weight:650}
.product-screen .empty{background:white;border:1px dashed #c8cfdf;border-radius:12px;padding:40px 24px;text-align:center}.product-screen details>summary{min-height:44px;padding-block:10px}.product-screen .section{margin-top:24px}
.cw-page{max-width:1150px;font-size:14px}.cw-page>p.muted{margin-bottom:28px}.cw-steps{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);padding:0;margin:28px 0 32px;gap:12px}.cw-steps li{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;line-height:1.4}.cw-steps li>span{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border:1px solid var(--border);border-radius:50%;background:white;font-weight:650}.cw-steps [aria-current=step]{color:var(--accent);font-weight:650}.cw-steps [aria-current=step]>span{background:var(--accent);color:white;border-color:var(--accent)}.cw-steps .cw-complete>span{color:var(--accent);background:var(--accent-soft);border-color:#d7d2ff}
.cw-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.cw-body{background:white;border:1px solid var(--border);border-radius:14px;padding:30px;min-width:0}.cw-body>h2{font-size:23px;letter-spacing:-.6px;margin:0 0 10px;outline:none}.cw-body>p.muted{font-size:13px;line-height:1.7;margin-bottom:24px}.cw-help{padding:24px 12px;color:var(--muted)}.cw-help h2{font-size:17px;color:var(--text);line-height:1.5;margin:18px 0 12px}.cw-help h3{font-size:13px;color:var(--text);margin:24px 0 8px}.cw-help p{font-size:12px;line-height:1.8}.cw-help hr{border:0;border-top:1px solid var(--border);margin:24px 0}
.cw-form{display:grid;gap:12px}.cw-form>label{font-size:12px;font-weight:600;margin-top:8px}.cw-form input:not([type=checkbox]):not([type=radio]),.cw-form select{width:100%;min-height:46px;background:white;border:1px solid var(--border);border-radius:8px;padding:11px 12px;font-size:14px}.cw-form>button{justify-self:start;margin-top:12px;font-size:13px}.cw-form>.muted,.cw-caption{font-size:11px;line-height:1.7;color:var(--muted)}.cw-caption{margin-top:24px}
.cw-providers,.cw-points{border:0;padding:0;margin:0;display:grid;gap:12px}.cw-provider,.cw-point{display:flex;align-items:flex-start;gap:12px;padding:18px;border:1px solid var(--border);border-radius:10px;cursor:pointer}.cw-provider:has(:checked),.cw-point:has(:checked){border-color:#8c82f1;background:#f5f3ff;box-shadow:0 0 0 1px #8c82f1}.cw-form input[type=radio],.cw-form input[type=checkbox]{width:18px;height:18px;min-height:18px;flex-shrink:0;accent-color:var(--accent);margin-top:3px}.cw-provider strong,.cw-point strong{display:block;font-size:15px}.cw-provider small,.cw-point small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:6px}.cw-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.7}.cw-point-row{border:1px solid var(--border);border-radius:10px;padding:16px;display:grid;gap:12px}.cw-point-row legend{font-weight:650;padding:0 6px}.cw-point-row>label{font-size:12px}.cw-data-row{border-top:1px solid var(--border);padding:18px 0}.cw-data-row p{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:0}.cw-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.cw-actions button{font-size:12px}.cw-feedback:empty{display:none}
@media(max-width:1190px){.cw-layout{grid-template-columns:1fr}.cw-help{display:none}.cw-body{max-width:760px}.product-screen .metric>strong{font-size:23px}}
@media(max-width:767px){.product-screen>h1,.product-screen>.restaurant-heading h1,.cw-page>h1{font-size:27px}.product-screen .card,.product-screen .settings-choice,.product-screen>.form{padding:18px}.product-screen .grid{grid-template-columns:1fr}.product-screen .metric{padding:12px}.product-screen .metric>strong{font-size:21px}.product-screen .settings-grid{gap:12px}.product-screen .settings-choice{min-height:130px}.product-toolbar{padding:18px}.product-toolbar>button{width:100%}.cw-steps{grid-template-columns:1fr 1fr;row-gap:16px;margin:24px 0}.cw-steps li{font-size:11px}.cw-steps li>span{width:26px;height:26px}.cw-body{padding:20px 16px}.cw-body>h2{font-size:21px}.cw-provider,.cw-point{padding:14px}.cw-form>button,.cw-actions>button{width:100%}.cw-actions{flex-direction:column}.product-screen .financial-tabs>button{flex:1;min-width:110px}}
#shell .cw-help{position:static;height:auto;min-height:0;background:transparent;border:0;display:block}
#shell .cw-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1190px){#shell .cw-help{display:none}}
#shell .bs-intro{background:#fff;color:var(--text);border:1px solid var(--border);border-radius:12px;padding:28px}#shell .bs-intro:after{display:none}#shell .bs-eyebrow{color:var(--muted)}#shell .bs-intro h1{font-size:32px;letter-spacing:-1px}#shell .bs-intro-tags span{background:#f5f4ff;border:1px solid #ddd9fa;color:#5148db;border-radius:6px}#shell .bs-panel{border-color:var(--border);box-shadow:none;border-radius:12px}#shell .bs-count{background:var(--accent-soft);color:var(--accent);border-radius:6px}#shell .bs-muted{color:var(--muted)}#shell .bs-upload{background:#fafbfe;border-color:#cbd2e3}#shell .bs-upload small{color:var(--muted)}
.product-disclosure{background:white;border:1px solid var(--border);border-radius:12px;margin:18px 0}.product-disclosure>summary{padding:18px 22px!important;cursor:pointer;color:var(--text)}.product-disclosure>summary>span{display:inline-block;vertical-align:middle;margin-left:8px}.product-disclosure summary strong{font-size:15px;font-weight:600}.product-disclosure summary small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.product-screen .product-disclosure>.card{border:0;box-shadow:none;margin:0;border-top:1px solid var(--border);border-radius:0 0 12px 12px}.product-screen .financial-notice{border-left-color:#8a81e8}.product-screen .financial-summary dt{color:var(--muted)}
@media(max-width:767px){.product-disclosure>summary{padding:16px!important}.product-disclosure summary>span{max-width:85%}.product-disclosure summary small{font-size:11px}}

.cw-secret{display:flex;gap:8px;align-items:center}.cw-secret input{flex:1;min-width:0}.cw-secret button{flex:none;font-size:12px}.cw-field-error{color:#a4302d;font-size:13px;margin:0 0 8px}
@media(max-width:767px){.product-screen input,.product-screen select,.product-screen textarea,.cw-form input:not([type=checkbox]):not([type=radio]),.cw-form select{font-size:16px}}
/* Restaurant-owned rule analysis entry: one visible action per active point. */
.restaurant-analysis-entry{margin-top:16px;padding:12px;background:var(--accent-soft);border-radius:10px}
.restaurant-analysis-entry>button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px}
.restaurant-analysis-entry>button:before{content:'';width:18px;height:18px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 16 5 5M8 13V9m5 4V7' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
.restaurant-analysis-entry>p{margin:8px 0 0;font-size:12px;line-height:1.5}

.product-screen .metric-missing .metric-missing-state{font-size:13px;font-weight:550;line-height:1.5;color:var(--muted);margin:10px 0 4px}
.product-screen .metric-missing .metric-missing-note{font-size:12px;line-height:1.5;color:var(--muted);margin:0}

/* Restaurant cards size their figures to the card, not the viewport. */
.product-screen .source-restaurant-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:start}
.product-screen .source-card .source-compact-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-screen .source-card .metric {padding:12px;min-width:0}
.product-screen .source-card .metric>strong {display:block;font-size:21px;line-height:1.4;letter-spacing:0;white-space:nowrap;overflow-wrap:normal}
.product-screen .source-card .metric>span {font-size:12px;line-height:1.4;margin-bottom:5px}
.product-screen .source-card .metric-unavailable>strong {font-size:14px;font-weight:500;color:var(--muted);white-space:normal;word-break:normal}
.product-screen .source-card .metric-missing-state {font-size:14px;font-weight:500;line-height:1.4;margin:0;color:var(--muted)}
.product-screen .source-card .metric-missing-note {font-size:12px;line-height:1.4;margin:6px 0 0;overflow-wrap:normal}
.product-screen .source-card-heading h2 {font-size:19px;line-height:1.4;margin-bottom:0;overflow-wrap:normal}
.product-screen .source-card-heading .badge {flex-shrink:0}
.product-screen .source-card .source-kitchen-detail summary {min-height:44px;line-height:44px;font-size:13px}
@media(min-width:1100px){.product-screen .source-card-detail .source-compact-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.product-screen .source-card{padding:16px}.product-screen .source-card .metric>strong{font-size:18px}.product-screen .source-card .metric-unavailable>strong{font-size:13px}.product-screen .source-card .metric{padding:10px}}
