/* Shared channel components use the same charcoal/gold palette in every workspace. */
.cxch{--cxch-text:#182a37;--cxch-surface:#fff;--cxch-input:#fff;--cxch-line:#d7e0e6;--cxch-input-line:#8496a2;--cxch-accent:#16394b;--cxch-on-accent:#fff;--cxch-link:#174e72}
.cxch{--cxch-text:#f5f3ed;--cxch-surface:#151b20;--cxch-input:#0d1216;--cxch-line:#3d4750;--cxch-input-line:#6c7780;--cxch-accent:#e2c475;--cxch-on-accent:#111418;--cxch-link:#e2c475;color-scheme:dark}
.cxch{font:16px/1.5 system-ui,sans-serif;color:var(--cxch-text);max-width:1120px;margin:24px auto;padding:16px;box-sizing:border-box}.cxch *{box-sizing:border-box}.cxch header{border-bottom:1px solid var(--cxch-line);padding:12px 0 24px}.cxch h1{font-size:30px;line-height:1.2}.cxch h2{font-size:23px}.cxch h3{font-size:19px}.cxch-card{border:1px solid var(--cxch-line);border-radius:16px;background:var(--cxch-surface);padding:24px;margin:20px 0;box-shadow:0 4px 18px #15263508}.cxch label{display:flex;flex-direction:column;gap:5px;margin:12px 0;font-weight:600}.cxch input,.cxch select{font:inherit;width:100%;padding:11px;border:1px solid var(--cxch-input-line);border-radius:7px;background:var(--cxch-input);color:var(--cxch-text)}.cxch button,.cxch .button{font:inherit;min-height:44px;padding:10px 18px;background:var(--cxch-accent);color:var(--cxch-on-accent);border:0;border-radius:8px;cursor:pointer}.cxch button:disabled{opacity:.55;cursor:default}.cxch a{color:var(--cxch-link);text-decoration:underline;overflow-wrap:anywhere}.cxch summary{cursor:pointer;font-weight:700;padding:14px 0}.cxch-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}.cxch-actions label{flex:1;min-width:150px}.cxch-material{max-width:380px;border:1px solid var(--cxch-line);border-radius:12px;padding:20px;text-align:center}.cxch svg{display:block;width:min(240px,100%);height:auto;margin:10px auto;shape-rendering:crispEdges}.cxch-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.cxch-jobs article{border:1px solid var(--cxch-line);padding:16px;border-radius:10px}.cxch-jobs span{display:block}.cxch .cxch-consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}.cxch-consent input{width:20px;height:20px;flex:0 0 20px;margin-top:4px}.cxch-ref{margin:10px 0;background:var(--cxch-surface);border-radius:10px;padding:0 15px}.cxch [hidden]{display:none!important}.cxch :focus-visible{outline:3px solid var(--cxch-accent);outline-offset:3px}@media(max-width:600px){.cxch{padding:12px}.cxch-card{padding:16px}.cxch h1{font-size:26px}.cxch-actions button{flex:1}}@media print{body.cxch-printing *{visibility:hidden}body.cxch-printing .cxch-print-card,body.cxch-printing .cxch-print-card *{visibility:visible}body.cxch-printing .cxch-print-card{position:absolute;left:0;top:0;width:90mm;max-width:90mm}body.cxch-printing .cxch-print-card a[download]{display:none}}

.cxch-filter{margin-top:24px;border-top:1px solid var(--cxch-line);padding-top:12px}.cxch-filter [aria-pressed="true"]{background:var(--cxch-accent);color:var(--cxch-on-accent);box-shadow:inset 0 0 0 2px var(--cxch-accent)}.cxch-calendar table{width:100%;border-collapse:collapse;table-layout:fixed;margin:12px 0 24px}.cxch-calendar caption{text-align:left;font-weight:700;padding:10px}.cxch-calendar th{font-size:13px;padding:6px 0}.cxch-calendar td{border:1px solid var(--cxch-line);padding:3px;vertical-align:top}.cxch-calendar button{display:flex;flex-direction:column;align-items:center;justify-content:space-between;width:100%;min-height:64px;padding:6px 0;background:var(--cxch-input);color:var(--cxch-text)}.cxch-calendar button strong{font-size:13px;color:var(--cxch-link)}.cxch-permission{padding:12px 0;border-top:1px solid var(--cxch-line)}.cxch [data-secondary]{padding:12px 0;border-top:1px solid var(--cxch-line)}.cxch-filter input{min-width:0}.cxch-calendar{max-width:100%}@media(max-width:420px){.cxch-calendar td{padding:1px}.cxch-calendar th{font-size:11px}.cxch-calendar button{min-height:48px;border-radius:3px}.cxch-actions label{min-width:100%;width:100%}}


/* Public workspaces and calculator share CARONYX's charcoal and gold palette. */
.cxch[data-cxch-workspace]>header{background:var(--cxch-surface);color:var(--cxch-text);border:1px solid var(--cxch-line);border-radius:16px;padding:24px}
.cxch :is(h1,h2,h3,p,label,summary,caption,th){color:var(--cxch-text)}
.cxch :is(h1,h2,h3){font-family:inherit}
.cxch:not(.wrap) button,.cxch:not(.wrap) .button{font-weight:700;color:var(--cxch-on-accent)!important;-webkit-text-fill-color:currentColor}
.cxch.cxch-ref{border:1px solid var(--cxch-line);max-width:100%;margin:16px 0}
/* The calculator/theme input rules must not make reference text invisible. */
.cq3 .cxch.cxch-ref input,.cxch:not(.wrap) input,.cxch:not(.wrap) select{background:var(--cxch-input);color:var(--cxch-text);-webkit-text-fill-color:var(--cxch-text);caret-color:var(--cxch-accent);border-color:var(--cxch-input-line);font-size:16px;min-height:44px}
.cxch:not(.wrap) input::placeholder{color:#b9c2c9;opacity:1}
.cxch:not(.wrap) input[type=checkbox]{min-height:20px;accent-color:var(--cxch-accent)}
.cxch:not(.wrap) button:hover:not(:disabled){filter:brightness(1.08)}
.cxch:not(.wrap) [data-clear],.cxch:not(.wrap) [data-second-clear],.cxch:not(.wrap) [data-recheck]{background:transparent;color:var(--cxch-link)!important;border:1px solid var(--cxch-input-line)}
.cxch:not(.wrap) .cxch-calendar button{color:var(--cxch-text)!important}
.cxch:not(.wrap) .cxch-calendar button strong{color:var(--cxch-link)}
.cxch:not(.wrap) .cxch-material{background:var(--cxch-input)}
.cxch:not(.wrap) .cxch-material svg{background:#fff;color:#000;border:8px solid #fff;border-radius:8px}
.cxch:not(.wrap) .cxch-ref a,.cxch-ref>a{display:inline-block;margin:8px 0}
.cxch:not(.wrap) :focus-visible{outline:3px solid var(--cxch-accent);outline-offset:3px}
@media(max-width:600px){.cxch[data-cxch-workspace]>header{padding:18px}.cxch-ref .cxch-actions{gap:8px}.cxch-ref .cxch-actions button{flex:1 1 auto}}
@media print{.cxch-print-card{--cxch-text:#111418;--cxch-input:#fff;--cxch-surface:#fff;--cxch-link:#111418;background:#fff!important;color:#111418!important;color-scheme:light}}

/* Proposal163: compact referral, visible only for a referral entry. */
.cxch.cxch-ref{background:transparent;border:0;border-bottom:1px solid #675c3b;border-radius:0;margin:0 0 16px;padding:0 2px}
.cxch.cxch-ref summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:9px 2px;font-size:14px;list-style:none;color:#e2c475}
.cxch.cxch-ref summary::-webkit-details-marker{display:none}
.cxch-ref-manage{font-size:12px;color:#f5f3ed;font-weight:500;white-space:nowrap}
.cxch-ref-manage::after{content:'⌄';display:inline-block;margin-left:8px}
.cxch-ref details[open] .cxch-ref-manage::after{transform:rotate(180deg)}
.cxch-ref details[open]{padding-bottom:16px}
.cxch-ref [data-reference-label]{overflow-wrap:anywhere}

/* C3 basic independent requests: no horizontal table on narrow screens. */
.cxch .cxch-batch-row{border:1px solid var(--cxch-input-line,#716440);border-radius:12px;padding:16px;margin:16px 0;min-width:0}
.cxch .cxch-batch-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cxch .cxch-batch-row input,.cxch .cxch-batch-row select{width:100%;min-width:0;box-sizing:border-box}
.cxch .cxch-batch-row a{overflow-wrap:anywhere}.cxch [data-batch-result]{white-space:pre-line}
.cxch .cxch-consent{display:flex;align-items:flex-start;gap:10px;padding:12px 0}.cxch .cxch-consent input{width:auto;flex:0 0 auto}
.cxch [hidden]{display:none!important}
@media(max-width:600px){.cxch .cxch-batch-fields{grid-template-columns:1fr}.cxch .cxch-batch-row{padding:12px}}

/* Property forms use the same readable, responsive workspace controls. */
.cxch textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:76px;background:var(--cxch-input);color:var(--cxch-text);-webkit-text-fill-color:var(--cxch-text);border:1px solid var(--cxch-input-line);border-radius:8px;padding:12px;font:inherit}.cxch summary{cursor:pointer;overflow-wrap:anywhere}.cxch-card p{overflow-wrap:anywhere}
