body {
}

.isomaker-page {
    padding: 1.5rem;
}

.isomaker-header {
    margin-bottom: 1rem;
}

.isomaker-panel {
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

.isomaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.isomaker-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.isomaker-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.isomaker-actions {
    margin-top: 0.75rem;
}

.isomaker-filemeta {
    margin-top: 0.75rem;
    color: #44515c;
}

.isomaker-stage {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    border: 1px solid #c6ccd2;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.isomaker-stage-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.isomaker-stage-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    display: block;
}

.isomaker-stage-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    background: rgba(248, 250, 252, 0.78);
    z-index: 3;
}

.isomaker-overlay-stats {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.2;
}

.isomaker-overlay-line {
    stroke: #ff0055;
    stroke-width: 6;
    stroke-linecap: round;
    opacity: 0.96;
    filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.9));
}

.isomaker-overlay-line-debug {
    stroke: #ff8a00;
    stroke-width: 4;
    stroke-dasharray: 16 10;
    opacity: 0.5;
    filter: none;
}

.isomaker-overlay-text-dot {
    fill: #00c2ff;
    opacity: 0.95;
}

.isomaker-overlay-text {
    fill: #00c2ff;
    font-size: 16px;
    font-weight: 700;
    paint-order: stroke;
    stroke: #001018;
    stroke-width: 3;
}

.isomaker-overlay-text-dot-fallback {
    fill: #ffb000;
}

.isomaker-overlay-text-fallback {
    fill: #ffb000;
}

.isomaker-overlay-symbol {
    fill: rgba(255, 230, 0, 0.35);
    stroke: #ffe600;
    stroke-width: 4;
}

.isomaker-overlay-symbol-label {
    fill: #ffe600;
    font-size: 14px;
    font-weight: 700;
    paint-order: stroke;
    stroke: #2b1600;
    stroke-width: 3;
}

.isomaker-overlay-symbol-fallback {
    fill: rgba(255, 176, 0, 0.2);
    stroke: #ffb000;
}

.isomaker-overlay-symbol-label-fallback {
    fill: #ffb000;
}

.isomaker-overlay-note {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 4;
    max-width: calc(100% - 24px);
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #fff;
}

.isomaker-overlay-note-debug {
    background: rgba(180, 83, 9, 0.88);
}

.isomaker-overlay-note-fallback {
    top: 52px;
    background: rgba(12, 74, 110, 0.86);
}

.isomaker-overlay-note-fallback-symbol {
    top: 92px;
    background: rgba(83, 43, 9, 0.86);
}

.isomaker-overlay-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    color: #334155;
    font-size: 0.9rem;
}

.isomaker-overlay-legend {
    margin-top: 0.75rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.isomaker-semantic-panel {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.isomaker-semantic-panel h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.isomaker-semantic-note {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.isomaker-semantic-group {
    margin-top: 0.5rem;
}

.isomaker-semantic-group ul {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.isomaker-semantic-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.isomaker-semantic-item {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    line-height: 1.5;
}

.isomaker-semantic-label {
    display: inline-block;
    min-width: 92px;
    color: #0f172a;
    font-weight: 600;
}

.isomaker-button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    background: #0f5ea8;
    color: #fff;
    cursor: pointer;
}

.isomaker-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.isomaker-error {
    margin-top: 0.75rem;
    color: #b42318;
}

.isomaker-page pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
