.td-app {
    position: relative;
    margin: 1.8rem 0 3rem;
    --td-line: #d5e1eb;
    --td-ink: #17374d;
    --td-pale: #f2f7fb;
}
body:has(.td-app) .tool-heading-title {
    margin-bottom: 8px;
}
body:has(.td-app) .tool-heading > div > p {
    margin: 0 0 12px;
}
body:has(.td-app) .tool-local-note {
    margin: 0 0 15px;
}
.td-app button,
.td-app input,
.td-app select,
.td-app textarea {
    font: inherit;
}
.td-app h2 {
    font-size: 1.1rem;
    margin: 0;
}
.td-app :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.td-start-heading,
.td-column-heading,
.td-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.td-starts {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.td-starts button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    padding: 16px 12px;
    border: 1px solid var(--td-line);
    border-radius: 10px;
    background: #fff;
    text-align: left;
    color: var(--td-ink);
    cursor: pointer;
}
.td-starts .site-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}
.td-starts strong {
    font-size: 0.91rem;
}
.td-starts span {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #526879;
}
.td-starts button:hover {
    background: var(--td-pale);
    border-color: #91afc3;
}
.td-starts button[aria-pressed='true'] {
    background: #e8f2f8;
    border-color: #5b8ba6;
    box-shadow: inset 0 -3px #376d8a;
}
.td-workspace {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.td-preview {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    border: 1px solid var(--td-line);
    border-radius: 14px;
    overflow: hidden;
    background: white;
}
.td-preview-heading {
    padding: 20px 22px 0;
    margin: 0;
}
.td-preview-heading .mono-label {
    font-size: 0.68rem;
    margin: 0 0 5px;
    color: #527189;
}
.td-preview-heading h2 {
    font-size: 1.55rem;
}
.td-hint {
    padding: 0 22px;
    font-size: 0.86rem;
    color: #496678;
    margin: 12px 0 18px;
}
.td-table-frame {
    overflow: auto;
    max-width: 100%;
    border-top: 1px solid var(--td-line);
    border-bottom: 1px solid var(--td-line);
    background: var(--td-pale);
}
.td-table-frame table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 0.79rem;
    white-space: nowrap;
}
.td-table-frame caption {
    text-align: left;
    padding: 10px 15px;
    background: var(--td-pale);
    color: #526879;
    font-size: 0.75rem;
}
.td-table-frame th {
    padding: 11px 14px;
    text-align: left;
    background: #eaf2f8;
    color: #294e67;
    border-bottom: 1px solid var(--td-line);
    font-weight: 650;
}
.td-table-frame td {
    padding: 0;
    border-bottom: 1px solid #e7eef3;
    background: white;
}
.td-table-frame tr:last-child td {
    border-bottom: 0;
}
.td-table-frame tr:nth-child(even) td {
    background: #f8fbfd;
}
.td-table-frame th:first-child,
.td-table-frame td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 var(--td-line);
}
.td-table-frame td button {
    display: block;
    min-width: 100%;
    text-align: left;
    border: 0;
    background: none;
    padding: 10px 14px;
    color: #294257;
    cursor: pointer;
    white-space: pre;
}
.td-table-frame td button:hover {
    background: #e2eef6;
}
.td-actionbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px 16px;
    padding: 0 22px 16px;
}
.td-actionbar label {
    font-size: 0.74rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #526879;
}
.td-actionbar input {
    width: 105px;
}
.td-app input,
.td-app select,
.td-app textarea {
    border: 1px solid #afc4d3;
    border-radius: 5px;
    padding: 7px 9px;
    background: white;
    color: #17374d;
    max-width: 100%;
    box-sizing: border-box;
}
.td-actionbar .btn {
    padding: 9px 20px;
}
.td-actionbar .text-button {
    min-height: 38px;
    font-size: 0.82rem;
}
.td-pass-note,
.td-copy-help {
    padding: 0 22px;
    font-size: 0.75rem;
    color: #526879;
    line-height: 1.7;
}
.td-pass-note button {
    font-size: inherit;
    text-align: left;
}
.td-status {
    background: var(--td-pale);
    padding: 14px 22px;
    font-size: 0.8rem;
    color: #365871;
    min-height: 49px;
}
.td-preview > .tool-error,
.td-preview > .tool-working {
    margin: 12px 22px;
}
.td-columns {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    background: var(--td-pale);
    border: 1px solid var(--td-line);
    border-radius: 14px;
    padding: 18px 14px;
}
.td-column-heading {
    padding: 0 3px;
    margin-bottom: 10px;
}
.td-column-heading span {
    font-size: 0.75rem;
    color: #526879;
}
.td-column {
    background: white;
    border: 1px solid #dce6ee;
    border-radius: 9px;
    padding: 10px;
    margin: 8px 0;
    position: relative;
}
.td-column-name {
    min-width: 0;
    flex: 1;
    font-size: 0.85rem !important;
    font-weight: 600;
    padding: 3px 5px !important;
    border-color: transparent !important;
}
.td-column-name:hover,
.td-column-name:focus {
    border-color: #afc4d3 !important;
}
.td-drag {
    cursor: grab;
    color: #728796;
}
.td-type {
    display: block;
    text-align: left;
    width: 100%;
    border: 0;
    background: none;
    padding: 7px 3px;
    color: #245d7c;
    cursor: pointer;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}
.td-summary {
    font-size: 0.72rem !important;
    text-align: left;
    padding: 0 3px;
    color: #526879;
}
.td-columns > #td-add {
    margin: 12px 4px 2px;
}
.td-card {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #9bb3c5 #eef4f8;
    max-height: calc(100dvh - 32px);
    position: absolute;
    width: 370px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #9eb8ca;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px #153b5726;
    z-index: 5;
    color: var(--td-ink);
}
.td-card h2 {
    padding-right: 24px;
    margin: 0 0 16px;
}
.td-card .td-close {
    position: absolute;
    right: 8px;
    top: 8px;
    border: 0;
    background: none;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #496678;
}
.td-card p {
    font-size: 0.87rem;
    line-height: 1.65;
}
.td-card label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 12px 0;
    font-size: 0.8rem;
}
.td-card label:has([type='checkbox']) {
    flex-direction: row;
    align-items: center;
}
.td-card textarea {
    min-height: 90px;
    resize: vertical;
}
.td-card .td-picker-list {
    max-height: 350px;
    overflow: auto;
    margin-top: 10px;
}
.td-picker-list h3 {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #657e90;
    margin: 16px 0 7px;
}
.td-picker-list button {
    width: 100%;
    display: block;
    text-align: left;
    padding: 9px 8px;
    border: 0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    color: #17374d;
}
.td-picker-list button:hover,
.td-picker-list button:focus {
    background: #eaf3f9;
}
.td-picker-list small {
    display: block;
    color: #5b7282;
    font-size: 0.74rem;
    margin-top: 3px;
    line-height: 1.4;
}
.td-card .td-field-error {
    color: #a6293b;
    font-size: 0.78rem;
}
.td-card [aria-invalid='true'] {
    border-color: #a6293b;
}
.td-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.td-sources {
    padding: 24px;
    background: #f4f8fb;
    border-radius: 12px;
    margin-bottom: 3rem;
}
.td-sources h2 {
    font-size: 1.15rem;
}
.td-sources p,
.td-sources li {
    font-size: 0.85rem;
    line-height: 1.65;
}
.td-sources ul {
    padding-left: 20px;
}
@media (max-width: 1023px) {
    .td-starts {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .td-starts button {
        flex: 0 0 151px;
    }
    .td-workspace {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .td-preview,
    .td-columns {
        width: 100%;
        box-sizing: border-box;
    }
    .td-columns > div#td-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .td-column {
        margin: 0;
    }
    .td-column:has(+ .td-card) {
        grid-column: 1/-1;
    }
    .td-card.td-inline {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        margin: 12px 0;
        grid-column: 1/-1;
    }
    .td-app input,
    .td-app select,
    .td-app textarea {
        font-size: 16px !important;
    }
    .td-card .td-close {
        width: 44px;
        height: 44px;
    }
    .td-start-heading h2 {
        font-size: 1rem;
    }
}
@media (max-width: 540px) {
    .td-columns > div#td-columns {
        display: block;
    }
    .td-column {
        margin: 8px 0;
    }
    .td-preview-heading {
        padding: 17px 14px 0;
    }
    .td-hint {
        padding: 0 14px;
    }
    .td-actionbar {
        padding: 0 14px 14px;
        gap: 10px 13px;
    }
    .td-actionbar .btn {
        flex: 1;
    }
    .td-actionbar label {
        flex: 1;
    }
    .td-actionbar input {
        width: 100%;
    }
    .td-preview-heading h2 {
        font-size: 1.3rem;
    }
    .td-pass-note,
    .td-copy-help {
        padding: 0 14px;
    }
    .td-status {
        padding: 14px;
    }
    .td-table-frame td button {
        min-height: 44px;
    }
    .td-start-heading {
        align-items: baseline;
    }
    .td-start-heading .text-button {
        font-size: 0.78rem;
    }
    .td-card {
        padding: 18px;
    }
}
@media (pointer: coarse) {
    .td-app .text-button,
    .td-picker-list button {
        min-height: 44px;
    }
    .td-card .td-close {
        width: 44px;
        height: 44px;
    }
}
.td-app input[aria-invalid='true'],
.td-app select[aria-invalid='true'],
.td-app textarea[aria-invalid='true'] {
    border-color: #a6293b;
}
.td-card .btn {
    margin-right: 12px;
}
.td-card label[hidden] {
    display: none;
}
.td-actionbar input,
.td-actionbar select,
#td-download {
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
}
#td-download {
    padding: 0 16px;
    line-height: 1.2;
}
.td-actionbar {
    padding-top: 12px;
}
.td-table-frame[aria-busy='true'] {
    overflow: hidden;
}
.td-placeholder {
    display: block;
    height: 12px;
    margin: 11px 12px;
    min-width: 55px;
    background: #dfe9f1;
    border-radius: 3px;
}
#td-loading-detail {
    display: block;
    font-size: 0.75rem;
    margin-top: 5px;
}
#td-loading-detail[hidden] {
    display: none;
}
.td-send-actions {
    display: grid;
    gap: 10px;
}
.td-send-actions .tool-next-action {
    display: block;
    width: 100%;
}
.td-send-actions strong,
.td-send-actions span {
    display: block;
}
.td-send-actions span {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #526879;
}
.td-card h3 {
    font-size: 0.85rem;
    color: #365871;
    margin: 18px 0 8px;
}
/* Keep the first result and its primary action together on the first screen. */
body:has(.td-app) .tool-breadcrumb {
    margin: 16px 0 12px;
}
body:has(.td-app) .tool-heading {
    margin-bottom: 6px;
}
body:has(.td-app) .tool-heading h1 {
    font-size: 2rem;
}
.td-app {
    margin-top: 12px;
}
.td-start-heading {
    margin-bottom: 8px;
}
.td-starts {
    margin-bottom: 14px;
}
.td-starts button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 4px 7px;
    padding: 10px;
}
.td-starts .site-icon {
    width: 22px;
    height: 22px;
    margin: 0;
}
.td-starts strong {
    font-size: 0.8rem;
    line-height: 1.25;
}
.td-starts span {
    grid-column: 1/-1;
    font-size: 0.68rem;
    line-height: 1.35;
}
.td-preview-heading {
    padding: 10px 16px 0;
}
.td-preview-heading .mono-label {
    display: none;
}
.td-preview-heading h2 {
    font-size: 1.2rem;
}
.td-hint {
    padding: 0 16px;
    margin: 5px 0 8px;
}
.td-table-frame {
    height: 245px;
    max-height: 245px;
}
.td-table-frame caption {
    padding: 5px 12px;
}
.td-table-frame th {
    padding: 7px 12px;
}
.td-table-frame td button {
    padding: 6px 12px;
}
.td-actionbar {
    padding: 0 16px 8px;
    gap: 8px 12px;
}
.td-pass-note {
    margin: 6px 0;
}
.td-status {
    min-height: 0;
    padding: 10px 16px;
}
.td-column {
    padding: 6px 8px;
    margin: 6px 0;
}
.td-type {
    padding: 3px;
}
.td-summary {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (min-width: 1024px) {
    .td-start-heading .text-button,
    .td-preview-heading .text-button {
        min-height: 28px;
        padding-top: 0;
        padding-bottom: 0;
    }
    .td-starts span {
        white-space: normal;
    }
    .td-starts {
        margin-bottom: 4px;
    }
    .td-start-heading {
        margin-bottom: 4px;
    }
    .td-table-frame {
        height: 235px;
        max-height: 235px;
    }
    .td-table-frame td button {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    body:has(.td-app) .tool-heading > div > p {
        margin-bottom: 4px;
    }
    body:has(.td-app) .tool-local-note {
        margin-bottom: 8px;
    }
    .td-columns {
        max-height: none;
        overflow: visible;
    }
    .td-preview {
        position: sticky;
        top: 16px;
        align-self: start;
    }
    .td-preview-heading {
        padding-top: 4px;
    }
    .td-column:has(+ .td-card) {
        overflow: visible;
    }
}
@media (max-width: 540px) {
    body:has(.td-app) .tool-breadcrumb {
        margin: 18px 0 14px;
    }
    body:has(.td-app) .tool-heading h1 {
        font-size: 1.72rem;
    }
    body:has(.td-app) .tool-heading .tools-promise {
        margin-bottom: 8px;
    }
    body:has(.td-app) .tool-heading > div > p {
        font-size: 0.82rem;
        line-height: 1.5;
    }
    .td-app {
        margin-top: 12px;
    }
    .td-start-heading {
        margin-bottom: 6px;
    }
    .td-starts button {
        padding: 11px;
        gap: 4px;
        flex-basis: 148px;
    }
    .td-starts .site-icon {
        width: 20px;
        height: 20px;
        margin: 0;
    }
    .td-starts strong {
        font-size: 0.85rem;
    }
    .td-starts span {
        font-size: 0.7rem;
    }
    .td-actionbar label {
        flex: 1 1 40%;
        min-width: 105px;
    }
    .td-actionbar select {
        width: 100%;
    }
    .td-actionbar .btn {
        flex: 1 1 45%;
    }
    .td-hint {
        margin: 7px 0 12px;
    }
    .td-table-frame th {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
.td-app {
    margin-top: 8px;
}
.td-table-frame {
    scrollbar-width: thin;
    scrollbar-color: #9bb3c5 #eef4f8;
}
.td-table-frame td:first-child {
    background: #fff;
}
.td-table-frame th:first-child {
    background: #e8f1f7;
}
.td-table-frame.is-scrolled td:first-child,
.td-table-frame.is-scrolled th:first-child {
    box-shadow: 3px 0 4px -2px #36597160;
}
.td-table-frame .td-header-edit {
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    min-height: 21px;
}
.td-table-frame .td-selected-value {
    background: #d8eaf6;
    box-shadow: inset 0 0 0 2px #427c9f;
}
.td-send-count {
    margin-top: 6px;
    font-size: 13px;
}
.td-send-limit {
    color: #715126 !important;
}
.td-app [data-start] span {
    font-size: 12px;
}
.td-actionbar label {
    font-size: 12px;
}
.td-picker-list small {
    font-size: 12px;
}
/* Column settings stay in the list; the data remains alongside them. */
.td-app .btn {
    min-height: 36px;
    padding: 7px 10px;
    gap: 6px;
    font-size: 12px;
    box-sizing: border-box;
}
.td-app .btn .site-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.td-actionbar {
    gap: 8px;
}
.td-actionbar .btn {
    padding: 7px 10px;
}
#td-copy {
    min-width: 82px;
}
.td-column {
    display: grid;
    align-items: center;
    gap: 0 3px;
    box-sizing: border-box;
    margin: 4px 0;
    -webkit-tap-highlight-color: transparent;
    grid-template-columns: 20px minmax(0, 1fr) 36px;
    grid-template-rows: 28px 28px;
    height: auto;
    min-height: 64px;
    padding: 3px;
    cursor: grab;
}
.td-column:hover {
    background: var(--td-pale);
}
.td-column .td-column-name {
    grid-column: 2;
    grid-row: 1;
    height: 28px;
    width: 100%;
    background: transparent;
    font-size: 13px !important;
}
.td-column .td-type {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    max-width: 100%;
    min-height: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 20px;
    background: var(--td-pale);
    border: 1px solid var(--td-line);
    font-size: 12px;
}
.td-type .site-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.td-type span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-column .td-summary {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    height: auto;
    line-height: 18px;
    cursor: grab;
    padding: 0 4px;
    font-size: 12px !important;
}
.td-column {
    grid-template-rows: 28px 28px 18px;
    min-height: 82px;
}
.td-drag {
    grid-column: 1;
    grid-row: 1/4;
    display: flex;
    align-items: center;
}
.td-drag .site-icon {
    width: 16px;
    height: 20px;
}
.td-menu {
    background: none;
    border: 0;
    color: #526d80;
    border-radius: 4px;
    cursor: pointer;
    grid-column: 3;
    grid-row: 1/4;
    min-height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.td-menu .site-icon {
    width: 18px;
    height: 18px;
}
.td-column.td-editing {
    background: #e8f1f7;
    border-color: #8caec5;
}
.td-columns > #td-add {
    width: 100%;
    margin: 4px 0 0;
    min-height: 82px;
    border: 1px dashed #9aafc0;
}
.td-columns > #td-add:hover {
    border-style: solid;
}
.td-editor {
    grid-column: 1/-1;
    grid-row: 4;
    min-width: 0;
    padding: 10px 8px;
    cursor: default;
    border-top: 1px solid var(--td-line);
    margin-top: 6px;
}
.td-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}
.td-editor-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 22px !important;
    cursor: pointer;
    border-radius: var(--radius);
}
.td-editor-close:hover {
    background: #fff;
}
.td-type-label,
.td-editor label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}
.td-editor label:has([type='checkbox']) {
    flex-direction: row;
    align-items: center;
    min-height: 24px;
}
.td-editor input:not([type='checkbox']),
.td-editor select {
    width: 100%;
    min-width: 0;
    height: 36px;
    font-size: 13px;
    padding: 5px 7px;
}
.td-editor textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}
.td-editor .td-type-select {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
    text-align: left;
}
.td-field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.td-editor .td-field-error {
    color: #a6293b;
    font-size: 12px;
    margin: 4px 0;
}
.td-editor [aria-invalid='true'] {
    border-color: #a6293b;
}
.td-type-panel {
    background: #fff;
    border: 1px solid var(--td-line);
    border-radius: 6px;
    padding: 8px;
    margin-top: 6px;
}
.td-type-panel[hidden],
.td-editor [hidden] {
    display: none !important;
}
.td-editor .td-picker-list {
    max-height: 408px;
    overflow: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #9bb3c5 #eef4f8;
    overscroll-behavior: contain;
}
.td-editor .td-picker-list .td-type-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 32px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 6px;
    font-size: 13px;
}
.td-type-choice .site-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.td-type-choice[aria-pressed='true'] {
    background: var(--td-pale);
}
.td-picker-list strong {
    font-size: 12px;
}
.td-dropdown {
    position: absolute;
    width: 240px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--td-line);
    border-radius: 8px;
    box-shadow: 0 8px 24px #153b5726;
    z-index: 12;
}
.td-dropdown .td-menu-item,
.td-share-actions .td-menu-item {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: #fff;
    color: var(--ink);
    padding: 7px 8px;
    border-radius: 4px;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.td-menu-item .site-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.td-dropdown .td-menu-item:hover,
.td-dropdown .td-menu-item:focus-visible,
.td-share-actions .td-menu-item:hover,
.td-share-actions .td-menu-item:focus-visible {
    background: #f5f7ff;
}
.td-menu-item:disabled {
    opacity: 0.45;
    cursor: default;
}
.td-menu-item small {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.4;
    margin-top: 4px;
}
.td-dropdown .td-danger .site-icon {
    color: #a6293b;
}
.td-menu-divider {
    border-top: 1px solid var(--line);
    margin: 4px 0;
}
.td-caption {
    padding: 8px 22px;
    margin: 0;
    font-size: 12px;
    color: #526879;
    line-height: 1.5;
}
@media (min-width: 1024px) {
    .td-caption {
        padding-top: 2px;
        padding-bottom: 2px;
    }
    .td-starts button {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}
.td-table-frame th {
    padding: 0 !important;
}
.td-table-frame .td-header-edit {
    min-height: 36px;
    width: 100%;
    height: 100%;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.td-header-edit::after {
    content: '✎';
    font-size: 13px;
    opacity: 0.6;
}
.td-header-edit:hover {
    background: #dceaf5;
}
.td-table-frame td.td-editing-cell,
.td-table-frame th.td-editing-cell {
    background: #d8eaf6;
    box-shadow: inset 0 0 0 1px #8caec5;
}
.td-column.td-placeholder-row {
    background: #dae7f0;
    border: 1px dashed #7a9db5;
}
.td-placeholder-row > * {
    visibility: hidden;
}
.td-column.td-dragging {
    z-index: 30;
    box-shadow: 0 12px 30px #17374d40;
    pointer-events: none;
    opacity: 0.97;
    cursor: grabbing;
}
.td-is-dragging,
.td-is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
}
.td-column {
    grid-template-rows: 28px auto;
    min-height: 64px;
}
.td-name-hit {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}
.td-row-detail {
    grid-column: 2 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.td-row-detail .td-type {
    flex: 0 1 auto;
    max-width: 100%;
}
.td-row-detail .td-summary {
    flex: 1 1 100px;
    width: auto;
    padding: 0;
}
.td-drag {
    grid-row: 1/3;
}
.td-menu {
    grid-row: 1;
    height: 28px;
    min-height: 28px;
}
.td-editor {
    grid-row: 3;
}
.td-columns > #td-add {
    min-height: 62px;
}
@media (max-width: 540px) {
    #td-download {
        height: 44px;
        min-height: 44px;
    }
    .td-app .btn,
    .td-app .td-menu-item,
    .td-app .td-editor-close,
    .td-app .td-menu,
    .td-app .td-header-edit {
        min-height: 44px;
    }
    .td-app .td-editor-close,
    .td-app .td-menu {
        width: 44px;
    }
    .td-column {
        grid-template-columns: 18px minmax(0, 1fr) 44px;
        grid-template-rows: 44px auto;
        min-height: 84px;
    }
    .td-column .td-column-name {
        height: 44px;
        font-size: 16px !important;
    }
    .td-column .td-type {
        min-height: 44px;
        height: 44px;
    }
    .td-column .td-summary {
        height: auto;
        line-height: 20px;
    }
    .td-columns > #td-add {
        min-height: 84px;
    }
    .td-editor input:not([type='checkbox']),
    .td-editor select,
    .td-actionbar input,
    .td-actionbar select {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
    }
    .td-editor label:has([type='checkbox']) {
        min-height: 44px;
    }
    .td-actionbar .btn {
        flex: 1 1 42%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .td-app * {
        scroll-behavior: auto !important;
    }
}

.td-editor .td-type-panel > input {
    margin-bottom: 6px;
}
.td-type-description {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 20px;
    height: 20px;
    margin: 4px 0 0;
    color: var(--ink-soft);
}
.td-editor .td-picker-list h3 {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--td-pale);
    height: 24px;
    box-sizing: border-box;
    line-height: 24px;
    padding: 0 6px;
    margin: 0;
    font-size: 11px;
}
.td-share-actions {
    display: grid;
    gap: 2px;
    border: 1px solid var(--td-line);
    border-radius: 6px;
    padding: 4px;
}
.td-card-feedback {
    padding: 8px 10px;
    background: var(--td-pale);
    border-radius: 5px;
}
.td-card .td-card-feedback {
    font-size: 13px;
    line-height: 1.5;
}
@media (pointer: coarse) {
    .td-app button,
    .td-app .btn,
    .td-app .td-menu-item,
    .td-app .td-editor-close,
    .td-app .td-menu,
    .td-app .td-header-edit {
        min-height: 44px;
    }
    #td-download {
        height: 44px;
        min-height: 44px;
    }
    .td-app .td-editor-close,
    .td-app .td-close,
    .td-app .td-menu {
        width: 44px;
    }
    .td-app .td-close {
        height: 44px;
    }
    .td-column {
        grid-template-columns: 18px minmax(0, 1fr) 44px;
        grid-template-rows: 44px auto;
        min-height: 96px;
    }
    .td-name-hit {
        min-height: 44px;
    }
    .td-column .td-column-name {
        height: 38px;
        font-size: 16px !important;
    }
    .td-column .td-type {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
        position: relative;
        background: transparent;
        border-color: transparent;
        border-radius: 0;
    }
    .td-column .td-type::before {
        content: '';
        position: absolute;
        inset: 5px -1px;
        border: 1px solid var(--td-line);
        border-radius: 20px;
        background: var(--td-pale);
        pointer-events: none;
    }
    .td-column .td-type > * {
        position: relative;
    }
    .td-row-detail {
        gap: 0 6px;
    }
    .td-row-detail .td-summary {
        line-height: 18px;
    }
    .td-editor input:not([type='checkbox']),
    .td-editor select,
    .td-card input:not([type='checkbox']),
    .td-card select,
    .td-actionbar input,
    .td-actionbar select {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
    }
    .td-editor .td-type-select,
    .td-editor textarea {
        font-size: 16px;
    }
    .td-app label:has([type='checkbox']) {
        min-height: 44px;
    }
    .td-editor .td-picker-list {
        max-height: min(65dvh, 560px);
    }
    .td-editor .td-picker-list .td-type-choice {
        height: 44px;
        min-height: 44px;
    }
}
