.excelttc-measurement-wrapper {
    max-width: 640px;
    margin: 1rem auto;
    padding: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    color: #111827;
}

.excelttc-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.excelttc-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00B4F8;
}

.excelttc-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #4B5563;
}

.excelttc-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

.excelttc-section {
    margin-bottom: 1rem;
}

.excelttc-section-title {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: #111827;
}

.excelttc-mode-toggle {
    display: flex;
    gap: 0.5rem;
}

.excelttc-toggle-btn {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: #FFFFFF;
    color: #4B5563;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.excelttc-toggle-btn.is-active {
    background-color: #00B4F8;
    color: #FFFFFF;
    border-color: #00A1DF;
    box-shadow: 0 4px 10px rgba(0, 180, 248, 0.35);
    transform: translateY(-1px);
}

.excelttc-toggle-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.excelttc-unit-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.excelttc-unit-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.excelttc-unit-row select {
    border-radius: 999px;
    border: 1px solid #D1D5DB;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    background-color: #F9FAFB;
    color: #111827;
}

.excelttc-help-text {
    font-size: 0.85rem;
    color: #4B5563;
    margin: 0 0 0.5rem;
}

.excelttc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.excelttc-actions-stack .excelttc-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.excelttc-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
    min-width: 120px;
}

.excelttc-btn-primary {
    background-color: #00B4F8;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 180, 248, 0.35);
}

.excelttc-btn-primary:hover {
    background-color: #0092CC;
}

.excelttc-btn-secondary {
    background-color: #F3F4F6;
    color: #111827;
}

.excelttc-btn-secondary:hover {
    background-color: #E5E7EB;
}

.excelttc-btn-danger {
    background-color: #FF2C2C;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(255, 44, 44, 0.35);
}

.excelttc-btn-danger:hover {
    background-color: #E02626;
}

.excelttc-btn-ghost {
    background-color: transparent;
    color: #4B5563;
    border: 1px solid #D1D5DB;
}

.excelttc-btn-ghost:hover {
    background-color: #F3F4F6;
}

.excelttc-btn:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.excelttc-status {
    font-size: 0.85rem;
    color: #059669;
    margin: 0.25rem 0 0.5rem;
}

.excelttc-point-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    max-height: 140px;
    overflow-y: auto;
    border-radius: 10px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
}

.excelttc-point-list li {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
}

.excelttc-point-list li:last-child {
    border-bottom: none;
}

.excelttc-canvas-wrapper {
    margin-top: 0.75rem;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#excelttc-area-canvas {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    background-color: #FFFFFF;
    border-radius: 8px;
}

.excelttc-output {
    min-height: 1.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background-color: #EFF6FF;
    border-left: 3px solid #00B4F8;
    font-size: 0.9rem;
    color: #111827;
    word-break: break-word;
}

.excelttc-error {
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: #FF2C2C;
    margin-top: 0.25rem;
}

.excelttc-footer-note {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6B7280;
}

@media (min-width: 768px) {
    .excelttc-card {
        padding: 1.25rem;
    }

    .excelttc-title {
        font-size: 1.75rem;
    }
}
