/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: .25rem;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .\@container {
    container-type: inline-size;
  }

  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .z-2 {
    z-index: 2;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .h-9 {
    height: calc(var(--spacing) * 9);
  }

  .shrink {
    flex-shrink: 1;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .rounded {
    border-radius: .25rem;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .p-6 {
    padding: calc(var(--spacing) * 6);
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .shadow, .shadow\/radius {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .grayscale {
    --tw-grayscale: grayscale(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
}

@font-face {
  font-display: swap;
}

:root {
  --bg-0: #0a0b0d;
  --bg-1: #14161a;
  --bg-2: #1b1e24;
  --bg-3: #242832;
  --border: #2a2f37;
  --border-strong: #3a4049;
  --fg-0: #f4f5f7;
  --fg-1: #a8aeb8;
  --fg-2: #6b7280;
  --fg-3: #4b5159;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-fg: #1a1208;
  --accent-soft: #f59e0b1f;
  --accent-border: #f59e0b52;
  --success: #10b981;
  --danger: #ef4444;
  --info: #5b9bff;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --font-ui: "Inter", "Pretendard", "Noto Sans KR", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --shadow-pop: 0 24px 64px -16px #00000080, 0 0 0 1px var(--border);
  --shadow-card: 0 1px 0 0 #ffffff05 inset, 0 1px 2px #0006;
  --scrim: #050608b3;
}

:root[data-theme="light"] {
  --bg-0: #f7f8fa;
  --bg-1: #fff;
  --bg-2: #f0f2f5;
  --bg-3: #e4e7ec;
  --border: #dde1e6;
  --border-strong: #c7ccd2;
  --fg-0: #14161a;
  --fg-1: #4b5159;
  --fg-2: #6b7280;
  --fg-3: #9aa0a8;
  --shadow-pop: 0 24px 64px -16px #0f141e2e, 0 0 0 1px var(--border);
  --shadow-card: 0 1px 0 0 #fff9 inset, 0 1px 2px #0f141e0f;
  --scrim: #14161a73;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.005em;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.app {
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  display: grid;
}

.app.no-sidebar {
  grid-template-columns: 1fr;
}

.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
  height: 100vh;
  padding: 16px 12px;
  display: flex;
  position: sticky;
  top: 0;
}

.sidebar .brand {
  letter-spacing: -.02em;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 20px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
}

.brand-mark {
  background: var(--accent);
  width: 28px;
  height: 28px;
  color: var(--accent-fg);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-mono);
  place-items: center;
  display: grid;
}

.nav-section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg-3);
  padding: 12px 12px 6px;
  font-size: 10.5px;
  font-weight: 600;
}

.nav-item {
  border-radius: var(--r-md);
  color: var(--fg-1);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s, color .12s;
  display: flex;
}

.nav-item:hover {
  background: var(--bg-2);
  color: var(--fg-0);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--fg-0);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.nav-item .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.nav-item .badge {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--fg-2);
  margin-left: auto;
}

.sidebar .user {
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 12px 10px;
  display: flex;
}

.avatar {
  background: linear-gradient(135deg, #5b9bff, #a855f7);
  border-radius: 999px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.user .meta {
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
  display: flex;
}

.user .meta .name {
  color: var(--fg-0);
  font-size: 12.5px;
  font-weight: 600;
}

.user .meta .handle {
  color: var(--fg-2);
  font-size: 11px;
  font-family: var(--font-mono);
}

.content {
  padding: 32px 40px;
  overflow: auto;
}

.content-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  display: flex;
}

.content-header h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.content-header .sub {
  color: var(--fg-2);
  margin-top: 4px;
  font-size: 13px;
}

.btn {
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background .12s, transform 60ms, border-color .12s;
  display: inline-flex;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  background: var(--bg-3);
  color: var(--fg-3);
  cursor: not-allowed;
}

.btn-ghost {
  color: var(--fg-1);
  border-color: var(--border);
  background: none;
}

.btn-ghost:hover {
  background: var(--bg-2);
  color: var(--fg-0);
  border-color: var(--border-strong);
}

.btn-subtle {
  background: var(--bg-2);
  color: var(--fg-0);
  border-color: var(--border);
}

.btn-subtle:hover {
  background: var(--bg-3);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 8px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 14px;
}

.field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.field label {
  color: var(--fg-1);
  letter-spacing: -.005em;
  font-size: 12px;
  font-weight: 600;
}

.field .hint {
  color: var(--fg-2);
  font-size: 11.5px;
}

.input, .select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg-0);
  outline: none;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  transition: border-color .12s, box-shadow .12s;
}

.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239DA4AE' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.modal-backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: 260px 1fr;
  width: 100%;
  max-width: 1040px;
  height: min(720px, 100vh - 48px);
  display: grid;
  overflow: hidden;
}

.modal.modal-wide {
  grid-template-columns: 280px minmax(0, 1fr);
  width: min(1760px, 100vw - 32px);
  max-width: none;
  height: min(940px, 100vh - 32px);
}

.wiz-rail {
  background: var(--bg-0);
  border-right: 1px solid var(--border);
  flex-direction: column;
  padding: 24px 20px;
  display: flex;
}

.wiz-rail .title {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg-3);
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
}

.wiz-rail .heading {
  letter-spacing: -.015em;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 700;
}

.wiz-step {
  gap: 12px;
  padding: 10px 0;
  display: flex;
  position: relative;
}

.wiz-step + .wiz-step:before {
  content: "";
  background: var(--border);
  width: 1px;
  height: 16px;
  position: absolute;
  top: -10px;
  left: 11px;
}

.wiz-step.done + .wiz-step:before {
  background: var(--accent);
}

.wiz-step .indicator {
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--fg-2);
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  margin-top: 1px;
  display: grid;
}

.wiz-step.current .indicator {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.wiz-step.done .indicator {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.wiz-step .body {
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.wiz-step .body .label {
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 600;
}

.wiz-step.current .body .label {
  color: var(--fg-0);
}

.wiz-step .body .hint {
  color: var(--fg-3);
  margin-top: 1px;
  font-size: 11.5px;
}

.wiz-body {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.wiz-body .head {
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 16px;
}

.wiz-body .head h2 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.wiz-body .head p {
  color: var(--fg-2);
  margin: 4px 0 0;
  font-size: 13px;
}

.wiz-body .main {
  flex: 1;
  padding: 24px 32px;
  overflow: auto;
}

.wiz-body .foot {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  display: flex;
}

.wiz-body .foot .stepcount {
  color: var(--fg-2);
  font-size: 12px;
  font-family: var(--font-mono);
}

.crop-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  cursor: crosshair;
  -webkit-user-select: none;
  user-select: none;
  background: #000;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px #00000080, inset 0 0 0 1px #ffffff0a;
}

.crop-frame.has-crop {
  cursor: crosshair;
}

.crop-dim {
  pointer-events: none;
  background: #0000009e;
  position: absolute;
}

.crop-suggest {
  pointer-events: none;
  background: #5b9bff0d;
  border: 1.5px dashed #5b9bffbf;
  border-radius: 2px;
  animation: 1.8s ease-in-out infinite crop-suggest-pulse;
  position: absolute;
}

@keyframes crop-suggest-pulse {
  0%, 100% {
    box-shadow: 0 0 #5b9bff00;
  }

  50% {
    box-shadow: 0 0 0 4px #5b9bff2e;
  }
}

.crop-suggest .lbl {
  color: #93c5fd;
  font-size: 10.5px;
  font-family: var(--font-mono);
  white-space: nowrap;
  background: #5b9bff2e;
  border: 1px solid #5b9bff80;
  border-radius: 3px;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 7px;
  font-weight: 700;
  display: inline-flex;
  position: absolute;
  top: 100%;
  right: 0;
}

.crop-rect {
  border: 1.5px solid var(--accent);
  cursor: move;
  box-sizing: border-box;
  background: #d977570a;
  position: absolute;
}

.crop-rect .rule-of-thirds {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.crop-rect .rule-of-thirds .v, .crop-rect .rule-of-thirds .h {
  background: #ffffff2e;
  position: absolute;
}

.crop-rect .rule-of-thirds .v {
  width: 1px;
  top: 0;
  bottom: 0;
}

.crop-rect .rule-of-thirds .h {
  height: 1px;
  left: 0;
  right: 0;
}

.crop-rect .rect-label {
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  bottom: 100%;
  left: 0;
}

.crop-rect .rect-dim {
  color: var(--fg-0);
  font-family: var(--font-mono);
  white-space: nowrap;
  background: #000000db;
  border: 1px solid #ffffff1a;
  border-radius: 3px;
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.rect-handle {
  background: var(--accent);
  border: 1.5px solid #0a0b0d;
  border-radius: 2px;
  width: 11px;
  height: 11px;
  position: absolute;
  box-shadow: 0 1px 2px #0006;
}

.rect-handle.tl {
  cursor: nwse-resize;
  top: -6px;
  left: -6px;
}

.rect-handle.tr {
  cursor: nesw-resize;
  top: -6px;
  right: -6px;
}

.rect-handle.bl {
  cursor: nesw-resize;
  bottom: -6px;
  left: -6px;
}

.rect-handle.br {
  cursor: nwse-resize;
  bottom: -6px;
  right: -6px;
}

.rect-handle.t {
  cursor: ns-resize;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.rect-handle.b {
  cursor: ns-resize;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.rect-handle.l {
  cursor: ew-resize;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
}

.rect-handle.r {
  cursor: ew-resize;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
}

.crop-hint {
  text-align: center;
  pointer-events: none;
  color: var(--fg-0);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.crop-hint .hint-circle {
  width: 56px;
  height: 56px;
  color: var(--fg-0);
  background: #0000008c;
  border: 1.5px dashed #fff6;
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 12px;
  animation: 1.6s ease-in-out infinite crop-hint-pulse;
  display: grid;
}

@keyframes crop-hint-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .85;
    transform: scale(1.08);
  }
}

.crop-hint .hint-ttl {
  color: var(--fg-0);
  letter-spacing: -.01em;
  text-shadow: 0 1px 4px #0009;
  font-size: 14.5px;
  font-weight: 700;
}

.crop-hint .hint-sub {
  color: var(--fg-1);
  text-shadow: 0 1px 4px #0009;
  margin-top: 4px;
  font-size: 12px;
}

.crop-hint .hint-sub b {
  color: var(--fg-0);
  font-weight: 700;
}

.crop-toggle {
  color: var(--fg-1);
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  display: inline-flex;
}

.crop-toggle .sw {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 28px;
  height: 16px;
  transition: background .12s;
  position: relative;
}

.crop-toggle.on .sw {
  background: var(--accent);
  border-color: var(--accent);
}

.crop-toggle .sw:after {
  content: "";
  background: var(--fg-0);
  border-radius: 999px;
  width: 12px;
  height: 12px;
  transition: transform .12s, background .12s;
  position: absolute;
  top: 1px;
  left: 1px;
}

.crop-toggle.on .sw:after {
  background: var(--accent-fg);
  transform: translateX(12px);
}

.fr-profile-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
  display: grid;
}

.fr-profile-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  gap: 10px;
  padding: 10px;
  transition: border-color .12s, background .12s;
  display: flex;
  position: relative;
}

.fr-profile-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-3);
}

.fr-profile-card.on {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-soft), transparent 80%), var(--bg-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.fr-profile-card .thumb {
  border: 1px solid var(--border);
  width: 96px;
  height: 56px;
  color: var(--fg-3);
  background: #060810;
  border-radius: 5px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
  overflow: hidden;
}

.fr-profile-card .info {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  padding: 1px 0;
  display: flex;
}

.fr-profile-card .info .nm {
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  overflow: hidden;
}

.fr-profile-card .info .nm .av {
  border-radius: 3px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.fr-profile-card .info .sub {
  color: var(--fg-2);
  font-size: 10.5px;
  font-family: var(--font-mono);
  align-items: center;
  gap: 6px;
  display: flex;
}

.fr-profile-card .info .sub .dot {
  border-radius: 2px;
  width: 6px;
  height: 6px;
}

.fr-profile-card .info .meter {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-3);
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  display: flex;
}

.fr-profile-card .check {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-1);
  color: #0000;
  border-radius: 999px;
  place-items: center;
  width: 18px;
  height: 18px;
  display: grid;
  position: absolute;
  top: 8px;
  right: 8px;
}

.fr-profile-card.on .check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.fr-name-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  letter-spacing: -.01em;
  width: 100%;
  color: var(--fg-0);
  outline: none;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .12s, box-shadow .12s;
}

.fr-name-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.fr-name-input::placeholder {
  color: var(--fg-3);
  font-weight: 500;
}

.fr-name-suggestions {
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  display: flex;
}

.fr-name-suggestions .sg {
  border: 1px solid var(--border);
  color: var(--fg-2);
  cursor: pointer;
  font-size: 10.5px;
  font-family: var(--font-mono);
  background: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 600;
}

.fr-name-suggestions .sg:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.fr-rec-btn {
  color: #fff;
  border-radius: var(--r-md);
  letter-spacing: -.01em;
  cursor: pointer;
  background: #ef4444;
  border: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  box-shadow: 0 4px 16px #ef444452, inset 0 1px #ffffff29;
}

.fr-rec-btn:hover {
  background: #dc2626;
}

.fr-rec-btn:disabled {
  background: var(--bg-3);
  color: var(--fg-3);
  cursor: not-allowed;
  box-shadow: none;
}

.fr-rec-btn .rd {
  background: #fff;
  border-radius: 999px;
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 2px #ffffff4d;
}

.fr-empty-wiz {
  text-align: center;
  background: var(--bg-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  color: var(--fg-2);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 24px;
  display: flex;
}

.fr-empty-wiz .ttl {
  color: var(--fg-0);
  letter-spacing: -.01em;
  font-size: 14px;
  font-weight: 700;
}

.fr-empty-wiz .desc {
  color: var(--fg-2);
  max-width: 340px;
  font-size: 12px;
  line-height: 1.55;
}

.fr-empty-wiz .links {
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.sk-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  display: flex;
}

.sk-stat .head {
  align-items: center;
  gap: 10px;
  display: flex;
}

.sk-stat .head .ic {
  background: var(--accent-soft);
  width: 28px;
  height: 28px;
  color: var(--accent);
  border-radius: 6px;
  place-items: center;
  display: grid;
}

.sk-stat .head .nm {
  letter-spacing: -.01em;
  font-size: 13.5px;
  font-weight: 700;
}

.sk-stat .head .desc {
  color: var(--fg-3);
  margin-top: 1px;
  font-size: 11px;
}

.sk-stat .head .v {
  font-family: var(--font-mono);
  letter-spacing: -.02em;
  color: var(--fg-0);
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
}

.sk-stat .head .v .unit {
  color: var(--fg-3);
  margin-left: 2px;
  font-size: 11px;
  font-weight: 600;
}

.sk-stat .rail {
  height: 28px;
  position: relative;
}

.sk-stat .rail .track {
  background: var(--bg-3);
  border-radius: 3px;
  height: 6px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  overflow: hidden;
  transform: translateY(-50%);
}

.sk-stat .rail .fill {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.sk-stat .rail .thumb {
  border: 2px solid var(--accent);
  background: #fff;
  border-radius: 999px;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px #0006;
}

.sk-stat .rail .ticks {
  position: absolute;
  inset: 0;
}

.sk-stat .rail .ticks span {
  font-family: var(--font-mono);
  color: var(--fg-3);
  margin-top: 2px;
  font-size: 9.5px;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.sk-skillpick {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  display: grid;
}

.sk-skillpick .opt {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  transition: border-color .12s, background .12s;
  display: flex;
  position: relative;
}

.sk-skillpick .opt:hover {
  border-color: var(--border-strong);
  background: var(--bg-3);
}

.sk-skillpick .opt.on {
  background: linear-gradient(180deg, var(--accent-soft), transparent 80%), var(--bg-2);
  border-color: var(--accent-border);
}

.sk-skillpick .opt.on:before {
  content: "";
  background: var(--accent);
  width: 18px;
  height: 18px;
  color: var(--accent-fg);
  box-shadow: 0 0 0 3px var(--bg-2);
  border-radius: 999px;
  place-items: center;
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
}

.sk-skillpick .opt.on:after {
  content: "✓";
  width: 18px;
  height: 18px;
  color: var(--accent-fg);
  z-index: 1;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  position: absolute;
  top: 10px;
  right: 10px;
}

.sk-skillpick .opt .head {
  align-items: center;
  gap: 10px;
  display: flex;
}

.sk-skillpick .opt .glyph {
  background: var(--bg-3);
  width: 36px;
  height: 36px;
  color: var(--fg-1);
  border-radius: 8px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.sk-skillpick .opt.on .glyph {
  background: var(--accent);
  color: var(--accent-fg);
}

.sk-skillpick .opt .name {
  letter-spacing: -.015em;
  font-size: 13.5px;
  font-weight: 700;
}

.sk-skillpick .opt .sub {
  color: var(--fg-2);
  font-size: 11px;
  font-family: var(--font-mono);
  margin-top: 2px;
}

.sk-skillpick .opt .desc {
  color: var(--fg-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.sk-keyrow {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  display: grid;
}

.sk-keyrow.with-seq {
  padding: 0;
  display: block;
}

.sk-keyrow.with-seq .head {
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  display: grid;
}

.sk-keyrow.with-seq.has-seq .head {
  border-bottom: 1px solid var(--border);
}

.sk-keyrow .gly {
  border-radius: 6px;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.sk-keyrow .meta {
  min-width: 0;
}

.sk-keyrow .nm {
  letter-spacing: -.01em;
  font-size: 13px;
  font-weight: 700;
}

.sk-keyrow .desc {
  color: var(--fg-2);
  font-size: 11px;
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  overflow: hidden;
}

.sk-keyrow .rec {
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  height: 30px;
  color: var(--fg-0);
  font-family: var(--font-mono);
  cursor: pointer;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 110px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.sk-keyrow .rec:hover {
  background: var(--bg-0);
}

.sk-keyrow .rec.recording {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  animation: 1.1s ease-in-out infinite sk-rec-pulse;
}

@keyframes sk-rec-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }

  50% {
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
}

.sk-keyrow .rec.empty {
  color: var(--fg-3);
}

.sk-keyrow .rec .dot {
  opacity: .6;
  background: currentColor;
  border-radius: 999px;
  width: 6px;
  height: 6px;
}

.sk-keyrow .rec.recording .dot {
  background: var(--accent);
  opacity: 1;
  animation: .7s ease-in-out infinite sk-rec-dot;
}

@keyframes sk-rec-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .35;
    transform: scale(.6);
  }
}

.sk-seq {
  background: #0000002e;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 12px;
  display: flex;
}

.sk-seq-tracks {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.sk-seq-track {
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  height: 14px;
  display: grid;
}

.sk-seq-label {
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  height: 14px;
  font-family: var(--font-mono);
  color: var(--fg-0);
  text-align: center;
  border-radius: 3px;
  justify-content: center;
  align-items: center;
  padding: 0 5px;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
}

.sk-seq-lane {
  background: #ffffff0a;
  border-radius: 2px;
  height: 8px;
  position: relative;
  overflow: hidden;
}

.sk-seq-lane:after {
  content: "";
  background: #ffffff0a;
  height: 1px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}

.sk-seq-bar {
  border-radius: 2px;
  min-width: 1.5px;
  position: absolute;
  top: 1px;
  bottom: 1px;
  box-shadow: inset 0 0 0 1px #00000040;
}

.sk-seq-bar.open {
  background-image: repeating-linear-gradient(-45deg, #ffffff2e 0 2px, #0000 2px 4px);
}

.sk-seq-axis {
  font-family: var(--font-mono);
  color: var(--fg-3);
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  padding-left: 46px;
  font-size: 9.5px;
  font-weight: 600;
  display: flex;
}

@keyframes agentmacro-rec-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .55;
  }
}

@keyframes agentmacro-warmup-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(.85);
  }
}

@keyframes agentmacro-player-pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%)scale(1);
  }

  50% {
    opacity: .72;
    transform: translate(-50%, -50%)scale(1.14);
  }
}

.agentmacro-rec-pill {
  color: #fca5a5;
  background: #ef444429;
  border: 1px solid #ef44447a;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  animation: 1.1s ease-in-out infinite agentmacro-rec-pulse;
  display: inline-flex;
}

.agentmacro-flow-editor-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
  display: grid;
}

.agentmacro-flow-workspace {
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  display: flex;
}

.agentmacro-record-stage {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #05070d;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 520px;
  padding: 14px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff08;
}

.agentmacro-record-topbar, .agentmacro-record-footer {
  align-items: center;
  gap: 8px;
  display: flex;
}

.agentmacro-record-footer {
  justify-content: space-between;
}

.agentmacro-record-source, .agentmacro-record-live, .agentmacro-record-stats {
  min-height: 28px;
  color: var(--fg-1);
  font-family: var(--font-mono);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #080a0fb8;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
}

.agentmacro-record-live {
  color: #fca5a5;
  background: #7f1d1d5c;
  border-color: #ef44447a;
  margin-left: auto;
  animation: 1.1s ease-in-out infinite agentmacro-rec-pulse;
}

.agentmacro-record-stats {
  flex-wrap: wrap;
  gap: 12px;
}

.agentmacro-record-issue {
  color: #fca5a5;
}

.agentmacro-record-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.agentmacro-record-surfaces {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 12px;
  min-height: 0;
  display: grid;
}

.agentmacro-record-frame-shell, .agentmacro-record-map-shell {
  border-radius: var(--r-md);
  background: #080a0fb8;
  border: 1px solid #ffffff24;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 12px;
  display: grid;
}

.agentmacro-record-surface-head {
  color: var(--fg-1);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  display: flex;
}

.agentmacro-record-surface-head span {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.agentmacro-record-frame {
  border-radius: var(--r-sm);
  background: #02040a;
  border: 1px solid #ffffff1f;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.agentmacro-record-video {
  object-fit: contain;
  background: #02040a;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.agentmacro-record-frame-placeholder {
  color: var(--fg-3);
  background: #02040ae0;
  align-content: center;
  place-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  position: absolute;
  inset: 0;
}

.agentmacro-minimap-path {
  border-radius: var(--r-sm);
  background: #060810;
  border: 1px solid #ffffff1f;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}

.agentmacro-minimap-empty {
  color: var(--fg-3);
  background-color: #060810;
  background-image: radial-gradient(circle at 20% 20%, #ffffff14 0 1px, #0000 1px), none;
  background-position: 0 0, 0 0;
  background-repeat: repeat, repeat;
  background-size: 14px 14px;
  background-attachment: scroll, scroll;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.agentmacro-flow-step-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  padding: 14px;
}

.agentmacro-flow-step-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.agentmacro-flow-section-label {
  color: var(--fg-0);
  font-size: 13px;
  font-weight: 800;
}

.agentmacro-flow-section-sub {
  color: var(--fg-3);
  margin-top: 2px;
  font-size: 11px;
}

.agentmacro-flow-count {
  border: 1px solid var(--border);
  background: var(--bg-2);
  min-width: 28px;
  height: 24px;
  color: var(--fg-0);
  font-family: var(--font-mono);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
}

.agentmacro-flow-step-list {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.agentmacro-flow-empty-steps {
  min-height: 92px;
  color: var(--fg-3);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  place-items: center;
  gap: 6px;
  font-size: 12px;
  display: grid;
}

.mobile-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.mobile-mode-tab {
  min-height: 42px;
  color: var(--fg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-1);
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.mobile-mode-tab.active {
  color: var(--fg-0);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.remote-viewer-pip {
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  border-radius: var(--r-lg);
  width: min(380px, 100vw - 48px);
  max-height: calc(100dvh - 48px);
  box-shadow: var(--shadow-pop);
  -webkit-backdrop-filter: blur(14px);
  will-change: transform;
  background: #0a0b0df5;
  border: 1px solid #ffffff24;
  flex-direction: column;
  display: flex;
  position: fixed;
  overflow: hidden;
}

.remote-viewer-pip.expanded {
  top: max(24px, env(safe-area-inset-top));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(1180px, 100vw - 48px);
}

.remote-viewer-pip-head {
  border-bottom: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  background: #14161af0;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
}

.remote-viewer-pip[data-dragging="true"] .remote-viewer-pip-head {
  cursor: grabbing;
}

.remote-viewer-pip-actions {
  cursor: default;
}

.remote-viewer-pip-title {
  flex-direction: column;
  flex: 1;
  gap: 1px;
  min-width: 0;
  display: flex;
}

.remote-viewer-pip-title strong {
  color: var(--fg-0);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1.25;
  overflow: hidden;
}

.remote-viewer-pip-title span {
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  line-height: 1.25;
  overflow: hidden;
}

.remote-viewer-pip-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  display: flex;
}

.remote-viewer-pip-actions .btn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.remote-viewer-pip-actions .btn-icon {
  width: 32px;
  padding: 0;
}

.remote-viewer-pip-status {
  background: #00000038;
  border-bottom: 1px solid #ffffff14;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 6px 10px;
  display: flex;
}

.remote-viewer-pip-chip, .remote-viewer-pip-control {
  height: 22px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  white-space: nowrap;
  background: #ffffff0a;
  border: 1px solid #ffffff1a;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 10.5px;
  display: inline-flex;
}

.remote-viewer-pip-chip b {
  color: var(--fg-3);
  font-weight: 800;
}

.remote-viewer-pip-chip.ok b {
  color: var(--success);
}

.remote-viewer-pip-chip.err b {
  color: var(--danger);
}

.remote-viewer-pip-control {
  color: #072014;
  background: #10b981e6;
  border-color: #10b9814d;
  font-weight: 800;
}

.remote-viewer-pip-input {
  min-width: 0;
  color: var(--fg-2);
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  font-size: 10.5px;
  overflow: hidden;
}

.remote-viewer-pip-error {
  color: var(--danger);
  background: #ef44441f;
  border-bottom: 1px solid #ef444440;
  flex-shrink: 0;
  padding: 7px 10px;
  font-size: 12px;
}

.remote-viewer-pip-stage {
  background: #000;
  min-width: 0;
  height: 214px;
  min-height: 180px;
  display: flex;
}

.remote-viewer-pip.expanded .remote-viewer-pip-stage {
  flex: 1;
  height: auto;
  min-height: 0;
}

.mobile-workspace-nav {
  display: none;
}

@media (max-width: 1100px) {
  .agentmacro-flow-editor-grid {
    grid-template-columns: 1fr;
  }

  .agentmacro-record-stage {
    min-height: 360px;
  }

  .agentmacro-record-surfaces {
    grid-template-rows: minmax(280px, 1fr) minmax(180px, .55fr);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .agentmacro-record-stage {
    min-height: 620px;
  }

  .agentmacro-record-topbar, .agentmacro-record-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .agentmacro-record-topbar {
    flex-wrap: wrap;
  }

  .agentmacro-record-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .agentmacro-record-surfaces {
    grid-template-rows: minmax(260px, 1fr) minmax(160px, .55fr);
  }
}

@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }

  .sidebar {
    display: none;
  }

  .content {
    width: 100%;
    min-width: 0;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(86px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .content-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }

  .content-header h1 {
    font-size: 20px;
  }

  .content-header > div:last-child {
    justify-content: flex-start !important;
  }

  .card {
    padding: 14px;
  }

  .runtime-layout, .runtime-signal-grid, .runtime-context-grid {
    grid-template-columns: 1fr !important;
  }

  .runtime-layout {
    gap: 14px !important;
  }

  .runtime-sidebar, .runtime-main {
    width: 100%;
  }

  .mobile-workspace-nav {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-pop);
    -webkit-backdrop-filter: blur(14px);
    background: #14161aeb;
    border: 1px solid #ffffff24;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    display: grid;
    position: fixed;
  }

  .mobile-workspace-nav-item {
    min-height: 42px;
    color: var(--fg-1);
    border-radius: var(--r-md);
    border: 1px solid #0000;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
  }

  .mobile-workspace-nav-item.active {
    color: var(--fg-0);
    background: var(--accent-soft);
    border-color: var(--accent-border);
  }

  .remote-viewer-pip {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 108px - env(safe-area-inset-bottom));
  }

  .remote-viewer-pip.expanded {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
  }

  .remote-viewer-pip-head {
    align-items: flex-start;
  }

  .remote-viewer-pip-actions {
    gap: 4px;
  }

  .remote-viewer-pip-actions .btn:not(.btn-icon) {
    padding: 0 8px;
  }
}

.kbd {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  min-width: 22px;
  height: 22px;
  font-family: var(--font-mono);
  color: var(--fg-0);
  border-bottom-width: 2px;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-1);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
}

.tag .dot {
  background: var(--success);
  border-radius: 999px;
  width: 6px;
  height: 6px;
}

.tag.warn .dot {
  background: var(--accent);
}

.tag.muted .dot {
  background: var(--fg-3);
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-ordinal {
  syntax: "*";
  inherits: false
}

@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=src_app_globals_0p2ml0n.css.map*/