/* 7Hub Precisao: component styles. Every value comes from tokens.css; class names are shared with the design system bundle (bundle.css). */

*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:var(--font-sans);font-size:13px;line-height:20px;color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased;letter-spacing:-.003em}
.sh-stage{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);padding:var(--space-5)}
.sh-stage--col{flex-direction:column;align-items:stretch}
.sh-num{font-variant-numeric:tabular-nums}
.sh-mono{font-family:var(--font-mono);font-size:12px;letter-spacing:-.02em}
.sh-muted{color:var(--ink-tertiary)}
.sh-caption{font-size:12px;line-height:16px;color:var(--ink-tertiary)}

/* Icon */
.sh-ic{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

/* Kbd */
.sh-kbd{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 4px;border-radius:var(--radius-key);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),inset 0 -1px 0 var(--line);font:500 11px/1 var(--font-sans);color:var(--ink-tertiary);letter-spacing:0}

/* Button */
.sh-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:var(--control-md);padding:0 12px;border:0;border-radius:var(--radius-control);font:inherit;font-weight:500;color:var(--ink);background:var(--surface);box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(15,15,15,.05);cursor:pointer;white-space:nowrap;transition:background var(--duration-fast) ease-out,box-shadow var(--duration-fast) ease-out}
.sh-btn:hover{background:var(--surface-subtle)}
.sh-btn:focus-visible{outline:0;box-shadow:var(--focus-ring)}
.sh-btn .sh-ic{color:var(--ink-tertiary)}
.sh-btn--sm{height:var(--control-sm);padding:0 10px;font-size:12px}
.sh-btn--lg{height:var(--control-lg);padding:0 16px;font-size:14px}
.sh-btn--primary{color:var(--on-accent);background:linear-gradient(180deg,var(--accent-top) 0%,var(--accent) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 0 1px var(--accent-strong),0 1px 2px rgba(15,15,15,.20)}
.sh-btn--primary:hover{background:linear-gradient(180deg,var(--accent-hover-top) 0%,var(--accent-strong) 100%)}
.sh-btn--primary .sh-ic{color:var(--on-accent)}
.sh-btn--primary .sh-kbd{background:rgba(255,255,255,.16);box-shadow:none;color:rgba(255,255,255,.92)}
.sh-btn--ghost{background:transparent;box-shadow:none}
.sh-btn--ghost:hover{background:var(--surface-hover)}
.sh-btn--danger{color:var(--on-accent);background:linear-gradient(180deg,var(--danger-top) 0%,var(--danger) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 0 1px var(--danger-strong),0 1px 2px rgba(15,15,15,.20)}
.sh-btn--danger:hover{background:linear-gradient(180deg,var(--danger-hover-top) 0%,var(--danger-hover) 100%)}
.sh-btn--danger .sh-ic{color:var(--on-accent)}
.sh-btn--danger:focus-visible{box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 0 1px var(--danger-strong),0 0 0 4px var(--danger-ring)}
.sh-btn:disabled{cursor:not-allowed}
.sh-btn--secondary:disabled{background:var(--surface-subtle);color:var(--icon);box-shadow:0 0 0 1px var(--line-subtle)}
.sh-btn--primary:disabled{background:var(--accent-disabled);color:rgba(255,255,255,.9);box-shadow:none}
.sh-btn--danger:disabled{background:var(--danger-disabled);color:rgba(255,255,255,.92);box-shadow:none}
.sh-btn--ghost:disabled{color:var(--icon)}

/* Busy state (loading approach B): label and width stay, a light passes */
.sh-busy{position:relative;overflow:hidden;cursor:progress}
.sh-busy::after{content:"";position:absolute;top:0;bottom:0;left:0;width:60%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.28),rgba(255,255,255,0));animation:sh-sweep var(--loading-busy-cycle) ease-in-out infinite}
.sh-btn--secondary.sh-busy::after,.sh-btn--ghost.sh-busy::after{background:linear-gradient(90deg,rgba(55,53,47,0),rgba(55,53,47,.08),rgba(55,53,47,0))}
@keyframes sh-sweep{from{transform:translateX(-100%)}to{transform:translateX(180%)}}

/* IconButton */
.sh-ib{display:inline-flex;align-items:center;justify-content:center;width:var(--control-sm);height:var(--control-sm);border:0;border-radius:var(--radius-item);background:transparent;color:var(--ink-tertiary);cursor:pointer;transition:background var(--duration-fast),color var(--duration-fast)}
.sh-ib:hover{background:var(--surface-hover);color:var(--ink)}
.sh-ib:focus-visible{outline:0;box-shadow:var(--focus-ring)}

/* SplitButton */
.sh-split{display:inline-flex;border-radius:var(--radius-control);box-shadow:0 0 0 1px var(--accent-strong),0 1px 2px rgba(15,15,15,.2)}
.sh-split>.sh-btn{box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.sh-split>.sh-btn:first-child{border-radius:var(--radius-control) 0 0 var(--radius-control);padding-right:10px}
.sh-split>.sh-btn:last-child{border-radius:0 var(--radius-control) var(--radius-control) 0;padding:0 8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 1px 0 0 rgba(255,255,255,.16)}

/* ButtonGroup */
.sh-group{display:inline-flex;border-radius:var(--radius-control);box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(15,15,15,.05)}
.sh-group>.sh-btn{box-shadow:none;border-radius:0}
.sh-group>.sh-btn+.sh-btn{box-shadow:inset 1px 0 0 var(--line)}
.sh-group>.sh-btn:first-child{border-radius:var(--radius-control) 0 0 var(--radius-control)}
.sh-group>.sh-btn:last-child{border-radius:0 var(--radius-control) var(--radius-control) 0}

/* TextField */
.sh-field{display:block;min-width:0}
.sh-label{display:block;font-size:12px;font-weight:500;color:var(--ink-secondary);margin-bottom:6px}
.sh-input{display:flex;align-items:center;gap:8px;height:var(--control-md);padding:0 10px;border-radius:var(--radius-control);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),0 1px 2px rgba(15,15,15,.03);color:var(--ink);transition:box-shadow var(--duration-fast)}
.sh-input:hover{box-shadow:inset 0 0 0 1px var(--line-strong),0 1px 2px rgba(15,15,15,.03)}
.sh-input input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;color:inherit;padding:0}
.sh-input input.sh-mono{font-size:13px}
.sh-input input::placeholder{color:var(--icon)}
.sh-input .sh-ic{color:var(--ink-tertiary)}
.sh-input:focus-within,.sh-input.is-focus{box-shadow:var(--focus-ring)}
.sh-input.is-error{box-shadow:0 0 0 1px var(--danger-dot),0 0 0 4px var(--danger-halo)}
.sh-input.is-readonly{background:var(--surface-subtle);box-shadow:inset 0 0 0 1px var(--line-subtle);color:var(--ink-secondary)}
.sh-help{display:flex;gap:6px;align-items:flex-start;margin-top:6px;font-size:12px;line-height:16px;color:var(--ink-tertiary)}
.sh-help.is-error{color:var(--danger)}
.sh-help .sh-ic{width:14px;height:14px;margin-top:1px}

/* Lists inside layers (ClientPicker, Menu, CommandPalette) */
.sh-layer{padding:4px;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-2)}
.sh-sep{height:1px;margin:4px 0;background:var(--line-subtle)}
.sh-group-label{padding:6px 8px 4px;font-size:11px;font-weight:500;color:var(--ink-tertiary)}
.sh-mi{display:flex;align-items:center;gap:10px;height:var(--control-md);padding:0 8px;border-radius:var(--radius-item);color:var(--ink);cursor:pointer}
.sh-mi:hover,.sh-mi.is-active{background:var(--surface-hover)}
.sh-mi .sh-ic{color:var(--ink-tertiary)}
.sh-mi>.sh-kbd:first-of-type{margin-left:auto}
.sh-mi__meta{margin-left:auto;font-size:12px;color:var(--ink-tertiary)}
.sh-mi.is-danger,.sh-mi.is-danger .sh-ic{color:var(--danger)}
.sh-mi--tall{height:var(--row-height)}

/* Avatar */
.sh-av{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full);background:var(--avatar);color:var(--ink-secondary);font-size:10px;font-weight:600;flex:none;letter-spacing:0}
.sh-av--md{width:26px;height:26px}
.sh-av--lg{width:28px;height:28px;font-size:11px}
.sh-av.is-own{background:var(--accent-tint);color:var(--accent-strong)}

/* Pill and status dot */
.sh-pill{display:inline-flex;align-items:center;gap:6px;height:var(--control-tag);padding:0 8px;border-radius:var(--radius-full);font-size:12px;font-weight:500;line-height:1;white-space:nowrap;background:var(--surface-hover);color:var(--ink-secondary)}
.sh-pill--accent{background:var(--accent-soft);color:var(--accent-strong)}
.sh-pill--success{background:var(--success-soft);color:var(--success)}
.sh-pill--warning{background:var(--warning-soft);color:var(--warning)}
.sh-pill--danger{background:var(--danger-soft);color:var(--danger)}
.sh-pill .sh-ic{width:12px;height:12px;stroke-width:2}
.sh-dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex:none;background:var(--icon)}
.sh-dot--success{background:var(--success-dot)}
.sh-dot--warning{background:var(--warning-dot)}
.sh-dot--danger{background:var(--danger-dot)}
.sh-dot--accent{background:var(--accent)}
.sh-st{display:inline-flex;align-items:center;gap:8px;color:var(--ink-secondary)}
.sh-spin{width:12px;height:12px;border-radius:50%;border:2px solid var(--accent-tint);border-top-color:var(--accent);animation:sh-rot .8s linear infinite;flex:none}
@keyframes sh-rot{to{transform:rotate(360deg)}}

/* Selection controls */
.sh-opt{display:inline-flex;align-items:center;gap:10px;cursor:pointer}
.sh-chk{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:var(--radius-key);background:var(--surface);box-shadow:inset 0 0 0 1px var(--control-border);flex:none;color:var(--on-accent)}
.sh-chk.is-on{background:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-strong)}
.sh-chk .sh-ic{width:12px;height:12px;stroke-width:2}
.sh-rad{display:inline-flex;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1px var(--control-border);flex:none}
.sh-rad.is-on{box-shadow:inset 0 0 0 5px var(--accent)}
.sh-sw{position:relative;display:inline-block;width:30px;height:18px;border-radius:var(--radius-full);background:var(--line-strong);flex:none;transition:background var(--duration-base)}
.sh-sw::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(15,15,15,.25);transition:left var(--duration-base) var(--easing-standard)}
.sh-sw.is-on{background:var(--accent)}
.sh-sw.is-on::after{left:14px}

/* DateField calendar */
.sh-cal{width:264px;padding:12px;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-2)}
.sh-cal__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-weight:600}
.sh-cal__grid{display:grid;grid-template-columns:repeat(7,32px);gap:2px;justify-content:space-between}
.sh-cal__grid span{display:inline-flex;align-items:center;justify-content:center;height:32px;border-radius:var(--radius-chip);font-variant-numeric:tabular-nums;cursor:pointer}
.sh-cal__grid span:hover{background:var(--surface-hover)}
.sh-cal__grid .is-out{color:var(--icon)}
.sh-cal__grid .is-head{height:24px;font-size:11px;font-weight:500;color:var(--ink-tertiary);cursor:default}
.sh-cal__grid .is-head:hover{background:transparent}
.sh-cal__grid .is-today{background:var(--accent);color:var(--on-accent);font-weight:600}

/* Tooltip */
.sh-tip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 8px;border-radius:var(--radius-item);background:var(--ink);color:var(--on-accent);font-size:12px;font-weight:500}
.sh-tip .sh-kbd{background:rgba(255,255,255,.14);box-shadow:none;color:var(--on-accent)}

/* Kpi */
.sh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:var(--radius-card);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.sh-kpi{padding:16px;min-width:0}
.sh-kpi+.sh-kpi{box-shadow:inset 1px 0 0 var(--line)}
.sh-kpi__label,.sh-kpi__note{font-size:12px;line-height:16px;color:var(--ink-tertiary)}
.sh-kpi__note{margin-top:4px}
.sh-kpi__row{display:flex;align-items:baseline;gap:8px;margin-top:6px;min-height:28px}
.sh-kpi__value{font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.sh-kpi__state{display:flex;align-items:center;gap:8px;margin-top:6px;height:28px;font-size:15px;font-weight:600}
.sh-kpi__badge{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--success-soft);color:var(--success)}
.sh-kpi__badge .sh-ic{width:14px;height:14px}
.sh-kpi--danger .sh-kpi__badge{background:var(--danger-soft);color:var(--danger)}
.sh-kpi--danger .sh-kpi__state{color:var(--danger)}
.sh-kpi__aside{font-size:12px;line-height:16px;font-weight:500;color:var(--warning)}
.sh-kpi__meter{display:flex;gap:2px;height:4px;margin-top:10px}
.sh-kpi__meter span{border-radius:2px}

/* DataTable */
.sh-tablewrap{border-radius:var(--radius-card);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.sh-table{width:100%;border-collapse:collapse}
.sh-th{text-align:left;font-size:12px;font-weight:500;color:var(--ink-tertiary);padding:0 10px;height:36px;border-bottom:1px solid var(--line);white-space:nowrap}
.sh-td{padding:0 10px;height:var(--row-height);border-bottom:1px solid var(--line-subtle);white-space:nowrap}
.sh-table tr:last-child .sh-td{border-bottom:0}
.sh-table .is-right{text-align:right}
.sh-table tr:hover .sh-td{background:var(--surface-subtle)}
.sh-table tr.is-checked .sh-td{background:var(--accent-wash)}
.sh-table tr.is-open .sh-td{background:var(--accent-soft)}
.sh-table tr.is-open .sh-td:first-child{box-shadow:inset 2px 0 0 var(--accent)}
.sh-table .is-void{color:var(--ink-tertiary);text-decoration:line-through}

/* EmptyState and LoadError */
.sh-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:32px 20px;border-radius:var(--radius-card);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-subtle)}
.sh-empty__icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--radius-panel);background:var(--surface);box-shadow:var(--shadow-1);color:var(--ink-tertiary)}
.sh-empty__icon.is-danger{width:28px;height:28px;border-radius:50%;background:var(--danger-soft);color:var(--danger);box-shadow:none}
.sh-empty__icon.is-danger .sh-ic{width:12px;height:12px;stroke-width:2}
.sh-empty__title{margin-top:14px;font-weight:600}
.sh-empty__text{margin-top:4px;max-width:280px;font-size:12px;line-height:16px;color:var(--ink-tertiary)}
.sh-empty__actions{display:flex;gap:8px;margin-top:16px}

/* Banner */
.sh-banner{display:flex;gap:12px;padding:12px 14px;border-radius:var(--radius-card);background:var(--surface-subtle);box-shadow:inset 0 0 0 1px var(--line-subtle)}
.sh-banner>.sh-ic{margin-top:2px;color:var(--ink-tertiary)}
.sh-banner__body{flex:1;min-width:0}
.sh-banner__title{font-weight:500}
.sh-banner__text{margin-top:2px;font-size:12px;line-height:16px;color:var(--ink-tertiary)}
.sh-banner--success{background:var(--success-soft);box-shadow:none}
.sh-banner--success>.sh-ic,.sh-banner--success .sh-banner__title{color:var(--success)}
.sh-banner--success .sh-banner__text{color:var(--success-ink)}
.sh-banner--warning{background:var(--warning-soft);box-shadow:none}
.sh-banner--warning>.sh-ic,.sh-banner--warning .sh-banner__title{color:var(--warning)}
.sh-banner--warning .sh-banner__text{color:var(--warning-ink)}
.sh-banner--danger{background:var(--danger-soft);box-shadow:inset 0 0 0 1px var(--danger-line)}
.sh-banner--danger>.sh-ic,.sh-banner--danger .sh-banner__title{color:var(--danger)}
.sh-banner--danger .sh-banner__title{font-weight:600}
.sh-banner--danger .sh-banner__text{color:var(--danger-ink)}

/* Toast */
.sh-toast{display:flex;align-items:center;gap:10px;width:100%;max-width:380px;padding:10px 10px 10px 12px;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow-2)}
.sh-toast__icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--success-soft);color:var(--success);flex:none}
.sh-toast__icon .sh-ic{width:12px;height:12px;stroke-width:2}
.sh-toast--danger .sh-toast__icon{background:var(--danger-soft);color:var(--danger)}
.sh-toast__body{flex:1;min-width:0}
.sh-toast--progress{display:block;padding:10px 12px}
.sh-toast__row{display:flex;align-items:center;gap:10px}

/* Progress */
.sh-progress{position:relative;height:2px;overflow:hidden;background:var(--accent-soft);border-radius:2px}
.sh-progress>i{position:absolute;top:0;bottom:0;left:0;border-radius:2px;background:var(--accent)}
.sh-progress.is-indeterminate>i{width:34%;animation:sh-ind var(--loading-bar-cycle) var(--easing-standard) infinite}
.sh-progress--thick{height:3px}
.sh-progress--neutral{background:var(--line-subtle)}
@keyframes sh-ind{from{left:-34%}to{left:100%}}

/* Skeleton */
.sh-sk{display:block;height:10px;border-radius:5px;background:linear-gradient(90deg,var(--skeleton) 0%,var(--skeleton-shine) 50%,var(--skeleton) 100%);background-size:240px 100%;animation:sh-shimmer var(--loading-skeleton-cycle) ease-in-out infinite}
@keyframes sh-shimmer{0%{background-position:-240px 0}100%{background-position:240px 0}}

/* TaskCard */
.sh-task{width:100%;max-width:300px;padding:14px;border-radius:var(--radius-panel);background:var(--surface);box-shadow:var(--shadow-2)}
.sh-task--failed{box-shadow:0 0 0 1px var(--danger-line),0 3px 6px rgba(15,15,15,.10),0 9px 24px rgba(15,15,15,.20)}
.sh-task__head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sh-task__title{display:inline-flex;align-items:center;gap:8px;font-weight:500}
.sh-task__text{margin-top:6px;font-size:12px;line-height:18px;color:var(--ink-tertiary)}
.sh-task--failed .sh-task__text{color:var(--ink-secondary)}
.sh-task__actions{display:flex;gap:8px;margin-top:12px}
.sh-task .sh-progress{margin-top:10px}
.sh-step{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;font-size:12px;line-height:26px}
.sh-step.is-todo{color:var(--ink-tertiary)}
.sh-step.is-current{font-weight:500}
.sh-mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;flex:none}
.sh-mark .sh-ic{width:10px;height:10px;stroke-width:2}
.sh-mark--done{background:var(--success-soft);color:var(--success)}
.sh-mark--fail{background:var(--danger-soft);color:var(--danger)}
.sh-mark--todo{box-shadow:inset 0 0 0 1.5px var(--line)}

/* Dialog and command palette */
.sh-scrim{padding:32px;border-radius:var(--radius-card);background:var(--scrim)}
.sh-dialog{max-width:440px;margin:0 auto;border-radius:var(--radius-dialog);background:var(--surface);box-shadow:var(--shadow-2)}
.sh-dialog__head{display:flex;align-items:flex-start;gap:12px;padding:20px 16px 0 20px}
.sh-dialog__title{margin:0;font-size:17px;line-height:24px;font-weight:600;letter-spacing:-.015em}
.sh-dialog__summary{margin:16px 20px 0;border-radius:var(--radius-card);box-shadow:inset 0 0 0 1px var(--line-subtle)}
.sh-dialog__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line-subtle)}
.sh-dialog__row:last-child{border-bottom:0;padding:12px 14px}
.sh-dialog__note{display:flex;gap:10px;margin:12px 20px 0;padding:10px 12px;border-radius:var(--radius-card);background:var(--surface-subtle);font-size:12px;line-height:18px;color:var(--ink-secondary)}
.sh-dialog__note .sh-ic{color:var(--ink-tertiary);margin-top:1px}
.sh-dialog__foot{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px 20px}
.sh-cmd{max-width:480px;margin:0 auto;border-radius:var(--radius-dialog);background:var(--surface);box-shadow:var(--shadow-2);overflow:hidden}
.sh-cmd__input{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-bottom:1px solid var(--line-subtle);font-size:15px}
.sh-cmd__input .sh-ic{color:var(--ink-tertiary)}
.sh-cmd__list{padding:6px}
.sh-cmd__list .sh-mi{height:36px;padding:0 10px;border-radius:var(--radius-chip)}
.sh-cmd__foot{display:flex;align-items:center;gap:14px;height:40px;padding:0 16px;border-top:1px solid var(--line-subtle);background:var(--surface-subtle);font-size:12px;color:var(--ink-tertiary)}
.sh-cmd__foot span{display:inline-flex;align-items:center;gap:6px}

@media (prefers-reduced-motion: reduce){
  .sh-busy::after{animation:none;opacity:0}
  .sh-busy{opacity:.72}
  .sh-progress.is-indeterminate>i{animation:none;left:0;width:100%;opacity:.45}
  .sh-sk,.sh-spin{animation:none}
  .sh-btn,.sh-input,.sh-ib,.sh-sw,.sh-sw::after{transition:none}
}

/* ---- Runtime additions for the Blazor components (same tokens, no new values) ---- */
.sh-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sh-num input,.sh-input input.sh-num{font-variant-numeric:tabular-nums}
.sh-input input.is-right{text-align:right}
.sh-input__prefix{flex:none;margin-right:-8px;color:var(--ink-tertiary);font-size:13px}
.sh-input:has(input:disabled),.sh-input:has(select:disabled){background:var(--surface-subtle);color:var(--ink-tertiary)}
.sh-select select{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font:inherit;color:inherit;padding:0;-webkit-appearance:none;appearance:none;cursor:pointer}
.sh-select{position:relative}
.sh-input__btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:-4px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--ink-tertiary);cursor:pointer}
.sh-input__btn:hover{background:var(--surface-hover);color:var(--ink)}
.sh-input__btn:focus-visible{outline:0;box-shadow:var(--focus-ring)}
textarea.sh-textarea{display:block;width:100%;min-height:72px;padding:8px 10px;border:0;border-radius:var(--radius-control);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),0 1px 2px rgba(15,15,15,.03);font:inherit;color:var(--ink);resize:vertical}
textarea.sh-textarea:focus{outline:0;box-shadow:var(--focus-ring)}

/* Label row with the information mark */
.sh-labrow{display:flex;align-items:center;gap:4px;margin-bottom:6px}
.sh-labrow .sh-label{margin-bottom:0}

/* Tooltips: on hover and keyboard focus only */
.sh-tipwrap{position:relative;display:inline-flex}
.sh-tip--float{position:absolute;top:calc(100% + 6px);right:0;z-index:30;display:none;white-space:nowrap;pointer-events:none}
.sh-tipwrap:hover>.sh-tip--float,.sh-tipwrap:focus-within>.sh-tip--float{display:inline-flex}
.sh-hint{position:relative;display:inline-flex;align-items:center}
.sh-hint__mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:0;border-radius:var(--radius-key);background:transparent;color:var(--icon);cursor:help;transition:color var(--duration-fast)}
.sh-hint__mark .sh-ic{width:14px;height:14px}
.sh-hint__mark:hover,.sh-hint__mark:focus-visible{color:var(--ink-secondary)}
.sh-hint__mark:focus-visible{outline:0;box-shadow:var(--focus-ring)}
.sh-hint__tip{position:absolute;top:calc(100% + 6px);left:-6px;z-index:30;display:none;width:max-content;max-width:280px;padding:5px 8px;border-radius:var(--radius-item);background:var(--ink);color:var(--on-accent);font-size:12px;font-weight:500;line-height:16px;white-space:normal;text-align:left;pointer-events:none}
.sh-hint__tip.is-end{left:auto;right:-6px}
.sh-hint:hover .sh-hint__tip,.sh-hint:focus-within .sh-hint__tip{display:block}

/* Floating layers (menus, calendar) */
.sh-menuanchor{position:relative}
.sh-backdrop{position:fixed;inset:0;z-index:40}
.sh-layer--float{position:absolute;top:calc(100% + 6px);left:0;z-index:41;min-width:220px}
.sh-layer--float.is-end{left:auto;right:0}
button.sh-mi{width:100%;border:0;background:transparent;font:inherit;text-align:left}
button.sh-mi:disabled{color:var(--icon);cursor:not-allowed}
button.sh-mi:focus-visible{outline:0;background:var(--surface-hover)}
.sh-mi__label{flex:1;min-width:0}
.sh-cal__grid button{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0;border:0;border-radius:var(--radius-chip);background:transparent;font:inherit;color:inherit;font-variant-numeric:tabular-nums;cursor:pointer}
.sh-cal__grid button:hover{background:var(--surface-hover)}
.sh-cal__grid button.is-out{color:var(--icon)}
.sh-cal__grid button.is-today{background:var(--accent);color:var(--on-accent);font-weight:600}
.sh-cal__grid button:disabled{color:var(--line-strong);cursor:not-allowed;background:transparent}
.sh-cal__grid button:focus-visible{outline:0;box-shadow:var(--focus-ring)}

/* Modal dialog */
.sh-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-start;justify-content:center;padding:12vh 16px 16px;background:var(--scrim);animation:sh-fade var(--duration-panel) var(--easing-standard)}
.sh-overlay .sh-dialog{width:100%;outline:0;animation:sh-rise var(--duration-panel) var(--easing-standard)}
.sh-dialog__body{margin:12px 20px 0}
@keyframes sh-fade{from{opacity:0}to{opacity:1}}
@keyframes sh-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Notifications */
.sh-toasts{position:fixed;right:16px;bottom:16px;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}
.sh-toasts .sh-toast{pointer-events:auto;animation:sh-rise var(--duration-base) var(--easing-standard)}

/* Clickable table rows */
.sh-table tr.is-clickable{cursor:pointer}

@media (prefers-reduced-motion: reduce){
  .sh-overlay,.sh-overlay .sh-dialog,.sh-toasts .sh-toast{animation:none}
}

/* Combobox suggestions */
.sh-combobox__list { right: 0; max-height: 320px; overflow-y: auto; }
.sh-combobox__list .sh-mi { height: auto; min-height: var(--control-md); padding-top: 6px; padding-bottom: 6px; }
.sh-option-text { flex: 1; min-width: 0; line-height: 16px; }
.sh-option-text > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-option-meta { font-size: 12px; color: var(--ink-tertiary); }
.sh-option-aside { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Buttons that are links (navigation): no link underline. */
a.sh-btn{text-decoration:none}
