/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #edf2f7;
  --panel: #fff;
  --line: #dbe3ee;
  --line2: #c9d4e3;
  --text: #172238;
  --muted: #6d7b90;
  --blue: #315efb;
  --blue-soft: #eef2ff;
  --green: #118658;
  --green-soft: #e8f7f0;
  --nav: #0f1b33;
  --shadow: 0 12px 30px rgba(20, 32, 56, .09);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  margin: 0
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px
}

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

button {
  cursor: pointer
}

.app {
  height: 100%;
  display: grid;
  grid-template-rows: 58px 1fr;
  overflow: hidden
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 10
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .01em
}

.brandmark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #315efb, #6d58ec);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.project {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.btn {
  height: 32px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 700;
  color: var(--text)
}

.btn.primary {
  background: #315efb;
  border-color: #315efb;
  color: #fff
}

.btn.soft {
  background: #eef2ff;
  border-color: #c4ceff;
  color: #2b4bc0
}

.saved {
  font-size: 12px;
  color: var(--success);
  padding-right: 4px
}

.layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 68px 1fr
}

.navrail {
  background: #111827;
  color: #d7dce5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 8px
}

.navitem {
  width: 50px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px
}

.navitem .ico {
  font-size: 18px
}

.navitem.active {
  background: #263143;
  color: #fff
}

.nav-spacer {
  flex: 1 1
}

.content {
  min-width: 0;
  min-height: 0;
  position: relative
}

.view {
  display: none;
  height: 100%;
  overflow: auto
}

.view.active {
  display: block
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0
}

.sidehead {
  height: 58px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between
}

.sidehead h2 {
  font-size: 13px;
  margin: 0 0 10px
}

.sidehead span {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 11px
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 9px 10px 0
}

.tab {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
  color: #56647b
}

.tab.active {
  background: #eef2ff;
  border-color: #bfcaff;
  color: #2949bf;
  font-weight: 700
}

.sectionlist {
  overflow: auto;
  padding: 10px
}

.section {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: #fff;
  position: relative
}

.section.active {
  border-color: #8fa5ff;
  background: #f5f7ff
}

.section strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px
}

.section span {
  display: block;
  font-size: 10px;
  color: var(--muted)
}

.section .mode {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 8px;
  background: #eaf0ff;
  color: #3556d2;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: 800
}

.sec-add {
  width: 100%;
  height: 40px;
  border: 1px dashed #b7c4d6;
  background: #fafbfd;
  border-radius: 10px;
  color: #6f7e93;
  font-weight: 700
}

/* dashboard */
.dashboard {
  padding: 30px 34px
}

.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px
}

.pagehead h1 {
  font-size: 25px;
  margin: 0 0 6px
}

.pagehead p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 22px
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px
}

.metric strong {
  font-size: 24px;
  display: block;
  margin-top: 6px
}

.metric span {
  font-size: 12px;
  color: var(--muted)
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px
}

.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(25, 34, 50, .03)
}

.project-preview {
  height: 160px;
  background: #eef1f5;
  padding: 14px;
  display: flex;
  gap: 8px
}

.mini-page {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 5px;
  flex: 1 1;
  padding: 8px
}

.mini-line {
  height: 6px;
  border-radius: 3px;
  background: #dce2ea;
  margin-bottom: 6px
}

.mini-line.short {
  width: 55%
}

.mini-block {
  height: 48px;
  background: #e8edf3;
  border-radius: 4px;
  margin: 8px 0
}

.project-info {
  padding: 15px
}

.project-info h3 {
  font-size: 15px;
  margin: 0 0 6px
}

.project-info p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px
}

.tag {
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: #3347a4;
  display: inline-block
}

/* intake */
.intake {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 30px 60px
}

.steps {
  display: flex;
  align-items: center;
  margin: 20px 0 28px
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted)
}

.step-num {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #c8d2e1;
  display: grid;
  place-items: center;
  background: #fff
}

.step.active {
  color: #315efb;
  font-weight: 600;
}

.step.active .step-num {
  background: #315efb;
  color: #fff;
  border-color: #315efb
}

.step-line {
  height: 1px;
  background: #c8d2e1;
  flex: 1 1;
  margin: 0 12px
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 18px;
  gap: 18px
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.form-card {
  padding: 23px
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 17px;
  gap: 17px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.field-group {
  background-color: #eee;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #c8d2e1;
}

.field.full {
  grid-column: 1/-1;
}

label {
  font-size: 12px;
  font-weight: 750
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d2e1;
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--text);
  outline: none;
  background: #fff;
}

textarea {
  min-height: 92px;
  resize: vertical
}

input:focus,
textarea:focus,
select:focus {
  border-color: #97aaff;
  box-shadow: 0 0 0 3px #edf0ff;
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  height: 34px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 19px;
  padding: 0 12px;
  font-size: 12px;
}

.dropzone {
  border: 1.5px dashed #aeb9c9;
  border-radius: 10px;
  background: #fafbfd;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.dropzone small {
  display: block;
  margin-top: 5px
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px
}

.form-note {
  font-size: 11px;
  color: var(--muted)
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.field.full {
  grid-column: 1/-1
}

.hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400
}

.chip.active {
  border-color: #315efb;
  background: var(--accent-soft);
  color: #2748bf
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px
}

.shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 66px 1fr
}

/* Hearing view */
.hearing-layout {
  height: calc(100% - 62px);
  display: grid;
  grid-template-columns: 285px minmax(500px, 1fr) 330px;
  min-height: 0;
}

.side {
  background: #fff;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.side.left {
  border-right: 1px solid var(--line);
}

.side.right {
  border-left: 1px solid var(--line);
}

.side-head {
  height: 48px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
}

.side-head h3 {
  font-size: 12px;
  margin: 0;
}

.side-count {
  font-size: 10px;
  color: var(--muted);
}

.side-body {
  overflow: auto;
  padding: 12px;
}

.summary-block {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  margin-bottom: 9px;
  background: #fff;
}

.summary-block h4 {
  font-size: 11px;
  margin: 0 0 6px;
}

.summary-block p {
  font-size: 11px;
  line-height: 1.55;
  color: #526078;
  margin: 0;
}

.summary-block .edit {
  display: inline-block;
  margin-top: 7px;
  color: #315efb;
  font-size: 10px;
}

.file-row {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-gap: 9px;
  gap: 9px;
  align-items: center;
}

.file-thumb {
  width: 42px;
  height: 48px;
  border-radius: 5px;
  background: #e8edf4;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #748196;
}

.file-row strong {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
}

.file-row span {
  font-size: 9px;
  color: var(--muted);
}

.file-tags {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.file-tag {
  font-size: 8px;
  padding: 3px 5px;
  border-radius: 9px;
  background: #f1f4f8;
  color: #566277;
}

.add-file {
  width: 100%;
  border: 1px dashed #aeb9c9;
  background: #fafbfd;
  border-radius: 9px;
  padding: 9px;
  color: var(--muted);
  font-size: 11px;
}

.info-note {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  padding: 8px 2px;
}

/* Chat center */
.chat-area {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f5f7fb;
}

.chat-top {
  height: 48px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  ;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.chat-top small {
  font-size: 10px;
  color: var(--muted);
}

.chat-scroll {
  flex: 1 1;
  overflow: auto;
  padding: 18px 20px 25px;
}

.msg-wrap {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #1f2937;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  ;
}

.msg {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: 0 3px 10px rgba(42, 54, 76, .04);
  font-size: 12px;
  line-height: 1.7;
}

.msg p {
  margin: 0 0 9px;
}

.msg p:last-child {
  margin-bottom: 0;
}

.msg ul {
  margin: 6px 0 0;
  padding-left: 19px;
  color: #4f5d71;
}

.msg-user {
  justify-content: flex-end;
}

.msg-user .msg {
  background: #eef2ff;
  border-color: #d7dfff;
}

.question-card {
  max-width: 790px;
  margin: 0 0 16px 39px;
  background: #fff;
  border: 1px solid #cbd5ff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(49, 94, 251, .07);
  overflow: hidden;
}

.question-head {
  background: #f5f7ff;
  border-bottom: 1px solid #dfe5ff;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question-head strong {
  font-size: 11px;
  color: #3049ad;
}

.question-head span {
  font-size: 9px;
  color: var(--muted);
}

.question-body {
  padding: 14px;
}

.q-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}

.q-help {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}

.option-grid {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.option {
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 18px;
  padding: 7px 10px;
  font-size: 11px;
  color: #445168;
}

.option.selected {
  border-color: #315efb;
  background: #eef2ff;
  color: #2448c2;
  font-weight: 700;
}

.mini-text {
  min-height: 62px;
  font-size: 11px;
}

.q-divider {
  height: 1px;
  background: var(--line);
  margin: 13px 0;
}

.question-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.skip {
  font-size: 10px;
  color: var(--muted);
  border: 0;
  background: transparent;
}

.chat-composer {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 11px 14px;
}

.composer-box {
  border: 1px solid #c8d2e1;
  border-radius: 10px;
  padding: 9px;
  background: #fff;
}

.composer-box textarea {
  border: 0;
  padding: 0;
  min-height: 50px;
  box-shadow: none;
  font-size: 11px;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}

.attach {
  font-size: 10px;
  color: var(--muted);
}

/* Right understanding panel */
.progress-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.progress-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-top strong {
  font-size: 12px;
}

.progress-top b {
  font-size: 20px;
  color: #315efb;
}

.progress-track {
  height: 7px;
  background: #e9edf4;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 48%;
  background: #315efb;
  border-radius: 5px;
  transition: .3s;
}

.checklist {
  margin-top: 11px;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  grid-gap: 6px;
  gap: 6px;
  font-size: 10px;
  color: #4e5b70;
}

.check i {
  font-style: normal;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf1f6;
  color: #8490a2;
  font-size: 9px;
}

.check.done i {
  background: var(--green-soft);
  color: var(--green);
}

.check.active i {
  background: #eef2ff;
  color: #315efb;
}

.check em {
  font-style: normal;
  font-size: 9px;
  color: var(--muted);
}

.understanding {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.understanding h4 {
  margin: 0;
  padding: 9px 11px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.understanding dl {
  margin: 0;
  padding: 10px 11px;
}

.understanding dt {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 3px;
}

.understanding dd {
  font-size: 11px;
  line-height: 1.5;
  margin: 0 0 9px;
}

.understanding dd:last-child {
  margin-bottom: 0;
}

.unresolved {
  background: #fff4df;
  border: 1px solid #f2d699;
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 10px;
}

.unresolved strong {
  display: block;
  font-size: 10px;
  color: #7a4b00;
  margin-bottom: 5px;
}

.unresolved p {
  font-size: 10px;
  line-height: 1.5;
  color: #805a1c;
  margin: 0;
}

.right-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 11px;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.right-foot .btn {
  width: 100%;
}

/* Common step header */
.flow-head {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.flow-title h1 {
  font-size: 17px;
  margin: 0 0 3px;
}

.flow-title p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.steps {
  display: flex;
  align-items: center;
  min-width: 530px;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8994a5;
  font-size: 11px;
  white-space: nowrap;
}

.step i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #c8d2e1;
  display: grid;
  place-items: center;
  background: #fff;
  font-weight: 700;
  ;
}

.step.done {
  color: var(--green);
}

.step.done i {
  background: var(--green-soft);
  border-color: #bfe8d3;
}

.step.active {
  color: #315efb;
  font-weight: 700;
}

.step.active i {
  background: #315efb;
  color: #fff;
  border-color: #315efb;
}

.step-line {
  height: 1px;
  background: #c8d2e1;
  flex: 1 1;
  margin: 0 10px;
  min-width: 30px;
}

/* Generating */
.generating {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 30px;
}

.generate-card {
  width: min(680px, 90vw);
  padding: 32px;
  text-align: center;
}

.generate-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.generate-card h2 {
  font-size: 20px;
  margin: 0 0 7px;
}

.generate-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.generate-list {
  margin: 22px auto 0;
  max-width: 460px;
  text-align: left;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.gen-row {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.gen-row i {
  font-style: normal;
  color: var(--green);
}

.gen-row.running {
  border-color: #b9c7ff;
  background: #f6f8ff;
}

.gen-row.running i {
  color: var(--blue);
}

.loader {
  height: 7px;
  background: #e9edf4;
  border-radius: 8px;
  overflow: hidden;
  margin: 22px auto 0;
  max-width: 460px;
}

.loader div {
  width: 72%;
  height: 100%;
  background: var(--blue);
  border-radius: 8px;
  animation: load 2.1s ease-in-out infinite;
}

@keyframes load {
  0% {
    width: 12%;
  }

  55% {
    width: 72%;
  }

  100% {
    width: 96%;
  }
}

/* Workspace brief placeholder */
.workspace {
  height: calc(100% - 62px);
  display: grid;
  grid-template-columns: 250px minmax(530px, 1fr) 340px;
  min-height: 0;
}

.w-left,
.w-right {
  background: #fff;
  min-height: 0;
}

.w-left {
  border-right: 1px solid var(--line);
}

.w-right {
  border-left: 1px solid var(--line);
}

.w-head {
  height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.section-list {
  padding: 10px;
  overflow: auto;
}

.section-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 7px;
  font-size: 11px;
}

.section-item.active {
  border-color: #91a5ff;
  background: #f6f8ff;
}

.canvas {
  background: #edf1f6;
  overflow: auto;
  padding: 27px;
}

.page {
  width: 720px;
  min-height: 920px;
  background: #fff;
  margin: 0 auto;
  border: 1px solid #ccd4df;
  box-shadow: var(--shadow);
}

.wire-head {
  height: 70px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.logo {
  border: 1px solid #bac5d4;
  padding: 9px 17px;
  font-weight: 700;
}

.navlinks {
  display: flex;
  gap: 15px;
  font-size: 9px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-gap: 25px;
  gap: 25px;
  padding: 45px 38px;
  background: #f7f8fa;
  border-bottom: 1px dashed #ccd4df;
}

.hero h2 {
  font-size: 30px;
  line-height: 1.4;
  margin: 9px 0;
}

.eyebrow {
  font-size: 10px;
  color: #5d6980;
  letter-spacing: .08em;
}

.image-box {
  height: 220px;
  background: #e3e7ed;
  border: 1px solid #c7ced8;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #6d788a;
}

.line {
  height: 7px;
  background: #d9dfe7;
  border-radius: 4px;
  margin: 7px 0;
}

.line.s {
  width: 68%;
}

.awards {
  padding: 38px;
}

.awards h3 {
  text-align: center;
  font-size: 20px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-top: 20px;
}

.award {
  border: 1px solid #ccd4df;
  border-radius: 6px;
  padding: 10px;
}

.award .ph {
  height: 85px;
  background: #e4e8ed;
  margin-bottom: 10px;
}

.w-chat {
  padding: 12px;
  overflow: auto;
}

.w-msg {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 9px;
}

.w-msg.user {
  background: #eef2ff;
}

@media(max-width:1180px) {
  .hearing-layout {
    grid-template-columns: 240px minmax(450px, 1fr) 285px;
  }

  .workspace {
    grid-template-columns: 210px minmax(470px, 1fr) 285px;
  }
}

/* workspace */
.workspace {
  height: 100%;
  display: grid;
  grid-template-columns: 270px minmax(500px, 1fr) 360px;
  grid-template-rows: 1fr 0;
  transition: .2s
}

.workspace.code-open {
  grid-template-rows: minmax(360px, 1fr) 260px
}

.leftpanel,
.right,
.codepanel {
  background: #fff;
  min-height: 0
}

.leftpanel {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column
}

.right {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column
}

.panelhead {
  height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex: 0 0 auto
}

.panelhead h3 {
  font-size: 13px;
  margin: 0
}

.tabs {
  display: flex;
  gap: 3px;
  background: #f1f3f7;
  padding: 3px;
  border-radius: 8px
}

.tab {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted)
}

.tab.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08)
}

.leftbody {
  overflow: auto;
  padding: 12px
}

.section-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
  padding: 10px;
  background: #fff;
  position: relative
}

.section-item.active {
  border-color: #8da2ff;
  background: #f7f8ff
}

.section-item .row {
  display: flex;
  align-items: center;
  gap: 8px
}

.drag {
  color: #98a2b3;
  font-size: 13px
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  flex: 1 1
}

.eye {
  font-size: 11px;
  color: var(--muted)
}

.section-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0 21px
}

.add-section {
  width: 100%;
  border: 1px dashed #aeb8c8;
  background: #fafbfc;
  border-radius: 9px;
  padding: 9px;
  font-size: 12px;
  color: var(--muted)
}

.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px
}

.asset {
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0f2f5;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
  overflow: hidden
}

.asset img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.right {
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0
}

.righthead {
  height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.righthead h3 {
  font-size: 13px;
  margin: 0
}

.ver {
  font-size: 10px;
  color: var(--green);
  font-weight: 800
}

.paneltabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line)
}

.ptab {
  height: 30px;
  padding: 0 10px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #5c6a80
}

.ptab.active {
  background: #eef2ff;
  border-color: #bfcaff;
  color: #2949bf
}

.panelbody {
  padding: 12px;
  overflow: auto
}

.block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff
}

.block h4 {
  font-size: 11px;
  margin: 0 0 8px
}

.block p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0
}

.target {
  border: 1px solid #bdc9ff;
  background: #f7f8ff;
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.target strong {
  display: block;
  font-size: 12px
}

.target span {
  display: block;
  font-size: 10px;
  color: #5a6880;
  margin-top: 2px
}

.target button {
  height: 28px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 7px;
  font-size: 10px
}

.modechips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.modechips button {
  height: 30px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 16px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 700;
  color: #516079
}

.modechips button.active {
  background: #eef2ff;
  border-color: #bfcaff;
  color: #2949bf
}

.label {
  display: block;
  font-size: 10px;
  color: #5f6e83;
  margin-bottom: 5px;
  font-weight: 700
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #c8d2e1;
  border-radius: 8px;
  padding: 8px 9px;
  background: #fff;
  font-size: 11px;
  color: var(--text)
}

.textarea {
  min-height: 92px;
  resize: vertical
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px
}

.checks {
  display: grid;
  grid-gap: 7px;
  gap: 7px
}

.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 10px;
  color: #4d5b72;
  line-height: 1.5
}

.checkrow input {
  margin-top: 2px;
  width: -moz-fit-content;
  width: fit-content;
}

.copybox {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
  background: #fafbfd
}

.copyrow {
  display: grid;
  grid-template-columns: 70px 1fr;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 7px
}

.copyrow:last-child {
  margin-bottom: 0
}

.copyrow b {
  font-size: 9px;
  color: #77869a
}

.copyrow span {
  font-size: 10px;
  line-height: 1.5
}

.ref-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px
}

.ref {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px
}

.refthumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #e6ebf2;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: #708099
}

.ref strong {
  display: block;
  font-size: 10px
}

.ref span {
  display: block;
  font-size: 9px;
  color: var(--muted)
}

.ref button {
  height: 26px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 7px;
  padding: 0 8px;
  font-size: 10px
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px
}

.result-head strong {
  font-size: 11px
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px;
  gap: 8px
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff
}

.thumb .img {
  height: 95px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35)),
    linear-gradient(135deg, #edf3ff, #a9bddb);
  position: relative;
  padding: 12px
}

.thumb .img .copymini {
  font-size: 8px;
  color: #3153cb;
  font-weight: 800;
  margin-bottom: 5px
}

.thumb .img .titlemini {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3
}

.thumb .img .shape {
  position: absolute;
  right: 15px;
  bottom: 0;
  width: 40px;
  height: 72px;
  border-radius: 25px 25px 5px 5px;
  background: rgba(255, 255, 255, .62)
}

.thumb .img .shape.s2 {
  right: 46px;
  height: 60px;
  background: rgba(255, 255, 255, .48)
}

.thumb .meta {
  padding: 8px
}

.thumb .meta strong {
  display: block;
  font-size: 10px
}

.thumb .meta span {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 3px
}

.thumb .actions {
  display: flex;
  gap: 5px;
  margin-top: 7px
}

.thumb .actions button {
  flex: 1 1;
  height: 28px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700
}

.thumb .actions .primary {
  background: #315efb;
  border-color: #315efb;
  color: #fff;
  font-size: 7px;
}

.notice {
  font-size: 10px;
  line-height: 1.6;
  color: #68778c;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px
}

.footer-actions {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  gap: 8px
}

.footer-actions .btn {
  flex: 1 1;
  font-size: 12px;
}

/* reference LP screenshots */
.ref-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px
}

.ref-toolbar span {
  font-size: 10px;
  color: var(--muted)
}

.ref-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 11px;
  transition: .15s
}

.ref-card:hover {
  border-color: #93a5f6;
  box-shadow: 0 5px 14px rgba(34, 43, 60, .08)
}

.ref-thumb {
  height: 148px;
  background: #e9edf2;
  overflow: hidden;
  position: relative;
  cursor: pointer
}

.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block
}

.ref-thumb::after {
  content: 'クリックして全体表示';
  position: absolute;
  inset: auto 7px 7px 7px;
  padding: 5px 7px;
  background: rgba(17, 24, 39, .78);
  color: #fff;
  border-radius: 5px;
  font-size: 9px;
  text-align: center;
  opacity: 0;
  transition: .15s
}

.ref-thumb:hover::after {
  opacity: 1
}

.ref-info {
  padding: 9px 10px
}

.ref-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px
}

.ref-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.ref-origin {
  font-size: 8px;
  color: #2d5fc6;
  background: #edf3ff;
  border-radius: 12px;
  padding: 3px 5px;
  flex: 0 0 auto
}

.ref-url {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px
}

.ref-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 7px
}

.ref-tag {
  font-size: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px 5px;
  color: #526078;
  background: #fafbfc
}

.ref-actions {
  display: flex;
  gap: 5px;
  margin-top: 8px
}

.ref-actions button {
  flex: 1 1;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 6px;
  padding: 5px;
  font-size: 9px;
  color: #46556a
}

.ref-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .66);
  z-index: 50;
  display: none;
  padding: 24px
}

.ref-modal.open {
  display: grid;
  place-items: center
}

.ref-dialog {
  width: min(1180px, 96vw);
  height: min(820px, 92vh);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 330px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28)
}

.ref-viewer {
  background: #e9edf2;
  overflow: auto;
  padding: 24px;
  position: relative
}

.ref-viewer img {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 8px 25px rgba(28, 39, 55, .15)
}

.ref-detail {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0
}

.ref-detail-head {
  height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line)
}

.ref-detail-head strong {
  font-size: 13px
}

.ref-detail-body {
  padding: 15px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.65
}

.ref-detail-body h4 {
  font-size: 12px;
  margin: 0 0 7px
}

.ref-detail-body p {
  margin: 0 0 14px;
  color: #566277
}

.ref-point {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 8px;
  background: #fafbfc
}

.ref-point b {
  display: block;
  font-size: 10px;
  margin-bottom: 3px
}

.ref-use {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 7px;
  gap: 7px
}

.ref-use .btn {
  justify-content: center
}

.canvasarea {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #edf0f5
}

.canvasbar {
  height: 48px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex: 0 0 auto
}

.canvas-controls {
  display: flex;
  align-items: center;
  gap: 6px
}

.divider {
  height: 22px;
  width: 1px;
  background: var(--line);
  margin: 0 4px
}

.status-pill {
  font-size: 11px;
  background: #edf8f1;
  color: #177245;
  border-radius: 20px;
  padding: 5px 8px
}

.canvas-scroll {
  overflow: auto;
  padding: 28px 24px 70px;
  min-height: 0
}

.page-frame {
  width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cfd6e0;
  box-shadow: 0 12px 30px rgba(34, 43, 60, .14);
  min-height: 1250px
}

.wf-section {
  position: relative;
  border-bottom: 1px dashed #ccd3dd;
  padding: 34px 42px;
  background: #fff
}

.wf-section:hover {
  outline: 2px solid #7e95ff;
  outline-offset: -2px
}

.wf-section.selected {
  outline: 2px solid #315efb;
  outline-offset: -2px
}

.label {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 9px;
  color: #667085;
  background: #f3f5f8;
  padding: 3px 5px;
  border-radius: 4px
}

.header-wire {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid #e0e4ea
}

.logo-wire {
  font-weight: 700;
  border: 1px solid #cfd6e0;
  padding: 10px 18px
}

.nav-wire {
  display: flex;
  gap: 17px;
  font-size: 10px;
  color: #667085
}

.cta-wire {
  border: 1px solid #8fa0b7;
  border-radius: 4px;
  padding: 8px 13px;
  font-size: 10px
}

.hero-wire {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-gap: 28px;
  gap: 28px;
  align-items: center;
  min-height: 310px;
  background: #f7f8fa
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  color: #596579
}

.hero-wire h1 {
  font-size: 31px;
  line-height: 1.4;
  margin: 12px 0
}

.copy-lines div {
  height: 8px;
  background: #d8dee7;
  border-radius: 4px;
  margin: 8px 0
}

.copy-lines div:nth-child(1) {
  width: 95%
}

.copy-lines div:nth-child(2) {
  width: 84%
}

.copy-lines div:nth-child(3) {
  width: 60%
}

.wire-button {
  display: inline-block;
  border: 1px solid #8998ae;
  padding: 11px 24px;
  margin-top: 15px;
  font-size: 11px;
  border-radius: 4px
}

.image-box {
  height: 230px;
  background: #e1e5eb;
  border: 1px solid #c3cad4;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #697586;
  font-size: 13px
}

.center-title {
  text-align: center;
  margin-bottom: 24px
}

.center-title h2 {
  font-size: 22px;
  margin: 7px 0
}

.center-title p {
  font-size: 11px;
  color: var(--muted)
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 14px;
  gap: 14px
}

.wf-card {
  border: 1px solid #cfd6e0;
  border-radius: 6px;
  padding: 12px
}

.wf-card .thumb {
  height: 95px;
  background: #e4e8ed;
  display: grid;
  place-items: center;
  color: #788393;
  font-size: 10px;
  margin-bottom: 11px
}

.wf-card h4 {
  font-size: 13px;
  margin: 0 0 8px
}

.wf-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #667085;
  margin: 0
}

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 28px;
  gap: 28px;
  align-items: center
}

.text-skeleton h3 {
  font-size: 20px;
  margin: 0 0 14px
}

.small-lines div {
  height: 7px;
  background: #dfe4ea;
  border-radius: 4px;
  margin: 7px 0
}

.small-lines div:nth-child(3) {
  width: 70%
}

.note-badge {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffefc5;
  color: #805100;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700
}

.chat-scroll {
  flex: 1 1;
  overflow: auto;
  padding: 14px;
  background: #fafbfc
}

.msg {
  max-width: 92%;
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.55;
  border: 1px solid var(--line)
}

.msg.ai {
  background: #fff
}

.msg.user {
  background: #eef2ff;
  border-color: #d6ddff;
  margin-left: auto
}

.msg .who {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #526078
}

.change-list {
  margin: 7px 0 0;
  padding-left: 16px;
  color: #4b5565
}

.quick-actions {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: #fff
}

.quick {
  white-space: nowrap;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  color: #4d5b70
}

.composer {
  padding: 11px;
  border-top: 1px solid var(--line);
  background: #fff
}

.composer textarea {
  width: 100%;
  min-height: 70px;
  font-size: 12px
}

.composer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px
}

.attach {
  font-size: 11px;
  color: var(--muted)
}

.version {
  font-size: 10px;
  color: var(--muted)
}

.codepanel {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  display: none;
  min-height: 0
}

.workspace.code-open .codepanel {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.codebox {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.codebox:first-child {
  border-right: 1px solid var(--line)
}

.codehead {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px
}

pre {
  margin: 0;
  flex: 1 1;
  overflow: auto;
  background: #101827;
  color: #d8dee9;
  padding: 13px;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap
}

/* annotations */
.spec-drawer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 330px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(17, 24, 39, .2);
  z-index: 30;
  display: none;
  overflow: hidden
}

.spec-drawer.open {
  display: block
}

.spec-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700
}

.spec-body {
  max-height: 430px;
  overflow: auto;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.65
}

.spec-body ol {
  margin: 0;
  padding-left: 18px
}

.spec-body li {
  margin-bottom: 8px
}

.callout {
  background: #fff8df;
  border: 1px solid #f0d981;
  border-radius: 8px;
  padding: 9px;
  margin-top: 10px;
  color: #735700
}

@media(max-width:1150px) {
  .workspace {
    grid-template-columns: 230px minmax(430px, 1fr) 310px
  }

  .projects {
    grid-template-columns: repeat(2, 1fr)
  }
}


/* Next.js MVP additions */

:root {
  --success: #118658;
  --accent-soft: #eef2ff;
  --radius: 12px
}

button:disabled {
  opacity: .48;
  cursor: not-allowed
}

.studio-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #edf2f7;
  color: #526078
}

.topbar .project-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 8px;
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.navitem {
  cursor: pointer
}

.navitem .ico {
  line-height: 1
}

.intake .form-card {
  margin-bottom: 30px
}

.dropzone.real {
  cursor: pointer;
  transition: .15s
}

.dropzone.real:hover {
  border-color: #8fa5ff;
  background: #f7f8ff
}

.dropzone.usable-dropzone {
  border-color: #91a8f8;
  background: #f8f9ff
}

.dropzone.usable-dropzone:hover {
  border-color: #5878f5;
  background: #f2f5ff
}

.dropzone.real input {
  display: none
}

.upload-list {
  margin-top: 8px;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  text-align: left;
  width: 100%
}

.upload-pill {
  font-size: 10px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #eef2f7;
  color: #526078;
  display: flex;
  justify-content: space-between;
  gap: 8px
}

.upload-pill.usable {
  background: #eaf0ff;
  color: #3154c7
}

.radio-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500
}

.radio-list input {
  width: auto
}

.notice.error {
  background: #fff0f0;
  border-color: #efb9b9;
  color: #9b2c2c
}

.notice.success {
  background: #eefaf3;
  border-color: #bde6ce;
  color: #16653f
}

.notice.info {
  background: #f4f6ff;
  border-color: #cbd5ff;
  color: #3449a6
}

.hearing-empty {
  padding: 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center
}

.hearing-question {
  margin-bottom: 16px
}

.question-card.dynamic {
  margin-top: 8px
}

.question-body textarea {
  width: 100%
}

.right-foot.stack {
  display: flex;
  flex-direction: column
}

.generating .generate-card {
  background: #fff
}

.workspace-main {
  height: 100%;
  display: grid;
  grid-template-columns: 270px minmax(500px, 1fr) 360px;
  grid-template-rows: 1fr 0;
  min-height: 0;
  transition: .2s
}

.workspace-main.code-open {
  grid-template-rows: minmax(330px, 1fr) 300px
}

.workspace-main .codepanel {
  grid-column: 1/-1
}

.workspace-main.code-open .codepanel {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.canvas-preview {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff
}

.canvas-shell {
  width: 800px;
  max-width: 100%;
  height: calc(100vh - 190px);
  min-height: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cfd6e0;
  box-shadow: 0 12px 30px rgba(34, 43, 60, .14)
}

.code-editor {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #101827;
  color: #d8dee9;
  padding: 13px;
  font: 11px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: none;
  outline: none
}

.inline-badge {
  font-size: 10px;
  color: #2f56c8;
  background: #edf2ff;
  padding: 4px 7px;
  border-radius: 20px
}

.workspace-chat-list {
  flex: 1 1;
  overflow: auto;
  padding: 12px;
  background: #fafbfc
}

.workspace-chat-empty {
  font-size: 11px;
  color: var(--muted);
  padding: 12px
}

.workspace-composer {
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #fff
}

.workspace-composer textarea {
  min-height: 70px;
  font-size: 11px
}

.workspace-composer .composer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px
}

.asset-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 7px
}

.asset-row strong {
  font-size: 10px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.asset-row span {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px
}

.asset-row img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 7px;
  background: #eef1f5
}

.left-upload {
  padding: 10px;
  border-top: 1px solid var(--line)
}

.left-upload label {
  display: block;
  border: 1px dashed #aeb8c8;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer
}

.left-upload input {
  display: none
}

.version-list {
  padding: 12px;
  overflow: auto
}

.version-row {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 8px
}

.version-row-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center
}

.version-row strong {
  font-size: 11px
}

.version-row p {
  font-size: 9px;
  color: var(--muted);
  margin: 5px 0 8px;
  line-height: 1.5
}

.version-row button {
  height: 26px;
  border: 1px solid #c8d2e1;
  background: #fff;
  border-radius: 7px;
  font-size: 9px
}

.settings-page {
  padding: 30px 34px;
  max-width: 900px
}

.settings-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 20px
}

.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px
}

.settings-card h3 {
  margin: 0 0 7px;
  font-size: 14px
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7
}

.ref-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 7px;
  gap: 7px;
  margin-bottom: 10px
}

.ref-input-row input {
  font-size: 10px
}

.section.selected {
  border-color: #315efb;
  background: #eef2ff
}

.project {
  cursor: pointer
}

.project:hover {
  border-color: #a6b6ed
}

.project-preview.has-page {
  padding: 10px;
  background: #eef1f5;
  overflow: hidden;
  position: relative
}

.project-preview.has-page::after {
  content: "AI BANNER";
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #111827;
  color: #fff;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 8px
}

@media(max-width:1180px) {
  .workspace-main {
    grid-template-columns: 230px minmax(430px, 1fr) 310px
  }

  .canvas-shell {
    width: 720px
  }
}

/* Banners */
.banner-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent
}

.project-preview .banner-frame,
.choice-preview .banner-frame {
  pointer-events: none
}

.banner-shell {
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 420px
}

.size-row {
  display: flex;
  align-items: center;
  gap: 8px
}

.size-row select {
  flex: 1 1
}

.size-row input {
  width: 96px
}

.size-row span {
  font-size: 12px;
  color: var(--muted)
}

.choose-actions {
  display: flex;
  align-items: center;
  gap: 8px
}

.choose-actions select {
  width: auto;
  height: 32px;
  padding: 0 10px
}

.choose {
  height: calc(100% - 62px);
  overflow: auto;
  padding: 24px 28px 60px
}

.choose-note {
  margin-bottom: 18px;
  white-space: pre-line
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 18px;
  gap: 18px;
  align-items: start
}

.choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(25, 34, 50, .03)
}

.choice:hover {
  border-color: #a6b6ed
}

.choice.selected {
  border-color: #315efb;
  box-shadow: 0 0 0 2px #c9d5ff
}

.choice-preview {
  width: 100%;
  min-height: 150px;
  max-height: 420px;
  padding: 12px;
  background: #edf0f5
}

.choice-info {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px
}

.choice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.choice-title strong {
  font-size: 14px
}

.choice-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue)
}

.choice-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted)
}

.badge-clear {
  border: 0;
  background: transparent;
  color: inherit;
  margin-left: 4px;
  padding: 0
}

