/*
 * Alido — static rendition stylesheet for the component previews.
 * Hand-written from src/components/ui and src/components/patterns (QA, 2026-11-21):
 * same tokens and geometry, none of the product's behaviour. The product's own
 * styles are Tailwind utilities inside each component; this file is not them.
 */
.a-root{font-family:var(--font-brand);font-size:var(--text-body,14px);line-height:20px;color:var(--foreground);background:var(--background);-webkit-font-smoothing:antialiased}
.a-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.a-col{display:flex;flex-direction:column;gap:8px}
.a-pad{padding:16px}
.a-tinted{background:var(--sidebar)}
.a-label{font-size:12.5px;line-height:18px;color:var(--muted-foreground)}

/* Button: labelled actions are pills */
.a-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--control-height);padding:0 14px;border:1px solid transparent;border-radius:var(--radius-pill);font:500 13.5px/18px var(--font-brand);cursor:pointer;white-space:nowrap;background:transparent;color:var(--foreground);transition:background-color var(--motion-base,150ms)}
.a-btn svg{width:16px;height:16px;flex:none}
.a-btn--default{background:var(--primary);color:var(--primary-foreground)}
.a-btn--default:hover{background:var(--primary-hover)}
.a-btn--outline{border-color:var(--input);background:var(--background)}
.a-btn--outline:hover,.a-btn--ghost:hover{background:var(--accent)}
.a-btn--secondary{background:var(--muted)}
.a-btn--secondary:hover{background:var(--secondary)}
.a-btn--destructive{background:var(--destructive-surface);color:var(--destructive)}
.a-btn--destructive:hover{background:var(--destructive-hover)}
.a-btn--link{color:var(--link);padding:0;height:auto}
.a-btn--row{height:var(--row-action-height);border-color:var(--border);background:var(--muted);border-radius:var(--radius-control);padding:0 12px}
.a-btn--sm{height:var(--control-height-sm);padding:0 12px;font-size:13px}
.a-btn--lg{height:var(--control-height-lg);padding:0 16px;font-size:14px}
.a-btn[disabled]{opacity:.45;cursor:default}
.a-btn:focus-visible,.a-focus{outline:none;box-shadow:0 0 0 var(--focus-ring-offset) var(--background),0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--ring)}

/* IconButton: 30px squares with 9px corners */
.a-ib{display:inline-grid;place-items:center;width:var(--icon-button-size);height:var(--icon-button-size);border:0;border-radius:var(--radius-control);background:transparent;color:var(--muted-foreground);cursor:pointer}
.a-ib:hover{background:var(--accent);color:var(--foreground)}
.a-ib[aria-pressed=true]{background:var(--secondary);color:var(--foreground)}
.a-ib svg{width:16px;height:16px}
.a-send{display:inline-grid;place-items:center;width:var(--send-button-size);height:var(--send-button-size);border:0;border-radius:var(--radius-pill);background:var(--primary);color:var(--primary-foreground)}
.a-send[disabled]{background:var(--border-strong);color:var(--background)}
.a-send svg{width:17px;height:17px}

/* Badge / StatusBadge */
.a-badge{display:inline-flex;align-items:center;gap:4px;height:var(--badge-height);padding:0 8px;border-radius:var(--radius-chip);font:500 12px/16px var(--font-brand);background:var(--muted);color:var(--foreground);white-space:nowrap}
.a-badge--accent{background:var(--secondary)}
.a-badge--success{background:var(--success-surface);color:var(--success)}
.a-badge--warning{background:var(--warning-surface);color:var(--warning)}
.a-badge--danger{background:var(--destructive-surface);color:var(--destructive)}
.a-badge--outline{background:transparent;box-shadow:inset 0 0 0 1px var(--border-strong)}
.a-badge--current{height:30px;padding:0 12px;border-radius:var(--radius-pill);background:var(--secondary);font-size:13.5px}

/* LifecyclePill */
.a-life{display:inline-flex;align-items:center;gap:5px;height:var(--badge-height);padding:0 9px 0 6px;border-radius:var(--radius-pill);font:600 11.5px/14px var(--font-brand)}
.a-life i{width:12px;height:12px;border-radius:3px;background:linear-gradient(to top,var(--m) var(--f),var(--lifecycle-empty) var(--f))}
.a-life--turn{background:var(--lifecycle-turn-surface);color:var(--lifecycle-turn);--m:var(--lifecycle-turn-mark);--f:0%}
.a-life--working{background:var(--lifecycle-working-surface);color:var(--lifecycle-working);--m:var(--lifecycle-working-mark);--f:50%}
.a-life--awaiting{background:var(--lifecycle-awaiting-surface);color:var(--lifecycle-awaiting);--m:var(--lifecycle-awaiting-mark);--f:75%}
.a-life--done{background:var(--lifecycle-done-surface);color:var(--lifecycle-done);--m:var(--lifecycle-done-mark);--f:100%}

/* Field */
.a-field{display:flex;flex-direction:column;gap:6px;max-width:320px}
.a-field label{font:500 13px/18px var(--font-brand)}
.a-input{height:var(--field-height);padding:0 10px;border:1px solid var(--input);border-radius:var(--radius-field);background:var(--background);font:400 13.5px/18px var(--font-brand);color:var(--foreground)}
.a-input::placeholder{color:var(--faint-foreground)}
.a-input[aria-invalid=true]{border-color:var(--destructive)}
textarea.a-input{height:72px;padding:8px 10px;resize:none}
.a-desc{font-size:12.5px;line-height:18px;color:var(--muted-foreground)}
.a-error{font-size:12.5px;line-height:18px;color:var(--destructive)}
.a-select{appearance:none;padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,var(--muted-foreground) 50%),linear-gradient(135deg,var(--muted-foreground) 50%,transparent 50%);background-position:calc(100% - 15px) 15px,calc(100% - 11px) 15px;background-size:4px 4px;background-repeat:no-repeat}

/* Switch, checkbox, radio */
.a-switch{position:relative;display:inline-block;width:var(--switch-width);height:var(--switch-height);border-radius:var(--radius-pill);background:var(--background);box-shadow:inset 0 0 0 1px var(--input);flex:none}
.a-switch::after{content:"";position:absolute;top:2px;left:2px;width:var(--switch-thumb-size);height:var(--switch-thumb-size);border-radius:50%;background:var(--input)}
.a-switch[aria-checked=true]{background:var(--primary);box-shadow:none}
.a-switch[aria-checked=true]::after{left:16px;background:var(--primary-foreground);box-shadow:var(--switch-thumb-shadow)}
.a-check{box-sizing:border-box;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:var(--radius-checkbox);border:var(--choice-border-width) solid var(--input);background:var(--background);flex:none}
.a-check[aria-checked=true]{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}
.a-check svg{width:12px;height:12px}
.a-radio{box-sizing:border-box;width:16px;height:16px;border-radius:50%;border:var(--choice-border-width) solid var(--input);flex:none}
.a-radio[aria-checked=true]{border:5px solid var(--primary)}
.a-choice{display:flex;align-items:center;gap:8px;font:400 13.5px/18px var(--font-brand)}

/* FilterPills / ToggleGroup and Tabs */
.a-pills{display:inline-flex;gap:2px}
.a-pill{height:var(--control-height-sm);padding:0 12px;border:0;border-radius:var(--radius-pill);background:transparent;color:var(--muted-foreground);font:400 13px/18px var(--font-brand)}
.a-pill:hover{background:var(--accent)}
.a-pill[aria-pressed=true]{background:var(--secondary);color:var(--foreground);font-weight:500}
.a-pill .n{color:var(--faint-foreground);margin-left:4px;font-variant-numeric:tabular-nums}
.a-pill[aria-pressed=true] .n{color:var(--muted-foreground)}
.a-seg{display:inline-flex;padding:2px;gap:2px;border-radius:var(--radius-pill);background:var(--muted)}
.a-seg .a-pill[aria-pressed=true]{background:var(--background);box-shadow:0 0 0 1px var(--border-strong)}
.a-tabs{display:flex;gap:20px;border-bottom:1px solid var(--border)}
.a-tab{padding:8px 0;border:0;background:none;font:500 13.5px/18px var(--font-brand);color:var(--muted-foreground);box-shadow:inset 0 -2px 0 transparent}
.a-tab[aria-selected=true]{color:var(--foreground);box-shadow:inset 0 -2px 0 var(--foreground)}

/* Notice and StatusLine */
.a-notice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px 14px;border-radius:var(--radius-surface);background:var(--muted);color:var(--foreground);max-width:520px}
.a-notice svg{width:16px;height:16px;margin-top:2px}
.a-notice b{display:block;font-weight:500}
.a-notice span{font-size:12.5px;line-height:18px;color:var(--muted-foreground)}
.a-notice--warning{background:var(--warning-surface)}.a-notice--warning svg{color:var(--warning)}
.a-notice--danger{background:var(--destructive-surface)}.a-notice--danger svg{color:var(--destructive)}
.a-notice--success{background:var(--success-surface)}.a-notice--success svg{color:var(--success)}
.a-notice--pane{background:var(--background);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--elevation-pop)}
.a-status{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;line-height:18px;color:var(--muted-foreground)}
.a-status--error{color:var(--destructive)}
.a-spin{width:16px;height:16px;border-radius:50%;border:2px solid var(--border);border-top-color:var(--muted-foreground)}

/* Cards, settings rows */
.a-card{border:1px solid var(--border);border-radius:var(--radius-card);background:var(--card);max-width:560px}
.a-srow{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:13px 16px}
.a-srow + .a-srow{border-top:1px solid var(--border)}
.a-srow b{display:block;font:500 14.5px/20px var(--font-brand)}
.a-srow span{display:block;font-size:12.5px;line-height:18px;color:var(--muted-foreground)}

/* ListRow */
.a-list{display:flex;flex-direction:column;gap:2px;width:312px;padding:8px;background:var(--sidebar)}
.a-lrow{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:start;padding:9px 10px;border-radius:var(--radius-surface)}
.a-lrow:hover{background:var(--accent)}
.a-lrow[aria-current=true]{background:var(--secondary)}
.a-lrow img,.a-av{width:32px;height:32px;border-radius:50%;object-fit:cover}
.a-lrow b{font-weight:500}
.a-lrow p{margin:2px 0 0;font-size:12.5px;line-height:18px;color:var(--muted-foreground);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.a-meta{font-size:12px;line-height:16px;color:var(--faint-foreground);font-variant-numeric:tabular-nums}
.a-lrow[aria-current=true] .a-meta{color:var(--muted-foreground)}
.a-section{font:600 12.5px/18px var(--font-brand);color:var(--muted-foreground);padding:6px 10px}
.a-section .n{color:var(--faint-foreground);font-weight:400}

/* Chat */
.a-chat{display:flex;flex-direction:column;gap:4px;padding:16px;max-width:520px}
.a-bub{max-width:78%;padding:8px 12px;border-radius:var(--radius-bubble);font:400 14.5px/21px var(--font-brand);white-space:pre-wrap}
.a-bub--in{align-self:flex-start;background:var(--chat-incoming);color:var(--bubble-incoming-foreground)}
.a-bub--out{align-self:flex-end;background:var(--chat-outgoing);color:var(--chat-outgoing-foreground)}
.a-chat .a-meta{margin-bottom:14px}
.a-chat .a-meta.r{align-self:flex-end}
.a-divider{align-self:center;font-size:12px;color:var(--faint-foreground);margin:6px 0 12px}

/* Composer */
.a-composer{display:flex;flex-direction:column;gap:10px;padding:12px 12px 10px 16px;border:1px solid var(--composer-border);border-radius:var(--radius-composer);background:var(--composer-surface);box-shadow:var(--elevation-soft);max-width:560px}
.a-composer .f{font:400 15px/22px var(--font-brand);color:var(--faint-foreground);min-height:44px}
.a-composer .c{display:flex;align-items:center;gap:8px}
.a-composer .c .sp{flex:1}

/* Dialog */
.a-overlay{padding:28px;background:var(--overlay)}
.a-dialog{max-width:384px;margin:auto;padding:var(--dialog-padding-top) var(--dialog-padding-x) var(--dialog-padding-bottom);border-radius:var(--radius-dialog);background:var(--background);box-shadow:var(--elevation-pop)}
.a-dialog h2{margin:0 0 6px;font:600 17px/24px var(--font-brand)}
.a-dialog p{margin:0 0 18px;color:var(--muted-foreground)}
.a-dialog .acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a-dialog .a-btn{height:var(--control-height-lg)}

/* Tooltip and menu */
.a-tip{display:inline-block;padding:var(--tooltip-padding-y) var(--tooltip-padding-x);border-radius:var(--radius-control-sm);background:var(--foreground);color:var(--primary-foreground);font-size:12.5px;line-height:18px}
.a-menu{width:220px;padding:4px;border:1px solid var(--border-strong);border-radius:var(--radius-menu);background:var(--popover);box-shadow:var(--elevation-pop)}
.a-mi{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:var(--radius-control-sm);font-size:13.5px}
.a-mi svg{width:16px;height:16px;flex:none}
.a-mi:hover,.a-mi.h{background:var(--accent)}
.a-mi--danger{color:var(--destructive)}
.a-msep{height:1px;margin:4px -4px;background:var(--border)}
.a-mnote{padding:6px 8px;font-size:12.5px;line-height:18px;color:var(--muted-foreground)}

/* Empty state */
.a-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:28px}
.a-empty .t{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-surface);background:var(--muted);color:var(--muted-foreground)}
.a-empty b{font:500 14.5px/20px var(--font-brand)}
.a-empty p{margin:0;max-width:36ch;color:var(--muted-foreground);font-size:12.5px;line-height:18px}

/* UsageMeter and StepProgress */
.a-meter{display:flex;flex-direction:column;gap:6px;max-width:360px}
.a-meter .h{display:flex;justify-content:space-between;font-weight:500}
.a-track{height:6px;border-radius:var(--radius-pill);background:var(--muted);overflow:hidden}
.a-track i{display:block;height:100%;border-radius:inherit;background:var(--chart-bar)}
.a-meter--warn .a-track{background:var(--warning-surface)}
.a-meter--warn .a-track i{background:var(--warning-mark)}
.a-meter--warn .h span{color:var(--warning)}
.a-steps{display:flex;gap:3px;max-width:360px}
.a-steps i{flex:1;height:6px;border-radius:var(--radius-pill);background:var(--border)}
.a-steps i.d{background:var(--success)}
.a-steps i.w{background:var(--warning-mark)}
.a-steps i + i.g{margin-left:6px}

/* SaveChangesBar */
.a-savebar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--border);background:var(--background);max-width:560px}
.a-savebar .a-status{flex:1}
