:root {
  font-family:
    Inter,
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #252932;
  background: #f8f9fb;
  font-size: 14px;
  font-synthesis: none;
  --ink: #222730;
  --muted: #69727e;
  --line: #e3e6ec;
  --blue: #302d43;
  --tint: #eeedf3;
  --panel: 252px;
  --right: 248px;
  --shadow: 0 7px 22px #1d294219;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.36;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
button:hover:not(:disabled) {
  background: #f0f2f6;
}
button.primary:hover {
  background: #211e2f;
}
input,
select,
textarea {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
::selection {
  background: #d9d5e6;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #bcc0c9 transparent;
}
[hidden] {
  display: none !important;
}
.ico {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  pointer-events: none;
}
.ico + span {
  min-width: 0;
}
#app {
  height: 100vh;
  height: 100dvh;
  min-height: 325px;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 30px;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0 22px;
  background: white;
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #20242c;
}
.brand span {
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 740;
  font-size: 23px;
  letter-spacing: -1.05px;
}
.brand img {
  width: 33px;
  height: 33px;
}
.head-divider,
.thin-divider,
.status-split,
.dock-sep {
  display: block;
  width: 1px;
  height: 23px;
  background: var(--line);
  flex: none;
}
.project-path,
.top-actions,
.history {
  display: flex;
  align-items: center;
}
.project-path {
  gap: 12px;
  min-width: 0;
}
.workspace-name {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.slash {
  color: #697384;
}
.project-name {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 650;
  font-size: 14px;
  padding: 7px 3px;
  border-radius: 4px;
  min-width: 0;
}
.project-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-name .ico {
  width: 14px;
}
.top-actions {
  margin-left: auto;
  gap: 9px;
}
.history {
  gap: 2px;
}
.head-divider.mini {
  margin: 0 5px;
}
.icon-btn,
.btn,
.avatar,
.dock button,
.view-tabs button,
.mini-tabs button,
.workspace-button,
.foot-right button,
.list-row,
.menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  color: #555f6c;
  flex: none;
}
.icon-btn.sm {
  width: 25px;
  height: 25px;
}
.icon-btn.sm .ico {
  width: 16px;
  height: 16px;
}
.btn {
  gap: 8px;
  height: 35px;
  border: 1px solid #d9dee6;
  border-radius: 6px;
  padding: 0 13px;
  font-weight: 600;
  background: white;
  font-size: 13px;
  white-space: nowrap;
}
.btn .ico {
  width: 15px;
  height: 15px;
}
.btn.primary,
.primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-left: 4px;
  color: #3f3b50;
  background: #edeaf2;
  border: 1px solid #dcd8e4;
  font-size: 12px;
  font-weight: 700;
}
.avatar:hover:not(:disabled) {
  background: #dfdbe7;
}
.workarea {
  display: grid;
  grid-template-columns: var(--panel) minmax(0, 1fr) var(--right);
  min-height: 0;
}
.panel {
  background: white;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.left-panel {
  border-right: 1px solid var(--line);
}
.right-panel {
  border-left: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 27px;
  margin-bottom: 13px;
}
.section-heading h2,
.sub-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: -0.35px;
  font-weight: 720;
}
.section-heading h2 .ico {
  width: 16px;
  height: 16px;
  color: #626b79;
}
.page-section {
  padding: 19px 15px 18px;
  border-bottom: 1px solid var(--line);
}
#page-list {
  display: grid;
  gap: 3px;
  max-height: 26vh;
  overflow: auto;
}
.page-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  padding: 0 10px;
  border-radius: 5px;
  text-align: left;
  color: #56606d;
  font-size: 13px;
  width: 100%;
}
.page-row > .ico {
  width: 16px;
  height: 16px;
}
.page-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-row em {
  font:
    500 10px/1.5 ui-monospace,
    Consolas,
    monospace;
  color: #677183;
}
.page-row.active,
.page-row.active:hover {
  background: var(--tint);
  color: var(--blue);
  font-weight: 680;
}
.page-row.active em {
  color: var(--blue);
}
.library-section {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 19px 16px 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 33px;
  border: 1px solid #dfe3ea;
  border-radius: 5px;
  padding: 0 8px;
}
.search-field > .ico {
  width: 15px;
  color: #7d8795;
}
.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  min-width: 0;
}
.search-field:focus-within {
  border-color: var(--blue);
}
.search-field kbd {
  font-size: 11px;
  color: #6a707a;
  background: #f6f7f9;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.mini-tabs {
  display: flex;
  gap: 3px;
  background: #f1f3f6;
  border-radius: 5px;
  padding: 3px;
  margin: 13px 0 15px;
}
.mini-tabs button {
  height: 27px;
  flex: 1;
  min-width: 0;
  padding: 0 3px;
  font-size: 12px;
  color: #69717d;
  border-radius: 4px;
}
.mini-tabs button.active {
  background: white;
  color: #262e3b;
  box-shadow: 0 1px 3px #202c431c;
  font-weight: 650;
}
#library-content {
  overflow: auto;
  padding: 0 1px 14px;
  flex: 1;
  min-height: 60px;
}
.component-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.tile {
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e1e5ec;
  background: #fff;
  border-radius: 6px;
  color: #5e6774;
}
.tile:hover:not(:disabled) {
  border-color: #b9b4c7;
  background: #f6f5f8;
  color: var(--blue);
}
.tile b {
  font-size: 11px;
  font-weight: 540;
}
.tile-art {
  width: 50px;
  height: 28px;
}
.left-foot {
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}
.workspace-button {
  width: 100%;
  gap: 9px;
  justify-content: flex-start;
  font-size: 12px;
  font-weight: 600;
  height: 36px;
  border-radius: 5px;
}
.workspace-glyph {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8fa;
}
.workspace-glyph + .ico,
.workspace-button > .ico:last-child {
  margin-left: auto;
  width: 14px;
}
.center {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f4f5f8;
}
.canvas-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  flex: none;
  padding: 0 16px;
  gap: 4px;
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
}
.view-tabs button {
  gap: 6px;
  font-size: 12px;
  color: #69717d;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.view-tabs button .ico {
  width: 15px;
  height: 15px;
}
.view-tabs button.active {
  background: var(--tint);
  color: #3c384e;
  font-weight: 670;
}
.view-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.view-tools .icon-btn {
  width: 26px;
  height: 29px;
}
.view-tools .ico {
  width: 15px;
}
.thin-divider {
  height: 15px;
  margin: 0 5px;
}
#zoom-value {
  font:
    550 11px ui-monospace,
    Consolas,
    monospace;
  width: 43px;
  padding: 6px 0;
  border-radius: 4px;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background-color: #f3f4f7;
  background-image: radial-gradient(#c9ced8 0.82px, transparent 0.95px);
  background-size: 15px 15px;
  outline: 0;
  isolation: isolate;
}
.stage.no-dots {
  background-image: none;
}
#art-wrap {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
.art-label {
  position: absolute;
  bottom: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 9px;
  color: #586375;
}
.art-label > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.art-label .ico {
  width: 14px;
  height: 14px;
}
.art-label b {
  font-size: 12px;
  font-weight: 650;
}
.art-label small {
  font:
    11px ui-monospace,
    Consolas,
    monospace;
  color: #727c8d;
}
#artboard {
  position: relative;
  box-shadow:
    0 2px 7px #1720341a,
    0 0 0 1px #d9dee7;
  background: white;
  touch-action: none;
}
#artboard > svg {
  display: block;
}
.dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  border: 1px solid #dadfe6;
  background: white;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 4px 13px #1b274319;
  z-index: 2;
}
.dock button {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  position: relative;
  color: #465160;
}
.dock button.active,
.dock button.active:hover {
  background: var(--blue);
  color: white;
}
.dock button.active .ico {
  stroke-width: 1.8;
}
.dock-sep {
  height: 21px;
  margin: 0 3px;
}
.side-tabs {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 0 18px;
  min-height: 49px;
  border-bottom: 1px solid var(--line);
}
.side-tabs button {
  padding: 0 1px;
  position: relative;
  font-size: 13px;
  color: #707782;
  font-weight: 580;
}
.side-tabs button.active {
  color: #353045;
}
.side-tabs button.active:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--blue);
  bottom: 0;
  left: 0;
  right: 0;
}
#inspector-content {
  overflow: auto;
}
.ins-section {
  padding: 18px 17px;
  border-bottom: 1px solid var(--line);
}
.ins-section h3 {
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ins-section h3 small {
  margin-left: auto;
  font-size: 11px;
  color: #717a86;
  font-weight: 500;
}
.ins-section label.field {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.field > input,
.field > select,
.field > textarea,
.input-like,
.modal input[type="text"],
.modal select {
  border: 1px solid #dce1e8;
  background: white;
  border-radius: 5px;
  min-height: 33px;
  width: 100%;
  padding: 6px 9px;
  color: #364050;
  font-size: 12px;
}
.field > input,
.field > select,
.field > textarea {
  margin-top: 6px;
}
.field > textarea {
  resize: vertical;
  min-height: 55px;
}
.input-like {
  display: flex;
  align-items: center;
  gap: 7px;
}
.input-like .ico {
  width: 15px;
  color: #667386;
}
.ins-card-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kind-bubble {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--tint);
  border-radius: 7px;
}
.ins-card-name strong {
  font-size: 14px;
  display: block;
}
.ins-card-name small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.ins-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.num-field {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid #dce1e8;
  border-radius: 5px;
  background: #fafbfc;
  padding: 0 8px;
  gap: 6px;
  height: 31px;
}
.num-field span {
  font:
    11px ui-monospace,
    Consolas,
    monospace;
  color: #737e8d;
}
.num-field input {
  font:
    12px ui-monospace,
    Consolas,
    monospace;
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  appearance: textfield;
}
.num-field input::-webkit-inner-spin-button {
  appearance: none;
}
.property-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: #647080;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dce1e8;
  border-radius: 5px;
  padding: 3px 6px;
  height: 30px;
  font:
    11px ui-monospace,
    Consolas,
    monospace;
  color: #394355;
}
.color-field input {
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.color-field input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-field input::-webkit-color-swatch {
  border: 1px solid #cdd3de;
  border-radius: 3px;
}
.switch {
  width: 28px;
  height: 17px;
  border-radius: 14px;
  background: #a4acb8;
  position: relative;
}
.switch.on,
.switch.on:hover {
  background: var(--blue);
}
.switch:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
}
.switch.on:after {
  left: 13px;
}
.layer-list {
  display: grid;
  gap: 2px;
}
.layer {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  min-height: 29px;
  padding: 2px 5px;
  color: #596576;
  font-size: 12px;
}
.layer button:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: left;
  padding: 3px 0;
}
.layer button:first-child span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layer .ico {
  width: 14px;
  height: 14px;
}
.layer .visibility {
  visibility: hidden;
  padding: 3px;
}
.layer:hover .visibility,
.layer:focus-within .visibility,
.layer .dim {
  visibility: visible;
}
.dim {
  opacity: 0.55;
}
.layer.active {
  background: var(--tint);
  color: var(--blue);
}
.view-all {
  font-size: 12px;
  color: var(--blue);
  padding: 8px 3px;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--line);
  background: white;
  color: #6b7480;
  padding: 0 17px;
  font-size: 11px;
}
.statusbar > span:first-child,
.foot-right,
.foot-right button {
  display: flex;
  align-items: center;
  gap: 6px;
}
.statusbar .ico {
  width: 14px;
  height: 14px;
}
.statusbar > span:first-child > .ico {
  color: #627d70;
}
.status-split {
  height: 11px;
}
.foot-right {
  margin-left: auto;
  gap: 12px;
}
.foot-right button {
  font-size: 11px;
  border-radius: 4px;
  padding: 3px;
}
.mobile-only,
.inspector-toggle {
  display: none;
}
.spaced {
  margin-top: 7px;
}
.ins-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}
.ins-actions .btn {
  padding: 0 4px;
  height: 29px;
  font-size: 11px;
}
.empty-msg,
.modal-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.dock .shape-more {
  width: 16px;
  margin-left: -5px;
}
.dock .shape-more .ico {
  width: 12px;
}
.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.dialog-error {
  color: #a72c30;
  font-size: 13px;
  line-height: 1.6;
  background: #fff1f1;
  padding: 9px 11px;
  border-radius: 5px;
  margin-top: 12px;
}
.modal .dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.modal .btn {
  font-size: 13px;
  height: 36px;
}
.modal .field {
  display: block;
  font-size: 13px;
  color: #505b6c;
  margin-top: 12px;
}
.modal label.field:first-child {
  margin-top: 0;
}
.modal .field input,
.modal .field select {
  display: block;
  font-size: 14px;
  margin-top: 5px;
  min-height: 37px;
}
.modal .intro {
  line-height: 1.7;
  font-size: 14px;
  color: #465261;
}
.modal .modal-help {
  margin-top: 14px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
}
.account-line,
.share-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.account-line strong {
  overflow-wrap: anywhere;
}
.plan {
  border: 1px solid #cdc9d9;
  border-radius: 4px;
  background: var(--tint);
  font-weight: 650;
  color: var(--blue);
  font-size: 11px;
  padding: 2px 7px;
}
.plan-details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 14px;
}
.plan-details h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.plan-details p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.9;
}
.plan-details .ico {
  color: var(--blue);
}
#overlay,
#drawer-shade {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #19253d55;
}
#overlay {
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(415px, 100%);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 18px 64px #16213429;
  background: white;
  overflow: hidden;
}
.modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
}
.modal > header h2 {
  font-size: 17px;
  font-weight: 710;
  letter-spacing: -0.4px;
}
.modal-body {
  padding: 20px;
  overflow: auto;
}
.modal.wide {
  width: min(1040px, 100%);
}
.modal.preview-modal {
  background: #f4f5f7;
}
.preview-modal > header,
.preview-controls {
  background: white;
}
.preview-modal .modal-body {
  padding: 0;
}
.preview-controls {
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
}
.preview-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.preview-controls select {
  width: auto;
  max-width: 70%;
  min-height: 28px;
}
.preview-sheet {
  display: flex;
  justify-content: center;
  padding: 18px;
}
.preview-sheet > svg {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 68dvh;
  background: white;
  box-shadow: 0 1px 4px #26334420;
}
.preview-sheet [data-link-page] {
  cursor: pointer;
}
.saved-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  text-align: left;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.saved-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-info {
  margin-top: 16px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.share-info b,
.share-info small {
  display: block;
}
.share-info b {
  font-size: 13px;
}
.share-info small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.share-result {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.share-result label {
  flex: 1;
  min-width: 0;
}
.shortcut-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
}
.shortcut-list kbd {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f4f5f7;
  font-size: 11px;
}
.help-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
}
.help-list li + li {
  margin-top: 10px;
}
#popover {
  position: fixed;
  z-index: 25;
  min-width: 178px;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}
.menu-item {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 4px;
  font-size: 13px;
}
#popover hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3px 0;
}
#toast {
  position: fixed;
  z-index: 30;
  bottom: 49px;
  left: 50%;
  transform: translate(-50%, 8px);
  max-width: min(90vw, 520px);
  background: #252c39;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  padding: 8px 14px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#print-area {
  display: none;
}
@media (min-width: 1550px) {
  :root {
    --panel: 270px;
    --right: 264px;
  }
  .tile {
    height: 75px;
  }
}
@media (max-width: 1250px) {
  :root {
    --panel: 214px;
    --right: 215px;
  }
  .topbar {
    gap: 17px;
  }
  .library-section {
    padding-inline: 13px;
  }
  .ins-section {
    padding-inline: 14px;
  }
  .page-section {
    padding-inline: 12px;
  }
  .canvas-bar {
    padding-inline: 10px;
  }
}
@media (max-width: 1020px) {
  :root {
    --panel: 200px;
    --right: 0px;
  }
  .right-panel {
    display: none;
  }
  .inspector-toggle {
    display: inline-flex;
  }
  .canvas-bar .view-tools {
    margin-left: auto;
  }
  .right-panel {
    position: fixed;
    right: 0;
    top: 66px;
    bottom: 30px;
    width: min(270px, 88vw);
    z-index: 12;
    box-shadow: -3px 5px 18px #25304518;
  }
  .open-right .right-panel {
    display: flex;
  }
  #drawer-shade {
    z-index: 10;
    background: #20304724;
    top: 66px;
    bottom: 30px;
  }
  .topbar {
    padding: 0 14px;
  }
  .workarea {
    grid-template-columns: var(--panel) minmax(0, 1fr);
  }
}
@media (max-width: 759px) {
  :root {
    --panel: 0px;
  }
  #app {
    grid-template-rows: 54px minmax(0, 1fr) 26px;
  }
  .workarea {
    display: flex;
  }
  .center {
    flex: 1;
  }
  .left-panel {
    display: none;
    position: fixed;
    top: 54px;
    bottom: 26px;
    left: 0;
    width: min(250px, 85vw);
    z-index: 12;
    box-shadow: 3px 5px 18px #25304518;
  }
  .open-left .left-panel {
    display: flex;
  }
  .right-panel,
  #drawer-shade {
    top: 54px;
    bottom: 26px;
  }
  .mobile-only {
    display: inline-flex;
  }
  .topbar {
    gap: 9px;
    padding: 0 12px;
  }
  .brand {
    gap: 6px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .brand span {
    font-size: 19px;
  }
  .topbar > .head-divider,
  .workspace-name,
  .slash,
  .history,
  .mini {
    display: none;
  }
  .project-name {
    font-size: 12px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .btn {
    height: 31px;
    padding: 0 8px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .canvas-bar {
    height: 43px;
    padding: 0 7px;
    gap: 3px;
  }
  .view-tabs {
    gap: 1px;
  }
  .view-tabs button {
    height: 29px;
    font-size: 11px;
    padding: 0 7px;
    gap: 4px;
  }
  .view-tools {
    gap: 0;
  }
  .view-tools .icon-btn {
    width: 23px;
  }
  .dock {
    bottom: 16px;
    gap: 1px;
  }
  .statusbar {
    padding: 0 10px;
  }
  .side-tabs {
    min-height: 43px;
  }
  .statusbar .status-page {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view-tools .thin-divider {
    margin: 0 2px;
  }
}
@media (max-width: 540px) {
  .brand span {
    font-size: 18px;
  }
  .project-path {
    flex: 1;
    min-width: 35px;
  }
  .top-actions .btn span {
    display: none;
  }
  .top-actions .btn {
    width: 30px;
    padding: 0;
  }
  .project-name {
    font-size: 11px;
  }
  .top-actions .btn.primary span {
    display: inline;
    font-size: 11px;
  }
  .top-actions .btn.primary {
    width: auto;
    padding: 0 8px;
    gap: 4px;
  }
  .view-tabs .ico {
    width: 14px;
  }
  .view-tools .thin-divider,
  .view-tools [data-act="fit"] {
    display: none;
  }
  .view-tools #zoom-value {
    width: 34px;
  }
  .art-label small {
    font-size: 10px;
  }
  .foot-right {
    gap: 5px;
  }
  .dock button {
    width: 32px;
    height: 32px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .side-tabs button {
    min-width: 45px;
  }
  .preview-sheet {
    padding: 6px;
  }
}
@media (max-width: 370px) {
  .brand span {
    display: none;
  }
  .view-tabs button {
    padding-inline: 4px;
  }
  .view-tools .icon-btn {
    width: 19px;
  }
  .canvas-bar {
    gap: 1px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > #print-area {
    display: block !important;
  }
  #print-area svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 96vh;
  }
  @page {
    margin: 5mm;
    size: landscape;
  }
}
.choice-groups {
  display: grid;
  gap: 16px;
}
.choice-groups h3 {
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 7px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.choice-grid .tile {
  height: 60px;
}
#popover {
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
}
.menu-item:focus-visible {
  outline-offset: -2px;
}
@media (max-width: 540px) {
  .topbar {
    gap: 6px;
    padding-inline: 8px;
  }
  .view-tabs button {
    padding-inline: 6px;
  }
  .canvas-bar {
    padding-inline: 5px;
  }
  .canvas-bar > .icon-btn {
    width: 28px;
  }
  .view-tabs {
    flex-shrink: 0;
  }
  .center {
    width: 100%;
  }
}
.shared-viewer#app {
  grid-template-rows: 60px 1fr;
}
.shared-viewer .brand {
  text-decoration: none;
}
.viewer-state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
#viewer-main {
  overflow: auto;
}
#viewer-main > p {
  padding: 24px;
  color: var(--muted);
}
#viewer-main .preview-sheet > svg {
  max-height: calc(100dvh - 145px);
}
#preview-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
