@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&display=swap");
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f6f3;
  color: #252d2b;
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.3;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #80a492;
  outline-offset: 3px;
}
button.primary,
button.secondary,
button.quiet,
.file-button {
  padding: 11px 17px;
  border-radius: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.primary {
  background: #244e42;
  color: white;
}
.secondary {
  border: 1px solid #d8ddda;
  background: #fff;
}
.quiet {
  background: transparent;
  color: #747e78;
}
.text-button {
  font-size: 12px;
  color: #577566;
}
.app-header {
  height: 83px;
  background: #fff;
  border-bottom: 1px solid #e4e7e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
}
.brand-mark {
  background: #244e42;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 34px;
  border-radius: 12px;
  width: 46px;
  height: 46px;
  text-align: center;
  position: relative;
}
.brand-mark span {
  font: 14px system-ui;
  position: absolute;
  right: 5px;
  top: 6px;
}
.brand b {
  font-size: 17px;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 400;
  color: #869089;
  margin-top: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.save-status {
  font-size: 11px;
  color: #8c938d;
  margin-right: 12px;
}
.workspace {
  display: flex;
  min-height: calc(100vh - 83px);
}
.sidebar {
  width: 222px;
  flex: none;
  background: #fff;
  border-right: 1px solid #e3e6e1;
  padding: 33px 18px;
  position: sticky;
  top: 83px;
  height: calc(100vh - 83px);
  display: flex;
  flex-direction: column;
}
.side-label {
  font-size: 10px;
  color: #a0a79f;
  letter-spacing: 1.5px;
  padding: 0 15px;
  margin: 3px 0 14px;
}
.nav {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  color: #79827b;
  font-size: 13px;
  border-radius: 9px;
  margin-bottom: 5px;
}
.nav.active {
  background: #edf3ee;
  color: #244e42;
  font-weight: 700;
}
.client-switch {
  padding: 20px 12px 27px;
  margin: 8px 0 20px;
  border-bottom: 1px solid #eee;
}
.client-switch label {
  font-size: 11px;
  color: #8b948d;
}
.client-switch select {
  padding: 10px 3px;
  border: 0;
  background: #fff;
  font-weight: 600;
  font-size: 12px;
}
.client-switch small {
  display: block;
  font-size: 10px;
  color: #9ba29c;
  margin-top: 8px;
}
.side-bottom {
  margin-top: auto;
  font-size: 10px;
  color: #a0a79f;
  padding: 24px 10px 0;
}
.side-bottom small {
  display: block;
  margin-top: 8px;
}
.side-bottom .quiet {
  font-size: 10px;
  padding: 8px 0;
  margin-right: 12px;
}
main {
  flex: 1;
  min-width: 0;
  padding: 39px 45px 60px;
  max-width: 1500px;
  margin: auto;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 32px;
  gap: 20px;
}
.breadcrumb {
  font-size: 11px;
  color: #65776c;
  margin-bottom: 14px;
}
.breadcrumb span {
  color: #a1a79f;
}
.workspace-heading h1 {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 0 0 11px;
}
.workspace-heading p {
  color: #969e95;
  font-size: 12px;
  margin: 0;
}
.workspace-heading > button {
  font-size: 11px;
  white-space: nowrap;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 410px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
}
.editor-pane {
  min-width: 0;
}
.panel {
  border: 1px solid #e4e7e1;
  background: #fff;
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.panel-desc {
  color: #969e94;
  font-size: 12px;
  line-height: 1.8;
  margin: -6px 0 18px;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 17px;
}
.profile-summary img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
}
.profile-summary h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
.profile-summary p {
  font-size: 11px;
  color: #7f8b81;
  margin: 0 0 7px;
}
.profile-summary small {
  font-size: 10px;
  color: #a5ada2;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
}
.section-title h2 {
  font-size: 14px;
  margin: 0;
}
.section-title h2 span {
  font-size: 11px;
  background: #e7ebe5;
  color: #718372;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 6px;
}
.section-title button {
  font-size: 11px;
  padding: 9px 12px;
}
.block-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e4e7e1;
  border-radius: 11px;
  padding: 14px 12px;
  margin-bottom: 10px;
  min-height: 81px;
  transition: 0.15s;
}
.block-row:hover {
  border-color: #b5c4b7;
  box-shadow: 0 4px 14px #213c2810;
}
.drag-handle {
  color: #c7cec3;
  font-size: 20px;
}
.block-icon {
  width: 36px;
  height: 38px;
  background: #f0f3ee;
  display: grid;
  place-items: center;
  font-size: 21px;
  border-radius: 8px;
  color: #64816a;
  flex: none;
}
.block-title {
  text-align: left;
  min-width: 0;
  flex: 1;
  padding: 0 3px;
}
.block-title b {
  font-size: 12px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-title small {
  font-size: 10px;
  color: #9da69a;
  display: block;
  margin-top: 7px;
}
.block-actions {
  display: flex;
  gap: 11px;
  align-items: center;
}
.block-actions > button:last-child {
  font-size: 18px;
  color: #84937f;
}
.arrows {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  line-height: 12px;
}
.arrows button {
  height: 18px;
  padding: 0 2px;
  color: #8d9c88;
}
.switch {
  width: 27px;
  height: 16px;
  border-radius: 20px;
  background: #d7ded2;
  position: relative;
  padding: 0;
}
.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}
.switch.checked {
  background: #658565;
}
.switch.checked span {
  left: 14px;
}
.is-hidden {
  opacity: 0.5;
}
.add-block {
  width: 100%;
  border: 1px dashed #c9d3c5;
  border-radius: 10px;
  padding: 19px;
  color: #7d8b75;
  font-size: 12px;
  margin-top: 4px;
}
.hint {
  font-size: 11px;
  line-height: 1.9;
  color: #9aa292;
  margin-top: 16px;
}
.preview-pane {
  position: sticky;
  top: 111px;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  padding: 0 12px 15px;
  font-size: 10px;
  color: #929d8d;
}
.preview-label i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f9c7c;
  margin-right: 7px;
}
.phone {
  width: 390px;
  max-width: 100%;
  height: 750px;
  background: #111;
  border-radius: 36px;
  border: 7px solid #fff;
  box-shadow:
    0 14px 35px #22382615,
    0 0 0 1px #dce2d7;
  overflow: hidden;
  position: relative;
}
.phone-bar {
  height: 31px;
  background: #202220;
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.phone-bar b {
  width: 83px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #080b08;
  align-self: flex-start;
}
.phone-scroll {
  height: calc(100% - 31px);
  overflow: auto;
  scrollbar-width: none;
  position: relative;
  isolation: isolate;
}
.phone-scroll::-webkit-scrollbar {
  display: none;
}
.preview-foot {
  font-size: 10px;
  text-align: center;
  color: #a6afa0;
  margin: 18px 0;
}
.page {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--page-font);
  background: var(--base);
  overflow: hidden;
}
.page-bg,
.page-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.page-bg {
  background-size: cover;
  background-position: var(--pos) top;
  filter: blur(var(--blur));
  background-attachment: scroll;
}
.page-veil {
  z-index: -1;
  background: var(--base);
  opacity: var(--veil);
}
.page-inner {
  position: relative;
  max-width: 620px;
  margin: auto;
  padding: 44px 22px 24px;
}
.page-cover {
  width: calc(100% + 44px);
  margin: -44px -22px 22px;
  max-height: 200px;
  object-fit: cover;
}
.identity {
  text-align: center;
  padding: 0 8px 26px;
}
.avatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffffb3;
  box-shadow: 0 6px 22px #0002;
  margin-bottom: 18px;
}
.initials {
  display: grid;
  place-items: center;
  background: var(--accent);
  margin: auto auto 20px;
  color: #202421;
  font-size: 35px;
}
.profile-tag {
  display: block;
  letter-spacing: 2px;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.75;
  margin-bottom: 11px;
}
.identity h1 {
  font-size: 24px;
  letter-spacing: 1px;
  margin: 0 0 14px;
  font-weight: 600;
}
.identity p {
  font-size: 11px;
  line-height: 1.9;
  white-space: pre-wrap;
  margin: 0 auto 20px;
  max-width: 320px;
}
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.social {
  font-size: 10px;
  padding: 7px 11px;
  border: 1px solid currentColor;
  border-radius: 30px;
  opacity: 0.9;
}
.social:hover {
  background: #ffffff25;
}
.page-block {
  margin-bottom: 14px;
}
.page-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffffa8;
  border-radius: var(--round);
  min-height: 63px;
  padding: 13px 17px;
  background: #ffffff08;
  backdrop-filter: blur(6px);
}
.page:not(.has-bg) .page-link {
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
}
.page-link span {
  flex: 1;
  text-align: center;
}
.page-link b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.page-link small {
  display: block;
  font-size: 9px;
  opacity: 0.7;
  margin-top: 5px;
}
.page-link i {
  font-size: 15px;
  font-style: normal;
  opacity: 0.65;
}
.page-link img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
}
.solid .page-link {
  background: var(--accent);
  color: #17231d;
  border: 0;
}
.soft .page-link {
  background: #ffffff24;
  border-color: #ffffff26;
}
.page-link:hover {
  transform: translateY(-1px);
  background: #ffffff20;
}
.solid .page-link:hover {
  background: var(--accent);
  filter: brightness(0.95);
}
.block-heading {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
  margin: 29px 0 19px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.block-heading:before,
.block-heading:after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}
.image-card {
  display: block;
  position: relative;
  border-radius: var(--round);
  overflow: hidden;
  background: #ffffff0c;
}
.image-card > img {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 1.45;
  object-fit: cover;
}
.image-caption {
  padding: 15px 16px;
  position: relative;
  background: #0003;
  backdrop-filter: blur(7px);
}
.image-caption b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.image-caption small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-top: 6px;
}
.image-caption i {
  position: absolute;
  right: 16px;
  top: 20px;
}
.text-block {
  background: #ffffff0b;
  padding: 18px;
  border-radius: var(--round);
}
.text-block h3 {
  font-size: 12px;
  margin: 0 0 10px;
}
.text-block p {
  font-size: 11px;
  line-height: 2;
  white-space: pre-wrap;
  margin: 0;
  opacity: 0.85;
}
.page hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.25;
  margin: 28px 10px;
}
.video-card {
  border-radius: var(--round);
  overflow: hidden;
  background: #0002;
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}
.video-card > b {
  font-size: 11px;
  font-weight: 500;
  display: block;
  padding: 13px 16px;
}
.media-empty {
  text-align: center;
  border: 1px dashed currentColor;
  border-radius: var(--round);
  padding: 30px;
  font-size: 30px;
  opacity: 0.65;
}
.media-empty span,
.media-empty small {
  display: block;
  font-size: 12px;
  margin: 8px;
}
.media-empty small {
  font-size: 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product {
  background: #ffffff14;
  border: 1px solid #ffffff25;
  border-radius: var(--round);
  overflow: hidden;
}
.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.product > div {
  padding: 12px;
}
.product b {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.product small {
  display: block;
  font-size: 10px;
  opacity: 0.8;
  margin: 6px 0;
}
.product span {
  font-size: 9px;
  opacity: 0.6;
}
.page-footer {
  text-align: center;
  font-size: 10px;
  margin: 42px 0 12px;
  letter-spacing: 1px;
  opacity: 0.55;
}
.page-footer span {
  display: block;
  font-size: 8px;
  margin-top: 9px;
}
.background-card {
  height: 170px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #eee;
  margin-bottom: 15px;
}
.background-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 10px;
  padding: 7px 10px;
  background: #0007;
  color: #fff;
  border-radius: 6px;
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button-row button {
  font-size: 11px;
}
.range-label {
  margin-top: 23px;
}
.range-label span {
  float: right;
  font-size: 11px;
  color: #7e9175;
}
.range-label input {
  width: 100%;
  margin-top: 12px;
}
.themes {
  display: flex;
  gap: 13px;
}
.theme {
  border: 1px solid #e4e7df;
  border-radius: 8px;
  flex: 1;
  padding: 7px;
  font-size: 10px;
}
.theme i {
  display: block;
  height: 46px;
  border-radius: 5px;
  margin-bottom: 8px;
}
.theme.selected {
  border-color: #315a44;
  box-shadow: 0 0 0 1px #315a44;
}
.color-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
}
.color-label input {
  width: 45px;
  padding: 2px;
  height: 30px;
}
.badge {
  font-size: 9px;
  font-weight: 400;
  color: #63816b;
  background: #edf3e9;
  padding: 5px 8px;
  border-radius: 5px;
}
.panel label {
  display: block;
  font-size: 11px;
  margin-bottom: 17px;
}
.panel select,
.panel input:not([type="range"]):not([type="color"]) {
  margin-top: 8px;
}
.panel label:last-child {
  margin-bottom: 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dfe5d9;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: #374532;
  font-size: 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #9eb9a2;
  outline-offset: 1px;
}
input[type="range"] {
  padding: 0;
  accent-color: #42674c;
}
textarea {
  resize: vertical;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.client-card {
  background: #fff;
  border: 1px solid #e0e6da;
  border-radius: 14px;
  overflow: hidden;
}
.client-art {
  height: 250px;
  background: var(--base);
  color: var(--ink);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.client-art img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff9;
}
.client-art b {
  font-size: 18px;
}
.client-art span {
  font-size: 10px;
  opacity: 0.8;
}
.client-detail {
  padding: 24px;
}
.client-detail h2 {
  font-size: 16px;
  margin: 14px 0 8px;
}
.client-detail p {
  font-size: 11px;
  color: #8d9a84;
  margin-bottom: 20px;
}
.client-detail > div {
  display: flex;
  gap: 9px;
}
.client-detail button {
  font-size: 11px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.metrics .panel {
  padding: 15px;
}
.metrics span {
  font-size: 10px;
}
.metrics b {
  display: block;
  font-size: 30px;
  margin-top: 12px;
}
.empty-state {
  text-align: center;
  padding: 50px 24px;
}
.empty-state > span {
  font-size: 40px;
  color: #a3b49a;
}
.empty-state h2 {
  font-size: 16px;
}
.empty-state p {
  color: #919d86;
  font-size: 12px;
  line-height: 1.9;
}
dialog {
  border: 1px solid #d6dfd0;
  border-radius: 17px;
  padding: 0;
  width: 560px;
  max-width: calc(100vw - 28px);
  max-height: 90vh;
  color: #293725;
  box-shadow: 0 25px 100px #13250c40;
}
dialog::backdrop {
  background: #17211688;
  backdrop-filter: blur(5px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e6ebe0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-head small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8b9c7e;
}
.modal-head h2 {
  margin: 7px 0 0;
  font-size: 19px;
}
.modal-head > button {
  font-size: 28px;
  color: #89997d;
}
.modal-body {
  padding: 26px 28px;
}
.modal-body label {
  display: block;
  font-size: 12px;
  margin-bottom: 18px;
}
.modal-body label input,
.modal-body textarea,
.modal-body select {
  margin-top: 9px;
}
.modal-body h3 {
  font-size: 14px;
  margin: 28px 0 20px;
}
.modal-footer {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  padding: 19px 28px;
  border-top: 1px solid #e2e8dc;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.modal-footer button {
  font-size: 12px;
  white-space: nowrap;
}
#form-error {
  color: #a43e3e;
  font-size: 11px;
  margin-right: auto;
}
.media-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.media-tools img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
}
.media-tools .file-button {
  position: relative;
  overflow: hidden;
  font-size: 11px;
  background: #edf3e6;
  padding: 9px 13px;
  margin: 0;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0 !important;
}
.media-tools > button {
  font-size: 11px;
  color: #89977f;
}
.product-fields {
  border: 1px solid #dfe7d6;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 19px;
}
.product-fields legend {
  font-size: 11px;
  color: #829272;
}
.danger {
  color: #ac5252;
  margin: 15px 0;
  font-size: 11px;
}
.library {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.library button {
  text-align: left;
  border: 1px solid #e0e7d9;
  border-radius: 11px;
  padding: 20px;
  transition: 0.15s;
}
.library button:hover {
  background: #f0f5eb;
  border-color: #9bb08d;
}
.library span {
  display: block;
  font-size: 25px;
  color: #6b8860;
  margin-bottom: 15px;
}
.library b {
  font-size: 12px;
  display: block;
}
.library small {
  font-size: 10px;
  display: block;
  color: #97a28b;
  margin-top: 8px;
}
.full-mobile {
  max-width: 390px;
  margin: auto;
  box-shadow: 0 8px 25px #0002;
  border-radius: 15px;
  overflow: hidden;
  min-height: 844px;
}
.preview-dialog {
  width: 470px;
}
.preview-dialog .modal-body {
  background: #e9ece5;
  padding: 20px;
}
.export-page {
  background: #171b18;
}
.export-page > .page {
  min-height: 100vh;
}
.export-page .page-bg,
.export-page .page-veil {
  position: fixed;
}
.export-page .page-inner {
  padding-top: 50px;
}
.export-page .identity h1 {
  font-size: 28px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  background: #21381d;
  color: #fff;
  font-size: 12px;
  padding: 14px 24px;
  border-radius: 10px;
  transition: 0.2s;
  max-width: 90vw;
  box-shadow: 0 5px 25px #0002;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .editor-grid {
    gap: 85px;
  }
  .phone {
    height: 790px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 190px;
  }
  main {
    padding: 30px 25px;
  }
  .editor-grid {
    grid-template-columns: minmax(300px, 1fr) 345px;
    gap: 25px;
  }
  .phone {
    width: 340px;
    height: 700px;
  }
  .save-status {
    display: none;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 165px;
    padding: 25px 10px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-pane {
    position: static;
    margin: 15px auto;
    width: 390px;
    max-width: 100%;
  }
  .phone {
    width: 390px;
  }
  .workspace-heading h1 {
    font-size: 22px;
  }
  .workspace-heading {
    align-items: flex-start;
  }
  .client-switch {
    padding: 15px 7px;
  }
  .side-bottom {
    display: none;
  }
}
@media (max-width: 650px) {
  .app-header {
    height: 66px;
    padding: 0 14px;
  }
  .brand b {
    font-size: 13px;
  }
  .brand small {
    display: none;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 27px;
    border-radius: 9px;
  }
  .brand-mark span {
    font-size: 10px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .header-actions .quiet {
    display: none;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    width: auto;
    height: auto;
    position: static;
    display: flex;
    flex-direction: row;
    overflow: auto;
    padding: 10px;
    border-bottom: 1px solid #e1e7db;
    gap: 5px;
  }
  .sidebar .side-label,
  .client-switch,
  .side-bottom {
    display: none;
  }
  .nav {
    width: auto;
    flex: none;
    margin: 0;
    padding: 10px 12px;
    font-size: 11px;
  }
  .nav:first-of-type {
    border-right: 1px solid #e1e7db;
    border-radius: 0;
  }
  .workspace-heading {
    display: block;
    margin-bottom: 25px;
  }
  .workspace-heading h1 {
    font-size: 23px;
  }
  .workspace-heading p {
    line-height: 1.9;
  }
  .workspace-heading > button {
    margin-top: 17px;
  }
  .breadcrumb {
    margin-top: 5px;
    font-size: 10px;
  }
  main {
    padding: 25px 17px 40px;
  }
  .panel {
    padding: 20px;
  }
  .editor-grid {
    gap: 15px;
  }
  .block-row {
    padding: 12px 8px;
    gap: 7px;
  }
  .block-icon {
    width: 31px;
  }
  .block-actions {
    gap: 8px;
  }
  .drag-handle {
    font-size: 16px;
  }
  .phone {
    height: 740px;
  }
  .preview-pane {
    width: 100%;
  }
  .preview-label {
    padding-left: 4px;
    padding-right: 4px;
  }
  .phone {
    margin: auto;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .modal-head,
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px 20px;
  }
  .export-page .page-inner {
    padding-top: 40px;
  }
  .export-page .page-cover {
    margin-top: -40px;
  }
  .library button {
    padding: 16px;
  }
}

.phone-scroll > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #181d19;
}
.full-mobile > iframe {
  width: 100%;
  height: 844px;
  display: block;
  border: 0;
}
.phone {
  width: 404px;
}
.video-card iframe {
  min-height: 200px;
}
.preview-dialog .full-mobile {
  min-height: 0;
}
.preview-dialog .modal-body {
  padding: 14px;
}
.full-mobile {
  width: 390px;
  max-width: 100%;
}

.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.server-actions button {
  font-size: 11px;
}
.published-link {
  display: block;
  padding: 14px;
  border: 1px solid #b7c8ad;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: #426536;
}
.login {
  width: 420px;
  max-width: 90vw;
  margin: 15vh auto;
  padding: 35px;
  background: #fff;
  border: 1px solid #e0e7d9;
  border-radius: 16px;
}
.login h1 {
  font-size: 25px;
}
.login p {
  font-size: 12px;
  color: #87977b;
  line-height: 1.8;
}
.login form {
  margin: 30px 0;
}
.login label {
  font-size: 12px;
}
.login input {
  margin: 10px 0 20px;
}
.login button {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
}
.login small {
  font-size: 10px;
  color: #97a38a;
}
.public-error {
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.export-page .page {
  min-height: 100vh;
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-top: 25px;
}
.login-tabs button {
  width: auto;
  flex: 1;
  font-size: 12px;
}
.login input {
  font-size: 16px;
}

.client-detail > div {
  flex-wrap: wrap;
}
.client-delete {
  padding: 10px 12px;
  margin: 0;
  font-size: 11px;
  border: 1px solid #edd8d8;
  border-radius: 9px;
}
.client-delete:hover {
  background: #fff0f0;
}
.trash-row {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #e3e8de;
}
.trash-row small {
  display: block;
  font-size: 11px;
  color: #899580;
  margin-top: 8px;
}

.native-video video { display:block; width:100%; max-height:720px; background:#050505; aspect-ratio:9/16; object-fit:contain; border-radius:var(--round) var(--round) 0 0; }

.portrait-avatar { display:inline-block; background-repeat:no-repeat; }

.analytics-toolbar{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:24px}.analytics-toolbar label{flex:1;min-width:140px}.analytics-summary{margin:24px 0}.analytics-table-wrap{overflow:auto;max-width:100%;margin:16px 0 32px;border:1px solid #e1e6df;border-radius:12px}.analytics-table{border-collapse:collapse;width:100%;font-size:13px;text-align:right}.analytics-table th,.analytics-table td{padding:12px 16px;border-bottom:1px solid #e8ece5;min-width:90px}.analytics-table thead th{background:#f0f4ee;max-width:200px;min-width:140px;white-space:normal;vertical-align:top}.analytics-table tbody th{text-align:left;white-space:nowrap;background:#fafbf9;position:sticky;left:0}.analytics-table tbody tr:hover{background:#f5f8f2}.analytics-table.link-totals{text-align:left}.link-totals td:first-child{min-width:220px}.link-totals small{display:block;max-width:500px;word-break:break-all;color:#788575;margin-top:6px}.link-totals td:last-child{font-weight:700;text-align:right}#real-metrics{min-width:0}.editor-pane:has(#real-metrics){min-width:0}.editor-grid:has(#real-metrics){display:block}.editor-grid:has(#real-metrics)>.preview-pane{display:none}

.page-footer .footer-attribution { display:flex; align-items:center; justify-content:center; gap:7px; font-size:9px; letter-spacing:1px; }
.dclink-logo { display:inline-flex; align-items:center; gap:4px; font:750 11px/1 system-ui,sans-serif; letter-spacing:1.2px; }
.dclink-logo svg { width:24px; height:21px; flex:none; }

.button-style-fields{border:1px solid #dfe5dc;border-radius:12px;padding:18px;margin:24px 0}.button-style-fields legend{font-weight:700;padding:0 8px}.button-style-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.button-style-grid input[type=color]{height:44px;width:100%;padding:4px}.style-toggle{display:flex;align-items:center;gap:10px;margin-bottom:20px}.style-toggle input{width:auto}.page-link.custom-button b{font-size:var(--button-font-size);font-weight:var(--button-weight);font-family:inherit;line-height:1.5;overflow-wrap:anywhere}.page-link.custom-button small{font-size:max(11px,calc(var(--button-font-size) - 2px));color:inherit;line-height:1.6;overflow-wrap:anywhere}.page-link.custom-button:hover{filter:brightness(1.08)}@media(max-width:450px){.button-style-grid{grid-template-columns:1fr}}
