@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
    ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    :root,
    :host {
      --shimmer-angle: 20deg;
    }
    *,
    :before,
    :after,
    ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: 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-duration: initial;
      --tw-animation-delay: 0s;
      --tw-animation-direction: normal;
      --tw-animation-duration: initial;
      --tw-animation-fill-mode: none;
      --tw-animation-iteration-count: 1;
      --tw-enter-blur: 0;
      --tw-enter-opacity: 1;
      --tw-enter-rotate: 0;
      --tw-enter-scale: 1;
      --tw-enter-translate-x: 0;
      --tw-enter-translate-y: 0;
      --tw-exit-blur: 0;
      --tw-exit-opacity: 1;
      --tw-exit-rotate: 0;
      --tw-exit-scale: 1;
      --tw-exit-translate-x: 0;
      --tw-exit-translate-y: 0;
      --scroll-fade-t: 0px;
      --scroll-fade-b: 0px;
      --scroll-fade-s: 0px;
      --scroll-fade-e: 0px;
      --scroll-fade-mask: initial;
      --shimmer-image: initial;
      --shimmer-text-fill: initial;
    }
  }
}
@layer theme {
  :root,
  :host {
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
      monospace;
    --color-black: #000;
    --color-white: #fff;
    --spacing: 0.25rem;
    --container-lg: 32rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --tracking-widest: 0.1em;
    --radius-xs: 0.125rem;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --default-transition-duration: 0.15s;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    --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;
    -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: -0.25em;
  }
  sup {
    top: -0.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 {
  .pointer-events-none {
    pointer-events: none;
  }
  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .top-4 {
    top: calc(var(--spacing) * 4);
  }
  .top-\[50\%\] {
    top: 50%;
  }
  .right-4 {
    right: calc(var(--spacing) * 4);
  }
  .left-2 {
    left: calc(var(--spacing) * 2);
  }
  .left-\[50\%\] {
    left: 50%;
  }
  .z-50 {
    z-index: 50;
  }
  .-mx-1 {
    margin-inline: calc(var(--spacing) * -1);
  }
  .my-1 {
    margin-block: calc(var(--spacing) * 1);
  }
  .ml-auto {
    margin-left: auto;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .inline-flex {
    display: inline-flex;
  }
  .size-2 {
    width: calc(var(--spacing) * 2);
    height: calc(var(--spacing) * 2);
  }
  .size-3\.5 {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }
  .size-4 {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .size-6 {
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
  }
  .size-8 {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
  }
  .size-9 {
    width: calc(var(--spacing) * 9);
    height: calc(var(--spacing) * 9);
  }
  .size-10 {
    width: calc(var(--spacing) * 10);
    height: calc(var(--spacing) * 10);
  }
  .h-6 {
    height: calc(var(--spacing) * 6);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-9 {
    height: calc(var(--spacing) * 9);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-px {
    height: 1px;
  }
  .max-h-\(--radix-dropdown-menu-content-available-height\) {
    max-height: var(--radix-dropdown-menu-content-available-height);
  }
  .w-full {
    width: 100%;
  }
  .max-w-\[calc\(100\%-2rem\)\] {
    max-width: calc(100% - 2rem);
  }
  .min-w-\[8rem\] {
    min-width: 8rem;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .origin-\(--radix-dropdown-menu-content-transform-origin\) {
    transform-origin: var(--radix-dropdown-menu-content-transform-origin);
  }
  .translate-x-\[-50\%\] {
    --tw-translate-x: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .translate-y-\[-50\%\] {
    --tw-translate-y: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .cursor-default {
    cursor: default;
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-col-reverse {
    flex-direction: column-reverse;
  }
  .items-center {
    align-items: center;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-x-hidden {
    overflow-x: hidden;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-sm {
    border-radius: var(--radius-sm);
  }
  .rounded-xs {
    border-radius: var(--radius-xs);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .bg-background {
    background-color: var(--background);
  }
  .bg-black\/50 {
    background-color: #00000080;
  }
  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/50 {
      background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
    }
  }
  .bg-border {
    background-color: var(--border);
  }
  .bg-destructive {
    background-color: var(--destructive);
  }
  .bg-popover {
    background-color: var(--popover);
  }
  .bg-primary {
    background-color: var(--primary);
  }
  .bg-secondary {
    background-color: var(--secondary);
  }
  .fill-current {
    fill: currentColor;
  }
  .p-1 {
    padding: calc(var(--spacing) * 1);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .pr-2 {
    padding-right: calc(var(--spacing) * 2);
  }
  .pl-8 {
    padding-left: calc(var(--spacing) * 8);
  }
  .text-center {
    text-align: center;
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-widest {
    --tw-tracking: var(--tracking-widest);
    letter-spacing: var(--tracking-widest);
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .text-muted-foreground {
    color: var(--muted-foreground);
  }
  .text-popover-foreground {
    color: var(--popover-foreground);
  }
  .text-primary {
    color: var(--primary);
  }
  .text-primary-foreground {
    color: var(--primary-foreground);
  }
  .text-secondary-foreground {
    color: var(--secondary-foreground);
  }
  .text-white {
    color: var(--color-white);
  }
  .underline-offset-4 {
    text-underline-offset: 4px;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .opacity-70 {
    opacity: 0.7;
  }
  .shadow-lg {
    --tw-shadow:
      0 10px 15px -3px var(--tw-shadow-color, #0000001a),
      0 4px 6px -4px 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);
  }
  .shadow-md {
    --tw-shadow:
      0 4px 6px -1px var(--tw-shadow-color, #0000001a),
      0 2px 4px -2px 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);
  }
  .shadow-xs {
    --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring-offset-background {
    --tw-ring-offset-color: var(--background);
  }
  .outline-hidden {
    --tw-outline-style: none;
    outline-style: none;
  }
  @media (forced-colors: active) {
    .outline-hidden {
      outline-offset: 2px;
      outline: 2px solid #0000;
    }
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-200 {
    --tw-duration: 0.2s;
    transition-duration: 0.2s;
  }
  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  @media (hover: hover) {
    .hover\:bg-accent:hover {
      background-color: var(--accent);
    }
    .hover\:bg-destructive\/90:hover {
      background-color: var(--destructive);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-destructive\/90:hover {
        background-color: color-mix(in oklab, var(--destructive) 90%, transparent);
      }
    }
    .hover\:bg-primary\/90:hover {
      background-color: var(--primary);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-primary\/90:hover {
        background-color: color-mix(in oklab, var(--primary) 90%, transparent);
      }
    }
    .hover\:bg-secondary\/80:hover {
      background-color: var(--secondary);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-secondary\/80:hover {
        background-color: color-mix(in oklab, var(--secondary) 80%, transparent);
      }
    }
    .hover\:text-accent-foreground:hover {
      color: var(--accent-foreground);
    }
    .hover\:underline:hover {
      text-decoration-line: underline;
    }
    .hover\:opacity-100:hover {
      opacity: 1;
    }
  }
  .focus\:bg-accent:focus {
    background-color: var(--accent);
  }
  .focus\:text-accent-foreground:focus {
    color: var(--accent-foreground);
  }
  .focus\:ring-2:focus {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width))
      var(--tw-ring-color, currentcolor);
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-shadow);
  }
  .focus\:ring-ring:focus {
    --tw-ring-color: var(--ring);
  }
  .focus\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width)
      var(--tw-ring-offset-color);
  }
  .focus\:outline-hidden:focus {
    --tw-outline-style: none;
    outline-style: none;
  }
  @media (forced-colors: active) {
    .focus\:outline-hidden:focus {
      outline-offset: 2px;
      outline: 2px solid #0000;
    }
  }
  .focus-visible\:border-ring:focus-visible {
    border-color: var(--ring);
  }
  .focus-visible\:ring-\[3px\]:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width))
      var(--tw-ring-color, currentcolor);
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-shadow);
  }
  .focus-visible\:ring-destructive\/20:focus-visible {
    --tw-ring-color: var(--destructive);
  }
  @supports (color: color-mix(in lab, red, red)) {
    .focus-visible\:ring-destructive\/20:focus-visible {
      --tw-ring-color: color-mix(in oklab, var(--destructive) 20%, transparent);
    }
  }
  .focus-visible\:ring-ring\/50:focus-visible {
    --tw-ring-color: var(--ring);
  }
  @supports (color: color-mix(in lab, red, red)) {
    .focus-visible\:ring-ring\/50:focus-visible {
      --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }
  .disabled\:pointer-events-none:disabled {
    pointer-events: none;
  }
  .disabled\:opacity-50:disabled {
    opacity: 0.5;
  }
  .has-\[\>svg\]\:px-1\.5:has(> svg) {
    padding-inline: calc(var(--spacing) * 1.5);
  }
  .has-\[\>svg\]\:px-2\.5:has(> svg) {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .has-\[\>svg\]\:px-3:has(> svg) {
    padding-inline: calc(var(--spacing) * 3);
  }
  .has-\[\>svg\]\:px-4:has(> svg) {
    padding-inline: calc(var(--spacing) * 4);
  }
  .aria-invalid\:border-destructive[aria-invalid="true"] {
    border-color: var(--destructive);
  }
  .aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
    --tw-ring-color: var(--destructive);
  }
  @supports (color: color-mix(in lab, red, red)) {
    .aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
      --tw-ring-color: color-mix(in oklab, var(--destructive) 20%, transparent);
    }
  }
  .data-\[disabled\]\:pointer-events-none[data-disabled] {
    pointer-events: none;
  }
  .data-\[disabled\]\:opacity-50[data-disabled] {
    opacity: 0.5;
  }
  .data-\[inset\]\:pl-8[data-inset] {
    padding-left: calc(var(--spacing) * 8);
  }
  .data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
    --tw-enter-translate-y: calc(2 * var(--spacing) * -1);
  }
  .data-\[side\=left\]\:slide-in-from-right-2[data-side="left"] {
    --tw-enter-translate-x: calc(2 * var(--spacing));
  }
  .data-\[side\=right\]\:slide-in-from-left-2[data-side="right"] {
    --tw-enter-translate-x: calc(2 * var(--spacing) * -1);
  }
  .data-\[side\=top\]\:slide-in-from-bottom-2[data-side="top"] {
    --tw-enter-translate-y: calc(2 * var(--spacing));
  }
  .data-\[state\=closed\]\:animate-out[data-state="closed"] {
    animation: exit var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease)
      var(--tw-animation-delay, 0s) var(--tw-animation-iteration-count, 1)
      var(--tw-animation-direction, normal) var(--tw-animation-fill-mode, none);
  }
  .data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
    --tw-exit-opacity: 0;
  }
  .data-\[state\=closed\]\:zoom-out-95[data-state="closed"] {
    --tw-exit-scale: 0.95;
  }
  .data-\[state\=open\]\:animate-in[data-state="open"] {
    animation: enter var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease)
      var(--tw-animation-delay, 0s) var(--tw-animation-iteration-count, 1)
      var(--tw-animation-direction, normal) var(--tw-animation-fill-mode, none);
  }
  .data-\[state\=open\]\:bg-accent[data-state="open"] {
    background-color: var(--accent);
  }
  .data-\[state\=open\]\:text-accent-foreground[data-state="open"] {
    color: var(--accent-foreground);
  }
  .data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
    color: var(--muted-foreground);
  }
  .data-\[state\=open\]\:fade-in-0[data-state="open"] {
    --tw-enter-opacity: 0;
  }
  .data-\[state\=open\]\:zoom-in-95[data-state="open"] {
    --tw-enter-scale: 0.95;
  }
  .data-\[variant\=destructive\]\:text-destructive[data-variant="destructive"] {
    color: var(--destructive);
  }
  .data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant="destructive"]:focus {
    background-color: var(--destructive);
  }
  @supports (color: color-mix(in lab, red, red)) {
    .data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant="destructive"]:focus {
      background-color: color-mix(in oklab, var(--destructive) 10%, transparent);
    }
  }
  .data-\[variant\=destructive\]\:focus\:text-destructive[data-variant="destructive"]:focus {
    color: var(--destructive);
  }
  @media (min-width: 40rem) {
    .sm\:max-w-lg {
      max-width: var(--container-lg);
    }
    .sm\:flex-row {
      flex-direction: row;
    }
    .sm\:justify-end {
      justify-content: flex-end;
    }
    .sm\:text-left {
      text-align: left;
    }
  }
  @media (prefers-color-scheme: dark) {
    .dark\:border-input {
      border-color: var(--input);
    }
    .dark\:bg-destructive\/60 {
      background-color: var(--destructive);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .dark\:bg-destructive\/60 {
        background-color: color-mix(in oklab, var(--destructive) 60%, transparent);
      }
    }
    .dark\:bg-input\/30 {
      background-color: var(--input);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .dark\:bg-input\/30 {
        background-color: color-mix(in oklab, var(--input) 30%, transparent);
      }
    }
    @media (hover: hover) {
      .dark\:hover\:bg-accent\/50:hover {
        background-color: var(--accent);
      }
      @supports (color: color-mix(in lab, red, red)) {
        .dark\:hover\:bg-accent\/50:hover {
          background-color: color-mix(in oklab, var(--accent) 50%, transparent);
        }
      }
      .dark\:hover\:bg-input\/50:hover {
        background-color: var(--input);
      }
      @supports (color: color-mix(in lab, red, red)) {
        .dark\:hover\:bg-input\/50:hover {
          background-color: color-mix(in oklab, var(--input) 50%, transparent);
        }
      }
    }
    .dark\:focus-visible\:ring-destructive\/40:focus-visible {
      --tw-ring-color: var(--destructive);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .dark\:focus-visible\:ring-destructive\/40:focus-visible {
        --tw-ring-color: color-mix(in oklab, var(--destructive) 40%, transparent);
      }
    }
    .dark\:aria-invalid\:ring-destructive\/40[aria-invalid="true"] {
      --tw-ring-color: var(--destructive);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .dark\:aria-invalid\:ring-destructive\/40[aria-invalid="true"] {
        --tw-ring-color: color-mix(in oklab, var(--destructive) 40%, transparent);
      }
    }
    .dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant="destructive"]:focus {
      background-color: var(--destructive);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20[data-variant="destructive"]:focus {
        background-color: color-mix(in oklab, var(--destructive) 20%, transparent);
      }
    }
  }
  .\[\&_svg\]\:pointer-events-none svg {
    pointer-events: none;
  }
  .\[\&_svg\]\:shrink-0 svg {
    flex-shrink: 0;
  }
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*="size-"]) {
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
  }
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*="size-"]) {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*="text-"]) {
    color: var(--muted-foreground);
  }
  :is(
    .data-\[variant\=destructive\]\:\*\:\[svg\]\:text-destructive\![data-variant="destructive"] > *
  ):is(svg) {
    color: var(--destructive) !important;
  }
}
@property --tw-animation-delay {
  syntax: "*";
  inherits: false;
  initial-value: 0s;
}
@property --tw-animation-direction {
  syntax: "*";
  inherits: false;
  initial-value: normal;
}
@property --tw-animation-duration {
  syntax: "*";
  inherits: false;
}
@property --tw-animation-fill-mode {
  syntax: "*";
  inherits: false;
  initial-value: none;
}
@property --tw-animation-iteration-count {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-enter-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-enter-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-enter-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-enter-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-enter-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-enter-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-exit-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-exit-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-exit-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-exit-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-exit-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-exit-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --scroll-fade-t {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}
@property --scroll-fade-b {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}
@property --scroll-fade-s {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}
@property --scroll-fade-e {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}
@property --scroll-fade-mask {
  syntax: "*";
  inherits: false;
}
@property --shimmer-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 20deg;
}
@property --shimmer-image {
  syntax: "*";
  inherits: false;
}
@property --shimmer-text-fill {
  syntax: "*";
  inherits: false;
}
@media (prefers-reduced-motion: reduce) {
  .shimmer {
    -webkit-text-fill-color: currentColor;
    background-image: none;
    animation: none;
  }
}
:root {
  --background: #f1f3f3;
  --foreground: #1b2b31;
  --card: #fff;
  --card-foreground: #1b2b31;
  --popover: #fff;
  --popover-foreground: #1b2b31;
  --primary: #182f39;
  --primary-foreground: #fff;
  --secondary: #e7eced;
  --secondary-foreground: #20343a;
  --muted: #eef1f1;
  --muted-foreground: #64747a;
  --accent: #e7eff0;
  --accent-foreground: #182f39;
  --destructive: #ac3933;
  --border: #d6ddde;
  --input: #d6ddde;
  --ring: #638899;
  --radius: 0.65rem;
}
* {
  box-sizing: border-box;
}
body {
  color: #1b2b31;
  background: #eff2f2;
  margin: 0;
  font-family:
    Hiragino Kaku Gothic ProN,
    Yu Gothic,
    Meiryo,
    sans-serif;
  font-size: 16px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
.app-shell {
  background: radial-gradient(circle at 11% 0, #f9fbfa 0, #0000 35%), #eff2f2;
  min-height: 100vh;
}
.topbar {
  color: #f9fafa;
  background: #142932;
  border-bottom: 3px solid #bb8952;
}
.topbar-inner {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 1420px;
  min-height: 73px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
}
.brand {
  white-space: nowrap;
  letter-spacing: 0.02em;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 760;
  display: flex;
}
.brand-symbol {
  color: #172d36;
  background: #bd8c58;
  border-radius: 7px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: serif;
  font-size: 24px;
  display: grid;
}
.toolbar {
  align-items: center;
  gap: 9px;
  display: flex;
}
.toolbar .upload-button {
  color: #1e2830;
  background: #d7a167;
  height: 40px;
  font-weight: 750;
}
.toolbar .upload-button:hover {
  background: #edb981;
}
.toolbar .toolbar-secondary,
.toolbar [aria-label="その他の操作"],
.toolbar [aria-label="保存した棋譜"] {
  color: #eef6f7;
  background: 0 0;
  border-color: #67808b;
  height: 40px;
}
.toolbar .toolbar-secondary:hover,
.toolbar [aria-label="その他の操作"]:hover,
.toolbar [aria-label="保存した棋譜"]:hover {
  color: #fff;
  background: #28434d;
}
.workspace {
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 22px;
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
}
.board-panel,
.history-panel {
  background: #fff;
  border: 1px solid #d9e0e0;
  border-radius: 13px;
  box-shadow: 0 13px 35px #1d3b4812;
}
.board-panel {
  min-width: 0;
  padding: 28px 32px 18px;
}
.board-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}
.eyebrow {
  color: #9a754f;
  letter-spacing: 0.19em;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
}
.eyebrow-line {
  background: #c9ab86;
  width: 26px;
  height: 1px;
  display: inline-block;
}
.board-heading h1 {
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  margin: 8px 0 3px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 780;
  line-height: 1.35;
}
.board-heading p {
  color: #63757c;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.board-heading-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  display: flex;
}
.ply-label {
  color: #3f5963;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.flip-button {
  color: #36545f !important;
  border-color: #cdd8db !important;
}
.notice,
.error {
  border-radius: 7px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
}
.notice {
  color: #28654b;
  background: #e7f2ed;
}
.error {
  color: #a23b32;
  background: #fcecea;
}
.notice button,
.error button {
  color: inherit;
  font-size: 20px;
  line-height: 1;
}
.hand-row {
  background: #f4f5f3;
  border: 1px solid #e6e9e7;
  border-radius: 8px;
  align-items: center;
  gap: 16px;
  max-width: 650px;
  min-height: 84px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
}
.hand-row.is-turn {
  border-left: 4px solid #bf8c54;
}
.hand-owner {
  white-space: nowrap;
  flex: none;
  align-items: center;
  gap: 7px;
  width: 147px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  overflow: hidden;
}
.hand-owner > span:nth-child(2) {
  text-overflow: ellipsis;
  overflow: hidden;
}
.side-mark {
  color: #a97642;
  font-size: 18px;
}
.turn-chip {
  color: #fff;
  background: #294954;
  border-radius: 4px;
  flex-shrink: 0;
  padding: 2px 5px;
  font-size: 12px;
  font-weight: 700;
}
.hand-pieces {
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  display: flex;
}
.hand-piece {
  border: 1px solid #0000;
  border-radius: 5px !important;
  gap: 0 !important;
  min-width: 47px !important;
  height: 51px !important;
  padding: 3px !important;
}
.hand-piece:not(:disabled):hover,
.hand-piece.selected {
  border-color: #a77645;
  background: #f8ead8 !important;
}
.hand-piece:disabled {
  opacity: 1 !important;
}
.hand-piece .count {
  color: #617078;
  align-self: flex-end;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 750;
}
.no-hand {
  color: #889496;
  font-size: 13px;
}
.board-with-coords {
  max-width: 670px;
  margin: 10px auto 16px;
  padding-right: 2px;
}
.files-axis {
  color: #59717b;
  grid-template-columns: repeat(9, 1fr);
  place-items: center;
  width: calc(100% - 27px);
  height: 22px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}
.board-area {
  align-items: stretch;
  gap: 7px;
  display: flex;
}
.board-grid {
  aspect-ratio: 1;
  background: #e9c892;
  border: 3px solid #866344;
  flex: none;
  grid-template-rows: repeat(9, 1fr);
  grid-template-columns: repeat(9, 1fr);
  width: calc(100% - 27px);
  display: grid;
  box-shadow:
    0 2px #6e4d30,
    0 10px 24px #343b3d24;
}
.square {
  aspect-ratio: 1;
  width: 100%;
  height: 100%;
  position: relative;
  min-width: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  background: #ebcb97 !important;
  border-bottom: 1px solid #94724e !important;
  border-right: 1px solid #94724e !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.square:hover {
  background: #f4d8a7 !important;
}
.square.last {
  background: #ddad70 !important;
}
.square.selected {
  background: #b8d7da !important;
}
.square.candidate {
  background: #f3dcb4 !important;
}
.square:focus-visible {
  z-index: 2;
  outline-offset: -3px;
  outline: 3px solid #217d92 !important;
}
.square-inner {
  place-items: center;
  width: 100%;
  height: 100%;
  display: grid;
  position: relative;
}
.ranks-axis {
  color: #59717b;
  grid-template-rows: repeat(9, 1fr);
  place-items: center;
  width: 20px;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}
.move-dot {
  pointer-events: none;
  background: #237e88bd;
  border-radius: 50%;
  width: 24%;
  height: 24%;
  position: absolute;
}
.move-dot.capture {
  background: 0 0;
  border: 4px solid #237e88;
  border-radius: 50%;
  width: 79%;
  height: 79%;
}
.koma {
  clip-path: polygon(50% 1%, 89% 25%, 95% 96%, 5% 96%, 11% 25%);
  filter: drop-shadow(0 1px 1px #533b2e);
  color: #292720;
  z-index: 1;
  background: linear-gradient(145deg, #f9edcc, #e5c18e);
  place-items: center;
  width: 76%;
  max-width: 56px;
  height: 83%;
  font-family:
    Hiragino Mincho ProN,
    Yu Mincho,
    serif;
  font-size: clamp(18px, 3.3vw, 33px);
  font-weight: 900;
  line-height: 1;
  display: grid;
}
.koma.away {
  transform: rotate(180deg);
}
.koma.promoted {
  color: #a63d35;
}
.koma.small {
  width: 32px;
  min-width: 32px;
  height: 42px;
  font-size: 20px;
}
.board-footer {
  color: #73858b;
  border-top: 1px solid #e5eaeb;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 660px;
  margin: 12px auto 0;
  padding: 13px 0 1px;
  font-size: 13px;
  display: flex;
}
.board-footer span:first-child {
  color: #395660;
  font-weight: 700;
}
.history-panel {
  flex-direction: column;
  min-height: 650px;
  max-height: calc(100vh - 40px);
  display: flex;
  position: sticky;
  top: 20px;
  overflow: hidden;
}
.history-head {
  border-bottom: 1px solid #e6ebeb;
  padding: 25px 24px 18px;
}
.history-head h2 {
  margin: 8px 0 5px;
  font-size: 25px;
}
.history-head p {
  color: #6a7c83;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.history-controls {
  background: #f7f9f9;
  border-bottom: 1px solid #e5eaea;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding: 13px 16px;
  display: flex;
}
.history-controls button {
  border-color: #d7e0e1;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}
.history-count {
  white-space: nowrap;
  color: #6b7b82;
  text-align: center;
  min-width: 70px;
  font-size: 13px;
}
.history-count strong {
  color: #203944;
  font-size: 20px;
}
.history-scroll {
  scrollbar-color: #cbd4d5 transparent;
  flex: 1;
  overflow: auto;
}
.move-list {
  padding: 10px 11px 24px;
}
.move-row {
  width: 100%;
  color: #30444c !important;
  border-radius: 6px !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  height: 44px !important;
  padding: 0 11px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}
.move-row:hover {
  background: #edf3f3 !important;
}
.move-row.current {
  color: #133f4b !important;
  background: #dcebee !important;
}
.move-no {
  color: #8b999e;
  text-align: right;
  width: 27px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
}
.move-side {
  color: #b17c47;
}
.move-name {
  text-overflow: ellipsis;
  overflow: hidden;
}
.variation-tag {
  color: #7b5428;
  background: #ecd6b8;
  border-radius: 4px;
  flex: none;
  margin-left: auto;
  padding: 2px 5px;
  font-size: 12px;
}
.root-row {
  margin-bottom: 2px;
}
.alternative-row {
  border-left: 2px solid #d7e3e4;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 6px 7px 44px;
  padding-left: 6px;
  display: flex;
}
.alternative {
  white-space: normal !important;
  text-align: left !important;
  color: #49606a !important;
  height: auto !important;
  padding: 5px 6px !important;
  font-size: 12px !important;
}
.alternative.active {
  color: #1d5564 !important;
  background: #e3eef0 !important;
  font-weight: 800 !important;
}
.history-empty {
  text-align: center;
  color: #73838a;
  flex-direction: column;
  align-items: center;
  margin: 64px 27px;
  display: flex;
}
.empty-symbol {
  color: #b4a188;
  margin-bottom: 20px;
  font-family: serif;
  font-size: 60px;
  line-height: 1;
}
.history-empty strong {
  color: #2a414a;
  font-size: 17px;
}
.history-empty p {
  margin: 8px 0 23px;
  font-size: 14px;
  line-height: 1.6;
}
.history-foot {
  color: #86979a;
  border-top: 1px solid #e6ebeb;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  font-size: 12px;
  display: flex;
}
.foot-mark {
  background: #6ea68d;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
@media (max-width: 990px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    max-width: 760px;
    padding: 18px;
  }
  .history-panel {
    min-height: 400px;
    max-height: 620px;
    position: static;
  }
  .board-panel {
    padding: 24px;
  }
  .topbar-inner {
    padding: 12px 18px;
  }
}
@media (max-width: 560px) {
  .topbar-inner {
    min-height: 67px;
    padding: 10px 12px;
  }
  .brand {
    gap: 7px;
    font-size: 16px;
  }
  .brand-symbol {
    width: 29px;
    height: 29px;
    font-size: 21px;
  }
  .toolbar {
    gap: 5px;
  }
  .toolbar .upload-button {
    width: 39px;
    height: 38px;
    padding: 0;
    font-size: 0;
  }
  .toolbar .upload-button svg {
    width: 18px;
    height: 18px;
  }
  .toolbar .toolbar-secondary {
    width: 39px;
    height: 38px;
    padding: 0;
    font-size: 0;
  }
  .toolbar .toolbar-secondary svg {
    width: 18px;
    height: 18px;
  }
  .toolbar [aria-label="その他の操作"],
  .toolbar [aria-label="保存した棋譜"] {
    width: 38px;
    height: 38px;
  }
  .workspace {
    gap: 12px;
    padding: 10px;
  }
  .board-panel {
    padding: 16px 11px 11px;
  }
  .board-heading {
    margin-bottom: 15px;
  }
  .board-heading h1 {
    font-size: 21px;
  }
  .board-heading p {
    font-size: 12px;
  }
  .board-heading-actions {
    gap: 5px;
    margin-top: 24px;
  }
  .ply-label {
    font-size: 12px;
  }
  .flip-button {
    width: 32px;
    height: 32px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 78px;
    padding: 7px 8px;
  }
  .hand-owner {
    width: 100%;
    height: 22px;
    font-size: 13px;
  }
  .hand-pieces {
    gap: 0;
  }
  .hand-piece {
    width: 40px;
    min-width: 40px !important;
    height: 39px !important;
  }
  .koma.small {
    width: 25px;
    min-width: 25px;
    height: 32px;
    font-size: 17px;
  }
  .hand-piece .count {
    font-size: 11px;
  }
  .board-with-coords {
    margin: 8px auto 13px;
  }
  .board-grid {
    border-width: 2px;
  }
  .board-area {
    gap: 3px;
  }
  .files-axis,
  .ranks-axis {
    font-size: 11px;
  }
  .files-axis {
    width: calc(100% - 17px);
    height: 18px;
  }
  .board-grid {
    width: calc(100% - 17px);
  }
  .ranks-axis {
    width: 14px;
  }
  .koma {
    font-size: clamp(17px, 5.6vw, 26px);
  }
  .move-dot.capture {
    border-width: 3px;
  }
  .board-footer {
    flex-wrap: wrap;
    gap: 3px;
    padding-top: 10px;
    font-size: 11px;
  }
  .history-head {
    padding: 18px;
  }
  .history-head h2 {
    font-size: 22px;
  }
  .history-controls {
    padding: 9px;
  }
  .history-count {
    min-width: 58px;
  }
}
.toolbar .new-button {
  color: #18303a;
  background: #e3b071;
  height: 40px;
  font-weight: 750;
}
.toolbar .new-button:hover {
  background: #f2c58c;
}
.start-actions {
  flex-wrap: wrap;
  gap: 8px;
  max-width: 650px;
  margin: 0 auto 16px;
  display: flex;
}
.start-actions button {
  min-height: 38px;
}
.setup-bar {
  background: #eaf1f2;
  border: 1px solid #cbdcde;
  border-radius: 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  max-width: 670px;
  margin: 0 auto 14px;
  padding: 12px;
  display: flex;
}
.setup-actions,
.turn-setup,
.side-switch {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  display: flex;
}
.turn-setup span {
  margin-right: 3px;
  font-size: 14px;
  font-weight: 700;
}
.setup-bar button {
  min-height: 34px;
}
.setup-panel {
  background: #f5f8f8;
  border: 1px solid #cfdcde;
  border-radius: 9px;
  max-width: 670px;
  margin: 16px auto;
  padding: 15px;
}
.setup-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}
.setup-head strong {
  font-size: 16px;
}
.palette-pieces {
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  display: flex;
}
.palette-piece {
  background: #fff;
  border: 2px solid #cbd7d8;
  border-radius: 6px;
  place-items: center;
  width: 48px;
  height: 54px;
  display: grid;
}
.palette-piece:hover,
.palette-piece.selected,
.tool-active {
  background: #deeff2 !important;
  border-color: #176983 !important;
}
.palette-piece .koma.small {
  width: 32px;
  height: 43px;
}
.setup-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}
.delete-zone {
  color: #405c65;
  cursor: pointer;
  border: 2px dashed #a5b8bc;
  border-radius: 7px;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
  font-size: 14px;
  display: flex;
}
.delete-zone:hover,
.delete-zone:focus-visible {
  background: #fcecea;
  border-color: #a43e35;
}
.setup-panel p {
  color: #556f77;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
.hand-editor {
  align-items: center;
  gap: 3px;
  min-height: 36px;
  margin: 2px 5px 2px 0;
  font-weight: 700;
  display: flex;
}
.hand-editor button {
  width: 24px;
  min-width: 24px;
  height: 27px;
  padding: 0;
  font-size: 17px;
}
.hand-editor span:not(.koma):not(.koma-label):not(.koma-mark) {
  text-align: center;
  min-width: 13px;
}
.hand-editor .koma.small {
  width: 23px;
  min-width: 23px;
  height: 30px;
  font-size: 16px;
}
.hand-row:has(.hand-editor) {
  align-items: flex-start;
  min-height: 72px;
}
.hand-row:has(.hand-editor) .hand-pieces {
  gap: 1px;
}
.koma {
  isolation: isolate;
  clip-path: polygon(50% 1%, 89% 25%, 95% 96%, 5% 96%, 11% 25%);
  background: var(--piece-edge);
  color: #172933;
  filter: none;
  width: 78%;
  height: 83%;
  text-shadow: none;
  font-family:
    BIZ UDゴシック,
    BIZ UDPGothic,
    Noto Sans CJK JP,
    Hiragino Kaku Gothic ProN,
    Yu Gothic,
    Meiryo,
    sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  position: relative;
}
.koma.sente {
  --piece-edge: #174d69;
}
.koma.gote {
  --piece-edge: #995224;
}
.koma:before {
  content: "";
  z-index: -1;
  clip-path: polygon(50% 1%, 89% 25%, 95% 96%, 5% 96%, 11% 25%);
  background: linear-gradient(145deg, #fff1cd, #e7c48f);
  position: absolute;
  inset: 3px;
}
.koma-label {
  z-index: 1;
  white-space: nowrap;
  margin-top: 0;
  line-height: 1;
  position: relative;
  transform: translateY(-2px);
}
.koma.promoted .koma-label {
  color: #9a302b;
}
.koma-mark {
  text-align: center;
  color: var(--piece-edge);
  font-family: Arial, sans-serif;
  font-size: clamp(8px, 1vw, 10px);
  font-weight: 900;
  line-height: 1;
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
}
.koma.small {
  font-size: 18px;
}
.koma.small:before {
  inset: 2px;
}
.koma.small .koma-mark {
  display: none;
}
.koma.small .koma-label {
  transform: none;
}
.side-0 {
  color: #174d69;
}
.side-1 {
  color: #995224;
}
@media (max-width: 760px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 7px;
  }
  .toolbar {
    flex-wrap: wrap;
    width: 100%;
  }
  .toolbar .new-button {
    height: 38px;
  }
  .setup-bar {
    justify-content: flex-start;
  }
  .hand-row:has(.hand-editor) .hand-owner {
    width: 100%;
  }
}
@media (max-width: 560px) {
  .toolbar .new-button {
    padding: 0 8px;
    font-size: 13px;
  }
  .toolbar .new-button svg {
    width: 16px;
  }
  .koma {
    font-size: clamp(15px, 4.6vw, 22px);
  }
  .koma:before {
    inset: 2px;
  }
  .koma-mark {
    font-size: 7px;
  }
  .koma.small {
    font-size: 16px;
  }
  .setup-panel {
    padding: 10px;
  }
  .palette-piece {
    width: 39px;
    height: 46px;
  }
  .palette-piece .koma.small {
    width: 27px;
    height: 36px;
  }
  .setup-bar button {
    padding: 4px 7px;
    font-size: 12px;
  }
  .delete-zone {
    font-size: 12px;
  }
  .start-actions button {
    font-size: 13px;
  }
}
@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  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-duration {
  syntax: "*";
  inherits: false;
}
@keyframes enter {
  0% {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0)
      scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1))
      rotate(var(--tw-enter-rotate, 0));
    filter: blur(var(--tw-enter-blur, 0));
  }
}
@keyframes exit {
  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0)
      scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1))
      rotate(var(--tw-exit-rotate, 0));
    filter: blur(var(--tw-exit-blur, 0));
  }
}
