:root {
  --ink: #182d34;
  --muted: #61737b;
  --line: #e1e8e9;
  --paper: #f5f8f7;
  --green: #146b55;
  --green-light: #e7f3ed;
  --red: #a63e32;
  --radius: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: var(--green); text-underline-offset: 3px; }
button, input { font: inherit; }
button, input[type=submit] { cursor: pointer; }
:focus-visible { outline: 3px solid #d08c39; outline-offset: 4px; }
.app-header { min-height: 88px; padding: 20px max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.2; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; background: var(--green); color: white; border-radius: 12px; width: 44px; height: 44px; font-size: 27px; }
nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
nav a { text-decoration: none; color: var(--ink); }
.text-button { background: none; border: 0; padding: 0; color: var(--muted); }
.page { max-width: 1208px; padding: 44px 24px 80px; margin: auto; }
.page-heading { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
h1 { font-size: clamp(27px, 4vw, 36px); letter-spacing: -.04em; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 19px; line-height: 1.35; margin: 0; letter-spacing: -.02em; }
p { margin: 8px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 750; color: var(--green); }
.button { display: inline-flex; justify-content: center; align-items: center; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 9px; padding: 13px 19px; font-weight: 650; font-size: 14px; text-decoration: none; }
.button:hover { background: #0e5543; }
.button:disabled { opacity: .6; cursor: wait; }
.button-small { padding: 9px 14px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 4px 18px #182d3404; }
.card-heading { padding: 23px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state p { color: var(--muted); margin: 12px 0 26px; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 22px; border-radius: 16px; color: var(--green); background: var(--green-light); font-size: 28px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { padding: 14px 26px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; background: #fafcfa; }
td { padding: 19px 26px; border-top: 1px solid var(--line); }
.project-name { font-weight: 650; color: var(--ink); text-decoration: none; }
.project-name:hover { color: var(--green); text-decoration: underline; }
.table-detail { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.nowrap { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 650; background: #edf1f3; color: #516471; }
.badge::before { content: ""; height: 6px; width: 6px; border-radius: 50%; background: currentColor; margin-right: 7px; }
.badge-ready { color: var(--green); background: var(--green-light); }
.badge-running { color: #3059a3; background: #eaf0fc; }
.badge-waiting { color: #946416; background: #fcf2d9; }
.badge-failed { color: var(--red); background: #fcece7; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; text-decoration: none; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); gap: 26px; align-items: start; }
.form-card, .guide-card { padding: 30px; }
.stack { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 650; }
.field input { width: 100%; min-width: 0; border: 1px solid #becdce; border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 13px; }
.field input::placeholder { color: #849496; }
.field-help { font-size: 12px; color: var(--muted); margin: 0; }
.amount-field { display: flex; align-items: center; gap: 12px; width: 180px; }
.purchase-notice { padding: 14px 16px; font-size: 13px; color: #70541e; background: #fcf7e9; border-radius: 9px; }
.simple-steps { padding-left: 22px; margin: 25px 0; font-size: 14px; }
.simple-steps li { padding-left: 8px; margin-bottom: 18px; }
.simple-steps li::marker { color: var(--green); font-weight: 700; }
.guide-card > p:not(.eyebrow) { font-size: 13px; }
.notice, .alert { border-radius: 10px; padding: 16px 20px; margin: 0 0 24px; font-size: 14px; }
.notice { background: var(--green-light); color: #205b47; border: 1px solid #c8e2d5; }
.alert { background: #fff0ec; color: #8c352c; border: 1px solid #efc4ba; }
.alert ul { margin-bottom: 0; padding-left: 20px; }
.failure-panel { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.failure-panel p { margin-bottom: 0; white-space: pre-line; overflow-wrap: anywhere; }
.failure-panel form { flex-shrink: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 26px; align-items: start; }
.progress-list { padding: 16px 26px; margin: 0; list-style: none; }
.step { position: relative; display: flex; align-items: center; gap: 14px; min-height: 53px; font-size: 14px; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 36px; height: 35px; width: 1px; background: var(--line); }
.step-dot { flex-shrink: 0; z-index: 1; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #d4dfe0; background: #fff; }
.step-done .step-dot { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.step-current { color: var(--green); font-weight: 650; }
.step-current .step-dot { border-color: var(--green); background: var(--green-light); }
.step-failed { color: var(--red); }
.step-failed .step-dot { border-color: var(--red); background: #fff0ec; }
.step-pending { color: #839194; }
.step-detail { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.project-details { padding: 26px; }
dl { margin: 25px 0; }
dt { color: var(--muted); font-size: 12px; margin-top: 18px; }
dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.project-links { display: grid; gap: 14px; font-size: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
.project-links a:not(.button) { text-decoration: none; }
.event-card { margin-top: 26px; }
.event-list { list-style: none; margin: 0; padding: 0 26px; }
.event-list li { display: flex; gap: 24px; padding: 20px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.event-list li:last-child { border-bottom: 0; }
.event-list time { color: var(--muted); flex-shrink: 0; }
.event-list p { margin: 4px 0 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.empty-history { margin: 0; padding: 24px 26px; font-size: 14px; }
.login-card { max-width: 460px; margin: 36px auto; padding: 36px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.login-card h1 { font-size: 30px; }
.login-card .stack { margin: 30px 0; }
turbo-frame { display: block; }
@media (max-width: 760px) {
  .app-header { padding: 18px 20px; }
  nav { gap: 14px; font-size: 12px; }
  .page { padding: 28px 18px 50px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-card, .guide-card, .project-details { padding: 23px; }
  .card-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .event-list li { flex-direction: column; gap: 6px; }
  .failure-panel { align-items: flex-start; flex-direction: column; }
  .login-card { margin: 15px auto; padding: 26px; }
}
