@import url('../../../_system/tokens/diveroid.css');
* { box-sizing: border-box; }
body { font-family: var(--dv-font-body); line-height: 1.6; word-break: keep-all; }
.editor-wrap { max-width: 1320px; margin: auto; padding: 28px 32px 64px; }
.editor-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.editor-top a { font-size: 14px; }
.languages { display: flex; gap: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.languages button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--dv-color-border-subtle); border-radius: 6px; background: var(--dv-color-bg-surface); color: var(--dv-color-text-primary); }
.languages button[aria-pressed=true] { background: var(--dv-color-action-primary); color: var(--dv-color-action-on-primary); border-color: var(--dv-color-action-primary); }
h1 { margin: 0; font-size: clamp(25px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.intro { margin: 8px 0 28px; color: var(--dv-color-text-secondary); max-width: 760px; }
.editor-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.editor-controls { background: var(--dv-color-bg-surface); border: 1px solid var(--dv-color-border-subtle); padding: 24px; border-radius: 12px; }
.field { margin-bottom: 20px; }
.field > label, .field > .field-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
input[type=text], textarea, select { width: 100%; padding: 11px 12px; color: var(--dv-color-text-primary); background: var(--dv-color-bg-canvas); border: 1px solid var(--dv-color-border-strong); border-radius: 6px; font-size: 15px; }
textarea { resize: vertical; min-height: 90px; }
small, .hint { display: block; margin: 6px 0 0; color: var(--dv-color-text-muted); font-size: 12px; }
.check { display: flex; gap: 9px; align-items: center; min-height: 44px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--dv-color-action-primary); }
input[type=file] { width: 100%; font-size: 13px; }
input[type=file]::file-selector-button, .secondary { border: 1px solid var(--dv-color-border-strong); background: var(--dv-color-bg-surface); color: var(--dv-color-text-primary); border-radius: 6px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.secondary { margin-top: 8px; font-size: 13px; }
.download { width: 100%; padding: 13px 16px; border: 1px solid var(--dv-color-action-primary); border-radius: 7px; background: var(--dv-color-action-primary); color: var(--dv-color-action-on-primary); font-weight: 600; min-height: 48px; }
.download:disabled { opacity: .5; cursor: not-allowed; }
.feedback { min-height: 48px; margin: 12px 0 0; font-size: 13px; color: var(--dv-color-text-secondary); }
.feedback[data-error=true] { color: var(--dv-color-signal-danger); }
.preview { margin: 0; min-width: 0; }
.preview-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--dv-color-text-muted); }
.canvas-wrap { position: relative; overflow: hidden; background: var(--dv-color-deep-violet); box-shadow: var(--dv-shadow-md); }
canvas { display: block; width: 100%; height: auto; }
.safe-guide { display: none; position: absolute; left: 0; right: 0; pointer-events: none; color: #fff; background: rgba(7,19,28,.72); text-align: center; font: 12px/1.4 Arial, sans-serif; padding: 8px; }
.safe-guide.top { top: 0; height: calc(250 / 1920 * 100%); border-bottom: 1px dashed #fff; }
.safe-guide.bottom { bottom: 0; height: calc(310 / 1920 * 100%); border-top: 1px dashed #fff; display: none; align-items: end; justify-content: center; }
.show-guides .safe-guide.top { display: block; }
.show-guides .safe-guide.bottom { display: flex; }
figcaption { margin-top: 12px; color: var(--dv-color-text-muted); font-size: 13px; }
[hidden] { display: none !important; }
@media(max-width: 850px) { .editor-grid { grid-template-columns: 1fr; gap: 24px; } .editor-wrap { padding: 20px 18px 40px; } .editor-controls { padding: 20px; } .editor-top { align-items: start; } }
@media print { .editor-top, h1, .intro, .editor-controls, .preview-meta, figcaption, .safe-guide { display: none !important; } .editor-wrap { padding: 0; } .editor-grid { display: block; } .canvas-wrap { box-shadow: none; } }
