.ann-toggle-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: min(560px, calc(100vw - 32px));
    background: #111827;
    color: #f9fafb;
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
    font-size: 12px;
}

.ann-label {
    font-weight: 600;
    padding: 0 6px;
}

.ann-toggle-btn {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    cursor: pointer;
    line-height: 1.3;
}

.ann-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.ann-toggle-btn.active {
    background: #2563eb;
    border-color: #2563eb;
}

.ann-toggle-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ann-hint {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 1200;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(124, 45, 18, 0.16);
}

.ann-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    pointer-events: none;
}

.ann-dot {
    position: fixed;
    min-width: 36px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    padding: 0 9px;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    cursor: pointer;
    pointer-events: auto;
}

.ann-dot:hover {
    background: #ea580c;
}

.ann-dot.active {
    background: #dc2626;
}

.ann-dot.editable {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(37, 99, 235, 0.55), 0 6px 14px rgba(249, 115, 22, 0.38);
    cursor: grab;
}

.ann-card {
    position: fixed;
    width: min(360px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    pointer-events: auto;
    padding: 12px 14px;
    color: #374151;
    font-size: 12px;
    line-height: 1.45;
}

.ann-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.ann-card-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
    font-size: 11px;
    font-weight: 700;
}

.ann-card-field {
    margin-bottom: 7px;
}

.ann-card-label {
    color: #6b7280;
    font-size: 11px;
    margin-right: 6px;
}

.ann-target-highlight {
    outline: 2px dashed #f97316;
    outline-offset: 3px;
}

.ann-card-edit {
    width: min(380px, calc(100vw - 32px));
}

.ann-form-label {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin: 8px 0 4px;
}

.ann-form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #111827;
    background: #fff;
}

.ann-form-textarea {
    min-height: 56px;
    resize: vertical;
}

.ann-type-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
}

.ann-type-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.ann-type-option input {
    margin: 0;
    accent-color: #2563eb;
}

.ann-card-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ann-card-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ann-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

.ann-btn.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ann-btn.danger {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

body.ann-dragging,
body.ann-dragging * {
    user-select: none !important;
    cursor: grabbing !important;
}
