/* AutoBama Core: listing submission form, user dashboard and login box. */
.atc-acc { max-width: 1100px; margin: 0 auto 40px; }
.atc-notice { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 600; font-size: 14px; border: 1px solid; }
.atc-notice ul { margin: 6px 0 0; padding-inline-start: 18px; font-weight: 500; }
.atc-notice--ok { background: #ecfdf3; border-color: #a6e9c0; color: #0b5d34; }
.atc-notice--error { background: #fef2f2; border-color: #f6c2c2; color: #8f1d1d; }

/* Form */
.atc-submit__title, .atc-dash__title { margin: 0 0 16px; font-size: 22px; color: var(--at-primary); }
.atc-box { margin: 0 0 16px; padding: 18px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); min-width: 0; }
.atc-box legend { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-weight: 800; font-size: 16px; color: var(--at-ink); }
.atc-box legend span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--at-accent); color: var(--at-ink); font-size: 13px; }
.atc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.atc-acc .atc-f { display: block; margin: 0; }
.atc-acc .atc-f i { color: #c0262d; font-style: normal; }
.atc-acc .atc-f small { display: block; margin-top: 4px; color: var(--at-muted, #5f6973); font-size: 12px; }
.atc-acc .atc-f textarea { width: 100%; border: 1px solid var(--at-line, #e4e8ef); border-radius: 12px; background: var(--at-bg, #f5f7fb); padding: 10px 12px; font: inherit; resize: vertical; }
.atc-acc .atc-f textarea:focus { outline: 0; border-color: var(--at-primary); background: #fff; }
.atc-acc .atc-f input[readonly] { color: var(--at-muted, #5f6973); }
.atc-acc .atc-f--wide { margin-top: 14px; }
.atc-acc :focus-visible { outline: 2px solid var(--at-primary); outline-offset: 2px; }
.atc-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.atc-help { margin: 0 0 12px; color: var(--at-muted, #5f6973); font-size: 13px; }

.atc-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--at-bg, #f5f7fb); }
.atc-seg label { position: relative; cursor: pointer; }
.atc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.atc-seg span { display: block; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--at-muted, #5f6973); }
.atc-seg input:checked + span { background: #fff; color: var(--at-primary); box-shadow: 0 4px 12px -6px rgba(10, 35, 87, .3); }
.atc-seg input:focus-visible + span { outline: 2px solid var(--at-primary); }
.atc-price-words { align-self: end; margin: 0 0 12px; color: var(--at-primary); font-weight: 700; min-height: 1.5em; }
[data-atc-price-wrap][hidden] { display: none; }

/* Photos */
.atc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 10px; }
.atc-photos:empty { display: none; }
.atc-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eef1f6; border: 2px solid transparent; }
.atc-photo.is-cover { border-color: var(--at-accent); }
.atc-photo.is-gone img { opacity: .3; }
.atc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atc-photo label { position: absolute; display: inline-flex; align-items: center; cursor: pointer; font-size: 11px; font-weight: 700; }
.atc-photo input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.atc-photo__cover { inset: 0; align-items: flex-end !important; justify-content: center; padding-bottom: 6px; }
.atc-photo__cover span { padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.atc-photo__cover input:checked + span, .atc-photo:hover .atc-photo__cover span { opacity: 1; }
.atc-photo__cover input:checked + span { background: var(--at-accent); color: var(--at-ink); }
.atc-photo__del { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #b42318; }
.atc-photo__del input:checked + span::before { content: "\2713  "; }
.atc-photo__cover input:focus-visible + span, .atc-photo__del input:focus-visible + span { outline: 2px solid var(--at-primary); opacity: 1; }
.atc-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px; border: 2px dashed #d5dbe5; border-radius: 14px; background: var(--at-bg, #f5f7fb); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.atc-drop:hover, .atc-drop.is-over { border-color: var(--at-primary); background: #fff; }
.atc-drop:focus-within { outline: 2px solid var(--at-primary); outline-offset: 2px; }
.atc-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.atc-drop b { color: var(--at-primary); }
.atc-drop small { color: var(--at-muted, #5f6973); }
.atc-photo-err { margin: 8px 0 0; color: #b42318; font-weight: 600; font-size: 13px; }
.atc-photo-err:empty { display: none; }

.atc-submit__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.atc-submit__btn { min-width: 200px; min-height: 50px; font-size: 16px; }
.atc-submit__foot small { color: var(--at-muted, #5f6973); }
.atc-submit.is-busy .atc-submit__btn { opacity: .6; pointer-events: none; }

/* Login */
.atc-login { max-width: 420px; margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); }
.atc-login__head b { display: block; font-size: 20px; color: var(--at-primary); }
.atc-login__head p { margin: 6px 0 16px; color: var(--at-muted, #5f6973); }
.atc-login form p { margin: 0 0 12px; }
.atc-login label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.atc-login input[type=text], .atc-login input[type=password] { width: 100%; height: 46px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 12px; background: var(--at-bg, #f5f7fb); padding: 0 12px; direction: ltr; }
.atc-login .login-remember label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.atc-login input[type=submit] { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: var(--at-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.atc-login__links { margin: 12px 0 0; text-align: center; font-size: 13px; }

/* Dashboard */
.atc-dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.atc-dash__side { position: sticky; top: 140px; padding: 16px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); }
.atc-dash__user { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--at-line, #e4e8ef); }
.atc-dash__user img { border-radius: 50%; }
.atc-dash__user span { display: flex; flex-direction: column; min-width: 0; }
.atc-dash__user small { color: var(--at-muted, #5f6973); text-align: right; }
.atc-dash__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.atc-dash__nav a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--at-ink); font-weight: 600; text-decoration: none; }
.atc-dash__nav a:hover { background: var(--at-bg, #f5f7fb); }
.atc-dash__nav a.is-on { background: color-mix(in srgb, var(--at-primary) 10%, #fff); color: var(--at-primary); }
.atc-dash__nav i { font-style: normal; min-width: 24px; padding: 0 6px; border-radius: 999px; background: var(--at-bg, #f5f7fb); font-size: 12px; text-align: center; }
.atc-dash__add { width: 100%; }

.atc-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.atc-mine__i { display: flex; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); border-radius: var(--at-radius, 18px); box-shadow: var(--at-shadow); }
.atc-mine__img { flex: 0 0 120px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eef1f6; }
.atc-mine__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atc-mine__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.atc-mine__t a { color: var(--at-ink); text-decoration: none; }
.atc-mine__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--at-muted, #5f6973); font-size: 13px; }
.atc-status { padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.atc-status.is-publish { background: #ecfdf3; color: #0b5d34; }
.atc-status.is-pending { background: #fff7e6; color: #7a4b00; }
.atc-status.is-draft { background: #eef1f6; color: #3d4650; }
.atc-status.is-sold { background: #fef2f2; color: #8f1d1d; }
.atc-mine__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.atc-mine__acts form { margin: 0; }
.atc-mine__btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 10px; background: #fff; color: var(--at-ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.atc-mine__btn:hover { border-color: var(--at-primary); color: var(--at-primary); }
.atc-mine__btn.is-danger { color: #b42318; }
.atc-mine__btn.is-danger:hover { border-color: #b42318; }
.atc-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.atc-empty { padding: 36px 20px; text-align: center; background: #fff; border: 1px dashed #d5dbe5; border-radius: var(--at-radius, 18px); }
.atc-empty b { display: block; font-size: 17px; }
.atc-empty p { margin: 6px 0 16px; color: var(--at-muted, #5f6973); }
.atc-profile .at-btn { margin-top: 16px; }
.atc-pages { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.atc-pages .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--at-line, #e4e8ef); text-decoration: none; color: var(--at-ink); }
.atc-pages .current { background: var(--at-primary); color: #fff; border-color: var(--at-primary); }

@media (max-width: 860px) {
	.atc-dash { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.atc-dash__side { position: static; padding: 12px; }
	.atc-dash__nav { flex-direction: row; overflow-x: auto; gap: 6px; margin-bottom: 10px; scrollbar-width: none; }
	.atc-dash__nav a { flex: 0 0 auto; background: var(--at-bg, #f5f7fb); }
	.atc-box { padding: 14px; }
	.atc-mine__img { flex-basis: 92px; }
	.atc-submit__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .atc-photo__cover span, .atc-drop { transition: none; } }

/* SMS login (module sms-login) */
.atc-otp .atc-f input { width: 100%; height: 50px; border: 1px solid var(--at-line, #e4e8ef); border-radius: 12px; background: var(--at-bg, #f5f7fb); padding: 0 14px; font-size: 18px; letter-spacing: .04em; text-align: left; }
.atc-otp .atc-f input:focus { outline: 0; border-color: var(--at-primary); background: #fff; }
.atc-otp .atc-otp__code { text-align: center; font-size: 24px; letter-spacing: .5em; font-weight: 800; }
.atc-otp__step { display: flex; flex-direction: column; gap: 12px; }
.atc-otp__step[hidden] { display: none; }
.atc-otp__btn { width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: var(--at-accent); color: var(--at-ink); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.atc-otp__btn:disabled { opacity: .6; cursor: wait; }
.atc-otp__sent { margin: 0; color: var(--at-ink); font-weight: 600; line-height: 1.8; }
.atc-otp__testcode { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 8px; background: #fff7e6; color: #7a4b00; font-size: 20px; letter-spacing: .3em; direction: ltr; }
.atc-otp__row { display: flex; justify-content: space-between; gap: 10px; }
.atc-otp__link { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--at-primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.atc-otp__link:disabled { color: var(--at-muted, #5f6973); cursor: default; font-weight: 500; }
.atc-otp__err { margin: 10px 0 0; color: #b42318; font-weight: 600; font-size: 13px; }
.atc-otp__err:empty { display: none; }
.atc-otp__test { margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: #fff7e6; color: #7a4b00; font-size: 12px; font-weight: 600; }
.atc-otp__pass { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--at-line, #e4e8ef); }
.atc-otp__pass summary { cursor: pointer; color: var(--at-muted, #5f6973); font-size: 13px; font-weight: 600; min-height: 32px; }
.atc-otp__pass[open] summary { margin-bottom: 12px; }
.atc-otp .atc-f input::placeholder { color: #a3acb8; opacity: 1; }
