.ts-property-tool .container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 24px;
}
.ts-property-tool .content-wrapper {
    display: flex;
    flex-direction: column;
}
.ts-property-tool .form-container { width: 100%; }
.ts-property-tool .results-container { width: 100%; margin-top: 20px; }
.ts-property-tool .form-group { margin-bottom: 20px; }

.ts-property-tool label {
    display: block;
    color: #112b38;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.ts-property-tool .required-tag { color: #d9534f; }
.ts-property-tool .optional-tag {
    color: rgba(17, 43, 56, 0.5);
    font-weight: 400;
    font-size: 12px;
}
.ts-property-tool .field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(17, 43, 56, 0.6);
    font-style: italic;
}

/* Mode toggle */
.ts-property-tool .mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    background: #f5f5f5;
    border-radius: 10px;
}
.ts-property-tool .mode-radio { display: none; }
.ts-property-tool .mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 0;
    background: transparent;
}
.ts-property-tool .mode-option:hover { background: rgba(62, 217, 204, 0.1); }
.ts-property-tool .mode-radio:checked + .mode-option {
    background: #3ed9cc;
}
.ts-property-tool .mode-name {
    font-size: 15px;
    font-weight: 600;
    color: #112b38;
    margin-bottom: 2px;
}
.ts-property-tool .mode-sub {
    font-size: 11px;
    color: rgba(17, 43, 56, 0.6);
}
.ts-property-tool .mode-radio:checked + .mode-option .mode-sub {
    color: rgba(17, 43, 56, 0.8);
}
.ts-property-tool .mode-hint {
    font-size: 13px;
    color: rgba(17, 43, 56, 0.75);
    line-height: 1.5;
    margin: 0 0 20px 0;
    padding: 10px 14px;
    background: rgba(62, 217, 204, 0.08);
    border-left: 3px solid #3ed9cc;
    border-radius: 4px;
}

/* Inputs */
.ts-property-tool textarea,
.ts-property-tool input[type="text"],
.ts-property-tool select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
    background: white;
    color: #112b38;
    font-family: inherit;
}
.ts-property-tool select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23112b38' d='M6 9L1 4h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.ts-property-tool textarea::placeholder,
.ts-property-tool input[type="text"]::placeholder {
    color: rgba(0,0,0,0.3);
}
.ts-property-tool textarea:focus,
.ts-property-tool input[type="text"]:focus,
.ts-property-tool select:focus {
    outline: none;
    border-color: #3ed9cc;
}

/* Radio pill buttons */
.ts-property-tool .radio-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ts-property-tool .radio-button { display: none; }
.ts-property-tool .radio-label {
    padding: 8px 14px;
    border: 2px solid #3ed9cc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #112b38;
    font-size: 14px;
    margin-bottom: 0;
}
.ts-property-tool .radio-button:checked + .radio-label {
    background: #3ed9cc;
    color: #112b38;
}

/* Generate button */
.ts-property-tool button {
    height: 50px;
    width: 100%;
    padding: 12px;
    background-color: #3ed9cc;
    border: 3px solid #3ed9cc;
    color: #112b38;
    font-size: 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.ts-property-tool button:hover { opacity: 0.9; }
.ts-property-tool button:disabled { opacity: 0.5; cursor: not-allowed; }

.ts-property-tool #loading,
.ts-property-tool #error {
    text-align: center;
    margin: 20px 0;
}
.ts-property-tool #error { color: #d9534f; }

/* Results */
.ts-property-tool .result-section {
    background-color: #112b38;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.ts-property-tool .result-section-header { margin-bottom: 16px; }
.ts-property-tool .result-section h2 { margin-bottom: 6px; font-size: 18px; }
.ts-property-tool .result-hint {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-style: italic;
    margin: 0;
}

.ts-property-tool .tips-box {
    background: rgba(62, 217, 204, 0.15);
    border-left: 3px solid #3ed9cc;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.ts-property-tool #results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ts-property-tool .result-item {
    background: rgba(255,255,255,0.1);
    padding: 14px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 15px;
    line-height: 1.4;
}
.ts-property-tool .result-item:hover {
    background: rgba(255,255,255,0.2);
}

.ts-property-tool .title-text {
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
    word-break: break-word;
}

.ts-property-tool .title-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ts-property-tool .title-angle {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    font-size: 12px;
}

.ts-property-tool .char-counter {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(62, 217, 204, 0.25);
    color: #3ed9cc;
    white-space: nowrap;
}
.ts-property-tool .char-counter.near-limit {
    background: rgba(245, 166, 35, 0.25);
    color: #f5a623;
}
.ts-property-tool .char-counter.over-limit {
    background: rgba(217, 83, 79, 0.3);
    color: #ff7b7b;
}

/* Copy feedback */
.ts-property-tool .copy-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF7F58;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}
.ts-property-tool .copy-feedback.show {
    display: block;
    animation: fadeInOut 2s ease-in-out;
}
.ts-property-tool .results { animation: fadeIn 0.5s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@media (max-width: 600px) {
    .ts-property-tool .mode-toggle {
        grid-template-columns: 1fr;
    }
}