/* Manage your listing: sign-in (ManageSignIn mockup) and dashboard (ManageListing mockup). */

/* ---------- Sign in ---------- */
.tdid-ms { padding: 32px 16px 72px; }
.tdid-ms__card { box-sizing: border-box; max-width: 440px; margin: 0 auto; padding: 28px; background: #FFFFFF; border: 1px solid var(--tdid-border, #D5E7E5); border-radius: 18px; }
.tdid-ms__card--wide { max-width: 640px; }
.tdid-ms__card p { margin: 0 0 14px; line-height: 1.6; color: var(--tdid-text); }
.tdid-ms__form { display: flex; flex-direction: column; gap: 18px; }
.tdid-ms__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.tdid-ms__row a, .tdid-ms__foot a { color: var(--tdid-button); font-weight: 700; }
.tdid-ms__remember { display: flex; align-items: center; gap: 8px; }
.tdid-ms__remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--tdid-button); }
.tdid-ms__primary, .tdid-ms__secondary { width: 100%; padding: 14px 28px; border-radius: 28px; font: 700 16px var(--tdid-font-body, Montserrat, Arial, sans-serif); cursor: pointer; }
.tdid-ms__primary { background: var(--tdid-button); color: #FFFFFF; border: 0; }
.tdid-ms__primary:hover, .tdid-ms__primary:focus { background: var(--tdid-text); color: #FFFFFF; }
.tdid-ms__secondary { background: #FFFFFF; color: var(--tdid-button); border: 2px solid var(--tdid-button); }
.tdid-ms__secondary:hover, .tdid-ms__secondary:focus { background: var(--tdid-bg-light, #F2FAF8); color: var(--tdid-button); }
.tdid-ms__or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--tdid-muted); }
.tdid-ms__or::before, .tdid-ms__or::after { content: ""; flex: 1; height: 1px; background: var(--tdid-border, #D5E7E5); }
.tdid-ms__foot { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--tdid-muted); }
.tdid-ms__notice { margin-bottom: 16px; padding: 14px 18px; border-radius: 12px; background: var(--tdid-chip, #DDF1F0); color: var(--tdid-text); font-size: 15px; line-height: 1.5; }

/* Shared fields are sized for rows; in a column they must not stretch. */
.tdid-ms__form > .tdid-es-field,
.tdid-ml-fields > .tdid-es-field,
.tdid-ml-offer-fields > .tdid-es-field { flex: 0 0 auto; }

/* ---------- Dashboard band ---------- */
.tdid-ml-band { padding: 28px 40px; background: var(--tdid-bg-light, #F2FAF8); }
.tdid-ml-band__in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tdid-ml-band__who { font-size: 13px; font-weight: 700; color: var(--tdid-muted); overflow-wrap: anywhere; }
.tdid-ml-band__title { margin: 4px 0 0; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: 34px; line-height: 1.1; color: var(--tdid-accent); }
.tdid-ml-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tdid-ml-switch { margin-top: 8px; font-size: 14px; font-weight: 600; }
.tdid-ml-switch select { margin-left: 6px; padding: 6px 10px; border: 1px solid #9FB4BA; border-radius: 8px; font: inherit; }

.tdid-ml-btn { display: inline-block; padding: 14px 28px; border: 2px solid var(--tdid-button); border-radius: 28px; background: var(--tdid-button); color: #FFFFFF; font: 700 15px var(--tdid-font-body, Montserrat, Arial, sans-serif); line-height: 1.2; text-decoration: none; cursor: pointer; }
.tdid-ml-btn:hover, .tdid-ml-btn:focus { background: var(--tdid-text); border-color: var(--tdid-text); color: #FFFFFF; }
.tdid-ml-btn--outline { background: #FFFFFF; color: var(--tdid-button); padding: 12px 26px; }
.tdid-ml-btn--outline:hover, .tdid-ml-btn--outline:focus { background: var(--tdid-bg-light, #F2FAF8); color: var(--tdid-button); border-color: var(--tdid-button); }

/* ---------- Layout ---------- */
.tdid-ml { padding: 32px 40px 72px; }
.tdid-ml__in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.tdid-ml-nav { flex: 0 0 220px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; }
.tdid-ml-nav a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--tdid-muted); text-decoration: none; }
.tdid-ml-nav a:hover, .tdid-ml-nav a:focus { background: var(--tdid-bg-light, #F2FAF8); color: var(--tdid-text); }
.tdid-ml-nav a.is-current { background: var(--tdid-chip, #DDF1F0); color: var(--tdid-text); font-weight: 800; }
.tdid-ml__main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.tdid-ml__main form { display: flex; flex-direction: column; gap: 24px; }

.tdid-ml-card { box-sizing: border-box; padding: 28px; background: #FFFFFF; border: 1px solid var(--tdid-border, #D5E7E5); border-radius: 18px; scroll-margin-top: 24px; }
.tdid-ml-card--tint { background: var(--tdid-bg-light, #F2FAF8); }
.tdid-ml-h2 { margin: 0 0 14px; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: 22px; color: var(--tdid-accent); }
.tdid-ml-p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--tdid-text); }
.tdid-ml-muted { font-size: 14px; color: var(--tdid-muted); }
.tdid-ml-small { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--tdid-muted); }
.tdid-ml-fields { display: flex; flex-direction: column; gap: 18px; }

/* Overview */
.tdid-ml-status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.tdid-ml-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tdid-ml-chip { display: inline-block; padding: 6px 14px; border-radius: 20px; background: var(--tdid-chip, #DDF1F0); font-size: 13px; font-weight: 800; color: var(--tdid-text); }
.tdid-ml-chip--live { background: var(--tdid-accent); color: #FFFFFF; }
.tdid-ml-tiles { display: flex; flex-wrap: wrap; gap: 14px; }
.tdid-ml-tile { flex: 1 1 140px; padding: 18px; border-radius: 14px; background: var(--tdid-bg-light, #F2FAF8); }
.tdid-ml-tile__n { font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); text-transform: uppercase; letter-spacing: 0.01em; font-size: 24px; color: var(--tdid-text); }
.tdid-ml-tile__l { margin-top: 4px; font-size: 13px; color: var(--tdid-muted); }

/* Locked (Free) fields */
.tdid-es-field.is-locked { color: var(--tdid-muted); }
.tdid-es-field.is-locked input, .tdid-es-field.is-locked textarea { background: #F4F6F7; border-style: dashed; cursor: not-allowed; }
.tdid-es-field > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tdid-ml-upsell { margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: var(--tdid-chip, #DDF1F0); font-size: 15px; line-height: 1.5; }
.tdid-ml-upsell a { color: var(--tdid-button); font-weight: 800; }

/* Areas */
.tdid-ml-areas { margin: 0; padding: 0; border: 0; }
.tdid-ml-areas legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 700; }
.tdid-ml-areas__list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tdid-ml-areas__list label { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tdid-ml-areas input { width: 18px; height: 18px; margin: 0; accent-color: var(--tdid-button); }
.tdid-ml-areas[aria-invalid="true"] legend { color: #B3261E; }

/* Photos */
.tdid-ml-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.tdid-ml-photo { position: relative; overflow: hidden; border-radius: 14px; background: var(--tdid-bg-light, #F2FAF8); border: 2px solid transparent; cursor: grab; }
.tdid-ml-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tdid-ml-photo.is-dragging { opacity: 0.5; }
.tdid-ml-photo.is-over { border-color: var(--tdid-accent); }
.tdid-ml-photo.is-removed img { opacity: 0.3; filter: grayscale(1); }
.tdid-ml-photo__cover { display: none; position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 20px; background: var(--tdid-accent); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.tdid-ml-photo:first-child .tdid-ml-photo__cover { display: inline-block; }
.tdid-ml-photo__remove { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.92); font-size: 12px; font-weight: 700; cursor: pointer; }
.tdid-ml-photo__remove input { margin: 0; accent-color: #B3261E; }
.tdid-ml-photo__move { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.tdid-ml-photo__move button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--tdid-text); font-size: 14px; font-weight: 800; cursor: pointer; }
.tdid-ml-add { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tdid-ml-add input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tdid-ml-add:focus-within .tdid-ml-btn { outline: 2px solid var(--tdid-button); outline-offset: 2px; }
.tdid-ml-add .tdid-ml-btn { cursor: pointer; }

/* Offer */
.tdid-ml-badge { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #FFF6E0; font-size: 14px; font-weight: 600; }
.tdid-ml-badge--live { background: var(--tdid-chip, #DDF1F0); }
.tdid-ml-offer-choice { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.tdid-ml-offer-choice label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.tdid-ml-offer-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--tdid-button); }
.tdid-ml-offer-fields { display: flex; flex-direction: column; gap: 18px; }
.tdid-ml-offer-fields[hidden] { display: none; }

.tdid-ml-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Billing */
.tdid-ml-plan { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--tdid-text); }
.tdid-ml-billing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tdid-ml-billing-actions form { margin: 0; }

@media (max-width: 960px) {
	.tdid-ml-band { padding: 24px 16px; }
	.tdid-ml-band__title { font-size: 26px; }
	.tdid-ml { padding: 20px 16px 56px; }
	.tdid-ml__in { gap: 16px; }
	.tdid-ml-nav { position: static; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
	.tdid-ml-nav a { flex: 0 0 auto; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
	.tdid-ml-card { padding: 20px; }
	.tdid-ml__main { flex-basis: 100%; }
	.tdid-ms__card { padding: 22px; }
}
