:root {
  --ink: #34394d;
  --muted: #7b869b;
  --line: #e4e8f1;
  --bg: #f7f8fc;
  --purple: #75458c;
  --purple-light: #e8d7ef;
  --purple-line: #c99dda;
  --blue: #e7f2ff;
  --mint: #e5f5ee;
  --radius: 13px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #5b6780;
  padding: 10px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f4eef8;
  border-color: #d1bbdf;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a285bc;
  outline-offset: 3px;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
  font-weight: 650;
  margin: 8px 0;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.35px;
}
p {
  color: var(--muted);
}
svg.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.primary {
  background: var(--purple-light);
  border-color: var(--purple-line);
  color: #552066;
}
.primary:hover {
  background: #dfc6e9;
}
.secondary {
  background: #f5f7fc;
  border-color: #e0e6f0;
  color: #596c89;
}
.compact {
  padding: 7px 11px;
  font-size: 12px;
}
.icon-button {
  padding: 9px;
  width: 36px;
  height: 36px;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--purple);
  font-size: 12px;
}
.text-button:hover {
  background: transparent;
  text-decoration: underline;
}
.full {
  width: 100%;
  margin-top: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.7;
}
.app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 16px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 31px;
  color: #26364d;
  font-weight: 750;
  font-size: 20px;
  letter-spacing: 2px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 45px;
  height: 49px;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin-top: 2px;
}
.workspace-label,
.panel-heading {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.15px;
  color: #8a93a6;
}
.workspace-label {
  padding: 10px 12px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px;
  gap: 11px;
  color: #77839a;
  border: 0;
  background: transparent;
  font-weight: 500;
  text-align: left;
  margin-bottom: 5px;
  font-size: 12px;
  border-radius: 8px;
}
.nav-item:hover {
  text-decoration: none;
  background: #f7f4fa;
}
.nav-item.active {
  background: #f2e8f6;
  color: var(--purple);
}
.nav-dot {
  width: 5px;
  height: 5px;
  background: #b99aca;
  border-radius: 50%;
  margin-left: auto;
}
.count {
  font-size: 10px;
  background: #f0f3f9;
  padding: 1px 6px;
  border-radius: 5px;
  margin-left: auto;
}
.sidebar-card {
  margin: 33px 10px 24px;
  background: linear-gradient(135deg, #f1f6fd, #f6effa);
  border: 1px solid #e6e7f3;
  border-radius: 11px;
  padding: 15px 13px;
  font-size: 11px;
}
.sidebar-card strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 8px 0;
}
.sidebar-card p {
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 9px;
}
.local-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: #8db8a3;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e4eee9;
}
.sidebar-card .text-button {
  font-size: 10px;
  justify-content: space-between;
  width: 100%;
}
.sidebar-bottom {
  margin-top: auto;
}
.product-version {
  font-size: 10px;
  color: #9da5b3;
  border-top: 1px solid var(--line);
  padding: 18px 10px 0;
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
}
.product-version span {
  color: #81718e;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.breadcrumbs {
  color: #939bac;
  font-size: 11px;
}
.breadcrumbs span {
  padding: 0 13px;
  color: #cad0dc;
}
.breadcrumbs b {
  font-weight: 500;
  color: #59677f;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.local-badge {
  font-size: 10px;
  color: #748d81;
  display: flex;
  gap: 7px;
  align-items: center;
}
.local-badge i {
  width: 6px;
  height: 6px;
  background: #92b9a3;
  border-radius: 50%;
}
.content {
  max-width: 1800px;
  margin: auto;
  padding: 29px 32px 0;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #9383a3;
  font-weight: 650;
}
.pagehead p {
  font-size: 12px;
  margin: 8px 0 0;
}
.pagehead > .primary {
  padding: 11px 17px;
}
.steps {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.step {
  flex: 1;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 15px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  justify-content: flex-start;
  color: #8390a5;
}
.step.active {
  background: #eee8f6;
  color: #76618e;
}
.step > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e2dfeb;
  background: #fff;
  border-radius: 8px;
  font-size: 10px;
}
.step strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.step small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #919aac;
  margin-top: 2px;
}
.step [data-icon] {
  margin-left: auto;
}
.actionbar {
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 11px;
  margin-bottom: 18px;
  gap: 15px;
  min-width: 0;
}
.document-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.document-title > div {
  min-width: 0;
}
.document-icon {
  width: 36px;
  height: 36px;
  background: #eef3fb;
  color: #8e9fbb;
  border-radius: 9px;
}
.document-title strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.document-title #document-state {
  font-size: 10px;
  display: block;
  color: #919bae;
  margin-top: 3px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.actions button {
  font-size: 11px;
}
.separator {
  width: 1px;
  height: 23px;
  background: var(--line);
  margin: 0 6px;
}
.studio {
  display: grid;
  grid-template-columns: 170px minmax(260px, 1fr) 252px;
  gap: 16px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
}
.tool-panel {
  padding: 19px 10px 13px;
  display: flex;
  flex-direction: column;
}
.panel-heading {
  padding: 0 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool {
  width: 100%;
  padding: 12px 9px;
  border: 0;
  justify-content: flex-start;
  font-size: 11px;
  font-weight: 500;
  margin: 2px 0;
  color: #7f8ca3;
  gap: 10px;
}
.tool.active {
  background: #f2eaf7;
  color: #82589c;
}
.tool:hover {
  background: #f7f3fa;
}
.tool-key {
  font-size: 9px;
  color: #b4adc1;
  margin-left: auto;
}
.history-heading {
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.history-heading span {
  background: #f2f4f8;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 9px;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  max-height: 140px;
  overflow: auto;
  font-size: 10px;
}
.history-list li {
  padding: 6px 0;
  color: #94a0b3;
}
.history-list button {
  font-size: 10px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 400;
  justify-content: flex-start;
  gap: 7px;
}
.history-list li.current button {
  color: #805399;
}
.history-list li.current button:before {
  content: '';
  width: 5px;
  height: 5px;
  background: #b28ac5;
  border-radius: 50%;
}
.tool-footer {
  display: flex;
  gap: 6px;
  font-size: 9px;
  color: #a0a9b8;
  margin: auto 8px 0;
  padding-top: 25px;
}
.tool-footer svg {
  width: 13px;
  height: 13px;
}
.canvas-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 482px;
}
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1px;
  color: #99a2b2;
  min-height: 47px;
}
.canvas-toolbar > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.canvas-toolbar select {
  font-size: 10px;
  width: 64px;
  padding: 4px 5px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #7e8a9e;
  min-height: 25px;
}
.tiny {
  width: 25px;
  height: 25px;
  border: 0;
  background: #f7f8fc;
  padding: 0;
  font-size: 15px;
  color: #9ba5b7;
}
.canvas-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 388px;
  height: calc(100vh - 424px);
  max-height: 900px;
  overflow: auto;
  padding: 28px;
  position: relative;
  background-color: #f1f3f8;
  background-image: radial-gradient(#d5dbe7 0.65px, transparent 0.65px);
  background-size: 12px 12px;
}
.canvas-stage.dragover {
  box-shadow: inset 0 0 0 3px #c99dda;
  background-color: #ece6f5;
}
.canvas-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #9ca6b6;
  min-height: 39px;
}
.canvas-status span:last-child {
  text-align: right;
}
#empty-state {
  text-align: center;
  padding: 17px 0 22px;
}
#empty-state h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  color: #62617c;
  margin: 12px 0;
}
#empty-state p {
  font-size: 10px;
  line-height: 1.8;
  color: #9199ad;
  margin-bottom: 20px;
}
#empty-state > .primary {
  font-size: 11px;
  padding: 10px 16px;
}
#empty-state > .text-button {
  display: flex;
  margin: 12px auto;
  font-size: 10px;
  gap: 9px;
  color: #9690a7;
}
#empty-state > small {
  font-size: 9px;
  color: #a8afbd;
}
.empty-art {
  width: 74px;
  height: 70px;
  border: 1px solid #d5c7e6;
  border-radius: 17px;
  background: linear-gradient(140deg, #fefcff, #e7def2);
  transform: rotate(-8deg);
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto 24px;
  box-shadow: 7px 7px 0 #e8e7f180;
}
.empty-art svg {
  width: 34px;
  height: 34px;
  color: #b699cb;
  stroke-width: 1.15;
}
.empty-art i {
  font-style: normal;
  position: absolute;
}
.empty-art .spark {
  right: -11px;
  top: -12px;
  color: #b6a1cd;
  font-size: 24px;
}
.empty-art .mini {
  left: -10px;
  bottom: 1px;
  width: 25px;
  height: 25px;
  background: #e5f1ed;
  border: 1px solid #cddfd8;
  color: #94b5a8;
  border-radius: 7px;
  font-size: 17px;
}
#canvas-wrap {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
  box-shadow: 0 9px 32px #28314c19;
  background: repeating-conic-gradient(#fff 0% 25%, #e7e9ef 0% 50%) 50%/16px 16px;
}
#preview {
  display: block;
  width: 100%;
  height: 100%;
}
#crop-overlay {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: crosshair;
  overflow: hidden;
}
#crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px #15132770;
  pointer-events: none;
}
#crop-box:before,
#crop-box:after,
#crop-box span {
  content: '';
  position: absolute;
  border: 0 solid #ffffff70;
}
#crop-box:before,
#crop-box:after {
  top: 0;
  height: 100%;
  border-left-width: 1px;
  left: 33.33%;
}
#crop-box:after {
  left: 66.66%;
}
#crop-box span {
  left: 0;
  width: 100%;
  top: 33.33%;
  border-top-width: 1px;
}
#crop-box span + span {
  top: 66.66%;
}
.inspector {
  padding: 18px 19px;
  overflow: auto;
  max-height: calc(100vh - 316px);
  min-height: 482px;
}
.inspector-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.inspector-title h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.inspector-title button {
  font-size: 10px;
}
.inspector-hint {
  font-size: 10px;
  padding: 10px;
  background: #f7f5fb;
  border-radius: 6px;
  color: #9483a2;
  margin-top: 15px;
}
.panel-description {
  font-size: 10px;
  line-height: 1.7;
  margin: 9px 0 20px;
}
.inspector fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.inspector fieldset:disabled {
  opacity: 0.5;
}
.adjustment-group {
  font-size: 9px;
  text-transform: uppercase;
  color: #a0a8b7;
  letter-spacing: 1px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 19px 0 14px;
}
.adjustment {
  margin-bottom: 18px;
}
.adjustment label {
  font-size: 11px;
  font-weight: 400;
  color: #78859b;
  margin: 0 0 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.adjustment output {
  font-size: 10px;
  background: #f6f7fb;
  padding: 1px 6px;
  border-radius: 4px;
  color: #8b91a1;
  min-width: 26px;
  text-align: center;
}
input[type='range'] {
  appearance: none;
  height: 3px;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, #d4bfdf, #e9e7f0);
  border-radius: 3px;
  width: 100%;
  margin: 8px 0 0;
  min-height: 0;
  display: block;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  background: #c7a9d7;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d2bce0;
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 9px;
  height: 9px;
  background: #c7a9d7;
  border: 2px solid white;
  border-radius: 50%;
}
.tip {
  background: #f6f3fc;
  border: 1px solid #eee7f6;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 10px;
  border-radius: 8px;
  margin-top: 25px;
  color: #b5a2c5;
}
.tip p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
  color: #9e91ae;
}
.tip svg {
  width: 14px;
  height: 14px;
}
.below-studio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 1px;
  font-size: 9px;
  color: #a0a9b9;
}
.below-studio > span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
}
.below-studio svg {
  width: 12px;
  height: 12px;
}
.below-studio button {
  font-size: 10px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 19px 0;
  font-size: 9px;
  color: #a6aebc;
}
footer button {
  font-size: 9px;
  color: #8f9bb0;
}
.footer-divider {
  padding: 0 9px;
  color: #c9cfd9;
}
label {
  display: block;
  margin: 15px 0;
  font-size: 11px;
  font-weight: 500;
  color: #748198;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfe4ef;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 12px;
  margin-top: 7px;
  min-width: 0;
}
input[type='color'] {
  height: 36px;
  padding: 4px;
}
input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #9564aa;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label output {
  float: right;
  font-size: 10px;
  font-weight: 400;
}
.transform-grid {
  display: grid;
  gap: 10px;
}
.transform-grid button {
  font-size: 11px;
  justify-content: flex-start;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.filter-card {
  display: flex;
  flex-direction: column;
  padding: 5px 5px 7px;
  font-size: 10px;
  font-weight: 400;
  border-color: #e7e8f0;
}
.filter-card.active {
  background: #f2e8f6;
  border-color: #cbaedb;
  color: #75458c;
}
.filter-card canvas {
  width: 100%;
  height: 57px;
  object-fit: cover;
  border-radius: 5px;
  background: linear-gradient(150deg, #ecd9c5, #919f92);
}
.batch-intro {
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.batch-intro h2 {
  font-size: 23px;
  margin: 10px 0;
}
.batch-intro p {
  margin: 0;
  font-size: 12px;
}
.batch-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}
.batch-layout > .panel {
  padding: 23px;
}
.batch-layout .panel-heading {
  padding: 0 0 16px;
}
.batch-list {
  display: grid;
  gap: 10px;
}
.batch-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
}
.batch-item img {
  width: 56px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
  background: #f3eff7;
}
.batch-item > div {
  min-width: 0;
  flex: 1;
}
.batch-item strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.batch-item small {
  font-size: 10px;
  color: var(--muted);
}
.batch-item button {
  font-size: 10px;
  padding: 6px 9px;
}
.batch-settings h2 {
  font-size: 15px;
}
.notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 16px;
  background: #eef5fd;
  border: 1px solid #d9e5f4;
  border-radius: 9px;
  margin-bottom: 16px;
  font-size: 11px;
  color: #667d99;
}
.notice > div {
  display: flex;
  gap: 8px;
}
dialog {
  border: 1px solid #e2d9eb;
  border-radius: 17px;
  box-shadow: 0 25px 100px #26203733;
  padding: 27px;
  width: 440px;
  max-width: calc(100% - 30px);
  color: var(--ink);
}
dialog::backdrop {
  background: #24304b55;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 7px 0 0;
  font-size: 23px;
}
.dialog-heading > .icon-button {
  font-size: 24px;
  font-weight: 300;
  border: 0;
}
.export-summary {
  padding: 14px;
  background: #f3edf8;
  border: 1px solid #e6d9ee;
  color: #80618f;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 20px;
}
.shortcut-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  font-size: 11px;
  margin: 24px 0;
}
kbd {
  background: #f6f4f9;
  border: 1px solid #e9e3ef;
  border-radius: 5px;
  padding: 3px 5px;
  color: #877194;
  font-size: 10px;
}
#help-dialog p {
  font-size: 12px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #fff;
  border: 1px solid #cfbbdd;
  box-shadow: 0 8px 40px #49365924;
  border-radius: 10px;
  padding: 13px 21px;
  color: #705082;
  max-width: 90%;
  font-size: 12px;
}
#toast.error {
  border-color: #e0a2b2;
  color: #9c3d58;
}
body.busy {
  cursor: progress;
}
body.busy .studio {
  pointer-events: none;
  opacity: 0.65;
}
@media (min-width: 1600px) {
  .studio {
    grid-template-columns: 185px minmax(350px, 1fr) 280px;
  }
  .content {
    padding: 35px 40px 0;
  }
  .canvas-stage {
    min-height: 480px;
  }
  .inspector {
    padding: 22px;
  }
  .tool {
    font-size: 12px;
  }
  .adjustment {
    margin-bottom: 24px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 11px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .brand img {
    width: 38px;
  }
  .content {
    padding: 24px 20px 0;
  }
  .topbar {
    padding: 0 20px;
  }
  .studio {
    grid-template-columns: 136px minmax(220px, 1fr) 218px;
    gap: 10px;
  }
  .tool {
    padding: 11px 7px;
    gap: 7px;
    font-size: 10px;
  }
  .tool-key {
    display: none;
  }
  .inspector {
    padding: 16px 13px;
  }
  .document-title strong {
    max-width: 190px;
  }
  .actions #compare span:last-child {
    display: none;
  }
  .step {
    padding: 10px;
  }
  .step small {
    font-size: 9px;
  }
  .below-studio > span:last-child {
    display: none;
  }
  .pagehead h1 {
    font-size: 25px;
  }
  .sidebar-card {
    margin: 30px 5px;
  }
  .history-list {
    padding: 0 5px;
  }
}
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 10px;
  }
  .brand {
    padding: 0 3px 30px;
  }
  .brand img {
    width: 49px;
    height: 49px;
  }
  .brand > span,
  .workspace-label,
  .sidebar-card,
  .sidebar-bottom,
  .nav-dot,
  .count {
    display: none;
  }
  .sidebar .nav-item {
    font-size: 0;
    gap: 0;
    justify-content: center;
    height: 42px;
  }
  .sidebar .nav-item svg {
    width: 20px;
    height: 20px;
  }
  .studio {
    grid-template-columns: 130px minmax(210px, 1fr) 210px;
  }
  .topbar-right {
    gap: 10px;
  }
  .pagehead h1 {
    font-size: 24px;
  }
  .step small {
    display: none;
  }
  .step strong {
    font-size: 10px;
  }
  .actions button {
    padding: 8px;
  }
  .actionbar {
    padding: 11px;
  }
  .document-title #document-state {
    font-size: 9px;
  }
  .document-title strong {
    max-width: 160px;
  }
  .content {
    padding: 22px 16px 0;
  }
}
@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
    margin-right: auto;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand > span {
    display: block;
    font-size: 14px;
    letter-spacing: 1.5px;
  }
  .brand small {
    font-size: 7px;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
  }
  .sidebar .nav-item {
    width: 36px;
    height: 34px;
    margin: 0;
  }
  .topbar {
    height: 53px;
    padding: 0 16px;
  }
  .local-badge {
    display: none;
  }
  .topbar .compact {
    padding: 5px 8px;
    font-size: 10px;
  }
  .pagehead {
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .pagehead h1 {
    font-size: 23px;
    max-width: 260px;
  }
  .pagehead p {
    font-size: 11px;
  }
  .pagehead > .primary {
    font-size: 10px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  .pagehead .eyebrow {
    font-size: 8px;
  }
  .steps {
    gap: 3px;
    margin-bottom: 14px;
    padding-bottom: 13px;
  }
  .step {
    gap: 6px;
    padding: 9px 7px;
  }
  .step > span:first-child {
    width: 23px;
    height: 23px;
    font-size: 8px;
  }
  .step strong {
    font-size: 9px;
  }
  .step [data-icon] {
    display: none;
  }
  .actionbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .document-title {
    flex: 1;
    min-width: 220px;
  }
  .document-title strong {
    max-width: 230px;
  }
  .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .actions #undo {
    margin-right: auto;
  }
  .actions #compare span:last-child {
    display: block;
  }
  .studio {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .tool-panel {
    padding: 8px;
    order: 0;
  }
  .tool-panel > .panel-heading,
  .history-list,
  .tool-footer {
    display: none;
  }
  .tool-list {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .tool {
    width: auto;
    white-space: nowrap;
    font-size: 10px;
    gap: 5px;
    padding: 9px;
  }
  .tool svg {
    width: 15px;
    height: 15px;
  }
  .canvas-panel {
    order: 1;
    min-height: 370px;
  }
  .canvas-stage {
    height: 380px;
    min-height: 300px;
    padding: 22px;
  }
  .inspector {
    order: 2;
    max-height: none;
    min-height: 0;
    padding: 20px;
  }
  .inspector #panel-adjust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .panel-description,
  .adjustment-group,
  .tip {
    grid-column: 1/-1;
  }
  .inspector-hint {
    margin-bottom: 12px;
  }
  .adjustment-group {
    margin-top: 10px;
  }
  .tip {
    margin-top: 10px;
  }
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-card canvas {
    height: 75px;
  }
  .transform-grid {
    grid-template-columns: 1fr 1fr;
  }
  .below-studio {
    font-size: 8px;
  }
  .below-studio button {
    font-size: 9px;
  }
  footer {
    font-size: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .batch-layout {
    grid-template-columns: 1fr;
  }
  .batch-intro {
    padding: 20px;
    flex-wrap: wrap;
  }
  .batch-intro h2 {
    font-size: 21px;
  }
  .notice {
    flex-wrap: wrap;
  }
  .canvas-status {
    font-size: 8px;
  }
  .shortcut-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shortcut-list kbd {
    margin-bottom: 8px;
    width: max-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
