/* Installation-owned hosting access panels. Extends the addon's .wu-hosting-card tokens. */
.tgc-hosting-tools { overflow-wrap: anywhere; }
.tgc-hosting-tool { padding: 20px 0; border-top: 1px solid #e1e7ef; }
.tgc-hosting-tools > h2 + .tgc-hosting-tool { border-top: 0; padding-top: 4px; }
.tgc-hosting-tool h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 18px; line-height: 1.4; }
.tgc-hosting-tool h4 { margin: 24px 0 8px; font-size: 16px; }
.tgc-hosting-tool p { margin: 0 0 12px; }
.tgc-hosting-tool ul { margin: 0 0 12px; padding-left: 20px; }
.tgc-hosting-help { color: #46556a; font-size: 14px; }
.tgc-hosting-notice { padding: 12px 14px; background: #f0f5ff; border-left: 3px solid #1456b8; }
.tgc-hosting-status { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; line-height: 1.6; background: #e9f1ff; color: #164a91; }
.tgc-hosting-status--active { background: #e5f5ea; color: #17643a; }
.tgc-hosting-status--pending { background: #fff3dc; color: #7a4b00; }
.tgc-hosting-disclosure { margin: 12px 0; padding: 0 16px; border: 1px solid #e1e7ef; border-radius: 8px; background: #f8fafc; }
.tgc-hosting-disclosure > summary { min-height: 44px; margin: 0 -16px; padding: 11px 16px; cursor: pointer; font-weight: 600; }
.tgc-hosting-disclosure[open] > summary { margin-bottom: 8px; border-bottom: 1px solid #e1e7ef; }
.tgc-hosting-disclosure details { margin: 10px 0; padding: 0 12px; border: 1px solid #e1e7ef; border-radius: 6px; background: #fff; }
.tgc-hosting-disclosure details > summary { min-height: 40px; margin: 0 -12px; padding: 9px 12px; cursor: pointer; font-weight: 600; }
.tgc-hosting-command { margin: 8px 0 14px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 6px; background: #0f172a; color: #e2e8f0; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tgc-hosting-command code { background: none; color: inherit; padding: 0; font: inherit; }
.tgc-hosting-tools code { overflow-wrap: anywhere; }
.tgc-hosting-tools dl { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; margin: 0 0 12px; }
.tgc-hosting-tools dt { font-weight: 600; }
.tgc-hosting-tools dd { margin: 0; min-width: 0; }
.tgc-hosting-form { display: grid; gap: 8px; margin: 16px 0; }
.tgc-hosting-form label { font-weight: 600; }
.tgc-hosting-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c5d0dd; border-radius: 6px; background: #fff; color: #172033; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tgc-hosting-button, .tgc-hosting-tools button[type="submit"] { justify-self: start; min-height: 44px; padding: 10px 16px; border: 1px solid #1456b8; border-radius: 6px; background: #1456b8; color: #fff; font: 600 14px/1.6 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.tgc-hosting-button--secondary { background: #fff; color: #1456b8; }
.tgc-hosting-tools :focus-visible { outline: 3px solid #172033; outline-offset: 3px; }
.tgc-hosting-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.tgc-sftp-page { margin: 0; padding: 24px 16px; background: #f8fafc; color: #172033; font: 16px/1.6 system-ui, sans-serif; }
.tgc-sftp-page main { max-width: 860px; margin: 0 auto; padding: 24px; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; }
.tgc-sftp-page h1 { font-size: 30px; line-height: 1.3; }
.tgc-sftp-page a:not(.tgc-hosting-button) { color: #1456b8; }
.tgc-sftp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tgc-sftp-actions[hidden] { display: none; }
.tgc-sftp-actions button:disabled { opacity: .55; cursor: not-allowed; }
.tgc-sftp-actions [hidden] { display: none; }
.tgc-sftp-setup { border-top: 0; padding-top: 0; }
.tgc-sftp-setup > .tgc-hosting-disclosure { margin: 16px 0; }
.tgc-sftp-setup ol { padding-left: 24px; }
.tgc-sftp-setup li { margin-bottom: 10px; }
.tgc-sftp-setup [hidden] { display: none; }
.tgc-key-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tgc-key-table caption { text-align: left; padding-bottom: 12px; }
.tgc-key-table th, .tgc-key-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e1e7ef; }
.tgc-key-table th:first-child { width: 60%; }
.tgc-key-table code { overflow-wrap: anywhere; }
.tgc-key-delete { margin-top: 8px; }
.tgc-key-delete > summary { min-height: 44px; cursor: pointer; color: #a51f1f; }
.tgc-hosting-tools button.tgc-hosting-button--danger { background: #a51f1f; border-color: #a51f1f; }
.tgc-key-add-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.tgc-key-add { border: 1px solid #c5d0dd; border-radius: 6px; padding: 0 16px; }
.tgc-key-add > summary { min-height: 44px; margin: 0 -16px; padding: 12px 16px; cursor: pointer; font-weight: 600; color: #1456b8; }
.tgc-key-add:first-child > summary { background: #1456b8; color: #fff; border-radius: 5px; }
.tgc-key-add[open] { grid-column: 1 / -1; padding-bottom: 16px; }
.tgc-key-add[open] > summary { margin-bottom: 16px; }
@media (max-width: 560px) {
	.tgc-key-add-actions { grid-template-columns: 1fr; }
	.tgc-hosting-tools dl { grid-template-columns: 1fr; gap: 2px; }
	.tgc-hosting-tools dd { margin-bottom: 8px; }
	.tgc-hosting-button, .tgc-hosting-tools button[type="submit"] { justify-self: stretch; }
}
