/* text-tools 文本处理 —— 复用 life-calc 卡片结构，本文件只写专有类 */
#app {
    --text-dim: #86868b;
    --bg-soft: #f5f6f8;
    --bg-soft-2: #eceef1;
    --tt-border: #e6e8ee;
}
@media (max-width: 768px) {
    #app { padding: 0; }
}

.tt-lead {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.tt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 720px) {
    .tt-grid { grid-template-columns: 1fr; }
}

.tt-col { display: flex; flex-direction: column; min-width: 0; }

.tt-col-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tt-col-head label { font-weight: 600; font-size: 14px; color: var(--text); }
.tt-stat { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.tt-area {
    width: 100%;
    min-height: 280px;
    resize: vertical;
    border: 1px solid var(--tt-border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 14px 14px;
    font-size: 14px;
    line-height: 1.7;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    box-sizing: border-box;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.tt-area:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(74, 108, 247, .12); }
.tt-area[readonly] { background: #fafbfc; }

.tt-op-row { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

.tt-notes { margin: 0; padding-left: 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.9; }
.tt-notes li { margin-bottom: 4px; }
.tt-notes code {
    background: var(--bg-soft);
    border: 1px solid var(--tt-border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12.5px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    color: var(--text);
}
