/* Shared by the numbered component gallery and the migrated workflows. */
:root {
  --component-label-size: 14px;
  --component-radius: 12px;
  --control-small: 24px;
  --large-action-size: 140px;
}
[data-component]:is([data-size="small"], [data-component="C01"], [data-component="C02"], [data-component="C07"]) {
  --component-label-size: 12px;
}
[data-component]:is([data-size="large"], [data-component="C05"], [data-component="C06"]) {
  --component-label-size: 18px;
}
[data-component]:is([data-component="C01"], [data-component="C02"]) {
  --action-side: 76px;
  --action-padding: 8px;
  --action-icon: 18px;
}
[data-component]:is([data-component="C03"], [data-component="C04"]) {
  --action-side: 96px;
  --action-padding: 10px;
  --action-icon: 21px;
}
:root [data-component]:is([data-component="C01"], [data-component="C02"], [data-component="C03"], [data-component="C04"], [data-component="C05"], [data-component="C06"]) {
  box-sizing: border-box;
  position: relative;
  width: var(--action-side, var(--large-action-size));
  height: var(--action-side, var(--large-action-size));
  min-height: var(--action-side, var(--large-action-size));
  flex: 0 0 var(--action-side, var(--large-action-size));
  padding: var(--action-padding, 15px);
  font: 400 var(--component-label-size)/1.12 var(--component-font);
  letter-spacing: normal;
  text-decoration: none;
  box-shadow: none;
}
:root :is([data-component="C01"], [data-component="C03"], [data-component="C05"]).home-tile, :root button[data-component="C05"] {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: transparent; border: 1px solid #bdb7ac; border-radius: var(--component-radius); color: #171615;
}
:root :is([data-component="C01"], [data-component="C03"], [data-component="C05"]) > span { position: static; align-self: flex-end; text-align: right; }
:root :is([data-component="C01"], [data-component="C03"], [data-component="C05"]) > svg { position: static; width: var(--action-icon, 32px); height: var(--action-icon, 32px); fill: none; stroke: currentColor; }
:root :is([data-component="C01"], [data-component="C03"], [data-component="C05"]) path { vector-effect: non-scaling-stroke; stroke-width: .65px; stroke-linejoin: round; stroke-linecap: round; }
:root :is([data-component="C02"], [data-component="C04"], [data-component="C06"]).home-tile, :root button[data-component="C06"] {
  display: grid; place-content: center; text-align: center;
  border: 0; border-radius: 50%; background: #171615; color: white;
}
:root [data-component="C09"] {
  --component-label-size: round(up, clamp(20px, 2vw, 29px), 1px);
  --entry-action-font: 400 var(--component-label-size)/1.04 var(--component-font);
  border-radius: var(--component-radius); text-decoration: none;
}
:root button:is([data-component="C10"], [data-component="C11"]) {
  width: 100%; max-width: 320px; min-height: 46px; padding: 6px 14px;
  border: 1px solid transparent; border-radius: var(--component-radius);
  background: var(--blue); color: var(--ink); font: 400 var(--component-label-size)/1.45 var(--component-font);
}
:root button[data-component="C11"] {
  display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 8px;
  border-color: #ded9d3; background: white; opacity: 1;
}
[data-component="C11"] img { filter: brightness(0); }
#import .intro-actions:has([data-component="C05"]) { grid-template-columns: repeat(2,var(--large-action-size)); gap: 12px; }
.first-visit-welcome .home-action-pair:has([data-component]) { gap: 12px; }

:root [data-component].icon-circle {
  display: inline-grid; place-items: center; width: var(--diameter); height: var(--diameter);
  padding: 0; border: 0; border-radius: 50%; background: var(--circle-fill, #aeb8d2); color: var(--circle-ink, #242622);
}
.icon-circle { font-size: var(--component-label-size); font-family: var(--component-font); }
.icon-circle--small .ui-icon--plus path { vector-effect: non-scaling-stroke; stroke-width: 1px; stroke-linecap: butt; shape-rendering: crispEdges; }
.icon-circle--small { --diameter: var(--control-small); --glyph: 14px; }
.icon-circle--regular { --diameter: var(--control-regular, 36px); --glyph: 20px; }
:root [data-component].icon-circle svg { width: var(--glyph); height: var(--glyph); fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }

:root [data-component="C08"].icon-circle .ui-icon--left {
  width:24px; height:24px; color:#242622;
}
:root [data-component="C08"].icon-circle .ui-icon--left path {
  stroke:currentColor; stroke-width:1.75px; vector-effect:non-scaling-stroke;
}

[data-component="C15"] {
  box-sizing: border-box; display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%; background: #f4f2ef;
  color: var(--ink); font: 900 14px/1 var(--calendar-number-font);
}
:is([aria-pressed="true"], [aria-current="true"]) > [data-component="C15"] { background: var(--blue); }

button[data-component="C16"] {
  --duration-side: 32px;
  box-sizing: border-box; display: inline-grid; place-items: center; flex: none;
  width: var(--duration-side); height: var(--duration-side); padding: 0;
  border: 0; border-radius: 50%; background: #eae9e4; color: var(--ink);
  font: 400 var(--component-label-size)/1 var(--component-font);
  font-variant-numeric: tabular-nums;
}
button[data-component="C16"][data-size="small"] { --duration-side: 28px; }
button[data-component="C16"]:hover { background: #dddeda; }
button[data-component="C16"][aria-pressed="true"] { background: var(--blue); }
button:is([data-component="C17"], [data-component="C18"]) {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px;
  border: 0; padding: 5px; border-radius: 50%; background: transparent; color: var(--ink);
}
button[data-component="C18"] { color: #777b73; }
button:is([data-component="C17"], [data-component="C18"]):hover { background: #f4f2ef; color: var(--ink); }
button:is([data-component="C17"], [data-component="C18"]) svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
}

.text-action-chip { color: var(--ink); background: white; border: 1px solid #ded9d3; border-radius: var(--component-radius); }
:is(button,a).text-action-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--chip-height); padding: 4px var(--chip-inset);
  font: 400 var(--component-label-size)/1.25 var(--component-font);
}
.text-action-chip, .text-action-chip:is(:hover,:focus,:active) { text-decoration: none; }
.text-action-chip[data-color="black"] { background: #171615; color: white; border-color: #171615; }
.text-action-chip[data-color="blue"] { background: var(--blue); border-color: var(--blue); }
.text-action-chip:hover { border-color: #a39e96; }
.text-action-chip:focus-visible { outline: 2px solid #566787; outline-offset: 2px; }
.text-action-chip[data-size="small"] { --chip-height: 28px; --chip-inset: 10px; }
.text-action-chip[data-size="medium"] { --chip-height: 36px; --chip-inset: 14px; }
[data-component="C12"].text-action-chip[data-size="large"] { --component-label-size: 16px; --chip-height: 42px; --chip-inset: 16px; }

.project-drawer-chevron {display:grid;place-items:center;justify-self:end;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);}
.project-drawer-chevron .ui-icon {color:inherit;}
.project-drawer-chevron:hover {background:#f4f2ef;color:#454951;}
[data-component="C19"] svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.1; stroke-linecap:round; stroke-linejoin:round; }

.next-step-control {
  box-sizing: border-box;
  height: var(--control-regular,36px);
  --arrow-cap:18px;
  padding: 0 22px 0 14px;
  border: 0;
  position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; background:transparent; color:white;
  font:400 var(--component-label-size)/1.25 var(--component-font);
}
.next-step-control::before {
  content:""; position:absolute; inset:0; z-index:-1;
  border-inline:var(--arrow-cap) solid transparent;
  border-image:url("step-arrow.svg") 0 18 fill / 0 var(--arrow-cap) stretch;
}
.next-step-control[data-direction="back"] {color:var(--ink);padding-inline:22px 14px;}
.next-step-control[data-direction="back"]::before {border-image-source:url("step-arrow.svg#outline");transform:scaleX(-1);}
.next-step-control:focus-visible { outline: 2px solid white; outline-offset: -5px; }

.next-step-control[data-size="small"] {
  height: var(--control-small); --arrow-cap:calc(var(--control-small) / 2);
  padding-inline: 11px 17px;
}
.cutout-action {
  --strip-fill: #171717; --strip-ink: white; --strip-edge: #171717;
  display: inline-grid; justify-items: start; padding: 2px 0;
  color: var(--strip-ink); border: 0; background: transparent;
  font: 400 var(--component-label-size)/1.2 var(--component-font); text-align: start;
}
.cutout-action[data-tone="white"] { --strip-fill: white; --strip-ink: var(--ink); --strip-edge: #bdb7ac; }
.cutout-action span { padding: 2px 6px; background: var(--strip-fill); border: 1px solid var(--strip-edge); white-space: nowrap; }
.cutout-action span + span { margin: -1px 0 0 8px; transform: rotate(2deg); transform-origin: left center; }
.cutout-action:focus-visible { outline: 2px solid #566787; outline-offset: 3px; }

.bulb-note {display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--muted);}
.bulb-note .ui-icon {flex:none;width:16px;height:16px;color:var(--blue);margin-top:2px;}
.bulb-note .ui-icon path {fill:currentColor;}

.next-step-control[data-direction="back"]:focus-visible {outline:2px solid var(--focus);outline-offset:2px;}

[data-component="C21"] {position:relative;display:grid;min-inline-size:0;max-inline-size:100%;cursor:pointer;}
[data-component="C21"] input {
  position:absolute;inset-inline-start:0;inline-size:1px;block-size:1px;margin:0;clip-path:inset(50%);
}
.choice-toggle__row {
  display:flex;align-items:center;justify-content:space-between;min-block-size:var(--back-control-size);gap:var(--work-action-gap);
}
.choice-toggle__track {--invoice-choice-disc-size:22px;}
.choice-toggle__track {
  --toggle-width:32px;
  position:relative;display:flex;align-items:center;flex:none;
  inline-size:var(--toggle-width);block-size:var(--invoice-choice-disc-size);overflow:hidden;
}
.choice-toggle__track::before {
  content:"";position:absolute;inset-inline:0;block-size:10px;
  border-radius:999px;background:var(--line);
}
.choice-toggle__thumb {
  position:relative;display:grid;place-items:center;flex:none;
  inline-size:var(--invoice-choice-disc-size);block-size:var(--invoice-choice-disc-size);
  border-radius:50%;background:var(--line);color:var(--muted);
  transform:translateX(0);
  transition:transform .15s ease-out;
}
.choice-toggle__thumb .ui-icon {inline-size:15px;block-size:15px;color:inherit;--icon-stroke:1.6;}
[data-component="C21"] input:checked + span .choice-toggle__thumb {
  background:var(--blue);color:#000;
  transform:translateX(calc(var(--toggle-width) - var(--invoice-choice-disc-size)));
}
[data-component="C21"] input:focus-visible + span {outline:2px solid var(--focus);outline-offset:2px;}
[data-component="C21"]:has(input:disabled) {cursor:default;}
[data-component="C21"] input:disabled + span > span:first-child {color:var(--muted);}
