:root {
  color-scheme: light;
  --app-bg: #f0f0f0;
  --panel-bg: #f0f0f0;
  --panel-strong: #ffffff;
  --panel-soft: #f6f6f6;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);
  --ink: #000000;
  --muted: rgba(0, 0, 0, 0.55);
  --subtle: rgba(0, 0, 0, 0.38);
  --accent: #5957d6;
  --accent-soft: #f0efff;
  --accent-ink: #4946b8;
  --brand: #a0f713;
  --brand-ink: #173105;
  --success: #4f9f37;
  --shadow: 0 2px 4px rgba(20, 20, 20, 0.04), 0 8px 18px rgba(20, 20, 20, 0.07), 0 20px 44px rgba(20, 20, 20, 0.08);
  --site-cream: #eee9dc;
  --site-paper: #f5f0e5;
  --site-ink: #171715;
  --site-orange: #ed643b;
  --site-blue: #173e55;
  --site-sand: #d8c9ad;
  --site-line: rgba(23, 23, 21, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background: var(--app-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

.svg-sprite {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-muted {
  color: var(--subtle);
}

.editor-app {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background: var(--app-bg);
}

.topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 47px minmax(220px, 1fr) auto minmax(330px, 1fr);
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(18px);
}

.brand-mark {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.brand-symbol {
  position: relative;
  width: 23px;
  height: 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  transform: rotate(45deg);
}

.brand-symbol i {
  display: block;
  border-radius: 2px 8px 2px 8px;
  background: var(--ink);
}

.brand-symbol i:nth-child(2) {
  background: var(--accent);
}

.document-path,
.topbar-actions,
.topbar-center,
.history-actions,
.canvas-toolbar-left,
.canvas-toolbar-right,
.viewport-control,
.composer-actions,
.composer-left-actions,
.send-wrap {
  display: flex;
  align-items: center;
}

.document-path {
  min-width: 0;
  gap: 5px;
  padding-left: 14px;
}

.plain-button {
  padding: 5px 4px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.path-root {
  color: var(--muted);
}

.document-name {
  max-width: 160px;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-state {
  margin-left: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--subtle);
  font-size: 11px;
}

.save-state i,
.live-label i,
.model-dot,
.nas-live-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(45, 159, 105, 0.1);
}

.topbar-center {
  justify-content: center;
  gap: 10px;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.mode-button {
  min-width: 62px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: 160ms ease;
}

.mode-button.is-active {
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: 0 1px 4px rgba(24, 24, 22, 0.12);
  font-weight: 600;
}

.mode-hint {
  color: var(--subtle);
  font-size: 10px;
  white-space: nowrap;
}

kbd {
  min-width: 19px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d4d2cb;
  border-bottom-color: #bbb9b1;
  border-radius: 4px;
  color: #65635e;
  background: #fbfaf8;
  box-shadow: 0 1px 0 #d1cfc8;
  font: 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.topbar-actions {
  min-width: 0;
  justify-content: flex-end;
  gap: 7px;
  padding-right: 10px;
}

.history-actions {
  gap: 1px;
  margin-right: 3px;
}

.icon-button,
.mini-icon-button,
.send-button,
.viewport-button,
.zoom-control,
.scope-clear,
.asset-drawer-head button,
.popover-head button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 32px;
  height: 32px;
  color: var(--muted);
}

.icon-button:hover:not(:disabled),
.mini-icon-button:hover,
.viewport-button:hover,
.scope-clear:hover {
  color: var(--ink);
  background: var(--panel-soft);
}

.icon-button:disabled {
  color: #c7c5be;
  cursor: default;
}

.icon-button.soft {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.nas-button,
.secondary-button,
.primary-button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.nas-button,
.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.nas-button {
  position: relative;
  padding-left: 10px;
}

.nas-button .nas-live-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
}

.primary-button {
  min-width: 62px;
  color: #f8f7f4;
  background: var(--ink);
}

.nas-button:hover,
.secondary-button:hover {
  border-color: var(--line-strong);
  background: #fdfcf9;
}

.primary-button:hover {
  background: #30302d;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr) 292px;
}

.left-panel,
.right-panel {
  min-height: 0;
  position: relative;
  z-index: 20;
  background: var(--panel-bg);
}

.left-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  border-right: 1px solid var(--line);
}

.panel-title-row,
.right-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 17px 13px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.panel-title-row h1,
.right-panel-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.conversation-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  transition: 180ms ease;
}

.conversation-scope.is-targeted {
  border-color: rgba(100, 89, 232, 0.34);
  background: var(--accent-soft);
}

.scope-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--accent);
  background: var(--accent-soft);
}

.scope-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.scope-copy span {
  color: var(--subtle);
  font-size: 9px;
}

.scope-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scope-clear {
  width: 25px;
  height: 25px;
  color: var(--muted);
}

.scope-clear .icon {
  width: 14px;
}

.chat-stream {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px 14px 17px;
  scrollbar-width: thin;
  scrollbar-color: #d3d0c8 transparent;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 15px;
}

.assistant-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-soft);
}

.assistant-avatar .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.message-body {
  min-width: 0;
  padding-top: 2px;
}

.message-body p {
  margin: 0;
  color: #3f3e3a;
  font-size: 12px;
  line-height: 1.65;
}

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

.user-message .message-body {
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 12px 12px 3px 12px;
  color: #f8f7f4;
  background: #242421;
}

.user-message .message-body p {
  color: inherit;
  line-height: 1.5;
}

.message-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--success);
  font-size: 9px;
}

.message-status .icon {
  width: 11px;
}

.change-card {
  margin: 4px 0 17px 34px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-strong);
}

.change-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.change-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--success);
  background: rgba(45, 159, 105, 0.1);
}

.change-icon .icon {
  width: 13px;
}

.change-card-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.change-card-head strong {
  font-size: 10px;
}

.change-card-head span {
  color: var(--subtle);
  font-size: 9px;
}

.style-lock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #ebe9e3;
  color: var(--subtle);
  font-size: 9px;
}

.style-lock-row strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-weight: 600;
}

.style-lock-row i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--site-orange);
}

.compact-message {
  margin-bottom: 5px;
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.prompt-suggestions button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel-strong);
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.prompt-suggestions button:hover {
  border-color: rgba(100, 89, 232, 0.38);
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.chat-composer {
  position: relative;
  margin: 0 13px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel-strong);
  box-shadow: 0 5px 16px rgba(30, 29, 27, 0.06);
  transition: 160ms ease;
}

.chat-composer:focus-within {
  border-color: rgba(100, 89, 232, 0.52);
  box-shadow: 0 0 0 3px rgba(100, 89, 232, 0.08), 0 5px 16px rgba(30, 29, 27, 0.06);
}

.composer-context {
  width: fit-content;
  max-width: calc(100% - 22px);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 10px 0;
  padding: 5px 7px;
  border-radius: 6px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 9px;
}

.composer-context[hidden] {
  display: none;
}

.composer-context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-context button {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--accent-ink);
  background: transparent;
  cursor: pointer;
}

.composer-context .icon {
  width: 11px;
}

.chat-composer textarea {
  width: 100%;
  min-height: 61px;
  max-height: 130px;
  display: block;
  resize: none;
  padding: 12px 12px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1.5;
}

.chat-composer textarea::placeholder,
.asset-search input::placeholder {
  color: #aaa8a0;
}

.composer-actions {
  justify-content: space-between;
  padding: 4px 7px 7px;
}

.composer-left-actions,
.send-wrap {
  gap: 4px;
}

.mini-icon-button {
  width: 27px;
  height: 27px;
  color: var(--muted);
}

.mini-icon-button .icon {
  width: 15px;
}

.send-wrap > span {
  display: inline-flex;
  gap: 2px;
  margin-right: 2px;
}

.send-wrap kbd {
  width: 17px;
  min-width: 17px;
  height: 16px;
  font-size: 8px;
}

.send-button {
  width: 29px;
  height: 29px;
  color: #f8f7f4;
  background: var(--ink);
}

.send-button .icon {
  width: 14px;
}

.panel-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 9px;
  color: var(--subtle);
  font-size: 8px;
}

.model-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: none;
}

.canvas-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  background: #e9e7e1;
}

.canvas-toolbar {
  position: relative;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid #d8d6cf;
  background: #f4f3ef;
  color: var(--muted);
  font-size: 9px;
}

.canvas-toolbar-left,
.canvas-toolbar-right {
  gap: 9px;
}

.canvas-toolbar-right {
  justify-content: flex-end;
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #585752;
  font-weight: 600;
}

.live-label i {
  width: 5px;
  height: 5px;
  animation: livePulse 2.6s ease-in-out infinite;
}

@keyframes livePulse {
  50% { box-shadow: 0 0 0 5px rgba(45, 159, 105, 0); }
}

.divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.viewport-control {
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ecebe7;
}

.viewport-button {
  width: 29px;
  height: 25px;
  color: var(--subtle);
}

.viewport-button .icon {
  width: 13px;
  height: 13px;
}

.viewport-button.is-active {
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: 0 1px 3px rgba(27, 27, 25, 0.13);
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 9px;
}

.zoom-control .icon {
  width: 10px;
  height: 10px;
  transform: rotate(90deg);
}

.canvas-stage {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 24px 24px 42px;
  background-color: #e5e3dd;
  background-image: radial-gradient(circle at 1px 1px, rgba(45, 44, 41, 0.11) 1px, transparent 0);
  background-size: 16px 16px;
}

.preview-shell {
  position: relative;
  flex: 0 0 auto;
  transform-origin: top center;
  transition: width 240ms ease, height 240ms ease;
}

.preview-frame {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(35, 34, 31, 0.19);
  border-radius: 3px;
  background: var(--site-paper);
  box-shadow: 0 18px 44px rgba(30, 29, 27, 0.2), 0 2px 7px rgba(30, 29, 27, 0.14);
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 23, 21, 0.28) transparent;
  transform-origin: top left;
  transition: width 240ms ease;
}

.preview-frame::-webkit-scrollbar,
.right-panel-scroll::-webkit-scrollbar,
.chat-stream::-webkit-scrollbar {
  width: 6px;
}

.preview-frame::-webkit-scrollbar-thumb,
.right-panel-scroll::-webkit-scrollbar-thumb,
.chat-stream::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(70, 68, 63, 0.25);
}

.canvas-shortcut-tip {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 5px 8px;
  border: 1px solid rgba(52, 50, 47, 0.13);
  border-radius: 8px;
  color: #65635e;
  background: rgba(249, 248, 245, 0.9);
  box-shadow: 0 3px 12px rgba(34, 33, 30, 0.09);
  backdrop-filter: blur(10px);
  font-size: 8px;
  white-space: nowrap;
  transition: 160ms ease;
}

.canvas-shortcut-tip span {
  width: 1px;
  height: 11px;
  background: #d7d5cf;
}

.right-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--line);
}

.right-panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.right-panel-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 13px 12px 22px;
  scrollbar-width: thin;
}

.style-lock-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
}

.style-lock-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lock-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f2ede3;
}

.lock-mark i {
  width: 10px;
  height: 10px;
  border: 3px solid var(--site-orange);
  border-radius: 99px 99px 3px 3px;
  border-bottom-width: 5px;
}

.style-lock-top > div {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.style-lock-top strong {
  font-size: 10px;
}

.style-lock-top span {
  color: var(--subtle);
  font-size: 8px;
}

.style-lock-top button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.style-lock-top .icon {
  width: 14px;
}

.style-tokens {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eceae4;
}

.style-tokens span {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(30, 29, 27, 0.08);
  border-radius: 99px;
  background: var(--token);
}

.style-tokens em {
  margin-left: auto;
  color: #6b6963;
  font: 600 10px/1 Georgia, serif;
  letter-spacing: -0.04em;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 1px 8px;
  color: #77756f;
  font-size: 9px;
  font-weight: 600;
}

.section-label-row small {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 400;
}

.screen-list {
  display: grid;
  gap: 6px;
}

.screen-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 10px 18px 59px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 6px;
  padding: 7px 8px 7px 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 150ms ease;
}

.screen-card:hover {
  background: #f0efeb;
}

.screen-card.is-active {
  border-color: rgba(100, 89, 232, 0.28);
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.drag-icon {
  width: 10px;
  height: 15px;
  fill: var(--subtle);
  stroke: none;
  opacity: 0;
  transition: 140ms ease;
}

.screen-card:hover .drag-icon {
  opacity: 0.8;
}

.screen-index {
  color: var(--subtle);
  font: 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.screen-thumb {
  width: 59px;
  height: 38px;
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 18, 0.1);
  border-radius: 3px;
  background: var(--site-cream);
}

.screen-thumb i {
  display: block;
}

.thumb-hero {
  grid-template-columns: 53% 47%;
  gap: 4px;
  padding: 7px 5px;
}

.thumb-hero i:first-child {
  height: 14px;
  align-self: center;
  border-top: 3px solid #282823;
  border-bottom: 2px solid #282823;
  opacity: 0.75;
}

.thumb-hero i:last-child {
  background: var(--site-orange);
}

.thumb-principles {
  grid-template-rows: 1fr 1fr 1fr;
  gap: 2px;
  padding: 5px 6px 4px 22px;
}

.thumb-principles i {
  border-top: 2px solid rgba(23, 23, 21, 0.55);
}

.thumb-gallery {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  padding: 4px;
}

.thumb-gallery i {
  background: var(--site-blue);
}

.thumb-gallery i:first-child {
  grid-row: span 2;
  background: var(--site-orange);
}

.thumb-journal {
  grid-template-columns: 48% 52%;
  padding: 4px;
}

.thumb-journal i:first-child {
  background: var(--site-blue);
}

.thumb-journal i:last-child {
  margin: 7px 3px;
  border-top: 3px solid #282823;
  border-bottom: 2px solid #282823;
}

.thumb-contact {
  place-items: center;
  background: var(--site-blue);
}

.thumb-contact i:first-child {
  width: 34px;
  border-top: 3px solid var(--site-paper);
}

.thumb-contact i:last-child {
  position: absolute;
  bottom: 7px;
  width: 17px;
  border-top: 1px solid var(--site-orange);
}

.screen-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.screen-copy strong {
  font-size: 10px;
  font-weight: 600;
}

.screen-copy small {
  overflow: hidden;
  color: var(--subtle);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-status {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: #c9c7c0;
}

.screen-card.is-active .screen-status {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 89, 232, 0.1);
}

/* Running website */
.website {
  min-height: 100%;
  color: var(--site-ink);
  background: var(--site-paper);
  font-family: "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid var(--site-line);
  background: rgba(245, 240, 229, 0.91);
  backdrop-filter: blur(14px);
}

.site-nav a {
  color: inherit;
  text-decoration: none;
}

.site-logo {
  width: fit-content;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.site-logo span {
  margin-left: 3px;
  font-size: 7px;
  vertical-align: top;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 10px;
}

.site-links a {
  position: relative;
}

.site-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.site-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
}

.site-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.site-nav-cta:hover .site-icon,
.site-button:hover .site-icon,
.contact-link:hover .site-icon {
  transform: translateX(4px);
}

.site-screen {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--site-line);
}

.site-screen > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-screen.is-in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.site-screen.is-in-view > *:nth-child(2) { transition-delay: 80ms; }
.site-screen.is-in-view > *:nth-child(3) { transition-delay: 150ms; }

.site-screen.roomier {
  padding-top: 110px !important;
  padding-bottom: 110px !important;
}

.site-screen.tone-blue {
  color: var(--site-paper);
  background: var(--site-blue) !important;
}

.site-screen.tone-blue p,
.site-screen.tone-blue h2,
.site-screen.tone-blue h3,
.site-screen.tone-blue a {
  color: inherit;
}

.site-screen.ai-touched {
  animation: aiTouched 700ms ease;
}

@keyframes aiTouched {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(100, 89, 232, 0); }
  45% { box-shadow: inset 0 0 0 5px rgba(100, 89, 232, 0.35); }
}

.site-kicker {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-kicker span {
  margin-right: 10px;
  color: var(--site-orange);
}

.hero-screen {
  min-height: 650px;
  display: grid;
  grid-template-columns: 48% 52%;
  grid-template-rows: 1fr;
  padding: 48px 42px 45px;
  background: var(--site-cream);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 30px 33px 0;
}

.hero-title {
  max-width: 540px;
  margin: auto 0 24px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 61px;
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 405px;
  margin: 0;
  color: rgba(23, 23, 21, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 29px;
}

.site-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 19px;
  color: var(--site-ink);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 180ms ease;
}

.site-button.dark {
  color: var(--site-paper);
  background: var(--site-ink);
}

.site-button.dark:hover {
  background: var(--site-blue);
}

.site-button.outline {
  border: 1px solid rgba(23, 23, 21, 0.5);
}

.site-button.outline:hover {
  color: var(--site-paper);
  background: var(--site-ink);
}

.text-link {
  position: relative;
  padding-bottom: 3px;
  color: var(--site-ink);
  font-size: 10px;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
}

.hero-visual {
  min-width: 0;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--site-orange);
}

.hero-visual img,
.project-card img,
.journal-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-visual:hover img,
.project-card:hover img,
.journal-visual:hover img {
  transform: scale(1.025);
}

.hero-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: rgba(245, 240, 229, 0.86);
  background: linear-gradient(transparent, rgba(17, 22, 25, 0.52));
  font-size: 7px;
  letter-spacing: 0.08em;
}

.scroll-note {
  position: absolute;
  bottom: 15px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 6px;
  letter-spacing: 0.12em;
}

.scroll-note span {
  width: 22px;
  height: 1px;
  background: var(--site-ink);
}

.hero-screen.layout-centered-hero {
  min-height: 680px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 290px;
  padding-top: 40px;
}

.hero-screen.layout-centered-hero .hero-copy {
  align-items: center;
  padding: 0 40px 31px;
  text-align: center;
}

.hero-screen.layout-centered-hero .hero-title {
  margin: 35px auto 20px;
  font-size: 65px;
}

.hero-screen.layout-centered-hero .hero-description {
  max-width: 520px;
}

.hero-screen.layout-centered-hero .hero-actions {
  margin-top: 22px;
}

.hero-screen.layout-offset {
  grid-template-columns: 37% 63%;
  padding: 0;
}

.hero-screen.layout-offset .hero-visual {
  grid-column: 2;
  grid-row: 1;
}

.hero-screen.layout-offset .hero-copy {
  grid-column: 1 / span 2;
  grid-row: 1;
  width: 63%;
  align-self: end;
  margin: 0 0 42px 35px;
  padding: 35px;
  background: rgba(245, 240, 229, 0.94);
  backdrop-filter: blur(9px);
}

.hero-screen.layout-offset .hero-title {
  margin: 54px 0 20px;
  font-size: 55px;
}

.principles-screen {
  min-height: 600px;
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 60px;
  padding: 76px 55px;
  background: var(--site-paper);
}

.section-heading h2,
.collection-head h2,
.journal-copy h2,
.contact-screen h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading h2 {
  margin: 150px 0 0;
  font-size: 38px;
  line-height: 1.14;
}

.principle-list {
  border-top: 1px solid var(--site-line);
}

.principle-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 13px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--site-line);
}

.principle-list article > span {
  color: var(--site-orange);
  font-size: 9px;
  font-weight: 700;
}

.principle-list h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.principle-list p {
  grid-column: 2;
  max-width: 370px;
  margin: 0;
  color: rgba(23, 23, 21, 0.62);
  font-size: 11px;
  line-height: 1.65;
}

.principles-screen.layout-cards {
  grid-template-columns: 1fr;
  gap: 46px;
}

.principles-screen.layout-cards .section-heading h2 {
  max-width: 610px;
  margin: 35px 0 0;
}

.principles-screen.layout-cards .principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 0;
}

.principles-screen.layout-cards .principle-list article {
  min-height: 220px;
  display: block;
  padding: 24px;
  border: 1px solid var(--site-line);
  background: var(--site-cream);
}

.principles-screen.layout-cards .principle-list h3 {
  margin-top: 74px;
}

.principles-screen.layout-cards .principle-list p {
  margin-top: 14px;
}

.principles-screen.layout-statement {
  grid-template-columns: 1fr;
  padding-right: 110px;
  padding-left: 110px;
}

.principles-screen.layout-statement .section-heading h2 {
  max-width: 780px;
  margin: 60px 0 70px;
  font-size: 54px;
}

.principles-screen.layout-statement .principle-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.principles-screen.layout-statement .principle-list article {
  display: block;
  padding-right: 22px;
  border-top: 1px solid var(--site-line);
  border-bottom: 0;
}

.principles-screen.layout-statement .principle-list h3 {
  margin-top: 24px;
}

.collection-screen {
  min-height: 890px;
  padding: 73px 42px 85px;
  color: var(--site-paper);
  background: var(--site-blue);
}

.collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 43px;
}

.collection-head h2 {
  margin: 23px 0 0;
  font-size: 50px;
}

.collection-head > p {
  margin: 0;
  color: rgba(245, 240, 229, 0.6);
  font-size: 10px;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  gap: 30px 16px;
}

.project-card {
  min-width: 0;
}

.project-card-wide {
  grid-row: span 2;
}

.project-card figure {
  height: 245px;
  margin: 0;
  overflow: hidden;
  background: var(--site-sand);
}

.project-card-wide figure {
  height: 590px;
}

.project-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 12px;
}

.project-meta h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 500;
}

.project-meta p,
.project-meta > span {
  margin: 0;
  color: rgba(245, 240, 229, 0.52);
  font-size: 8px;
}

.collection-screen.layout-grid .project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.collection-screen.layout-grid .project-card-wide {
  grid-row: auto;
}

.collection-screen.layout-grid .project-card figure,
.collection-screen.layout-grid .project-card-wide figure {
  height: 470px;
}

.collection-screen.layout-grid {
  min-height: 760px;
}

.collection-screen.layout-reel .project-grid {
  grid-template-columns: 1fr;
}

.collection-screen.layout-reel .project-card {
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  border-top: 1px solid rgba(245, 240, 229, 0.18);
}

.collection-screen.layout-reel .project-card figure,
.collection-screen.layout-reel .project-card-wide figure {
  height: 240px;
}

.collection-screen.layout-reel .project-meta {
  padding: 30px;
}

.journal-screen {
  min-height: 680px;
  display: grid;
  grid-template-columns: 52% 48%;
  background: var(--site-cream);
}

.journal-visual {
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.image-stamp {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--site-paper);
  background: var(--site-orange);
  font-size: 7px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-9deg);
}

.journal-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 67px 56px;
}

.journal-date {
  margin: 94px 0 16px;
  color: rgba(23, 23, 21, 0.5);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.journal-copy h2 {
  margin: 0 0 23px;
  font-size: 37px;
  line-height: 1.12;
}

.journal-copy > p:not(.site-kicker):not(.journal-date) {
  margin: 0 0 31px;
  color: rgba(23, 23, 21, 0.64);
  font-size: 11px;
  line-height: 1.7;
}

.journal-screen.layout-overlay {
  display: block;
  padding: 43px;
  background: var(--site-ink);
}

.journal-screen.layout-overlay .journal-visual {
  height: 600px;
}

.journal-screen.layout-overlay .journal-copy {
  position: absolute;
  right: 74px;
  bottom: 72px;
  width: 48%;
  padding: 33px;
  color: var(--site-paper);
  background: rgba(23, 23, 21, 0.86);
  backdrop-filter: blur(12px);
}

.journal-screen.layout-overlay .journal-date {
  margin: 32px 0 14px;
  color: rgba(245, 240, 229, 0.48);
}

.journal-screen.layout-overlay .journal-copy > p:not(.site-kicker):not(.journal-date) {
  color: rgba(245, 240, 229, 0.68);
}

.journal-screen.layout-overlay .site-button.outline {
  color: var(--site-paper);
  border-color: rgba(245, 240, 229, 0.6);
}

.journal-screen.layout-minimal {
  grid-template-columns: 36% 64%;
  min-height: 590px;
}

.journal-screen.layout-minimal .journal-copy {
  padding: 80px 90px;
}

.journal-screen.layout-minimal .journal-copy h2 {
  font-size: 43px;
}

.contact-screen {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 50px;
  color: var(--site-paper);
  background: var(--site-ink);
  text-align: center;
}

.light-kicker {
  color: rgba(245, 240, 229, 0.58);
}

.contact-screen h2 {
  position: relative;
  z-index: 2;
  margin: 60px 0 42px;
  font-size: 57px;
  line-height: 1.04;
}

.contact-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(245, 240, 229, 0.48);
  color: var(--site-paper);
  font-size: 13px;
  text-decoration: none;
}

.contact-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 330px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(245, 240, 229, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(245, 240, 229, 0.07);
  border-radius: 50%;
}

.contact-orbit::before { inset: 45px; }
.contact-orbit::after { inset: 92px; }

.contact-orbit span {
  color: rgba(237, 100, 59, 0.16);
  font-family: Georgia, serif;
  font-size: 150px;
}

.contact-screen.layout-contact-split {
  min-height: 540px;
  align-items: flex-start;
  padding: 75px;
  text-align: left;
}

.contact-screen.layout-contact-split h2 {
  margin: auto 0 40px;
  font-size: 60px;
}

.contact-screen.layout-contact-split .contact-orbit {
  left: 74%;
}

.contact-screen.layout-poster {
  min-height: 680px;
  background: var(--site-orange);
}

.contact-screen.layout-poster .light-kicker,
.contact-screen.layout-poster .site-kicker span {
  color: rgba(23, 23, 21, 0.64);
}

.contact-screen.layout-poster h2,
.contact-screen.layout-poster .contact-link {
  color: var(--site-ink);
}

.contact-screen.layout-poster .contact-link {
  border-color: rgba(23, 23, 21, 0.5);
}

.contact-screen.layout-poster .contact-orbit {
  border-color: rgba(23, 23, 21, 0.12);
}

.contact-screen.layout-poster .contact-orbit::before,
.contact-screen.layout-poster .contact-orbit::after {
  border-color: rgba(23, 23, 21, 0.09);
}

.contact-screen.layout-poster .contact-orbit span {
  color: rgba(23, 23, 21, 0.08);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 50px 42px 32px;
  color: var(--site-paper);
  background: var(--site-ink);
}

.footer-logo {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.site-footer > div:last-child {
  display: flex;
  gap: 36px;
  color: rgba(245, 240, 229, 0.45);
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* Tablet and mobile preview states */
.preview-frame[data-viewport="tablet"] .site-nav {
  padding: 0 27px;
}

.preview-frame[data-viewport="tablet"] .hero-title { font-size: 50px; }
.preview-frame[data-viewport="tablet"] .site-screen { padding-right: 30px; padding-left: 30px; }
.preview-frame[data-viewport="tablet"] .principles-screen { gap: 30px; }
.preview-frame[data-viewport="tablet"] .collection-screen.layout-grid .project-grid { grid-template-columns: 1fr 1fr; }
.preview-frame[data-viewport="tablet"] .collection-screen.layout-grid .project-card:last-child { grid-column: span 2; }
.preview-frame[data-viewport="tablet"] .journal-copy { padding-right: 35px; padding-left: 35px; }

.preview-frame[data-viewport="mobile"] .site-nav {
  height: 56px;
  grid-template-columns: 1fr auto;
  padding: 0 17px;
}

.preview-frame[data-viewport="mobile"] .site-links { display: none; }
.preview-frame[data-viewport="mobile"] .site-nav-cta { font-size: 8px; }
.preview-frame[data-viewport="mobile"] .site-screen { padding-right: 20px; padding-left: 20px; }
.preview-frame[data-viewport="mobile"] .hero-screen,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-centered-hero,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-offset {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 280px;
  padding-top: 28px;
  padding-bottom: 34px;
}

.preview-frame[data-viewport="mobile"] .hero-copy,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-centered-hero .hero-copy,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-offset .hero-copy {
  width: auto;
  align-items: flex-start;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0 0 26px;
  background: transparent;
  text-align: left;
}

.preview-frame[data-viewport="mobile"] .hero-title,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-centered-hero .hero-title,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-offset .hero-title {
  margin: 48px 0 20px;
  font-size: 43px;
}

.preview-frame[data-viewport="mobile"] .hero-description { font-size: 11px; }
.preview-frame[data-viewport="mobile"] .hero-actions { gap: 16px; }
.preview-frame[data-viewport="mobile"] .hero-visual,
.preview-frame[data-viewport="mobile"] .hero-screen.layout-offset .hero-visual { grid-column: 1; grid-row: 2; }
.preview-frame[data-viewport="mobile"] .scroll-note { display: none; }
.preview-frame[data-viewport="mobile"] .principles-screen,
.preview-frame[data-viewport="mobile"] .principles-screen.layout-cards,
.preview-frame[data-viewport="mobile"] .principles-screen.layout-statement {
  display: block;
  padding-top: 58px;
  padding-bottom: 58px;
}

.preview-frame[data-viewport="mobile"] .section-heading h2,
.preview-frame[data-viewport="mobile"] .principles-screen.layout-statement .section-heading h2 {
  margin: 55px 0 48px;
  font-size: 34px;
}

.preview-frame[data-viewport="mobile"] .principles-screen.layout-cards .principle-list,
.preview-frame[data-viewport="mobile"] .principles-screen.layout-statement .principle-list { grid-template-columns: 1fr; }
.preview-frame[data-viewport="mobile"] .principles-screen.layout-cards .principle-list article { min-height: 180px; }
.preview-frame[data-viewport="mobile"] .collection-screen { padding-top: 58px; padding-bottom: 58px; }
.preview-frame[data-viewport="mobile"] .collection-head { display: block; }
.preview-frame[data-viewport="mobile"] .collection-head h2 { font-size: 42px; }
.preview-frame[data-viewport="mobile"] .collection-head > p { margin-top: 20px; }
.preview-frame[data-viewport="mobile"] .project-grid,
.preview-frame[data-viewport="mobile"] .collection-screen.layout-grid .project-grid,
.preview-frame[data-viewport="mobile"] .collection-screen.layout-reel .project-grid { grid-template-columns: 1fr; }
.preview-frame[data-viewport="mobile"] .project-card-wide { grid-row: auto; }
.preview-frame[data-viewport="mobile"] .project-card figure,
.preview-frame[data-viewport="mobile"] .project-card-wide figure,
.preview-frame[data-viewport="mobile"] .collection-screen.layout-grid .project-card figure,
.preview-frame[data-viewport="mobile"] .collection-screen.layout-grid .project-card-wide figure { height: 340px; }
.preview-frame[data-viewport="mobile"] .collection-screen.layout-reel .project-card { display: block; }
.preview-frame[data-viewport="mobile"] .journal-screen,
.preview-frame[data-viewport="mobile"] .journal-screen.layout-minimal,
.preview-frame[data-viewport="mobile"] .journal-screen.layout-overlay { display: block; min-height: auto; padding: 0; }
.preview-frame[data-viewport="mobile"] .journal-visual,
.preview-frame[data-viewport="mobile"] .journal-screen.layout-overlay .journal-visual { height: 410px; }
.preview-frame[data-viewport="mobile"] .journal-copy,
.preview-frame[data-viewport="mobile"] .journal-screen.layout-minimal .journal-copy,
.preview-frame[data-viewport="mobile"] .journal-screen.layout-overlay .journal-copy {
  position: static;
  width: auto;
  padding: 55px 20px 60px;
  color: var(--site-ink);
  background: var(--site-cream);
}

.preview-frame[data-viewport="mobile"] .journal-date { margin-top: 58px; }
.preview-frame[data-viewport="mobile"] .journal-copy h2,
.preview-frame[data-viewport="mobile"] .journal-screen.layout-minimal .journal-copy h2 { font-size: 35px; }
.preview-frame[data-viewport="mobile"] .journal-screen.layout-overlay .journal-copy > p:not(.site-kicker):not(.journal-date) { color: rgba(23, 23, 21, 0.64); }
.preview-frame[data-viewport="mobile"] .journal-screen.layout-overlay .site-button.outline { color: var(--site-ink); border-color: rgba(23, 23, 21, 0.5); }
.preview-frame[data-viewport="mobile"] .contact-screen,
.preview-frame[data-viewport="mobile"] .contact-screen.layout-contact-split,
.preview-frame[data-viewport="mobile"] .contact-screen.layout-poster { min-height: 600px; align-items: flex-start; padding: 60px 20px; text-align: left; }
.preview-frame[data-viewport="mobile"] .contact-screen h2,
.preview-frame[data-viewport="mobile"] .contact-screen.layout-contact-split h2 { margin: auto 0 38px; font-size: 43px; }
.preview-frame[data-viewport="mobile"] .contact-orbit { left: 62%; width: 270px; height: 270px; }
.preview-frame[data-viewport="mobile"] .site-footer { display: block; padding: 45px 20px 30px; }
.preview-frame[data-viewport="mobile"] .site-footer > div:last-child { margin-top: 35px; gap: 17px; }

/* Edit overlays */
.editor-app.is-editing .website [data-editable] {
  cursor: crosshair;
}

.element-focus-box {
  position: fixed;
  z-index: 200;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: rgba(100, 89, 232, 0.035);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 4px rgba(100, 89, 232, 0.08);
  pointer-events: none;
  transition: top 80ms linear, left 80ms linear, width 80ms linear, height 80ms linear;
}

.element-focus-box::before,
.element-focus-box::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  background: #ffffff;
}

.element-focus-box::before { top: -4px; left: -4px; }
.element-focus-box::after { right: -4px; bottom: -4px; }

.element-tools {
  position: fixed;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(64, 54, 191, 0.45);
  border-radius: 8px;
  color: #f8f7f4;
  background: #4f45d1;
  box-shadow: 0 7px 20px rgba(48, 41, 145, 0.28);
  pointer-events: auto;
}

.element-tools > span {
  max-width: 130px;
  overflow: hidden;
  padding: 0 7px 0 6px;
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.element-tools button {
  height: 25px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.element-tools button:hover {
  background: rgba(255, 255, 255, 0.17);
}

.element-tools .icon {
  width: 12px;
  height: 12px;
}

.element-tools em {
  font-size: 8px;
  font-style: normal;
}

.property-popover {
  position: fixed;
  z-index: 300;
  width: 292px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid #eceae5;
}

.popover-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.popover-head span {
  color: var(--subtle);
  font-size: 8px;
}

.popover-head strong {
  font-size: 11px;
}

.popover-head button {
  width: 27px;
  height: 27px;
  color: var(--muted);
}

.popover-head button:hover { background: var(--panel-soft); }
.popover-head .icon { width: 14px; }

.property-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.property-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}

.property-field textarea {
  width: 100%;
  resize: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #fbfaf8;
  font-size: 10px;
  line-height: 1.45;
}

.property-field textarea:focus {
  border-color: rgba(100, 89, 232, 0.5);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.segmented-control button {
  height: 27px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.segmented-control button.is-active {
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: 0 1px 3px rgba(25, 24, 22, 0.11);
  font-weight: 600;
}

.icon-segments button {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
}

.icon-segments button:nth-child(2) { text-align: center; }
.icon-segments button:nth-child(3) { transform: scaleX(-1); }

.slider-field input {
  width: 100%;
  accent-color: var(--accent);
}

.slider-field output {
  color: var(--subtle);
  font-size: 8px;
}

.open-in-chat {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  border-radius: 7px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

.open-in-chat .icon { width: 13px; }

/* NAS asset drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  justify-content: flex-end;
  padding: 68px 14px 14px;
  background: rgba(25, 24, 22, 0.31);
  backdrop-filter: blur(3px);
}

.modal-backdrop[hidden] { display: none; }

.asset-drawer {
  width: min(690px, calc(100vw - 28px));
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: var(--panel-bg);
  box-shadow: 0 25px 70px rgba(28, 27, 25, 0.28);
  animation: drawerIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateX(24px); }
}

.asset-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 14px;
}

.nas-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nas-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(45, 159, 105, 0.1);
}

.asset-drawer-head h2 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.asset-drawer-head > button {
  width: 32px;
  height: 32px;
}

.asset-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px 14px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-strong);
}

.asset-search .icon {
  width: 14px;
  color: var(--subtle);
}

.asset-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.asset-path {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px 12px;
  color: var(--muted);
  font-size: 9px;
}

.asset-path button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.asset-path .icon { width: 11px; height: 11px; }
.asset-path > .icon { color: var(--subtle); }
.asset-path strong { color: var(--ink); }

.asset-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px 11px;
  border-bottom: 1px solid var(--line);
}

.asset-tabs button {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.asset-tabs button.is-active {
  color: var(--ink);
  background: var(--panel-soft);
  font-weight: 600;
}

.asset-tabs span {
  margin-left: auto;
  color: var(--subtle);
  font-size: 8px;
}

.asset-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-content: start;
  overflow-y: auto;
  padding: 18px 24px 24px;
}

.asset-card,
.asset-folder-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-strong);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.asset-card:hover,
.asset-folder-card:hover {
  border-color: rgba(100, 89, 232, 0.55);
  box-shadow: 0 5px 18px rgba(45, 41, 92, 0.1);
  transform: translateY(-2px);
}

.asset-card img,
.folder-preview {
  width: 100%;
  aspect-ratio: 1.36;
  display: block;
  object-fit: cover;
  background: #e8e5dc;
}

.asset-card > span,
.asset-folder-card > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px;
}

.asset-card strong,
.asset-folder-card strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-card small,
.asset-folder-card small {
  color: var(--subtle);
  font-size: 8px;
}

.folder-preview {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--site-blue);
  background: #e8e7e3;
}

.folder-preview .icon {
  width: 43px;
  height: 43px;
  fill: rgba(23, 62, 85, 0.1);
}

.folder-preview em {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 9px;
  font-style: normal;
}

.asset-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--panel-strong);
}

.asset-drawer-footer p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.asset-drawer-footer .secondary-button { height: 30px; font-size: 9px; }

.toast {
  position: fixed;
  right: 310px;
  bottom: 19px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 205px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  animation: toastIn 180ms ease;
}

.toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

.toast span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  color: var(--success);
  background: rgba(45, 159, 105, 0.1);
}

.toast .icon { width: 12px; }
.toast p { margin: 0; font-size: 9px; font-weight: 600; }

.property-popover[hidden],
.element-focus-box[hidden],
.element-tools[hidden] {
  display: none;
}

.temporary-edit-flash .mode-switch {
  box-shadow: 0 0 0 3px rgba(100, 89, 232, 0.1);
}

.editor-app.preview-only .workspace {
  grid-template-columns: minmax(0, 1fr);
}

.editor-app.preview-only .left-panel,
.editor-app.preview-only .right-panel {
  display: none;
}

.editor-app.preview-only .canvas-stage {
  padding-right: 44px;
  padding-left: 44px;
}

@media (max-width: 1240px) {
  .workspace { grid-template-columns: 275px minmax(0, 1fr) 268px; }
  .topbar { grid-template-columns: 47px minmax(175px, 1fr) auto minmax(285px, 1fr); }
  .mode-hint { display: none; }
  .nas-button { font-size: 0; width: 35px; padding: 0; }
  .nas-button .icon { width: 16px; }
  .right-panel-scroll { padding-right: 9px; padding-left: 9px; }
  .screen-card { grid-template-columns: 8px 16px 52px minmax(0, 1fr) 6px; gap: 5px; }
  .screen-thumb { width: 52px; }
  .toast { right: 283px; }
}

@media (max-width: 1000px) {
  .workspace { grid-template-columns: 255px minmax(0, 1fr); }
  .right-panel { display: none; }
  .topbar { grid-template-columns: 47px 1fr auto auto; }
  .secondary-button { display: none; }
  .toast { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   Zhinan NAS application shell
   The page being edited keeps its own brand. Everything around it follows
   the NAS: neutral rails, a white rounded workspace, black selections,
   hairline borders, quiet shadows, and the green connection signal.
   ───────────────────────────────────────────────────────────── */
body {
  color: rgba(0, 0, 0, 0.88);
  background: var(--app-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", ui-sans-serif, system-ui, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

button,
textarea,
input {
  letter-spacing: 0;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(89, 87, 214, 0.42);
  outline-offset: 2px;
}

.editor-app {
  grid-template-rows: 54px minmax(0, 1fr);
  background: var(--app-bg);
}

.topbar {
  display: flex;
  align-items: center;
  border-bottom: 0;
  background: var(--app-bg);
  backdrop-filter: none;
}

.brand-mark {
  width: auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 304px;
  gap: 9px;
  padding: 0 16px;
  border-right: 0;
}

.brand-symbol {
  width: 24px;
  height: 24px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(23, 49, 5, 0.05);
  transform: none;
}

.brand-symbol i,
.brand-symbol i:nth-child(2) {
  width: 15px;
  height: 5px;
  position: absolute;
  top: 5px;
  left: 50%;
  display: block;
  border-radius: 99px;
  background: #ffffff;
  transform: translateX(-50%);
}

.brand-wordmark {
  color: #000000;
  font: 700 17px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.045em;
}

.document-path {
  min-width: 0;
  flex: 1 1 auto;
  gap: 4px;
  padding-left: 14px;
}

.plain-button {
  border-radius: 6px;
  font-size: 12.5px;
}

.plain-button:hover {
  background: rgba(0, 0, 0, 0.055);
}

.document-name {
  font-weight: 650;
}

.save-state {
  margin-left: 6px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 500;
}

.save-state i,
.live-label i,
.model-dot,
.nas-live-dot {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(160, 247, 19, 0.16);
}

.topbar-center {
  position: absolute;
  left: 50%;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.mode-switch {
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.mode-button {
  min-width: 60px;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 11px;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1);
}

.mode-button.is-active {
  color: #ffffff;
  background: #000000;
  box-shadow: none;
  font-weight: 650;
}

.mode-hint {
  color: var(--subtle);
  font-size: 9px;
}

kbd {
  border-color: rgba(0, 0, 0, 0.13);
  border-bottom-color: rgba(0, 0, 0, 0.22);
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.58);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.topbar-actions {
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
  padding-right: 12px;
}

.icon-button,
.mini-icon-button,
.send-button,
.viewport-button,
.zoom-control,
.scope-clear,
.asset-drawer-head button,
.popover-head button {
  border-radius: 6px;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1), opacity 120ms cubic-bezier(0, 0, 0.2, 1);
}

.icon-button {
  width: 30px;
  height: 30px;
  color: rgba(0, 0, 0, 0.5);
}

.icon-button:hover:not(:disabled),
.mini-icon-button:hover,
.viewport-button:hover,
.scope-clear:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
}

.icon-button:disabled {
  color: rgba(0, 0, 0, 0.2);
}

.icon-button.soft {
  border: 0;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nas-button,
.secondary-button,
.primary-button {
  height: 32px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 650;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1), transform 120ms cubic-bezier(0, 0, 0.2, 1);
}

.nas-button,
.secondary-button {
  border: 0;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nas-button:hover,
.secondary-button:hover {
  border-color: transparent;
  background: #f8f8f8;
}

.primary-button {
  color: #ffffff;
  background: #000000;
}

.primary-button:hover {
  background: rgba(0, 0, 0, 0.82);
}

.primary-button:active,
.secondary-button:active,
.nas-button:active {
  transform: translateY(1px);
}

.workspace {
  grid-template-columns: 304px minmax(0, 1fr) 292px;
  background: var(--app-bg);
}

.left-panel,
.right-panel {
  background: var(--app-bg);
}

.left-panel {
  border-right: 0;
}

.right-panel {
  border-left: 0;
}

.panel-title-row,
.right-panel-head {
  padding: 13px 14px 11px;
}

.right-panel-head {
  border-bottom: 0;
}

.eyebrow {
  margin-bottom: 3px;
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.panel-title-row h1,
.right-panel-head h2 {
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.conversation-scope {
  gap: 9px;
  margin: 0 13px 10px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 150ms cubic-bezier(0, 0, 0.2, 1), color 150ms cubic-bezier(0, 0, 0.2, 1);
}

.scope-icon,
.assistant-avatar {
  color: var(--brand-ink);
  background: var(--brand);
}

.conversation-scope.is-targeted {
  color: #ffffff;
  border-color: transparent;
  background: #000000;
  box-shadow: none;
}

.conversation-scope.is-targeted .scope-copy span {
  color: rgba(255, 255, 255, 0.56);
}

.conversation-scope.is-targeted .scope-copy strong,
.conversation-scope.is-targeted .scope-clear {
  color: #ffffff;
}

.conversation-scope.is-targeted .scope-icon {
  color: var(--brand-ink);
  background: var(--brand);
}

.scope-copy span {
  color: var(--subtle);
}

.scope-copy strong {
  color: rgba(0, 0, 0, 0.88);
  font-size: 10.5px;
  font-weight: 650;
}

.chat-stream {
  padding-right: 13px;
  padding-left: 13px;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.message-body p {
  color: rgba(0, 0, 0, 0.72);
  font-size: 11.5px;
  line-height: 1.65;
}

.user-message .message-body {
  color: #ffffff;
  background: #000000;
}

.change-card,
.style-lock-card {
  border: 0;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.change-icon {
  color: var(--brand-ink);
  background: var(--brand);
}

.style-lock-row,
.style-tokens,
.popover-head {
  border-color: rgba(0, 0, 0, 0.07);
}

.prompt-suggestions button {
  border: 0;
  color: rgba(0, 0, 0, 0.58);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1);
}

.prompt-suggestions button:hover {
  border-color: transparent;
  color: #000000;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.chat-composer {
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.chat-composer:focus-within {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(89, 87, 214, 0.09), 0 4px 10px rgba(0, 0, 0, 0.04);
}

.composer-context {
  color: #ffffff;
  background: #000000;
}

.composer-context button {
  color: rgba(255, 255, 255, 0.75);
}

.send-button {
  color: #ffffff;
  background: #000000;
}

.panel-footnote {
  color: var(--subtle);
}

.model-dot {
  background: var(--brand);
}

.canvas-column {
  grid-template-rows: 46px minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 8px;
  border: 0;
  border-radius: 14px;
  background: #fbfbfb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.045), 0 1px 2px rgba(0, 0, 0, 0.035);
}

.canvas-toolbar {
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  background: #fbfbfb;
}

.live-label {
  color: rgba(0, 0, 0, 0.64);
}

.viewport-control {
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
}

.viewport-button {
  border-radius: 6px;
}

.viewport-button.is-active {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.canvas-stage {
  padding-top: 24px;
  background-color: #f6f6f6;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.075) 1px, transparent 0);
  background-size: 18px 18px;
}

.preview-frame {
  border-color: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 18px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.preview-frame::-webkit-scrollbar-thumb,
.right-panel-scroll::-webkit-scrollbar-thumb,
.chat-stream::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
}

.canvas-shortcut-tip {
  border: 0;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}

.right-panel-scroll {
  padding-top: 2px;
  padding-right: 13px;
  padding-left: 13px;
}

.style-lock-card {
  border-radius: 10px;
}

.lock-mark {
  color: var(--brand-ink);
  background: var(--brand);
}

.lock-mark i {
  border-color: #000000;
}

.section-label-row {
  color: rgba(0, 0, 0, 0.56);
  font-size: 9px;
}

.screen-list {
  gap: 4px;
}

.screen-card {
  border: 0;
  border-radius: 9px;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1), transform 120ms cubic-bezier(0, 0, 0.2, 1);
}

.screen-card:hover {
  background: rgba(0, 0, 0, 0.055);
}

.screen-card.is-active {
  color: #ffffff;
  border-color: transparent;
  background: #000000;
  box-shadow: none;
}

.screen-card.is-active .screen-index,
.screen-card.is-active .screen-copy small {
  color: rgba(255, 255, 255, 0.5);
}

.screen-card.is-active .drag-icon {
  fill: rgba(255, 255, 255, 0.5);
}

.screen-card.is-active .screen-status {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(160, 247, 19, 0.16);
}

.element-focus-box {
  border-color: #000000;
  background: rgba(0, 0, 0, 0.018);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.element-focus-box::before,
.element-focus-box::after {
  border-color: #000000;
  background: #ffffff;
}

.element-tools {
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: #000000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.13), 0 8px 20px rgba(0, 0, 0, 0.16);
}

.property-popover {
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.09), 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 18px rgba(0, 0, 0, 0.08), 0 20px 44px rgba(0, 0, 0, 0.08);
}

.property-field textarea {
  border: 0;
  background: #f6f6f6;
  box-shadow: inset 0 0 0 1px var(--line);
}

.property-field textarea:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(89, 87, 214, 0.08);
}

.segmented-control {
  border: 0;
  background: rgba(0, 0, 0, 0.06);
}

.segmented-control button.is-active {
  color: #ffffff;
  background: #000000;
  box-shadow: none;
}

.slider-field input {
  accent-color: #000000;
}

.open-in-chat {
  color: #ffffff;
  background: #000000;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.asset-drawer {
  width: min(720px, calc(100vw - 28px));
  border: 0;
  border-radius: 16px;
  background: var(--app-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 14px 34px rgba(0, 0, 0, 0.14), 0 30px 70px rgba(0, 0, 0, 0.13);
}

.nas-kicker i {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(160, 247, 19, 0.15);
}

.asset-drawer-head h2 {
  color: #000000;
  font-size: 21px;
  font-weight: 700;
}

.asset-search {
  border: 0;
  background: rgba(0, 0, 0, 0.055);
}

.asset-tabs {
  border-bottom: 0;
}

.asset-tabs button.is-active {
  color: #ffffff;
  background: #000000;
}

.asset-grid {
  gap: 10px;
  padding-top: 17px;
  border-radius: 14px 14px 0 0;
  background: #fbfbfb;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.045);
}

.asset-card,
.asset-folder-card {
  overflow: visible;
  padding: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), transform 120ms cubic-bezier(0, 0, 0.2, 1);
}

.asset-card:hover,
.asset-folder-card:hover {
  border-color: transparent;
  background: rgba(0, 0, 0, 0.055);
  box-shadow: none;
  transform: none;
}

.asset-card img,
.folder-preview {
  overflow: hidden;
  border-radius: 8px;
}

.asset-card > span,
.asset-folder-card > span:last-child {
  padding: 8px 2px 4px;
}

.asset-drawer-footer {
  border-color: rgba(0, 0, 0, 0.06);
  background: #fbfbfb;
}

.toast {
  border: 0;
  color: #ffffff;
  background: #1d1d1d;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.toast span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.temporary-edit-flash .mode-switch {
  box-shadow: 0 0 0 3px rgba(89, 87, 214, 0.12);
}

@media (max-width: 1240px) {
  .brand-mark { flex-basis: 275px; }
  .workspace { grid-template-columns: 275px minmax(0, 1fr) 268px; }
}

@media (max-width: 1000px) {
  .brand-mark { flex-basis: 255px; }
  .workspace { grid-template-columns: 255px minmax(0, 1fr); }
  .right-panel { display: none; }
  .topbar-center { position: static; transform: none; }
}

/* Selected screen owns a compact layout carousel. The previous three-card
   picker is intentionally absent: one current layout, two direct arrows. */
.screen-card {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  cursor: default;
  text-align: left;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1);
}

.screen-card-select {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 10px 18px 59px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1);
}

.screen-card:hover {
  background: rgba(0, 0, 0, 0.055);
}

.screen-card.is-active,
.screen-card.is-active:hover {
  color: #ffffff;
  background: #000000;
  box-shadow: none;
}

.screen-card.is-active .screen-card-select:hover {
  background: rgba(255, 255, 255, 0.075);
}

.screen-layout-nav {
  min-width: 0;
  display: none;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 4px;
  margin: 3px 4px 0 34px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.screen-card.is-active .screen-layout-nav {
  display: grid;
}

.layout-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.075);
  cursor: pointer;
  transition: background-color 120ms cubic-bezier(0, 0, 0.2, 1), color 120ms cubic-bezier(0, 0, 0.2, 1), transform 120ms cubic-bezier(0, 0, 0.2, 1);
}

.layout-arrow:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.layout-arrow:active {
  transform: translateY(1px);
}

.layout-arrow .icon {
  width: 13px;
  height: 13px;
}

.layout-arrow.is-previous .icon {
  transform: rotate(180deg);
}

.screen-layout-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 3px;
  white-space: nowrap;
}

.screen-layout-current {
  overflow: hidden;
  color: #ffffff;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.screen-layout-count {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.42);
  font: 8px/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

@media (max-width: 1240px) {
  .screen-card-select {
    grid-template-columns: 8px 16px 52px minmax(0, 1fr) 6px;
    gap: 5px;
  }

  .screen-layout-nav {
    margin-left: 29px;
  }
}
