@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root { --editor-ink: #0f172a; --editor-line: #d9dee7; }
.app { height: 100dvh; }
.workspace { min-height: 0; overflow: hidden; }
.toolbar, .workspace-controls, .bottom-tools { flex-shrink: 0; }
.canvas-zone { flex: 1 1 0; min-height: 0; }
header { background: #fff; color: var(--editor-ink); border-color: var(--editor-line); height: 60px; flex-shrink: 0; }
.brand span { color: #64748b; }
.brand .mark { background: var(--editor-ink); color: #fff; }
.top-actions label { color: #334155; }
.top-actions input { color: var(--editor-ink); background: #fff; border-color: var(--editor-line); }
.top-actions .ghost, .top-actions .primary { background: var(--editor-ink); color: #fff; }
nav { background: #fff; border-right: 1px solid var(--editor-line); padding: 4px; gap: 0; }
nav button { color: var(--editor-ink); border-radius: 4px; border-bottom: 1px solid var(--editor-line); padding: 14px 2px; }
nav button.on { background: var(--editor-ink); color: #fff; }
nav button svg { height: 25px; width: 25px; }
.left h2, nav button, .editor-title, .upload-button, .add-text-card, .right-head, .top-actions button { font-family: Oswald, sans-serif; }
.left, .right { padding: 12px; }
.left h2 { font-size: 20px; margin-bottom: 10px; }
.large-drop { background: #fff; border-radius: 3px; padding: 15px 10px; gap: 8px; }
.upload-button, .editor-title { background: var(--editor-ink); color: #fff; }
.artwork-card, .add-text-card { border-radius: 2px; }
.artwork-card small { background: #000; color: #fff; }
.artwork-preview b { background: var(--editor-ink); color: #fff; border-radius: 3px 0 0 0; }
.toolbar { flex-wrap: wrap; height: auto; min-height: 48px; gap: 5px; }
.toolbar select { min-width: 0; max-width: 240px; }
.toolbar-margin { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.toolbar-margin input { width: 63px; border: 1px solid var(--editor-line); border-radius: 4px; padding: 6px 3px; }
.canvas-zone.pan-mode, .canvas-zone.pan-mode canvas { cursor: grab !important; }
.canvas-zone.panning, .canvas-zone.panning canvas { cursor: grabbing !important; }
.sheet-shadow { border: 1px dashed #2590c0; }
.sheet-shadow canvas { background-image: linear-gradient(45deg,#d2d5d9 25%,transparent 25%),linear-gradient(-45deg,#d2d5d9 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d2d5d9 75%),linear-gradient(-45deg,transparent 75%,#d2d5d9 75%); }
.sheet-card { padding: 9px; border-radius: 4px; }
.sheet-card.on { background: #fff; border-color: var(--editor-ink); }
.sheet-select { border: 0; padding: 0; text-align: left; background: none; width: 100%; color: var(--editor-ink); }
.sheet-select strong { font-size: 12px; }
.sheet-name { width: 100%; margin: 8px 0; border: 1px solid transparent; background: transparent; padding: 5px; color: var(--editor-ink); }
.sheet-name:hover, .sheet-name:focus { border-color: var(--editor-line); background: #f8fafc; }
.sheet-card-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; }
.sheet-card-actions label { display: flex; align-items: center; gap: 4px; }
.sheet-card-actions input { width: 50px; border: 1px solid var(--editor-line); border-radius: 4px; padding: 4px; }
.sheet-card-actions button { border: 0; background: none; padding: 4px 0; color: var(--editor-ink); font-size: 11px; text-decoration: underline; }
.text-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.text-tools input[type=color] { padding: 3px; height: 35px; }
.position-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.position-tools label { margin: 0; }
.alignment-tools { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.alignment-tools button { padding: 7px 2px; background: #f8fafc; border: 1px solid var(--editor-line); color: var(--editor-ink); border-radius: 4px; font-size: 11px; }
@media(min-width:1101px) { .app main { grid-template-columns: 62px 260px minmax(0,1fr) 250px; } }
@media(max-width:700px) { .toolbar-margin { font-size: 11px; } header { height: auto; min-height: 54px; } }
