:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --bg: #f3f5f7;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #5c6b78;
  --line: #d8e0e7;
  --accent: #1b73a7;
  --accent-strong: #0f5f8f;
  --danger: #b93d3d;
  --soft: #eef6fb;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: .55rem .8rem;
}

button:hover,
button:focus-visible {
  background: var(--accent-strong);
}

button.is20-secondary {
  background: #f7fafc;
  color: var(--ink);
  border-color: var(--line);
}

button.is20-danger {
  background: #fff5f5;
  border-color: #f2b8b8;
  color: var(--danger);
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
  padding: .55rem .65rem;
  width: 100%;
}

input[type="color"] {
  min-height: 2.5rem;
  padding: .2rem;
}

input[type="checkbox"] {
  width: auto;
}

input[type="range"] {
  padding: 0;
}

label {
  color: var(--muted);
  display: grid;
  gap: .3rem;
  font-size: .92rem;
}

.is20-hero {
  background: linear-gradient(180deg, #ffffff 0%, #edf5fa 100%);
  border-bottom: 1px solid var(--line);
}

.is20-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 1180px;
  padding: .85rem 1rem 0;
}

.is20-topnav a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}

.is20-hero__inner,
.is20-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.2rem;
}

.is20-hero__inner {
  padding-bottom: 2rem;
}

.is20-eyebrow {
  color: var(--accent-strong);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 .35rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 3.2rem);
  line-height: 1.18;
  margin: 0 0 .85rem;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0;
}

h3 {
  font-size: 1rem;
  margin: 0 0 .7rem;
}

.is20-note-list {
  display: grid;
  gap: .35rem;
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.is20-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
}

.is20-section-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.is20-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.is20-workspace {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

.is20-canvas-panel {
  min-width: 0;
}

.is20-canvas-wrap {
  align-items: center;
  background:
    linear-gradient(45deg, #d9e2e8 25%, transparent 25%),
    linear-gradient(-45deg, #d9e2e8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d9e2e8 75%),
    linear-gradient(-45deg, transparent 75%, #d9e2e8 75%);
  background-color: #f7fafc;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: .75rem;
  touch-action: none;
  user-select: none;
}

#workCanvas {
  background: transparent;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .16);
  display: block;
  height: auto;
  max-height: 72vh;
  max-width: 100%;
}

.is20-status {
  color: var(--muted);
  font-size: .92rem;
  margin: .65rem 0 0;
}

.is20-control-note {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
  margin: 0;
}

.is20-controls {
  align-content: start;
  display: grid;
  gap: .8rem;
  min-width: 0;
}

.is20-control-group {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .65rem;
  min-width: 0;
  padding: .85rem;
}

.is20-two,
.is20-three {
  display: grid;
  gap: .55rem;
}

.is20-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is20-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is20-check {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: .45rem;
  min-height: 2.5rem;
}

.is20-steps {
  margin-bottom: 0;
  padding-left: 1.35rem;
}

.is20-link-grid,
.is20-return {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.is20-link-grid a,
.is20-return a {
  background: var(--soft);
  border: 1px solid #cfe4f1;
  border-radius: 7px;
  color: var(--ink);
  display: block;
  padding: .85rem;
  text-decoration: none;
}

.is20-link-grid strong,
.is20-link-grid span,
.is20-return strong,
.is20-return span,
.is20-return small {
  display: block;
}

.is20-link-grid span,
.is20-return span,
.is20-return small {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .is20-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .is20-hero__inner,
  .is20-shell {
    padding: .85rem;
  }

  .is20-panel {
    padding: .8rem;
  }

  .is20-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .is20-actions button,
  .is20-two,
  .is20-three {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .is20-canvas-wrap {
    padding: .35rem;
  }
}
