:root {
  color-scheme: dark;
  --bg: #11131b;
  --sidebar: #171922;
  --surface: #1d202a;
  --surface-hover: #252936;
  --line: rgba(255,255,255,.075);
  --muted: #8d91a3;
  --text: #f5f5f8;
  --accent: #c4f27d;
  --accent-dark: #a9dd5b;
  --purple: #9872ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 720px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; height: 100vh; overflow: hidden; }
.topbar { height: 66px; padding: 0 27px; background: #14161e; border-bottom: 1px solid var(--line); display: flex; align-items: center; flex-shrink: 0; z-index: 3; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); width: 215px; }
.brand-mark { width: 33px; height: 33px; color: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font: 800 24px/1 "Segoe UI", Arial, sans-serif; letter-spacing: -1.6px; }
.brand-name span { color: var(--accent); }
.project-name { display: flex; align-items: center; gap: 9px; color: #d7d8df; font-size: 12px; }
.project-dot, .status-dot { height: 7px; width: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 9px #c4f27d66; }
.icon-button { border: 0; background: transparent; color: #a9adbc; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; transition: .2s ease; }
.icon-button:hover { background: var(--surface-hover); color: white; }
.rename-button { width: 24px; height: 24px; font-size: 13px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.saved-state { display: flex; align-items: center; gap: 7px; color: #9296a7; font-size: 11px; margin-right: 12px; }
.saved-state i { width: 6px; height: 6px; background: #6fd4a0; border-radius: 50%; }
.button { border: 0; border-radius: 9px; padding: 10px 15px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; }
.button-quiet { color: #b6b8c5; background: transparent; padding: 9px 10px; }
.button-quiet:hover:not(:disabled) { background: var(--surface-hover); color: white; }
.button-quiet:disabled { opacity: .35; cursor: not-allowed; }
.button-export { color: #171a13; background: var(--accent); box-shadow: 0 4px 18px #c4f27d1c; }
.button-export:hover { background: #d2f99a; transform: translateY(-1px); box-shadow: 0 7px 22px #c4f27d2c; }
.button-export span { font-size: 15px; }
.workspace { display: flex; min-height: 0; flex: 1; }
.sidebar { width: 254px; flex: 0 0 254px; background: var(--sidebar); border-right: 1px solid var(--line); padding: 25px 16px 15px; display: flex; flex-direction: column; overflow-y: auto; }
.side-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; color: #73788a; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.shortcut { border: 1px solid #333744; border-radius: 5px; padding: 3px 5px; color: #767b8c; font-size: 9px; letter-spacing: 0; }
.tool-nav { display: grid; gap: 4px; margin-top: 15px; }
.tool-item { border: 0; background: transparent; color: #a7aab8; text-align: left; height: 42px; padding: 0 11px; border-radius: 8px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .18s ease; font-size: 12px; }
.tool-item:hover { background: #20232e; color: white; }
.tool-item.active { background: #292d38; color: var(--accent); }
.tool-icon { width: 19px; text-align: center; font-size: 17px; color: #9da2b2; }
.tool-item.active .tool-icon { color: var(--accent); }
.tool-icon.sparkle { font-size: 18px; }
.mini-tag { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: #c4f27d; background: #c4f27d1b; font-size: 8px; font-weight: 700; letter-spacing: .5px; }
.side-divider { height: 1px; background: var(--line); margin: 19px 0 21px; }
.tool-panel { animation: panel-in .22s ease; }
.hidden { display: none !important; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.panel-title { font: 700 14px "Segoe UI", Arial, sans-serif; letter-spacing: -.3px; margin: 0 0 7px; }
.panel-copy { margin: 0 0 16px; max-width: 210px; color: #898e9f; font-size: 11px; line-height: 1.65; }
.upload-button, .action-button { min-height: 39px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #c4f27d44; border-radius: 8px; background: #c4f27d12; color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.upload-button:hover, .action-button:hover { border-color: var(--accent); background: #c4f27d20; }
.upload-button span, .action-button span { font-size: 17px; }
.secondary-upload { border-color: #3a3d4b; background: #222530; color: #d5d6de; }
.secondary-upload:hover { background: #2a2e3a; border-color: #666b7d; }
.upload-note { text-align: center; color: #696e7e; margin-top: 9px; font-size: 9px; }
.panel-divider { height: 1px; background: var(--line); margin: 20px 0; }
.field-label { display: flex; justify-content: space-between; color: #777c8c; font-weight: 700; font-size: 9px; letter-spacing: .65px; margin: 0 0 11px; }
.field-label span { color: #c4c6cf; letter-spacing: 0; font-weight: 500; }
.size-options { display: flex; gap: 6px; }
.size-chip { flex: 1; background: #21242e; color: #9ca0ae; border: 1px solid #303440; padding: 8px 4px; border-radius: 6px; font-size: 10px; cursor: pointer; }
.size-chip.selected { background: #c4f27d12; border-color: #c4f27d55; color: var(--accent); }
.panel-hint { color: #777c8b; font-size: 10px; line-height: 1.55; margin: 13px 0 0; }
.range-row { display: flex; align-items: center; justify-content: space-between; color: #aeb1bd; font-size: 10px; margin: 19px 0 7px; }
.range-row output { color: #777d8e; font-size: 10px; }
input[type=range] { width: 100%; height: 3px; accent-color: var(--accent); cursor: pointer; }
.text-button { padding: 8px 0; margin-top: 5px; border: 0; background: transparent; color: #a8adbc; cursor: pointer; font-size: 10px; }
.text-button:hover { color: var(--accent); }
.collage-count { margin-top: 22px; font-size: 8px; }
.collage-layouts { display: flex; gap: 8px; margin: 13px 0 15px; }
.layout-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px; border: 1px solid #303440; border-radius: 8px; background: #20232e; color: #aaadba; cursor: pointer; font-size: 17px; }
.layout-card span { font-size: 9px; }
.layout-card.selected { border-color: #c4f27d55; color: var(--accent); background: #c4f27d0c; }
.action-button { justify-content: space-between; padding: 0 12px; margin-top: 13px; }
.action-button span { font-size: 14px; }
.action-pair { display: flex; gap: 7px; margin-top: 8px; }
.small-action { min-height: 36px; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #303440; border-radius: 7px; background: #21242e; color: #b7bac5; font-size: 15px; cursor: pointer; transition: .18s ease; }
.small-action:hover { border-color: #555b6d; color: white; background: #282c37; }
.small-action span { font-size: 9px; }
.layer-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.layer-empty { padding: 12px 10px; border: 1px dashed #353946; border-radius: 7px; color: #777c8b; font-size: 10px; text-align: center; }
.layer-item { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid #303440; border-radius: 7px; background: #20232e; color: #b7bac5; text-align: left; cursor: pointer; transition: .18s ease; }
.layer-item:hover { border-color: #555b6d; color: white; }
.layer-item.selected { border-color: #c4f27d66; background: #c4f27d0c; color: var(--accent); }
.layer-item-icon { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 5px; background: #ffffff0a; font-size: 12px; font-weight: 700; }
.layer-item-name { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.control-label { display: block; color: #777c8c; font-size: 9px; font-weight: 700; letter-spacing: .65px; margin: 0 0 8px; }
textarea { display: block; width: 100%; padding: 10px; resize: vertical; border: 1px solid #343845; border-radius: 7px; outline: none; background: #20232e; color: #f5f5f8; font: inherit; font-size: 11px; line-height: 1.5; }
textarea:focus { border-color: #c4f27d77; }
textarea::placeholder { color: #717687; }
.color-label { margin-top: 16px; }
.color-control { display: flex; align-items: center; gap: 9px; color: #aeb1bd; font-size: 10px; }
.color-control input[type=color] { width: 30px; height: 27px; padding: 2px; border: 1px solid #3a3e4b; border-radius: 6px; background: #222530; cursor: pointer; }
.crop-selection { position: absolute; z-index: 4; border: 1px dashed #e6ffc4; box-shadow: 0 0 0 9999px rgba(8,10,14,.55); pointer-events: none; }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.filter-card { display: grid; gap: 5px; justify-items: center; padding: 5px 3px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #9b9fad; cursor: pointer; font-size: 9px; }
.filter-card:hover { background: #222530; color: white; }
.filter-card.selected { border-color: #c4f27d48; background: #c4f27d0b; color: var(--accent); }
.filter-sample { width: 54px; height: 47px; display: grid; place-items: center; border-radius: 5px; background: linear-gradient(135deg,#d9a07a,#547867 60%,#344859); color: white; font: 700 12px "Segoe UI", Arial, sans-serif; text-shadow: 0 1px 3px #0008; }
.warm-sample { filter: sepia(.35) saturate(1.3); }.mono-sample { filter: grayscale(1); }.vivid-sample { filter: saturate(1.8) contrast(1.08); }.soft-sample { filter: saturate(.72) brightness(1.13); }.vintage-sample { filter: sepia(.5) contrast(.9); }
.sidebar-footer { margin-top: auto; padding: 18px 4px 3px; display: flex; gap: 8px; align-items: center; color: #777c8b; font-size: 9px; border-top: 1px solid var(--line); }
.privacy-icon { color: #93c668; font-size: 13px; }
.sidebar-footer a { color: #aeb1bd; text-decoration: none; transition: color .18s ease; }
.sidebar-footer a:hover { color: var(--accent); }
.editor-area { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background-color: #11131b; background-image: radial-gradient(ellipse at 50% 45%, #272a35 0%, #171922 55%, #14161e 100%); }
.editor-toolbar { height: 54px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff08; flex-shrink: 0; }
.canvas-breadcrumb { display: flex; gap: 10px; align-items: center; color: #747989; font-size: 10px; }
.canvas-breadcrumb strong { color: #c4c6cf; font-weight: 600; }
.crumb-separator { color: #484c5a; }
.canvas-tools { display: flex; align-items: center; gap: 8px; color: #a6a9b5; }
.canvas-tools .icon-button { width: 26px; height: 26px; font-size: 13px; }
.zoom-label { min-width: 44px; text-align: center; font-size: 9px; color: #a2a5b1; }
.toolbar-separator { height: 17px; width: 1px; background: #ffffff19; margin: 0 5px; }
.canvas-stage { flex: 1; position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 30px; }
.canvas-stage.drag-over { outline: 2px dashed #c4f27d88; outline-offset: -10px; background-color: #c4f27d0b; }
#canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 18px 60px #0008; cursor: default; touch-action: none; }
.selection-overlay { position: absolute; z-index: 2; pointer-events: none; }
.text-overlay { position: absolute; z-index: 3; pointer-events: none; }
#canvas.text-drag-ready { cursor: grab; }
#canvas.text-dragging { cursor: grabbing; }
#canvas.brush-active, #canvas.pick-active, #canvas.draw-active, #canvas.crop-active { cursor: crosshair; }
.empty-state { text-align: center; display: flex; align-items: center; flex-direction: column; margin-top: -3vh; animation: appear .7s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.empty-art { width: 194px; height: 164px; position: relative; margin-bottom: 26px; }
.art-glow { position: absolute; width: 150px; height: 130px; left: 20px; top: 13px; border-radius: 50%; background: #a286ff19; filter: blur(25px); }
.art-card { position: absolute; height: 112px; width: 136px; top: 20px; left: 31px; border-radius: 13px; border: 1px solid #ffffff22; box-shadow: 0 16px 35px #08091090; overflow: hidden; }
.art-card-back { transform: rotate(-12deg) translate(-9px, 5px); background: linear-gradient(145deg,#8065d7,#514a82); color: #d7cbff; font-size: 19px; padding: 12px; text-align: right; }
.art-card-front { transform: rotate(7deg); background: linear-gradient(155deg,#b2d8be,#6f9c82 52%,#445d68); }
.art-sun { position: absolute; right: 24px; top: 18px; width: 19px; height: 19px; border-radius: 50%; background: #f8d891; }
.art-hill { position: absolute; bottom: -34px; width: 120px; height: 82px; border-radius: 50% 50% 0 0; transform: rotate(-20deg); background: #426c5c; }
.hill-one { left: -10px; }.hill-two { left: 50px; bottom: -47px; background: #315746; transform: rotate(20deg); }
.art-spark { position: absolute; color: #fff3cc; z-index: 1; }.spark-one { top: 18px; left: 24px; font-size: 15px; }.spark-two { right: 14px; top: 48px; }
.art-plus { position: absolute; right: 5px; bottom: 3px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #242a1c; font-size: 22px; font-weight: 400; box-shadow: 0 5px 19px #c4f27d38; }
.empty-state h1 { margin: 0; font: 700 24px/1.35 "Segoe UI", Arial, sans-serif; letter-spacing: -.8px; color: #f1f1f5; }
.empty-state p { margin: 11px 0 20px; color: #8b8fa0; font-size: 12px; }
.empty-upload { min-width: 164px; }
.drop-tip { margin-top: 12px; color: #656a7a; font-size: 10px; }
.bottom-bar { height: 35px; flex-shrink: 0; border-top: 1px solid #ffffff08; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; color: #767b8a; font-size: 9px; }
.bottom-left,.bottom-right { display: flex; align-items: center; gap: 8px; }
.bottom-left .status-dot { width: 5px; height: 5px; }.bottom-divider { width: 1px; height: 12px; background: #ffffff18; margin: 0 4px; }
.brush-cursor { position: absolute; pointer-events: none; border: 1px solid #d7ff9a; border-radius: 50%; background: #c4f27d22; transform: translate(-50%,-50%); z-index: 2; }
.canvas-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: #222530eF; border: 1px solid #ffffff16; padding: 9px 13px; border-radius: 7px; color: #e4e6ed; font-size: 10px; box-shadow: 0 5px 20px #0004; white-space: nowrap; }
.toast { position: fixed; bottom: 52px; left: 50%; transform: translate(-50%, 10px); background: #2a2e39; border: 1px solid #ffffff1a; color: white; padding: 11px 16px; border-radius: 9px; box-shadow: 0 8px 28px #0005; opacity: 0; pointer-events: none; transition: .22s ease; z-index: 10; font-size: 11px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; background: #090a10b8; backdrop-filter: blur(8px); animation: appear .2s ease; }
.export-modal { position: relative; width: 390px; padding: 28px; border: 1px solid #ffffff16; border-radius: 16px; background: #1b1e28; box-shadow: 0 20px 80px #0009; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 29px; height: 29px; font-size: 20px; }
.modal-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #c4f27d18; color: var(--accent); font-size: 20px; margin-bottom: 17px; }
.export-modal h2 { margin: 0; font: 700 18px "Segoe UI", Arial, sans-serif; letter-spacing: -.4px; }
.export-modal>p { margin: 8px 0 19px; color: #9296a5; font-size: 11px; line-height: 1.6; }
.format-options { display: grid; gap: 8px; }
.format-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 1px solid #343845; border-radius: 8px; background: #20232e; cursor: pointer; text-align: left; }
.format-option strong { color: #e2e4eb; font-size: 11px; }.format-option span { color: #898e9e; font-size: 9px; }
.format-option i { position: absolute; right: 13px; top: 16px; color: var(--accent); font-style: normal; font-size: 12px; }
.format-option.selected { border-color: #c4f27d78; background: #c4f27d0c; }
.download-confirm { width: 100%; margin-top: 16px; padding: 12px; }
.modal-footnote { margin-top: 13px; color: #6f7483; text-align: center; font-size: 9px; }
@media (max-width: 900px) { .sidebar { width: 224px; flex-basis: 224px; padding-left: 12px; padding-right: 12px; }.brand { width: 175px; }.saved-state { display: none; }.canvas-stage { padding: 20px; } }
@media (max-height: 670px) { .sidebar { padding-top: 15px; }.side-divider { margin: 12px 0 14px; }.tool-nav { margin-top: 10px; gap: 2px; }.tool-item { height: 36px; }.sidebar-footer { padding-top: 10px; }.empty-art { transform: scale(.8); margin-bottom: 7px; }.empty-state h1 { font-size: 21px; } }
