:root { --primary: #4f46e5; --bg: #f8fafc; --radius: 12px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); padding: 18px; }

.app-wrapper { max-width: 1600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
header { background: white; padding: 15px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
header h1 { font-size: 1.5rem; color: var(--primary); font-weight: 800; }

.main-grid { display: grid; grid-template-columns: 310px 1fr; gap: 15px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 15px; }
.panel-section { background: white; padding: 15px; border-radius: var(--radius); border: 1px solid #e2e8f0; }
.panel-header h2 { font-size: 0.5rem; color: #64748b; text-transform: uppercase; margin-bottom: 10px; }

.input-group { display: flex; flex-direction: column; gap: 4px; }
.input-group label { font-size: 0.65rem; font-weight: 700; color: #94a3b8; }

.utm-compact input { padding: 4px 6px !important; font-size: 0.6rem !important; }
.utm-compact { margin-bottom: 5px; }

input[type="number"], input[type="text"] { padding: 8px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 0.8rem; }
.row-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 10px; }

.canvas-panel { 
    background: #ffffff; 
    border-radius: var(--radius); 
    position: relative; 
    overflow: hidden; 
    border: 1px solid #cbd5e1; 
    cursor: grab;
    height: 85vh; 
    min-height: 800px; 
}
canvas { background: white; }

.polygon-editor-list { background: #f1f5f9; border-radius: 8px; padding: 8px; max-height: 250px; overflow-y: auto; }
.poly-item { display: flex; align-items: center; background: white; padding: 8px; border-radius: 6px; margin-bottom: 5px; border: 1px solid #e2e8f0; font-size: 0.75rem; }

.btn-primary { background: var(--primary); color: white; border: none; padding: 15px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-export { background: white; border: 1px solid #cbd5e1; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.actions-container { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }