/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@400;700&display=swap");
@layer theme, base, components, utilities;
@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;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    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;
    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 {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  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 {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :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)) {
        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, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-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"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities;
@layer base {
  :root {
    --bg: #f5f1e8;
    --paper: #ffffff;
    --ink: #1f1f1f;
    --accent: #2b5d34;
    --border: #d6cbb8;
  }
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    font-family: "LINE Seed JP", sans-serif;
    color: var(--ink);
    background: linear-gradient(to bottom, #fffaf0 60%, #f5fff0 100%);
  }
  h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin: 0.7em 0 0.4em;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.1rem;
  }
  h5 {
    font-size: 1rem;
  }
  h6 {
    font-size: 0.95rem;
    color: #3f3b33;
  }
  p {
    margin: 0.6em 0;
  }
  ul, ol {
    margin: 0.6em 0 0.6em 1.2em;
    padding: 0;
  }
  code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    background: #f2eee4;
    padding: 0.1em 0.3em;
    border-radius: 10px;
  }
  pre {
    margin: 0.8em 0;
  }
  pre code {
    background: transparent;
    padding: 0;
    border-radius: 10px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8em 0;
    font-size: 0.95rem;
  }
  th, td {
    border: 1px solid #e2dccf;
    padding: 0.5em 0.7em;
    text-align: left;
    vertical-align: top;
  }
  th {
    background: #f2eee4;
    font-weight: 700;
  }
  tr:nth-child(even) td {
    background: #fbf8f1;
  }
  blockquote {
    margin: 0.8em 0;
    padding: 0.6em 0.9em;
    border-left: 4px solid #d8cfbe;
    background: #fbf8f1;
    color: #3f3b33;
  }
  blockquote > :first-child {
    margin-top: 0;
  }
  blockquote > :last-child {
    margin-bottom: 0;
  }
  img {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }
}
@layer components {
  #page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    padding: 16px;
  }
  #header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
  }
  #header h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.02em;
  }
  #controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  #input-pane, #preview {
    height: 65vh;
  }
  #input-pane {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--border);
    padding: 16px;
    overflow: hidden;
  }
  #markdown-input {
    width: 100%;
    flex: 1;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
  }
  #actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }
  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #b65b00;
    box-shadow: 0 6px 14px rgba(40, 30, 20, 0.16);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 30, 20, 0.18);
  }
  .action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(40, 30, 20, 0.16);
  }
  .action-btn:focus-visible {
    outline: 3px solid rgba(31, 31, 31, 0.25);
    outline-offset: 2px;
  }
  .primary-btn {
    background-color: rgb(146 64 14);
  }
  .primary-btn:hover {
    background-color: rgb(180 83 9);
  }
  .secondary-btn {
    background-color: rgb(6 95 70);
  }
  .secondary-btn:hover {
    background-color: rgb(4 120 87);
  }
  .file-btn {
    background-color: rgb(41 37 36);
  }
  .file-btn:hover {
    background-color: rgb(68 64 60);
  }
  .select-compact {
    border: 1px solid var(--border);
    background: var(--paper);
    color: var(--ink);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
  }
  .toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fffdf7;
    font-weight: 700;
    color: #3f3b33;
  }
  .toggle-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .toggle-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #c9c0b0;
    transition: background 0.2s ease;
  }
  .toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(24, 19, 12, 0.2);
    transition: transform 0.2s ease;
  }
  .toggle-input:checked + .toggle-track {
    background-color: rgb(154 52 18);
  }
  .toggle-input:checked + .toggle-track::after {
    transform: translateX(20px);
  }
  .toggle-label {
    font-size: 13px;
    letter-spacing: 0.02em;
  }
  .toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: min(420px, 90vw);
    padding: 12px 16px;
    border-radius: 12px;
    background: #410000;
    color: #f9f4ea;
    box-shadow: 0 14px 28px rgba(30, 24, 18, 0.22);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: pre-line;
    opacity: 0;
    transform: translate3d(16px, 16px, 0);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .toast.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  #preview {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--paper);
    overflow: auto;
  }
  #footer {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    font-size: 14px;
    color: #4f4a40;
    text-align: center;
  }
  @media (max-width: 900px) {
    #controls {
      grid-template-columns: 1fr;
    }
    #input-pane, #preview {
      height: 45vh;
    }
    #page {
      padding: 12px;
    }
    #header h1 {
      font-size: 20px;
    }
    #markdown-input {
      font-size: 14px;
    }
  }
  @media (max-width: 600px) {
    #input-pane, #preview {
      height: 40vh;
    }
    #input-pane {
      padding: 12px;
    }
    #actions {
      flex-wrap: wrap;
    }
    .action-btn, .select-compact, .toggle {
      width: 100%;
    }
    #footer {
      font-size: 11px;
    }
  }
}
@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .line-seed-jp-regular {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  .line-seed-jp-bold {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
}
@layer components {
  #content {
    padding: 16px;
    line-height: 1.6;
  }
}
