@import "./application.css";
@import "./icons.css";
/* Shared, token-based controls. No app selectors or service initialization. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
a { color: inherit; }
:where(a,button,input,select,textarea,[tabindex]):focus-visible { outline: 3px solid var(--clx-color-focus); outline-offset: 4px; }
.clx-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: var(--clx-control-min-target); min-width: var(--clx-control-min-target); padding: .7rem 1.15rem; border: 1px solid var(--clx-color-border); border-radius: var(--clx-radius-control); background: var(--clx-color-surface); color: var(--clx-color-text); font-weight: 600; line-height: 1.4; text-align: center; white-space: normal; overflow-wrap: anywhere; text-decoration: none; transition: background-color 150ms ease; }
.clx-button:hover { filter:brightness(.96); }
.clx-button:active { transform:translateY(1px); }
.clx-button--primary { min-height: var(--clx-control-primary); background: var(--clx-color-action); border-color: var(--clx-color-action); color: var(--clx-color-on-action); }
.clx-button--quiet { border-color: transparent; background: transparent; }
.clx-button--small { padding: .55rem .8rem; font-size: .875rem; }
.clx-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.clx-field { display: grid; gap: .4rem; min-width: 0; }
.clx-field > span, .clx-field > label { font-weight: 600; font-size: .875rem; }
.clx-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { width: 100%; min-width: 0; min-height: var(--clx-control-field); padding: .85rem 1rem; border: 1px solid var(--clx-color-border); border-radius: var(--clx-radius-control); background: var(--clx-color-canvas); color: var(--clx-color-text); }
.clx-field input::placeholder { color: var(--clx-color-muted); opacity: 1; }
.clx-field [aria-invalid="true"] { border-color: var(--clx-color-error); }
.field-error { color: var(--clx-color-error); font-size: .875rem; margin: .25rem 0; }
.clx-card { background: var(--clx-color-surface); border: 1px solid var(--clx-color-border); border-radius: var(--clx-radius-card); }
.clx-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; border: 1px solid currentColor; border-radius: var(--clx-radius-small); padding: .3rem .5rem; white-space: normal; overflow-wrap: anywhere; }
.clx-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.clx-badge--progress, .clx-badge--available { color: var(--clx-color-info); background: var(--clx-color-info-background); }
.clx-badge--onWay, .clx-badge--complete, .clx-badge--free, .clx-badge--contracted, .clx-badge--paid_monthly, .clx-badge--paid_yearly { color: var(--clx-color-success); background: var(--clx-color-success-background); }
.clx-badge--scheduled, .clx-badge--trial_active, .clx-badge--enterprise_provisional { color: var(--clx-color-warning); background: var(--clx-color-warning-background); }
.clx-badge--pending, .clx-badge--paused, .clx-badge--dependency_blocked { color: var(--clx-color-muted); background: var(--clx-color-canvas); }
.clx-badge--expired, .clx-badge--compliance_suspended { color: var(--clx-color-error); background: var(--clx-color-error-background); }
.clx-dialog { width: min(680px,calc(100% - 2 * var(--clx-content-inset))); max-height: min(calc(100dvh - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)),900px); overflow: auto; border: 1px solid var(--clx-color-border); border-radius: var(--clx-radius-dialog); padding: 0; color: var(--clx-color-text); background: var(--clx-color-surface); box-shadow: var(--clx-shadow-large); }
.clx-dialog::backdrop { background: rgb(36 60 52 / .50); }
.dialog-head { padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--clx-color-border); }
.dialog-head > :not(button) { min-width: 0; }
.dialog-head > button { flex-shrink: 0; }
.dialog-head h2 { font-size: 1.4rem; margin: 0; line-height: 1.4; }
.dialog-head p { margin: .5rem 0 0; color: var(--clx-color-muted); font-size: .9rem; }
.dialog-body { padding: 1.25rem; }
.dialog-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding-top: 1.5rem; }
.clx-status { padding: 1.25rem; border: 1px solid var(--clx-color-border); border-radius: var(--clx-radius-control); background: var(--clx-color-canvas); }
.clx-status h3 { margin: 0 0 .4rem; font-size: 1rem; }
.clx-status p { margin: 0; color: var(--clx-color-muted); line-height: 1.65; }
.clx-status--error { border-color: var(--clx-color-error); }
.clx-status--success { border-color: var(--clx-color-success); }
.clx-status--loading::before { content: ""; display: block; width: 25px; height: 25px; border: 2px solid var(--clx-color-border); border-top-color: var(--clx-color-action); border-radius: 50%; margin-bottom: .8rem; animation: clx-spin 900ms linear infinite; }
.clx-code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--clx-color-canvas); border: 1px solid var(--clx-color-border); border-radius: var(--clx-radius-control); padding: 1rem; font-family: var(--clx-font-family-body); font-size: .83rem; line-height: 1.7; text-align: left; direction: ltr; unicode-bidi: isolate; }
.knowledge-citations { margin-block-start: 10px; padding-block-start: 9px; border-block-start: 1px solid color-mix(in srgb, currentColor 24%, transparent); font-style: normal; text-align: start; }
.knowledge-citations__heading { display: flex; align-items: center; gap: 8px; margin-block-end: 8px; font-size: .875rem; }
.knowledge-citations__heading .clx-icon { width:16px; height:16px; }
.knowledge-citations__list { display: grid; gap: 7px; margin: 0; padding-inline-start: 20px; }
.knowledge-citations__list li { min-width: 0; }
.knowledge-citations__title,.knowledge-citations__coordinate { display: block; overflow-wrap: anywhere; }
.knowledge-citations__title { font-weight: 600; }
.knowledge-citations__coordinate { margin-block-start: 4px; font-size: .875rem; }
@keyframes clx-spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .clx-button,.clx-badge,.clx-card,.clx-dialog { border: 1px solid CanvasText; } }
