@font-face {
  font-family: "Noto Sans JP";
  src: url("/static/font.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #20333c;
  --muted: #75818a;
  --teal: #23897f;
  --bg: #faf9f5;
  --line: #e7e8e2;
  --light: #edf3ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b8d9d1;
  outline-offset: 3px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  padding: 30px 20px;
  background: #f0f2eb;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand img {
  width: 36px;
}
.tagline {
  font-size: 10px;
  color: #708076;
  margin: 13px 0 34px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  padding: 13px 14px;
  border-radius: 9px;
  color: #64716c;
  font-weight: 500;
}
nav a span {
  display: inline-block;
  width: 29px;
  font-size: 20px;
}
nav a.active {
  background: white;
  color: var(--teal);
  box-shadow: 0 2px 4px #20332d05;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 20px;
}
.sidebar-bottom > a {
  padding: 10px 14px;
  color: #64716c;
}
.test-badge {
  font-size: 10px;
  color: #89958e;
}
#recent {
  margin-top: 30px;
  display: grid;
  gap: 6px;
  overflow: auto;
}
#recent a {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7b877f;
}
.workspace {
  margin-left: 246px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #faf9f5;
}
#breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
#account {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}
.avatar {
  background: #e2eadd;
  color: #536957;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.button,
button.primary {
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 11px 20px;
  font-weight: 500;
  display: inline-block;
}
button.secondary,
.button.secondary {
  background: white;
  border: 1px solid #dfe5de;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 16px;
}
button.ghost {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
}
.page {
  max-width: 1150px;
  margin: auto;
  padding: 58px 48px 70px;
}
.eyebrow {
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 2px;
  font-weight: 600;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 14px 0 12px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.9;
}
.sub {
  color: var(--muted);
  margin: 0;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.search {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 15px;
  width: 210px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px #20333c08;
}
.thumb {
  aspect-ratio: 16/9;
  background: #ecf0e6;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--teal);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb .duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #20333cbf;
  color: white;
  border-radius: 4px;
  font-size: 10px;
  padding: 3px 7px;
}
.card-body {
  padding: 18px;
}
.card h3 {
  margin: 0 0 10px;
  font-weight: 500;
  line-height: 1.6;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.card .pill {
  font-size: 10px;
  background: #edf3ed;
  padding: 3px 6px;
  border-radius: 4px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #dbe2d9;
  border-radius: 16px;
}
.empty img {
  width: 48px;
  margin-bottom: 16px;
}
.empty h2 {
  color: var(--ink);
}
.chat {
  max-width: 850px;
  margin: auto;
  height: calc(100dvh - 77px);
  display: flex;
  flex-direction: column;
  padding: 0 34px 25px;
}
.messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 0 16px;
  scroll-behavior: smooth;
}
.welcome {
  margin: auto;
  text-align: center;
  padding: 42px 0;
}
.welcome .symbol {
  width: 64px;
  height: 64px;
  background: #e7eee0;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin: 0 auto 24px;
}
.welcome .symbol img {
  width: 37px;
}
.welcome h1 {
  font-size: 31px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.suggestions button {
  border: 1px solid #e1e7dc;
  border-radius: 12px;
  background: #fff;
  padding: 20px 14px;
  text-align: left;
  line-height: 1.7;
  color: #536359;
  font-size: 12px;
}
.suggestions small {
  display: block;
  color: #9aa397;
  margin-bottom: 7px;
}
.message {
  padding: 16px 0;
  max-width: 92%;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  margin: 8px 0 8px auto;
  background: #eaf0e6;
  padding: 13px 20px;
  border-radius: 15px 15px 3px 15px;
  width: fit-content;
}
.message.assistant:before {
  content: "Hakugaku";
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.composer {
  border: 1px solid #dce3d8;
  border-radius: 17px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 15px #1e3b2c05;
}
.composer textarea {
  width: 100%;
  border: 0;
  outline: none;
  resize: none;
  min-height: 54px;
  max-height: 140px;
  background: transparent;
  line-height: 1.8;
  color: var(--ink);
}
.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #929c94;
  font-size: 10px;
}
.composer button {
  border: 0;
  background: var(--teal);
  color: white;
  border-radius: 9px;
  width: 37px;
  height: 34px;
  font-size: 20px;
}
.caption {
  font-size: 10px;
  text-align: center;
  color: #929c94;
  margin-top: 10px;
}
.proposal {
  background: white;
  border: 1px solid #cfded0;
  border-radius: 13px;
  padding: 22px;
  margin: 18px 0;
}
.proposal h3 {
  margin: 0 0 10px;
}
.proposal p {
  color: #73816f;
  font-size: 12px;
}
.proposal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress {
  height: 5px;
  background: #e5eadd;
  border-radius: 4px;
  overflow: hidden;
}
.progress > i {
  display: block;
  background: var(--teal);
  height: 100%;
  transition: width 1s;
}
.video-result {
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
video {
  width: 100%;
  display: block;
  background: #172e3b;
  max-height: 65vh;
}
.video-actions {
  padding: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.video-actions button,
.video-actions a {
  font-size: 12px;
}
.settings {
  max-width: 900px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
  margin-bottom: 22px;
}
.panel h2 {
  margin: 0 0 16px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan.selected {
  border-color: var(--teal);
  background: #f4f8f2;
}
.price {
  font-size: 27px;
}
.price small {
  font-size: 12px;
  color: var(--muted);
}
.plan ul {
  padding-left: 16px;
  color: #758074;
  font-size: 12px;
  line-height: 2.2;
}
.plan button {
  margin-top: auto;
  font-size: 12px;
}
.usage-meter {
  height: 5px;
  background: #dce5d7;
  border-radius: 5px;
  margin-top: 10px;
}
.usage-meter i {
  height: 100%;
  background: var(--teal);
  display: block;
  border-radius: 5px;
}
.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6b7f6b;
}
.legal {
  font-size: 12px;
  line-height: 2;
  color: #738074;
}
.legal summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.notice {
  font-size: 12px;
  color: #896f45;
  background: #f8f2e6;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #20333c;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  max-width: 90vw;
  display: none;
  z-index: 20;
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(880px, 94vw);
  padding: 25px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #172e3b70;
}
#close-modal {
  position: absolute;
  right: 12px;
  top: 7px;
  font-size: 25px;
  border: 0;
  background: white;
  border-radius: 50%;
  z-index: 2;
}
dialog input,
dialog textarea,
dialog select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.mobile-menu {
  display: none;
}
a.inline {
  color: var(--teal);
  text-decoration: underline;
}
@media (min-width: 1500px) {
  .page {
    padding-top: 75px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 216px;
  }
  .workspace {
    margin-left: 216px;
  }
  .page {
    padding: 40px 28px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    display: block;
  }
  .plan button {
    margin-top: 15px;
  }
}
@media (max-width: 700px) {
  aside {
    transform: translateX(-100%);
    z-index: 10;
    width: 240px;
    transition: transform 0.2s;
  }
  aside.open {
    transform: none;
    box-shadow: 0 0 0 100vw #172e3b40;
  }
  .workspace {
    margin: 0;
  }
  header {
    height: 62px;
    padding: 0 18px;
    gap: 15px;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    font-size: 20px;
  }
  #breadcrumb {
    margin-right: auto;
  }
  .page {
    padding: 32px 20px;
  }
  .page-heading {
    display: block;
  }
  .search {
    margin-top: 20px;
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  h1 {
    font-size: 27px;
  }
  .chat {
    height: calc(100dvh - 62px);
    padding: 0 16px 16px;
  }
  .welcome {
    padding: 20px 0;
  }
  .welcome h1 {
    font-size: 25px;
  }
  .suggestions {
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 8px;
  }
  .suggestions button {
    padding: 10px 14px;
  }
  .suggestions small {
    display: inline;
    margin-right: 10px;
  }
  .panel {
    padding: 20px;
  }
  .row {
    flex-wrap: wrap;
  }
  .composer-bottom span {
    max-width: 80%;
  }
  .proposal-footer {
    gap: 10px;
  }
  .message {
    max-width: 100%;
  }
}
