@import "./application.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-action); outline-offset: 4px; }
.clx-button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 46px; padding: .7rem 1.15rem; border: 1px solid var(--clx-color-border); border-radius: 10px; background: var(--clx-color-surface); color: var(--clx-color-text); font-weight: 650; line-height: 1.25; text-decoration: none; transition: transform 150ms ease; }
.clx-button:hover { transform: translateY(-1px); }
.clx-button--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: .86rem; }
.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: 650; font-size: .875rem; }
.clx-field :is(input,select,textarea) { width: 100%; min-height: 46px; padding: .7rem .85rem; border: 1px solid var(--clx-color-border); border-radius: 9px; 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: 18px; }
.clx-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600; border: 1px solid currentColor; border-radius: 6px; padding: .3rem .5rem; white-space: nowrap; }
.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(100vw - 32px)); max-height: min(90vh,900px); border: 1px solid var(--clx-color-border); border-radius: 22px; padding: 0; color: var(--clx-color-text); background: var(--clx-color-surface); box-shadow: 0 30px 100px rgb(0 0 0 / .3); }
.clx-dialog::backdrop { background: rgb(4 13 26 / .68); backdrop-filter: blur(5px); }
.dialog-head { padding: 1.45rem 1.7rem; display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--clx-color-border); }
.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.7rem; }
.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: 12px; 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: 10px; padding: 1rem; font-family: ui-monospace, monospace; font-size: .83rem; line-height: 1.7; text-align: left; direction: ltr; unicode-bidi: isolate; }
@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; } }
