/* ================================== */
/* Lease Renewal Tool                  */
/* ================================== */

.lr-hint {
    font-size: 12px;
    color: var(--color-text-faint);
    margin: 8px 0 0;
}

.lr-hint.hidden { display: none; }

/* Mid-chat attachment button — pinned to the top-right corner of the bar,
   same layout as Weekly Owner Update's #wou-chat scoping */
#lr-results .tool-prompt-bar {
    position: relative;
}

#lr-results .br-input {
    padding-right: 36px;
}

.lr-or-divider {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-faint);
    margin: 14px 0 8px;
}

.lr-upload-setting {
    max-width: 400px;
    margin: 4px auto 16px auto;
    text-align: left;
}

.lr-paste-textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-text);
}

/* ── Review state: table + settings side by side ── */
.lr-review-layout {
    display: flex;
    gap: 20px;
    padding: 16px;
    align-items: flex-start;
}

.lr-review-table-wrap {
    flex: 1.4;
    min-width: 0;
}

.lr-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.lr-review-table th {
    text-align: left;
    padding: 6px 8px;
    color: var(--color-text-faint);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-medium);
}

.lr-review-table td {
    padding: 4px 6px;
    border-bottom: 1px solid var(--color-border);
}

.lr-cell {
    width: 100%;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--color-text);
    background: transparent;
}

.lr-cell:hover, .lr-cell:focus {
    border-color: var(--color-border-strong);
    background: #fff;
    outline: none;
}

.lr-cell-narrow { width: 100px; }

.lr-row-remove {
    border: none;
    background: transparent;
    color: var(--color-text-faint);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 2px 6px;
}

.lr-row-remove:hover { color: var(--color-error); }

.lr-add-row-btn {
    margin-top: 8px;
    border: 1px dashed var(--color-border-strong);
    background: transparent;
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.lr-add-row-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }

.lr-inner-back-btn {
    padding: 6px 12px;
    border: 1px solid var(--color-border-strong, #d1d5db);
    background: #fff;
    border-radius: var(--radius-md, 8px);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.lr-inner-back-btn:hover {
    background: var(--color-bg-muted, #f3f4f6);
    border-color: var(--color-text-faint);
}

/* ── Settings panel ── */
.lr-settings-panel {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lr-setting-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--color-text);
}

.lr-required {
    color: var(--color-error);
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lr-setting-input {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 7px 9px;
    font-family: inherit;
    font-size: 13px;
    color: var(--color-text);
}

/* ── Owner summary cards ── */
.lr-owner-card {
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: 10px;
    margin-bottom: 8px;
}

.lr-owner-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lr-owner-prop-count {
    font-size: 11px;
    color: var(--color-text-faint);
}

.lr-owner-assign-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: var(--color-warning, #b45309);
    margin-bottom: 8px;
}

.lr-owner-assign-input {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    font-family: inherit;
    font-size: 12px;
    color: var(--color-text);
}

.lr-owner-template-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11.5px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.lr-owner-template {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    font-family: inherit;
    font-size: 12px;
}

.lr-owner-notes {
    width: 100%;
    resize: vertical;
    min-height: 44px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    padding: 6px 7px;
    font-family: inherit;
    font-size: 12px;
    color: var(--color-text);
}

/* ── Results: comp-research source citations under each email card ── */
.lr-comp-sources {
    border-top: 1px solid var(--color-border);
    margin-top: 10px;
    padding-top: 8px;
    font-size: 11px;
    color: var(--color-text-faint);
}

.lr-comp-sources-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.lr-comp-source-property { margin-bottom: 2px; }

.lr-comp-source-property a {
    color: var(--color-primary);
    text-decoration: none;
}

.lr-comp-source-property a:hover { text-decoration: underline; }

.lr-respondby-warning {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid var(--color-warning);
    border-left-width: 3px;
    border-radius: 8px;
    background: var(--color-warning-bg);
    font-size: 13px;
    line-height: 1.4;
}
.lr-respondby-warning.hidden { display: none; }

.lr-respondby-warning-head {
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--color-warning);
}

.lr-respondby-warning-list {
    margin: 0 0 6px;
    padding-left: 18px;
}

.lr-respondby-warning-list li { margin: 2px 0; }

.lr-respondby-warning-foot {
    margin: 0;
    color: var(--color-text-secondary, #555);
}

@media (max-width: 720px) {
    .lr-review-layout { flex-direction: column; }
}
