/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
@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-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;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrainsMono", ui-monospace, monospace;
    --spacing: .25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --ease-soft: cubic-bezier(.2, .8, .2, 1);
  }
}

@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;
    -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;
  }

  @font-face {
    font-family: JetBrainsMono;
    font-weight: 700;
    font-style: normal;
    src: url("/assets/JetBrainsMono-Bold-DirYFTCx.ttf");
    font-display: swap;
  }

  @font-face {
    font-family: JetBrainsMono;
    font-weight: 400 500;
    font-style: normal;
    src: url("/assets/JetBrainsMono-Medium-pYQm08-g.ttf");
    font-display: swap;
  }

  html, body {
    height: 100%;
  }

  body {
    background: var(--bg) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAANlBMVEVHcExQUFC1tbXc3NwzMzOCgoI3Nze6urrZ2dlra2sqKiqTk5NcXFzLy8uRkZE+Pj51dXWoqKjg6TBPAAAAEnRSTlMABQYLCw4RExgYGRokKCguNjzmXsB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saKQfFSln8rgn1j2L7Cqztz4Pe4uB9zHs3tzNYxQZUXpucSKGs8b1G0U8MKxXbofIcdwIQI69URCgCG8ruGc+YYSLRnNuf8TV747Embq8B/vDUd2Mqrfqr1LL5JubeNqkGdmWOGIrzNn1CVSujltHPqXbTqL3g9+v6y7s5Lxu2ZWvFKPF2hMWTUcywYR7GgphzAX4cpxqI88pMNoSRf2CjM+5U6pv0JNXHl614hJmHRaoh5hSwn4aEagK3h++Sc1dmNrPJ2XHC8JyxUZTUj2+bd36sGAwdhcSUTT1Mao/+2nPWnaS6WkjVZnc2fco/KTEQJ87iQ0oOz+1DruhG7Lqn/m1sy0fXO7027do7S7QFBtpl8IUulQcQu2BM3KE9w9xUjcBsfEMUKMAiPfrqstLu5FvEmHq9VnZpp3URUTzs0PnIXiBfIAanFWSIHcew8VD4WcZosWWiovVL3ikaFjCXgQmNk3JU+RHVnDgMQJQ9l8OMxSYlDWGoVusjx5lTG2xzwvAMfrcJRp+UjPuY1eWHISPX9vd+hOnGIB7xitcHsey/2eBqueYEBDGkMPbS92v2uqW3dUm6DEc/fQS3o9JPayri3EudKubSqV9jY9+2rhVUG/WbmHXQnjh5A2UZ/S0XadfxGSUQ7yIoAqsCo3omgqIB2KlsiqiuBWfMbwedsFqMIrAzvx9V4WGJAuYC8pKcWZaxa3Dpz2+CRNeM9lcG070/VL21QVCHWMwTbYC+RdjtMHarKhZTxIkitYo2KHGFZ/7Q1n3Frrvbv62uPWgbbHqMcfD2HRg/wxoZh4S4xovfZPxCOZ59psKwfbK2OtgXHLmRerdcNKmYRBYNfvNXnGxN57VD67NAsf36HnKE5tUfP8pTm4IOYk2og6ynGZSudrlPI76qvJTt60xwuh4mtjXuC5Ijyb1RZntdlr1Hmifd56d5jbG3Yzxm+wUpEFP5leN8in++A5caytJgSQAAAABJRU5ErkJggg==");
    color: var(--fg);
    font: 15px / 1.55 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s var(--ease-soft), color .25s var(--ease-soft);
  }

  :focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
    border-radius: 6px;
  }
}

@layer components {
  .btn {
    border: 1px solid var(--faint);
    height: 40px;
    font: 13px var(--font-mono);
    cursor: pointer;
    color: inherit;
    background: none;
    border-radius: 10px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    text-decoration: none;
    transition: background-color .15s, opacity .15s, transform .1s;
    display: inline-flex;
  }

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

  .btn:active {
    transform: scale(.97);
  }

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

  .btn-primary:hover {
    background: var(--fg);
    opacity: .88;
  }

  .view {
    scrollbar-width: thin;
    padding: clamp(16px, 4vh, 48px) 0 clamp(16px, 3vh, 32px);
    display: grid;
    position: absolute;
    inset: 0;
    overflow: auto;
  }

  .view .e {
    animation: rise .34s var(--ease-soft) both;
    animation-delay: calc(var(--i, 0) * 35ms);
  }

  .swap {
    animation: swap .22s var(--ease-soft);
  }

  .glide {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
  }

  .glide.ready {
    transition: transform .24s var(--ease-soft), width .24s var(--ease-soft), height .24s var(--ease-soft), opacity .15s;
  }

  .caret {
    background: var(--fg);
    width: .6em;
    height: 1.2em;
    margin-left: 2px;
    animation: 1.1s step-end infinite blink;
    display: inline-block;
  }

  .label {
    font: 400 12px var(--font-mono);
    color: var(--muted);
  }
}

@layer utilities {
  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .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;
    }
  }

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

  .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;
  }

  .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, );
  }
}

:root {
  --bg: #dcdcdb;
  --fg: #1e1e1e;
  --muted: #6b6b6b;
  --faint: #0000001a;
  --hover: #0000000d;
  --live: #2f9e44;
  --pad: clamp(18px, 3.2vw, 48px);
  color-scheme: light;
}

:root.dark {
  --bg: #222;
  --fg: #ececec;
  --muted: #8f8f8f;
  --faint: #ffffff1a;
  --hover: #ffffff0d;
  --live: #51cf66;
  color-scheme: dark;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
  }

  .caret {
    animation: none;
  }
}

@media (max-width: 860px) {
  .view {
    padding-bottom: 96px;
  }
}

@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-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
}
/* Shell: barra superior (caminho + navegação), rodapé e a barra flutuante do mobile.
   Mesma geometria do protótipo `.app`. */

.shell-app {
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0 var(--pad);
}

/* barra superior: caminho com cursor (a única referência literal ao terminal) + navegação */
.shell-top {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
    font: 13px var(--font-mono);
}

.shell-path {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    white-space: pre;
}
.shell-path .shell-home {
    color: var(--muted);
    transition: color 0.15s;
}
.shell-path:hover .shell-home {
    color: var(--fg);
}

.shell-nav {
    position: relative;
    display: flex;
    gap: 2px;
    margin-left: auto;
}
.shell-nav a {
    position: relative;
    z-index: 1;
    padding: 7px 14px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.18s var(--ease-soft);
}
.shell-nav a:hover {
    color: var(--fg);
}
.shell-nav a[aria-current="page"] {
    color: var(--bg);
}
.shell-nav kbd {
    font: 11px var(--font-mono);
    margin-left: 8px;
    opacity: 0.45;
}
.shell-nav .glide {
    height: 100%;
    background: var(--fg);
    border-radius: 8px;
}
.shell-nav .glide.off {
    opacity: 0;
}

.shell-icons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.shell-lang {
    appearance: none;
    border: 0;
    background: none;
    color: inherit;
    font: 13px var(--font-mono);
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background-color 0.15s,
        transform 0.1s;
}
.shell-lang:hover {
    background: var(--hover);
}
.shell-lang:active {
    transform: scale(0.92);
}

.shell-icon {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition:
        background-color 0.15s,
        transform 0.1s;
}
.shell-icon:hover {
    background: var(--hover);
}
.shell-icon:active {
    transform: scale(0.92);
}
.shell-icon svg {
    transition: transform 0.4s var(--ease-soft);
}
.dark .shell-icon svg {
    transform: rotate(180deg);
}

/* rodapé: contato sempre a um clique */
.shell-foot {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 58px;
    border-top: 1px solid var(--faint);
    font: 13px var(--font-mono);
}
.shell-link {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.shell-link:hover {
    color: var(--fg);
}
.shell-copy {
    min-width: 21ch;
    text-align: left;
}
.shell-copy.ok {
    color: var(--live);
    animation: swap 0.22s var(--ease-soft);
}
.shell-spacer {
    flex: 1;
}
.shell-hint {
    color: var(--muted);
    opacity: 0.7;
}

/* 404: linha 1fr à frente empurra o conteúdo para o canto inferior esquerdo. */
.shell-404 {
    grid-template-rows: 1fr auto;
}
.shell-404-box {
    grid-row: 2;
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.shell-404-code {
    font: 700 clamp(64px, 10vw, 160px)/0.9 var(--font-mono);
    letter-spacing: -0.05em;
    user-select: none;
}
.shell-404-msg {
    font-size: 18px;
}
.shell-404-path {
    color: var(--muted);
}
.shell-404-box .btn {
    margin-top: 12px;
}

/* atalhos de teclado não fazem sentido sem teclado */
@media (hover: none) {
    .shell-nav kbd,
    .shell-hint {
        display: none;
    }
}

@media (max-width: 860px) {
    .shell-app {
        grid-template-rows: auto 1fr;
    }
    .shell-foot {
        display: none;
    }
    .shell-top {
        height: 58px;
    }
    /* navegação vira barra flutuante translúcida embaixo, ao alcance do polegar */
    .shell-nav {
        position: fixed;
        z-index: 10;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        padding: 4px;
        border: 1px solid var(--faint);
        border-radius: 14px;
        background: color-mix(in srgb, var(--bg) 72%, transparent);
        backdrop-filter: blur(16px) saturate(160%);
    }
    .shell-nav a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
    }
    .shell-nav .glide {
        top: 4px;
        height: calc(100% - 8px);
    }
    .shell-nav kbd {
        display: none;
    }
    .shell-icons {
        margin-left: auto;
    }
}
