:root {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #233249;
  background: #f4f6f9;
  font-synthesis: none;
  --ink: #203d66;
  --muted: #69788c;
  --line: #dde3eb;
  --blue: #356ad3;
  --light: #eaf0fa;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a {
  color: #687c96;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.information-page {
  max-width: 800px;
  padding: 45px 30px 80px;
  margin: 0 auto;
}
.information-page h1 {
  margin: 20px 0 30px;
  font-size: 30px;
}
.information-page h2 {
  margin: 36px 0 13px;
  font-size: 19px;
}
.information-page p,
.information-page li {
  font-size: 14px;
  line-height: 2;
  color: #607189;
  overflow-wrap: anywhere;
}
.information-page ol {
  padding-left: 22px;
}
.information-page li {
  padding: 5px 0 5px 5px;
}
.contact-block {
  background: #f1f5fa;
  padding: 1px 24px 18px;
  border-radius: 9px;
}
.deletion-warning {
  padding: 15px 17px;
  background: #fff1f0;
  border: 1px solid #edc8c6;
  border-radius: 7px;
  color: #914b4b;
  font-size: 13px;
  line-height: 1.9;
}
.deletion-warning ul {
  margin: 8px 0;
  padding-left: 20px;
}
.btn.destructive {
  background: #973f49;
  border-color: #973f49;
  color: white;
}
.btn.destructive:hover {
  background: #7d333e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--ink);
}
button,
input,
textarea,
select,
a {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #799fff;
}
button {
  border: 0;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd4e1;
  border-radius: 7px;
  padding: 12px 13px;
  color: #233249;
  background: white;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
input:focus,
textarea:focus {
  outline: 2px solid #a3bde8;
  border-color: #7296cf;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: -1px;
}
h2 {
  font-size: 23px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
  line-height: 1.6;
}
p {
  line-height: 1.9;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 19px;
  letter-spacing: -0.6px;
  font-weight: 800;
}
.brand img {
  width: 33px;
  height: 33px;
}
.brand small {
  font-size: 11px;
  margin-left: 1px;
  letter-spacing: 0;
  color: #71829b;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #29405e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
}
.btn:hover {
  background: #f2f5fa;
}
.btn.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: #2e527f;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: #a53e48;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.tag {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf1f7;
  color: #536782;
  white-space: nowrap;
}
.tag.ready,
.tag.completed,
.tag.approved {
  background: #e9f3ee;
  color: #28754e;
}
.tag.failed {
  background: #faeeee;
  color: #a23f47;
}
.tag.processing,
.tag.rendering,
.tag.queued {
  background: #fff3df;
  color: #96651b;
}
.eyebrow {
  color: #607995;
  font-size: 13px;
  font-weight: 700;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 17px;
}
.field {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  margin-top: 8px;
  font-weight: 400;
}
.form-error {
  background: #fff1f0;
  border: 1px solid #f0c8c3;
  color: #98443e;
  padding: 13px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.notice {
  padding: 15px;
  background: #edf2fb;
  border-radius: 8px;
  color: #4d6486;
  font-size: 13px;
  line-height: 1.8;
}
.empty {
  padding: 48px 22px;
  text-align: center;
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #8b9cb1;
  margin-bottom: 16px;
}
.initial-load {
  padding: 20vh 24px;
  text-align: center;
  color: #62738b;
}
.loading {
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}
.loading:before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  margin: 0 auto 16px;
  border: 2px solid #d3dfef;
  border-top-color: #284c7c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Public site */
.site {
  background: #fff;
}
.site-header {
  height: 92px;
  max-width: 1240px;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
}
.site-header nav > a:not(.btn) {
  text-decoration: none;
}
.hero {
  max-width: 1240px;
  margin: auto;
  padding: 65px 40px 85px;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 55px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(35px, 3.8vw, 53px);
  line-height: 1.5;
  letter-spacing: -1.8px;
  margin: 17px 0 23px;
}
.hero p {
  color: #66738a;
  font-size: 15px;
  line-height: 2.1;
  max-width: 450px;
}
.hero .btn {
  margin-top: 12px;
  min-height: 51px;
  padding: 12px 24px;
}
.hero-note {
  font-size: 11px;
  color: #718097;
  margin-top: 15px;
}
.hero-studio {
  background: #e9eef5;
  padding: 23px 17px 18px;
  position: relative;
  border-radius: 14px;
  transform: rotate(-1deg);
}
.studio-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}
.studio-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b2c0d3;
}
.studio-top span {
  font-size: 10px;
  color: #7f90a7;
  margin-left: auto;
}
.studio-frame {
  height: 260px;
  background: #d4e0ed;
  position: relative;
  overflow: hidden;
  border: 7px solid white;
  border-radius: 7px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.studio-desk {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 47px;
  background: #bcc8d7;
}
.studio-window {
  position: absolute;
  inset: 20px 23px 55px 53%;
  border: 7px solid #eff4f8;
  background: #a7bdcf;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.studio-window:after,
.studio-window:before {
  content: "";
  background: #c2d1de;
}
.studio-person {
  position: absolute;
  width: 148px;
  height: 185px;
  left: 17%;
  bottom: 5px;
}
.studio-person .head {
  position: absolute;
  border-radius: 40% 40% 44% 44%;
  background: #e9baa0;
  top: 2px;
  left: 48px;
  width: 53px;
  height: 66px;
  z-index: 1;
  transform: rotate(-4deg);
}
.studio-person .hair {
  position: absolute;
  top: -6px;
  left: 47px;
  width: 54px;
  height: 31px;
  background: #41404b;
  border-radius: 50% 50% 10% 10%;
  z-index: 2;
  transform: rotate(-6deg);
}
.studio-person .body {
  position: absolute;
  inset: 66px 0 -20px;
  background: #456487;
  border-radius: 48px 48px 0 0;
}
.studio-person .shirt {
  position: absolute;
  top: 62px;
  left: 53px;
  width: 40px;
  height: 90px;
  clip-path: polygon(0 0, 100% 0, 54% 100%);
  background: #f7f6f0;
  z-index: 1;
}
.studio-caption {
  position: absolute;
  bottom: 18px;
  background: rgba(22, 40, 62, 0.86);
  color: white;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}
.studio-record {
  position: absolute;
  top: 10px;
  left: 12px;
  color: white;
  background: #3d546b;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 4px;
}
.studio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 8px;
  color: #4b6585;
  font-size: 10px;
}
.studio-controls .bar {
  height: 4px;
  background: #cad5e4;
  flex: 1;
  border-radius: 3px;
}
.studio-controls .bar:before {
  content: "";
  display: block;
  width: 38%;
  height: 4px;
  background: #6c88b0;
}
.studio-chat {
  padding: 14px;
  background: white;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: #405676;
  box-shadow: 0 7px 15px #23456c08;
}
.studio-chat strong {
  display: block;
  font-size: 10px;
  color: #7387a3;
  margin-bottom: 4px;
}
.studio-example {
  text-align: right;
  font-size: 10px;
  color: #7a8b9f;
  margin-top: 9px;
}
.site-section {
  padding: 75px 40px;
  max-width: 1240px;
  margin: auto;
}
.site-section h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 43px;
}
.feature-icon {
  height: 46px;
  width: 46px;
  display: grid;
  place-items: center;
  background: #edf2f8;
  border-radius: 10px;
  margin-bottom: 24px;
}
.features h3 {
  font-size: 19px;
}
.features p {
  font-size: 14px;
  color: #6a788b;
}
.section-wash {
  background: #f2f5f9;
}
.site-flow {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 90px;
  align-items: center;
}
.flow-list {
  display: grid;
  gap: 0;
}
.flow-step {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 22px;
  padding: 23px 0;
  border-bottom: 1px solid #dce4ed;
}
.flow-step:last-child {
  border-bottom: 0;
}
.flow-number {
  background: #e1e9f5;
  color: #45658f;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.flow-step p {
  font-size: 13px;
  color: #738096;
  margin: 5px 0 0;
}
.flow-step h3 {
  margin: 0;
}
.site-final {
  text-align: center;
  padding: 90px 24px;
}
.site-final p {
  color: #708096;
  font-size: 14px;
}
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1240px;
  margin: auto;
  padding: 29px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #748297;
}
.site-footer .brand {
  font-size: 15px;
}
.site-footer .brand img {
  width: 25px;
  height: 25px;
}
/* Authentication */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-story {
  background: #eaf0f7;
  padding: 48px max(35px, 6vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story h1 {
  font-size: 39px;
  margin-bottom: 25px;
}
.auth-story p {
  font-size: 14px;
  color: #62758f;
  max-width: 380px;
}
.auth-story footer {
  font-size: 11px;
  color: #8391a4;
}
.auth-main {
  padding: 50px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form {
  width: min(390px, 100%);
}
.auth-form h2 {
  font-size: 25px;
  margin-bottom: 9px;
}
.auth-form > .muted {
  margin-bottom: 25px;
}
.auth-providers {
  display: grid;
  gap: 10px;
}
.auth-providers .btn {
  width: 100%;
  height: 46px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #8c98a8;
  font-size: 11px;
  margin: 22px 0;
}
.divider:after,
.divider:before {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-switch {
  font-size: 12px;
  color: #6a788c;
  text-align: center;
  margin-top: 20px;
}
.text-button {
  background: none;
  padding: 3px;
  color: #315a92;
  text-decoration: underline;
  font-size: 12px;
}
.auth-form .form-error {
  margin: 16px 0;
}
.password-help {
  font-size: 11px;
  color: #7b899d;
  margin-top: 6px;
  display: block;
}
/* Workspace */
.workspace {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 100dvh;
  overflow: hidden;
}
.sidebar {
  background: #edf1f6;
  border-right: 1px solid #dce3ec;
  padding: 27px 17px 18px;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding-left: 8px;
  font-size: 17px;
  margin-bottom: 35px;
}
.sidebar .brand img {
  width: 29px;
  height: 29px;
}
.nav-label {
  font-size: 10px;
  color: #8391a4;
  padding: 20px 14px 9px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  min-height: 44px;
  font-size: 13px;
  color: #64758c;
  border-radius: 7px;
  text-decoration: none;
  margin-bottom: 4px;
}
.nav-item:hover {
  background: #e5ebf3;
}
.nav-item.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #243d6010;
  font-weight: 700;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
}
.usage-mini {
  border-top: 1px solid #d7e0eb;
  padding: 20px 10px 13px;
}
.usage-mini .row {
  font-size: 11px;
  color: #6d7f97;
}
.usage-track {
  height: 4px;
  background: #dbe3ee;
  margin: 10px 0;
  border-radius: 2px;
  overflow: hidden;
}
.usage-track span {
  display: block;
  height: 100%;
  background: #6584af;
}
.account-button {
  background: transparent;
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #62738b;
  text-align: left;
  font-size: 11px;
  padding: 14px 8px 0;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dce5f1;
  display: grid;
  place-items: center;
  color: #527298;
  font-weight: 700;
  flex-shrink: 0;
}
.account-button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  height: 74px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #7b899b;
  min-width: 0;
}
.breadcrumb strong {
  color: #324662;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar .btn {
  font-size: 12px;
  min-height: 37px;
  padding: 7px 12px;
}
.mobile-brand {
  display: none;
}
.main-content {
  overflow: auto;
  flex: 1;
}
.page {
  max-width: 1120px;
  padding: 40px 40px 55px;
  margin: auto;
}
.page-heading {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.page-heading h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
.page-heading p {
  margin: 0;
  color: #6e7e94;
  font-size: 13px;
}
.home-greeting {
  margin: 8px 0 35px;
}
.home-greeting h1 {
  font-size: 30px;
  margin-bottom: 12px;
}
.start-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 35px;
}
.start-copy {
  padding: 34px;
}
.start-copy h2 {
  font-size: 22px;
  margin-bottom: 13px;
}
.start-copy p {
  font-size: 13px;
  color: #728097;
  margin-bottom: 22px;
}
.start-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.start-art {
  background: #edf2f9;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recording-sketch {
  width: 100%;
  max-width: 260px;
  background: #dbe5f2;
  aspect-ratio: 1.6;
  border: 9px solid white;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #6c85a8;
  box-shadow: 0 10px 28px #25496e08;
}
.recording-sketch > .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1;
}
.sketch-wave {
  height: 20px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.sketch-wave i {
  display: block;
  width: 3px;
  background: #7e99be;
  border-radius: 2px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project-card {
  display: block;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s;
}
.project-card:hover {
  border-color: #98b0d2;
}
.project-thumb {
  height: 133px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6ecf4;
  position: relative;
  color: #98a9bf;
}
.project-thumb > .icon {
  width: 35px;
  height: 35px;
  stroke-width: 1;
}
.project-thumb .tag {
  position: absolute;
  right: 10px;
  top: 10px;
}
.project-card-info {
  padding: 17px;
}
.project-card h3 {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 0 8px;
}
.project-card-info p {
  font-size: 10px;
  color: #8a97a9;
  margin: 0;
}
.workspace-empty {
  border: 1px dashed #c9d5e5;
  border-radius: 10px;
  background: #f9fbfd;
}
.workspace-empty h3 {
  margin-bottom: 7px;
}
.workspace-empty p {
  font-size: 13px;
  color: #7a8ba1;
}
.editor {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(380px, 47%);
  overflow: hidden;
  background: white;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.conversation-heading {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #eaf0f6;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.conversation-heading h2 {
  font-size: 16px;
  margin: 0;
}
.conversation-heading .muted {
  font-size: 10px;
}
.messages {
  padding: 30px 28px;
  overflow: auto;
  flex: 1;
}
.chat-intro {
  padding: 10px 0 22px;
}
.assistant-mark {
  height: 34px;
  width: 34px;
  border-radius: 9px;
  background: #e8eff9;
  color: #5478a8;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
}
.chat-intro h2 {
  font-size: 22px;
  margin: 0 0 15px;
}
.chat-intro p {
  font-size: 13px;
  color: #75869c;
  line-height: 1.9;
}
.suggestions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.suggestion {
  font-size: 12px;
  color: #526d93;
  border: 1px solid #dde5ef;
  background: white;
  padding: 12px;
  text-align: left;
  border-radius: 7px;
  line-height: 1.7;
}
.suggestion:hover {
  background: #f4f7fc;
}
.message {
  margin-bottom: 25px;
  max-width: 100%;
}
.message-label {
  font-size: 10px;
  color: #8390a3;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.message-content {
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user {
  margin-left: 35px;
}
.message.user .message-content {
  background: #edf2f9;
  padding: 13px 16px;
  border-radius: 12px 12px 2px 12px;
}
.message.user .message-label {
  justify-content: flex-end;
}
.composer {
  padding: 16px 24px 20px;
  background: white;
}
.composer-inner {
  border: 1px solid #cad5e4;
  border-radius: 10px;
  background: #fcfdff;
  padding: 13px;
}
.composer textarea {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  min-height: 65px;
  max-height: 180px;
  outline: 0;
  resize: none;
}
.composer .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 11px;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.composer-hint {
  font-size: 10px;
  color: #8997aa;
  text-align: center;
  margin: 9px 0 0;
}
.preview-pane {
  padding: 24px 25px;
  overflow: auto;
  background: #f5f7fb;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.preview-heading h2 {
  font-size: 13px;
  margin: 0;
}
.video-box {
  aspect-ratio: 16/9;
  background: #dfe6f0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1d293b;
}
.video-placeholder {
  display: grid;
  justify-items: center;
  gap: 11px;
  color: #8a9bb2;
  font-size: 11px;
}
.video-placeholder .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1;
}
.preview-note {
  font-size: 10px;
  color: #8492a5;
  line-height: 1.7;
  margin: 9px 0 20px;
}
.editor-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #dbe3ed;
  margin: 25px 0 20px;
}
.editor-tab {
  padding: 10px 1px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #7b8a9f;
  font-size: 11px;
}
.editor-tab.active {
  color: #304f7a;
  border-color: #406eaa;
  font-weight: 700;
}
.asset-row,
.job-row,
.history-row {
  padding: 13px 0;
  border-bottom: 1px solid #e0e6ef;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
}
.asset-row .asset-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-icon {
  width: 32px;
  height: 35px;
  border-radius: 5px;
  background: #e5ecf6;
  color: #8299b8;
  display: grid;
  place-items: center;
}
.asset-icon .icon {
  width: 17px;
  height: 17px;
}
.upload-area {
  width: 100%;
  padding: 24px 12px;
  background: #f9fbfe;
  border: 1px dashed #bfcde0;
  border-radius: 7px;
  font-size: 12px;
  color: #738aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.upload-area.dragover {
  background: #e5eefc;
  border-color: #436caa;
}
.upload-area small {
  font-size: 10px;
  color: #96a3b4;
}
.upload-status {
  font-size: 11px;
  color: #5176aa;
  line-height: 1.8;
  margin: 10px 0;
}
.caption-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  margin: 12px 0;
  align-items: start;
}
.caption-item textarea {
  font-size: 12px;
  min-height: 66px;
}
.caption-time {
  font-size: 10px;
  color: #7a8a9e;
  padding-top: 10px;
}
.settings-panel {
  max-width: 750px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}
.settings-panel + .settings-panel {
  margin-top: 20px;
}
.settings-panel h2 {
  font-size: 17px;
  margin-bottom: 20px;
}
.settings-panel .field {
  margin-bottom: 20px;
}
.connection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e7ebf2;
}
.connection-row:last-child {
  border: 0;
}
.connection-row h3 {
  margin: 0;
  font-size: 14px;
}
.connection-row p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #7c8ba0;
}
.usage-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}
.usage-counter {
  padding: 23px 15px;
  background: #f1f5fa;
  border-radius: 7px;
}
.usage-counter span {
  display: block;
  color: #7a8a9f;
  font-size: 12px;
}
.usage-counter strong {
  font-size: 32px;
  display: block;
  margin: 12px 0 0;
  font-weight: 500;
}
.capture-video {
  width: 100%;
  max-height: 45vh;
  background: #233449;
  border-radius: 8px;
  margin: 10px 0 17px;
}
.capture-time {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: #b6464c;
}
.capture-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.capture-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bc5358;
}
dialog {
  width: min(530px, calc(100% - 32px));
  border: 1px solid #d5deeb;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 30px 100px #23354b40;
  color: #2a3e5b;
}
dialog::backdrop {
  background: #1e304964;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}
dialog .dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  background: transparent;
  color: #8593a5;
  padding: 6px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: min(600px, 90vw);
  padding: 14px 21px;
  border-radius: 9px;
  background: #253e61;
  color: white;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 6px 25px #13294926;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #843f48;
}
.offline-banner {
  background: #fff0df;
  color: #835526;
  font-size: 12px;
  padding: 11px 25px;
  text-align: center;
}
.mobile-nav {
  display: none;
}
.full-width {
  width: 100%;
}
.mt {
  margin-top: 18px;
}
.no-margin {
  margin: 0;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.code-document {
  font: 11px/1.7 monospace;
  min-height: 270px;
}
@media (min-width: 1500px) {
  .editor {
    grid-template-columns: 1fr 48%;
  }
  .messages {
    padding: 40px 44px;
  }
  .conversation-heading {
    padding-left: 44px;
  }
  .preview-pane {
    padding: 30px 38px;
  }
  .composer {
    padding: 20px 40px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 185px 1fr;
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .sidebar .brand {
    font-size: 15px;
    gap: 6px;
  }
  .sidebar .brand small {
    font-size: 9px;
  }
  .editor {
    grid-template-columns: minmax(300px, 1fr) minmax(310px, 45%);
  }
  .preview-pane {
    padding: 20px 16px;
  }
  .messages {
    padding: 22px;
  }
  .composer {
    padding: 14px;
  }
  .topbar {
    padding: 0 22px;
  }
  .page {
    padding: 30px 27px;
  }
  .hero {
    gap: 30px;
  }
  .hero-studio {
    padding: 17px 12px;
  }
  .studio-frame {
    height: 220px;
  }
  .site-flow {
    gap: 50px;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .site-header {
    padding: 0 24px;
    height: 78px;
  }
  .site-header nav > a:not(.btn) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 24px 65px;
    gap: 45px;
    max-width: 650px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-studio {
    max-width: 520px;
    transform: none;
  }
  .studio-frame {
    height: 270px;
  }
  .hero p {
    max-width: none;
  }
  .site-section {
    padding: 55px 24px;
  }
  .features {
    gap: 25px;
  }
  .site-flow {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .site-section h2 {
    font-size: 27px;
  }
  .site-footer {
    padding: 24px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 23px 25px;
    background: #f1f5fa;
  }
  .auth-story > div:not(:first-child),
  .auth-story footer {
    display: none;
  }
  .auth-main {
    padding: 45px 25px;
    align-items: flex-start;
  }
  .workspace {
    grid-template-columns: 72px 1fr;
  }
  .sidebar {
    padding: 22px 10px;
  }
  .sidebar .brand {
    padding: 0;
    justify-content: center;
  }
  .sidebar .brand span {
    display: none;
  }
  .sidebar .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-item {
    justify-content: center;
    padding: 13px;
  }
  .nav-item span,
  .nav-label,
  .sidebar-bottom .usage-mini,
  .account-button > span:last-child {
    display: none;
  }
  .account-button {
    justify-content: center;
    padding: 15px 0;
  }
  .editor {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100%;
  }
  .conversation {
    min-height: 530px;
    border-right: 0;
  }
  .messages {
    min-height: 210px;
    max-height: 55vh;
  }
  .preview-pane {
    border-top: 1px solid var(--line);
    padding: 25px;
  }
  .main-content.editor-content {
    overflow: auto;
  }
  .start-panel {
    grid-template-columns: 1fr;
  }
  .start-art {
    display: none;
  }
  .topbar .btn .button-label {
    display: none;
  }
  .topbar .breadcrumb strong {
    max-width: 210px;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-panel {
    padding: 24px;
  }
}
@media (max-width: 540px) {
  .hero h1 {
    font-size: 33px;
    letter-spacing: -1px;
  }
  .hero-studio {
    padding: 16px 10px;
  }
  .studio-frame {
    height: 210px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-icon {
    margin-bottom: 13px;
  }
  .features h3 {
    margin-bottom: 8px;
  }
  .site-final h2 {
    font-size: 24px;
  }
  .site-footer {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .workspace {
    display: flex;
    height: 100dvh;
  }
  .sidebar {
    display: none;
  }
  .workspace-main {
    width: 100%;
    padding-bottom: 63px;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--line);
    height: 63px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 20;
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 9px;
    text-decoration: none;
    color: #8090a7;
  }
  .mobile-nav a.active {
    color: #315888;
  }
  .mobile-nav svg {
    width: 19px;
    height: 19px;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .topbar .breadcrumb {
    font-size: 11px;
    gap: 6px;
  }
  .topbar .breadcrumb strong {
    max-width: 165px;
  }
  .topbar .btn {
    min-height: 34px;
    padding: 7px 9px;
  }
  .page {
    padding: 27px 20px 35px;
  }
  .page-heading h1,
  .home-greeting h1 {
    font-size: 24px;
  }
  .page-heading {
    gap: 10px;
  }
  .page-heading .btn {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
  }
  .start-copy {
    padding: 24px;
  }
  .start-copy h2 {
    font-size: 20px;
  }
  .start-actions .btn {
    padding: 9px 12px;
  }
  .project-grid {
    gap: 12px;
  }
  .project-thumb {
    height: 100px;
  }
  .project-card-info {
    padding: 12px;
  }
  .project-card h3 {
    font-size: 12px;
  }
  .settings-panel {
    padding: 20px;
  }
  .usage-counters {
    gap: 8px;
  }
  .usage-counter {
    padding: 16px 10px;
  }
  .usage-counter strong {
    font-size: 28px;
  }
  .usage-counter span {
    font-size: 10px;
  }
  .editor-tabs {
    gap: 16px;
  }
  .conversation-heading {
    padding: 20px;
  }
  .messages {
    padding: 22px 20px;
  }
  .preview-pane {
    padding: 22px 20px;
  }
  .conversation {
    min-height: 500px;
  }
  .composer {
    padding: 14px 17px;
  }
  .settings-panel .connection-row {
    gap: 10px;
  }
  .site-header .brand {
    font-size: 17px;
  }
  .site-header nav .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .site-header {
    padding: 0 20px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sidebar > nav { min-height: 0; overflow-y: auto; flex: 1; }
.sidebar-bottom { flex-shrink: 0; }
