/*
 * AmbilTugas — tampilan frontend.
 * Semua warna, sudut, dan bayangan mengambil variabel tema Alinea
 * (--wp--preset--*, --wp--custom--*), jadi otomatis ikut warna brand
 * dan dark mode tema. Nilai setelah koma adalah cadangan bila tema diganti.
 */
.at {
    --at-primary: var(--at-brand, #0c70de);
    --at-primary-2: var(--at-brand-2, #22b8ff);
    --at-gradient: var(--at-grad, linear-gradient(135deg, #0c70de 0%, #22b8ff 100%));
    --at-on-primary: #ffffff;
    --at-bg: var(--wp--preset--color--background, #fff);
    --at-fg: var(--wp--preset--color--foreground, #f5f5f5);
    --at-line: var(--wp--preset--color--outline, #e5e5e5);
    --at-heading: var(--wp--preset--color--heading, #171717);
    --at-body: var(--wp--preset--color--body, #171717);
    --at-meta: var(--wp--preset--color--meta, #7c7c7c);
    --at-link: var(--wp--preset--color--text-link, var(--at-brand, #0c70de));
    --at-success: var(--wp--custom--color--success, #27ae60);
    --at-danger: var(--wp--custom--color--danger, #b91c1c);
    --at-warning: #6d5dfc; /* ungu-biru: status menunggu (tanpa kuning/oranye) */
    --at-info: var(--wp--custom--color--info, #2f80ed);
    --at-r: var(--wp--custom--border-radius--large, 8px);
    --at-r-sm: var(--wp--custom--border-radius--medium, 5px);
    --at-shadow: var(--wp--preset--shadow--medium, 0 .125rem .375rem rgba(0,0,0,.05), 0 .5rem 1.2rem rgba(0,0,0,.1));
    --at-gap: var(--wp--preset--spacing--30, 1rem);
    color: var(--at-body);
    font-size: var(--wp--preset--font-size--small, 1rem);
}
.at *, .at *::before, .at *::after { box-sizing: border-box; }
.at [hidden] { display: none !important; }
.at :where(a:not(.rt-btn)) { color: inherit; }
.at img { max-width: 100%; height: auto; }

/* ---------- Teks & utilitas ---------- */
.at-muted { color: var(--at-meta, #7c7c7c); font-size: .9em; }
.at-center { text-align: center; }
.at-lead { max-width: 640px; margin: var(--wp--preset--spacing--30, 1rem) auto 0; color: var(--wp--preset--color--meta, #7c7c7c); }
.at .at-h2 { font-size: var(--wp--preset--font-size--large, 1.3rem); margin: 1.75rem 0 .75rem; color: var(--at-heading); }
.at .at-h3 { font-size: var(--wp--preset--font-size--medium, 1.1rem); margin: 1.5rem 0 .5rem; color: var(--at-heading); }
.at-icon { flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.at-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Tombol (menumpang .rt-btn tema, diberi gradien brand) ---------- */
.at .at-btn { text-decoration: none; font-weight: var(--wp--custom--font-weight--bolder, 700); white-space: nowrap; }
.at .rt-btn.at-btn:not(.rt-btn--outline):not(.at-btn--light):not(.at-btn--white):not(.at-btn--ghost):not(.at-btn--success):not(.at-btn--danger) {
    background-color: var(--at-primary); background-image: var(--at-gradient); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--at-primary) 30%, transparent); }
.at .at-btn--accent { background: #fff !important; color: var(--at-primary) !important; box-shadow: none !important; }
.at .at-btn.is-style-full { width: 100%; }
.at .at-btn--success { background: var(--at-success); color: #fff; }
.at .at-btn--danger { color: var(--at-danger); }
.at .at-btn--danger:not(.rt-btn--outline) { background: var(--at-danger); color: #fff; }
.at .at-btn--light { background: rgba(255,255,255,.95); background-image: none; color: var(--at-primary); }
.at .at-btn--light:hover, .at .at-btn--light:focus { background: rgba(255,255,255,.95) !important; background-image: none !important; color: var(--at-primary) !important; transform: none !important; box-shadow: none !important; }
.at .at-btn--white { background: #fff; background-image: none; color: var(--at-primary); }
.at .at-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.at .at-btn[disabled] { opacity: .5; pointer-events: none; }
.at .at-btn.is-busy { opacity: .6; pointer-events: none; }
.at-link-btn { background: none; border: 0; padding: 0; color: var(--at-link, #0c70de); cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Badge & notifikasi ---------- */
.at-badge { display: inline-flex; align-items: center; padding: .15em .6em; border-radius: 99px; font-size: .78rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
    background: color-mix(in srgb, currentColor 14%, transparent); }
.at-badge--success { color: var(--at-success, #27ae60); }
.at-badge--danger { color: var(--at-danger, #b91c1c); }
.at-badge--warning { color: var(--at-warning, #6d5dfc); }
.at-badge--info { color: var(--at-info, #2f80ed); }
.at-badge--meta { color: var(--at-meta, #7c7c7c); }

.at-notice { padding: .875rem 1rem; border-radius: var(--at-r-sm); margin: 0 0 1rem; border-left: 4px solid currentColor; font-size: .95rem;
    background: color-mix(in srgb, currentColor 10%, transparent); }
.at-notice a { font-weight: 600; }
.at-notice--success { color: var(--at-success, #27ae60); }
.at-notice--danger { color: var(--at-danger, #b91c1c); }
.at-notice--warning { color: var(--at-warning, #6d5dfc); }
.at-notice--info { color: var(--at-info, #2f80ed); }

/* ---------- Remah roti ---------- */
.at-breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--wp--preset--font-size--x-small, .875rem); color: var(--wp--preset--color--meta, #7c7c7c); }
.at-titlebar .at-breadcrumbs ol { justify-content: center; }
.at-breadcrumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.at-breadcrumbs a { text-decoration: none; color: inherit; }
.at-breadcrumbs a:hover { color: var(--wp--preset--color--heading, #171717); }

/* ---------- Toolbar & chip ---------- */
.at-toolbar { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "q btn" "st urut"; gap: .5rem; margin: 0 0 1rem; align-items: stretch; }
.at-toolbar input[type=search] { grid-area: q; min-width: 0; }
.at-toolbar select[name=status] { grid-area: st; }
.at-toolbar select[name=urut] { grid-area: urut; }
.at-toolbar button { grid-area: btn; }
.at-toolbar select { min-width: 0; text-overflow: ellipsis; }
@media (max-width: 759px) { .at-toolbar { grid-template-columns: repeat(3, minmax(0,1fr)) auto; grid-template-areas: "q q q btn" "st st urut urut"; } .at-toolbar button { padding-inline: 1.1rem; } .at-toolbar select { padding-left: .75rem; padding-right: 1.9rem; } }
@media (min-width: 760px) { .at-toolbar { grid-template-columns: minmax(0,1fr) 180px 170px auto; grid-template-areas: "q st urut btn"; } }
.at-chips, .at-presets { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin: 0 0 1.25rem; scrollbar-width: none; }
.at-chips::-webkit-scrollbar { display: none; }
.at-chip { flex: none; display: inline-block; padding: .45rem .9rem; border-radius: 99px; border: 1px solid var(--at-line); background: var(--at-bg); color: var(--at-body);
    text-decoration: none; font-size: .875rem; cursor: pointer; transition: .2s; font-family: inherit; }
.at-chip:hover { border-color: var(--at-heading); }
.at-chip.is-active { background: var(--at-gradient); border-color: transparent; color: #fff; }

/* ---------- Kartu tugas ---------- */
.at-grid { display: grid; gap: var(--at-gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.at-card { background: var(--at-bg); border: 1px solid var(--at-line); border-radius: var(--at-r); transition: .25s ease; }
.at-card:hover { box-shadow: var(--at-shadow); transform: translateY(-2px); border-color: transparent; }
.at-card__link { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; height: 100%; text-decoration: none; color: inherit; }
.at-card__top { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; }
.at-card__cat { display: inline-block; padding: .2em .65em; border-radius: 99px; background: color-mix(in srgb, var(--at-brand, #0c70de) 12%, transparent);
    color: var(--at-brand, #0c70de); font-size: .75rem; font-weight: 600; text-decoration: none; margin-right: .25rem; }
.at-card__proof { color: var(--at-meta); }
.at .at-card__title { font-size: var(--wp--preset--font-size--small, 1rem); line-height: 1.35; margin: 0; color: var(--at-heading);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-card__reward { font-size: 1.35rem; font-weight: 800; color: var(--at-primary); margin-top: auto; }
.at-card__reward small { font-size: .8rem; font-weight: 400; color: var(--at-meta); }
.at-card__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--at-meta); }
.at-progress { height: 6px; border-radius: 99px; background: var(--at-fg); overflow: hidden; }
.at-progress span { display: block; height: 100%; background: var(--at-gradient); border-radius: inherit; }

.at-empty { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--at-line); border-radius: var(--at-r); color: var(--at-meta); }
.at-pagination { display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; margin: 2rem 0 1rem; }
.at-pagination .page-numbers, .at-pagination a { padding: .5rem .85rem; border: 1px solid var(--at-line); border-radius: var(--at-r-sm); text-decoration: none; }
.at-pagination .current { background: var(--at-gradient); color: #fff; border-color: transparent; }

/* ---------- Statistik ---------- */
.at-stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 1rem 0; }
.at-stat { padding: 1rem; background: var(--at-fg); border-radius: var(--at-r); }
.at-stat strong { display: block; font-size: 1.4rem; color: var(--at-heading); line-height: 1.2; }
.at-stat span { font-size: .8rem; color: var(--at-meta); }

/* ---------- Halaman tugas ---------- */
.at-single { padding-top: var(--wp--preset--spacing--50, 2rem); padding-bottom: var(--wp--preset--spacing--60, 3rem); }
.at-single__layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .at-single__layout { grid-template-columns: minmax(0,1fr) 320px; align-items: start; } .at-single__side { position: sticky; top: 90px; } }
.at .at-single__title { font-size: var(--wp--preset--font-size--x-large, 1.7rem); margin: .5rem 0; line-height: 1.25; color: var(--at-heading); }
.at-single__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--at-meta); font-size: .875rem; margin-bottom: 1.25rem; }
.at-box { background: var(--at-bg); border: 1px solid var(--at-line); border-radius: var(--at-r); padding: 1.25rem; margin-bottom: 1rem; }
.at .at-box__title { font-size: var(--wp--preset--font-size--medium, 1.1rem); margin: 0 0 .75rem; color: var(--at-heading); display: flex; gap: .5rem; align-items: center; }
.at-content { line-height: 1.7; }
.at-content > :first-child { margin-top: 0; }
.at-reward-box__amount { font-size: 2rem; font-weight: 800; margin: .1rem 0 .75rem; background: var(--at-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-dl { margin: 1rem 0; }
.at-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--at-line); font-size: .9rem; }
.at-dl dt { color: var(--at-meta); }
.at-dl dd { margin: 0; font-weight: 600; text-align: right; }
.at-owner { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin: 0 0 .5rem; }
.at-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--at-gradient); color: #fff; font-weight: 700; object-fit: cover; line-height: 1; }
.at-related { margin-top: 2.5rem; }
.at-related h2 { font-size: var(--wp--preset--font-size--large, 1.3rem); }

/* ---------- Formulir ---------- */
.at-form { display: grid; gap: 1rem; margin: 0; }
.at-field { display: grid; gap: .35rem; margin: 0; }
.at-field > span { font-weight: 600; font-size: .9rem; color: var(--at-heading); }
.at-field em { color: var(--at-danger); font-style: normal; }
.at-field small { color: var(--at-meta); font-size: .8rem; font-weight: 400; }
.at-field--end { align-content: end; }
.at input[type=text], .at input[type=email], .at input[type=tel], .at input[type=url], .at input[type=number],
.at input[type=password], .at input[type=search], .at select, .at textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--at-body); background-color: var(--at-bg);
    border: 1px solid var(--at-line); border-radius: var(--at-r-sm); padding: .8rem 1rem; outline: 0; }
.at select { padding-right: 2.25rem; }
.at textarea { resize: vertical; min-height: 110px; }
.at input:focus, .at select:focus, .at textarea:focus { border-color: var(--at-info); box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-info) 18%, transparent); }
.at input[type=file] { width: 100%; padding: .65rem; border: 1px dashed var(--at-line); border-radius: var(--at-r-sm); background: var(--at-fg); font-size: .9rem; }
.at-check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.at-check input { margin-top: .25rem; }
.at-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .at-row { grid-template-columns: 1fr 1fr; } }
.at-file-preview { max-height: 180px; border-radius: var(--at-r-sm); border: 1px solid var(--at-line); margin-top: .25rem; }

.at-segment { display: flex; border: 1px solid var(--at-line); border-radius: var(--at-r-sm); overflow: hidden; }
.at-segment label { flex: 1; margin: 0; }
.at-segment input { position: absolute; opacity: 0; pointer-events: none; }
.at-segment span { display: block; text-align: center; padding: .7rem .35rem; white-space: nowrap; cursor: pointer; font-size: .9rem; font-weight: 600; }
.at-segment input:checked + span { background: var(--at-gradient); color: #fff; }
.at-segment input:focus-visible + span { outline: 2px solid var(--at-info); outline-offset: -2px; }
.at-qris-preview { display: block; max-width: 200px; border-radius: var(--at-r-sm); border: 1px solid var(--at-line); background: #fff; margin-bottom: .5rem; }

.at-quote { background: var(--at-fg); border-radius: var(--at-r); padding: 1rem; display: grid; gap: .45rem; }
.at-quote > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.at-quote span { color: var(--at-meta); }
.at-quote__total { border-top: 1px dashed var(--at-line); padding-top: .5rem; font-size: 1.05rem !important; }
.at-quote__total strong { color: var(--at-heading); font-size: 1.15rem; }
.at-quote__warn { color: var(--at-danger); margin: .25rem 0 0; font-size: .9rem; }

.at-details summary { cursor: pointer; list-style: none; }
.at-details summary::-webkit-details-marker { display: none; }
.at-details[open] summary { margin-bottom: .75rem; }
.at-details > summary:not(.rt-btn) { color: var(--at-link); font-size: .9rem; }

/* ---------- Login / daftar ---------- */
.at-auth { max-width: 440px; margin: 1rem auto 3rem; }
.at-auth__card { background: var(--at-bg); border: 1px solid var(--at-line); border-radius: var(--at-r); padding: 1.5rem; box-shadow: var(--at-shadow); }
.at-tabs { display: flex; background: var(--at-fg); padding: 4px; border-radius: var(--at-r-sm); margin-bottom: 1.25rem; }
.at-tab { flex: 1; border: 0; background: transparent; padding: .7rem; border-radius: var(--at-r-sm); font: inherit; font-weight: 600; color: var(--at-meta); cursor: pointer; }
.at-tab.is-active { background: var(--at-bg); color: var(--at-primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- Dashboard ---------- */
.at-dash { display: grid; gap: 1rem; padding-bottom: 5.5rem; margin-bottom: 2rem; }
.at-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.at-dash__head p { margin: 0; }
.at-dash__name { font-size: 1.15rem; font-weight: 700; color: var(--at-heading); }
.at-balance-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 99px; background: var(--at-grad, linear-gradient(135deg,#0c70de,#22b8ff));
    color: #fff !important; font-weight: 700; text-decoration: none; font-size: .9rem; box-shadow: 0 4px 14px rgba(12,112,222,.25); }
.at-dash__nav { display: none; }
.at-dash__body { min-width: 0; }
@media (min-width: 900px) {
    .at-dash { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "head head" "nav body"; padding-bottom: 0; align-items: start; }
    .at-dash__head { grid-area: head; }
    .at-dash__nav { grid-area: nav; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; }
    .at-dash__body { grid-area: body; }
    .at-bottombar { display: none !important; }
}
.at-dash__navlink { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: var(--at-r-sm); text-decoration: none; color: var(--at-body); font-size: .93rem; }
.at-dash__navlink:hover { background: var(--at-fg); }
.at-dash__navlink.is-active { background: color-mix(in srgb, var(--at-primary) 10%, transparent); color: var(--at-primary); font-weight: 700; }
.at-dash__navlink.is-active .at-icon { color: var(--at-primary); }
.at-dash__logout { color: var(--at-meta); margin-top: .5rem; border-top: 1px solid var(--at-line); border-radius: 0; padding-top: 1rem; }

.at-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--at-bg); border-top: 1px solid var(--at-line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
.at-bottombar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--at-meta); text-decoration: none; padding: .25rem 0; }
.at-bottombar a.is-active { color: var(--at-primary); font-weight: 700; }
.at-bottombar a.is-active .at-icon { color: var(--at-primary); }

.at-balance-card { position: relative; overflow: hidden; color: #fff; border-radius: 14px; padding: 1.35rem; margin-bottom: 1rem;
    background: radial-gradient(circle at 100% 0, rgba(255,255,255,.28), transparent 45%), radial-gradient(circle at 0 120%, rgba(0,0,0,.18), transparent 50%), var(--at-gradient);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--at-primary) 30%, transparent); }
.at-balance-card span { font-size: .85rem; opacity: .8; }
.at-balance-card strong { display: block; font-size: 1.9rem; line-height: 1.2; margin: .15rem 0; }
.at-balance-card__actions { display: flex; gap: .5rem; margin-top: .75rem; }
.at-balance-card__actions .at-btn { flex: 1; }

.at-quick { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.at-quick__item { display: block; padding: 1rem; border: 1px solid var(--at-line); border-radius: var(--at-r); text-decoration: none; transition: .2s; }
.at-quick__item:hover { box-shadow: var(--at-shadow); border-color: transparent; }
.at-quick__item strong { display: block; color: var(--at-heading); }
.at-quick__item span { font-size: .85rem; color: var(--at-meta); }
.at-quick__item.is-alert { border-color: var(--at-warning); }
.at-quick__item:first-child { border-color: color-mix(in srgb, var(--at-primary) 40%, transparent); }

.at ul.at-ledger { list-style: none; margin: 0; padding: 0; border: 1px solid var(--at-line); border-radius: var(--at-r); overflow: hidden; }
.at-ledger li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; margin: 0; }
.at-ledger li + li { border-top: 1px solid var(--at-line); }
.at-ledger li > div { min-width: 0; }
.at-ledger strong { display: block; font-size: .92rem; color: var(--at-heading); }
.at-ledger small { display: block; color: var(--at-meta); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-ledger li > span { font-weight: 700; text-align: right; white-space: nowrap; }
.at-ledger .is-plus { color: var(--at-success); }
.at-ledger .is-minus { color: var(--at-heading); }
.at-ledger li > span small { font-weight: 400; }

.at-list { display: grid; gap: .75rem; }
.at-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--at-line); border-radius: var(--at-r); background: var(--at-bg); }
.at-item--link { text-decoration: none; color: inherit; transition: .2s; }
.at-item--link:hover { box-shadow: var(--at-shadow); border-color: transparent; }
.at-item__main { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.at-item__title { font-weight: 700; color: var(--at-heading); text-decoration: none; }
.at-item__meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; font-size: .85rem; color: var(--at-meta); margin-bottom: .25rem; }
.at-item p { margin: 0; }
.at-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin: .75rem 0; }
.at-actions form { margin: 0; }
.at-proof__img { display: block; max-width: 260px; max-height: 320px; object-fit: cover; border-radius: var(--at-r-sm); border: 1px solid var(--at-line); }
.at-proof__text { padding: .75rem; background: var(--at-fg); border-radius: var(--at-r-sm); font-size: .92rem; white-space: normal; word-break: break-word; }

.at-copy { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--at-fg); border-radius: var(--at-r-sm); }
.at-copy__value { font-size: 1.6rem; color: var(--at-heading); flex: 1; }
.at-instructions { padding: .75rem 1rem; border: 1px solid var(--at-line); border-radius: var(--at-r-sm); margin: .75rem 0; font-size: .95rem; }
.at-topup-pending { border-color: var(--at-warning); }

.at-table-wrap { overflow-x: auto; border: 1px solid var(--at-line); border-radius: var(--at-r); }
.at .at-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 0; }
.at .at-table th, .at .at-table td { padding: .7rem .9rem; text-align: left; border: 0; border-bottom: 1px solid var(--at-line); white-space: nowrap; }
.at .at-table th { color: var(--at-meta); font-weight: 600; background: var(--at-fg); }
.at .at-table tr:last-child td { border-bottom: 0; }


/* =================================================================
 * v1.1 — komponen baru
 * ================================================================= */

/* Login / daftar */
.at-auth__brand { text-align: center; margin: -.25rem 0 1.1rem; }
.at-auth__brand strong { display: block; font-size: 1.35rem; background: var(--at-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.at-auth__brand span { font-size: .85rem; color: var(--at-meta); }
.at-google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .8rem 1rem; border: 1px solid var(--at-line); border-radius: var(--at-r-sm);
    background: var(--at-bg); color: var(--at-heading) !important; font-weight: 600; text-decoration: none; transition: .2s; }
.at-google:hover { border-color: var(--at-primary); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.at-or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--at-meta); font-size: .8rem; }
.at-or::before, .at-or::after { content: ""; flex: 1; height: 1px; background: var(--at-line); }
.at-turnstile { min-height: 65px; display: flex; justify-content: center; }

/* Saldo kurang → tombol top up */
.at-short { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .7rem; padding: 1.1rem 1rem; border-radius: var(--at-r);
    background: var(--at-gradient); color: #fff; }
.at-short[hidden] { display: none !important; }
.at-short strong { font-size: 1.05rem; }
.at-short .at-btn { padding: .6rem 1rem; }
.at-form:has(.at-short:not([hidden])) [data-at-submit] { opacity: .45; }

/* Halaman bayar QRIS */
.at-pay { text-align: center; border-color: color-mix(in srgb, var(--at-primary) 35%, transparent); }
.at-pay__head { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.at-pay__badge { background: var(--at-gradient); color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .08em; padding: .25rem .6rem; border-radius: 6px; }
.at-pay__label { margin: .25rem 0 0; color: var(--at-meta); font-size: .85rem; }
.at-pay__amount { font-size: 2rem; font-weight: 800; color: var(--at-heading); }
.at-pay__qr { display: flex; justify-content: center; margin: 1rem auto; }
.at-pay__qr img, .at-qr { width: 260px; max-width: 100%; aspect-ratio: 1; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--at-line); box-shadow: 0 6px 20px rgba(12,112,222,.12); }
.at-qr svg, .at-qr img { display: block; width: 100%; height: auto; }
.at-pay__status { display: flex; justify-content: center; align-items: center; gap: .4rem; flex-wrap: wrap; font-weight: 600; margin-bottom: .75rem; }
.at-pay__status.is-paid { color: var(--at-success); }
.at-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--at-warning); animation: at-pulse 1.4s infinite; }
@keyframes at-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--at-warning) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.at-pay__steps { text-align: left; max-width: 420px; margin: .5rem auto 1rem; padding-left: 1.2rem; font-size: .9rem; color: var(--at-body); }
.at-pay__steps li { margin: .25rem 0; }
.at-pay .at-actions { justify-content: center; }

/* Pilihan metode bayar */
.at-methods { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.at-method { position: relative; margin: 0; }
.at-method input { position: absolute; opacity: 0; }
.at-method span { display: block; padding: .75rem .9rem; border: 1.5px solid var(--at-line); border-radius: var(--at-r-sm); cursor: pointer; transition: .2s; }
.at-method strong { display: block; color: var(--at-heading); }
.at-method small { color: var(--at-meta); font-size: .78rem; }
.at-method input:checked + span { border-color: var(--at-primary); background: color-mix(in srgb, var(--at-primary) 7%, transparent); }
.at-method input:focus-visible + span { outline: 2px solid var(--at-primary); }

/* Sub-tab filter (Selesai / Belum selesai) */
.at-subtabs { display: flex; gap: .4rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: .25rem; scrollbar-width: none; }
.at-subtabs a { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 99px; border: 1px solid var(--at-line); text-decoration: none; font-size: .87rem; }
.at-subtabs a span { min-width: 1.4em; padding: 0 .35em; border-radius: 99px; background: var(--at-fg); font-size: .75rem; text-align: center; }
.at-subtabs a.is-active { background: var(--at-gradient); color: #fff; border-color: transparent; }
.at-subtabs a.is-active span { background: rgba(255,255,255,.25); }

/* Avatar */
.at-dash__user { display: flex; align-items: center; gap: .6rem; text-decoration: none; min-width: 0; }
.at-dash__user > span { display: grid; line-height: 1.25; }
.at-dash__user .at-dash__name { font-size: 1.05rem; font-weight: 700; color: var(--at-heading); }
.at-dash__user .at-avatar { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--at-bg), 0 0 0 4px color-mix(in srgb, var(--at-primary) 35%, transparent); }
.at-avatar--lg { width: 72px !important; height: 72px !important; }
.at-avatar-current { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.at-avatar-current p { margin: .15rem 0 0; }
.at-avatar-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.at-avatar-option { padding: 3px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; transition: .15s; line-height: 0; }
.at-avatar-option:hover { transform: scale(1.06); }
.at-avatar-option.is-active { border-color: var(--at-primary); }
.at-avatar-option img { width: 56px; height: 56px; border-radius: 50%; }
.at-owner .at-avatar { width: 36px; height: 36px; }
.at-item__meta .at-avatar { width: 28px; height: 28px; font-size: 12px; }

/* Verifikasi */
.at-verify { display: grid; gap: .75rem; }
.at-verify__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--at-line); }
.at-verify__row p { margin: .1rem 0 0; }
.at-verify__row form { margin: 0; }

/* Cara kerja & CTA (halaman informasi) */
.at-how { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 760px) { .at-how { grid-template-columns: 1fr 1fr; } }
.at-how__col { border: 1px solid var(--at-line); border-radius: 14px; padding: 1.4rem; background: var(--at-bg); }
.at-how__col:first-child { background: linear-gradient(180deg, color-mix(in srgb, var(--at-primary) 7%, transparent), transparent 60%), var(--at-bg); }
.at-how__badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--at-primary); background: color-mix(in srgb, var(--at-primary) 12%, transparent); padding: .25rem .6rem; border-radius: 99px; }
.at .at-how h3 { margin: .6rem 0 1rem; font-size: 1.2rem; color: var(--at-heading); }
.at ol.at-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.at-how__steps li { display: flex; gap: .8rem; align-items: flex-start; margin: 0; }
.at-how__steps p { margin: .15rem 0 0; font-size: .9rem; color: var(--at-meta); }
.at-how__num { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--at-gradient); color: #fff; font-weight: 800; }
.at-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; padding: 1.5rem; border-radius: 16px; color: #fff;
    background: radial-gradient(circle at 100% 0, rgba(255,255,255,.25), transparent 45%), var(--at-gradient); }
.at-cta strong { font-size: 1.3rem; }
.at-cta p { margin: .25rem 0 0; opacity: .92; max-width: 520px; }
.at-cta__btns { display: flex; gap: .5rem; flex-wrap: wrap; }


/* =================================================================
 * v1.2
 * ================================================================= */

/* Remah roti rapi di HP: satu baris, bisa digeser, judul tidak diulang */
@media (max-width: 640px) {
    .at-breadcrumbs ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: .25rem; font-size: .8rem; margin-bottom: .75rem; }
    .at-breadcrumbs ol::-webkit-scrollbar { display: none; }
    .at-breadcrumbs li { flex: none; }
    .at-single .at-breadcrumbs li:last-child { display: none; }
    .at-breadcrumbs li + li::before { content: "›"; }
    .at-titlebar .at-breadcrumbs ol { justify-content: flex-start; }
    .at-single__header .at-card__cat { margin-bottom: .25rem; }
    .at .at-single__title { font-size: 1.35rem; }
}

/* Menu bawah HP (khusus tugas) */
@media (max-width: 899px) {
    body.ambiltugas-has-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    body.ambiltugas-has-bar .rt-gotop, body.ambiltugas-has-bar .js-gotop { bottom: 86px !important; }
}
.at-bottombar a { font-size: .68rem; }
.at-bottombar a.is-main .at-icon { color: #fff; background: var(--at-gradient); border-radius: 12px; padding: 5px; width: 32px; height: 32px; margin-top: -10px; box-shadow: 0 4px 12px color-mix(in srgb, var(--at-primary) 35%, transparent); }

/* Tugas selesai (portofolio) */
.at-card { position: relative; }
.at-card.is-finished { background: var(--at-fg); filter: grayscale(1); opacity: .72; border-color: var(--at-border, #e5e7eb); box-shadow: none; }
.at-card.is-finished:hover { opacity: .9; }
.at-card.is-finished .at-card__reward { color: var(--at-meta); }
.at-card.is-finished .at-card__title { color: var(--at-meta); }
.at-card__done { font-size: .82rem; font-weight: 700; color: var(--at-meta); padding: .45rem .6rem; border-radius: var(--at-r-sm); background: color-mix(in srgb, var(--at-meta) 12%, transparent); }
.at-done-banner { text-align: center; font-weight: 700; padding: .9rem; border-radius: var(--at-r-sm); background: color-mix(in srgb, var(--at-meta) 12%, transparent); color: var(--at-heading); margin-bottom: .75rem; }

/* Simpan (wishlist) */
.at-save-form { margin: 0; }
.at-save { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--at-line); background: var(--at-bg); color: var(--at-meta); border-radius: 99px; padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: .2s; width: 100%; }
.at-save:hover { color: #e11d48; border-color: #fda4af; }
.at-save.is-saved { color: #e11d48; border-color: #fda4af; background: #fff1f2; }
.at-save--icon { position: absolute; top: .7rem; right: .7rem; width: 36px; height: 36px; padding: 0; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.08); z-index: 2; }
.at-card .at-card__top { padding-right: 2.6rem; }
.at-save-wrap { margin-top: .6rem; }

/* Report */
.at-report { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--at-line); }
.at-report p { font-size: .85rem; color: var(--at-meta); margin: 0 0 .5rem; }
.at-report__btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: 99px; border: 1px solid #fecaca; color: var(--at-danger) !important; background: color-mix(in srgb, var(--at-danger) 6%, transparent); font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: none; list-style: none; }
.at-report__btn::-webkit-details-marker { display: none; }
.at-report__box[open] .at-report__btn { margin-bottom: .75rem; }
.at-radios { border: 0; margin: 0; padding: 0; display: grid; gap: .4rem; }
.at-radios legend { font-weight: 700; color: var(--at-heading); margin-bottom: .4rem; font-size: .9rem; }
.at-radios label { display: flex; gap: .5rem; align-items: flex-start; padding: .55rem .7rem; border: 1px solid var(--at-line); border-radius: var(--at-r-sm); font-size: .86rem; cursor: pointer; }
.at-radios label:has(input:checked) { border-color: var(--at-danger); background: color-mix(in srgb, var(--at-danger) 6%, transparent); }
.at-radios input { margin-top: .2rem; }

/* Editor instruksi */
.at-editor { border: 1px solid var(--at-line); border-radius: var(--at-r-sm); background: var(--at-bg); overflow: hidden; }
.at-editor:focus-within { border-color: var(--at-info); box-shadow: 0 0 0 3px color-mix(in srgb, var(--at-info) 18%, transparent); }
.at-editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--at-fg); border-bottom: 1px solid var(--at-line); }
.at-editor__bar button { border: 0; background: transparent; color: var(--at-body); padding: .4rem .6rem; border-radius: 6px; font: inherit; font-size: .85rem; cursor: pointer; min-width: 34px; }
.at-editor__bar button:hover, .at-editor__bar button.is-on { background: var(--at-bg); color: var(--at-primary); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.at-editor__area { min-height: 180px; max-height: 480px; overflow-y: auto; padding: .8rem 1rem; outline: 0; line-height: 1.7; font-size: 16px; color: var(--at-body); }
.at-editor__area:empty::before { content: attr(data-placeholder); color: var(--at-meta); }
.at-editor__area h3, .at-content h3 { font-size: 1.1rem; margin: .8em 0 .3em; color: var(--at-heading); }
.at-editor__area p { margin: 0 0 .6em; }
.at-editor__area ul, .at-editor__area ol, .at-content ul, .at-content ol { padding-left: 1.4em; margin: .4em 0 .8em; }
.at-content strong { color: var(--at-heading); }

/* Kelola tugas: edit / tambah kuota / hapus */
.at-manage { display: grid; gap: .6rem; margin: 1rem 0 1.5rem; }
.at-manage__item { margin: 0; padding: 0; }
.at-manage__item > summary { display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; }
.at-manage__item > summary::-webkit-details-marker { display: none; }
.at-manage__item > summary strong { color: var(--at-heading); }
.at-manage__item > summary span { font-size: .82rem; color: var(--at-meta); }
.at-manage__item[open] > summary { border-bottom: 1px solid var(--at-line); }
.at-manage__item > form, .at-manage__item > p { padding: 1rem 1.1rem; margin: 0; }


/* =================================================================
 * v1.3 — komentar, banner beranda
 * ================================================================= */
.at-comments { margin-top: 1rem; }
.at-comments__count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 99px; background: var(--at-gradient); color: #fff; font-size: .75rem; }
.at ol.at-comments__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.at-comment { display: flex; gap: .65rem; align-items: flex-start; margin: 0; }
.at-comment .at-avatar { width: 36px; height: 36px; font-size: 14px; }
.at-comment__body { flex: 1; min-width: 0; background: color-mix(in srgb, var(--at-primary) 6%, var(--at-bg)); border: 1px solid color-mix(in srgb, var(--at-primary) 14%, transparent); border-radius: 4px 14px 14px 14px; padding: .6rem .85rem; }
.at-comment.is-owner .at-comment__body { background: color-mix(in srgb, var(--at-primary) 13%, var(--at-bg)); border-color: color-mix(in srgb, var(--at-primary) 35%, transparent); }
.at-comment__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .8rem; margin-bottom: .2rem; }
.at-comment__meta strong { color: var(--at-heading); font-size: .87rem; }
.at-comment__meta time { color: var(--at-meta); margin-left: auto; }
.at-comment__body p { margin: 0; font-size: .93rem; line-height: 1.55; word-break: break-word; }
.at-comment-form { gap: .5rem; padding-top: .75rem; border-top: 1px dashed var(--at-line); }
.at-comment-form__row { display: flex; gap: .65rem; align-items: flex-start; }
.at-comment-form__row .at-avatar { width: 36px; height: 36px; }
.at-comment-form textarea { min-height: 80px; border-radius: 14px; }
.at-comment-form__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding-left: calc(36px + .65rem); }
.at-video-err { display: block; color: var(--at-danger, #d63638); font-weight: 600; margin-top: .25rem; }
.at-comment-form__foot .is-over { color: var(--at-danger); font-weight: 600; }

/* Banner beranda / daftar tugas */
.at-hero { position: relative; overflow: hidden; border-radius: 0; color: #fff; margin: 0 0 .5rem;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.22), transparent 40%), var(--at-grad, linear-gradient(135deg,#0c70de,#22b8ff)); }
.at-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,30,70,.78), rgba(5,30,70,.35)); }
.at-hero__inner { position: relative; z-index: 1; max-width: var(--wp--style--global--wide-size, 1170px); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) var(--wp--style--root--padding-left, 1rem); }
.at-hero__title { margin: 0 0 .5rem; color: #fff !important; font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.2; max-width: 720px; }
.at-hero__text { margin: 0 0 1.25rem; max-width: 620px; opacity: .95; font-size: clamp(.95rem, 2.2vw, 1.1rem); }
.at-hero__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.at-hero .rt-btn { background: #fff !important; background-image: none !important; color: var(--at-brand, #0c70de) !important; font-weight: 700; }
.at-hero .rt-btn.is-ghost { background: rgba(255,255,255,.14) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
.at-list-head { text-align: center; padding: 1.75rem 0 .5rem; }
.at-list-head h1, .at-list-head h2 { margin: 0 0 .4rem; }
.at-list-head .at-lead { margin-top: .25rem; }

/* ---------- v1.3: Addon Teratas, centang biru ---------- */
.at-addon { border: 1.5px dashed var(--at-brand, #0c70de); border-radius: var(--at-r); padding: 1rem; background: color-mix(in srgb, var(--at-brand, #0c70de) 6%, transparent); display: grid; gap: .75rem; }
.at-addon__head { display: flex; gap: .75rem; align-items: flex-start; }
.at-addon__head small { display: block; color: var(--at-body); margin-top: .15rem; line-height: 1.5; }
.at-addon__icon { font-size: 1.4rem; line-height: 1; }
.at-card.is-boosted { border-color: color-mix(in srgb, var(--at-brand, #0c70de) 45%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--at-brand, #0c70de) 25%, transparent); }
.at-card__pin { display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--at-gradient); padding: .2rem .55rem; border-radius: 99px; margin-right: .25rem; }
.at-verified { display: inline-flex; vertical-align: -2px; margin-left: .3rem; color: #1d9bf0; line-height: 1; }
.at-verified svg { width: 1em; height: 1em; min-width: 15px; min-height: 15px; }

/* Logo QRIS / bank / e-wallet di halaman bayar */
.at-pay__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .45rem .6rem; width: 100%; }
.at-pay__logo { height: 22px !important; width: auto !important; max-width: 84px; object-fit: contain; background: #fff; border: 1px solid #e3e8ef; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; }
.at-pay__logos .at-pay__logo:first-child { height: 30px !important; max-width: 110px; }
.at-pay__logos--single .at-pay__logo, .at-pay__logos--single .at-pay__logo:first-child { height: auto !important; width: 100% !important; max-width: 320px; border: 0; padding: 0; background: transparent; border-radius: 0; }

/* Upah aman (halaman tugas) */
.at-safe { display: flex; gap: .5rem; align-items: flex-start; margin: .85rem 0 0; padding: .7rem .8rem; border-radius: 10px; background: color-mix(in srgb, var(--at-brand, #0c70de) 8%, transparent); border: 1px solid color-mix(in srgb, var(--at-brand, #0c70de) 22%, transparent); font-size: .86rem; line-height: 1.5; }
.at-safe strong { color: var(--at-brand, #0c70de); }

/* Deskripsi profil pemberi tugas */
.at-owner__bio { margin: .25rem 0 .6rem; font-size: .92rem; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }

/* Centang hijau akun resmi (owner) */
.at-verified--owner { color: #16a34a; }
.at-toolbar--search { grid-template-columns: minmax(0,1fr) auto !important; grid-template-areas: "q btn" !important; }
.at-list-embed { margin: 0; }

/* Beranda: Cara Kerja (biru gradien) */
.at-how2 { margin: 2.5rem 0 0; border-radius: 0; background: var(--at-grad, linear-gradient(135deg,#0c70de,#22b8ff)); color: #fff; }
.at-how2__inner { padding: clamp(1.75rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.5rem); }
.at-how2__title { color: #fff !important; margin: 0 0 .35rem; font-size: clamp(1.4rem, 3.6vw, 2rem); text-align: center; }
.at-how2__intro { text-align: center; margin: 0 auto 1.5rem; max-width: 620px; opacity: .92; }
.at-how2__cols { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .at-how2__cols { grid-template-columns: 1fr 1fr; } }
.at-how2__col { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; padding: 1.25rem; display: flex; flex-direction: column; }
.at-how2__col h3 { color: #fff !important; margin: 0 0 .75rem; font-size: 1.1rem; }
.at-how2__col ol { margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: s; flex: 1; }
.at-how2__col li { counter-increment: s; position: relative; padding: 0 0 .7rem 2.2rem; line-height: 1.5; }
.at-how2__col li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: var(--at-brand, #0c70de); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.at-how2__col .rt-btn { align-self: flex-start; }

/* Beranda: artikel terbaru */
.at-posts { margin: 2.5rem 0 1rem; }
.at-posts__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.at-posts__title { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.at-posts__more { font-weight: 600; white-space: nowrap; color: var(--at-brand, #0c70de); }
.at-posts__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .at-posts__grid { grid-template-columns: repeat(3, 1fr); } }
.at-post { border: 1px solid var(--at-border, #e5e7eb); border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--background, #fff); transition: transform .15s, box-shadow .15s; }
.at-post:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12,112,222,.12); }
.at-post__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
.at-post__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.at-post__img--empty { display: grid; place-items: center; font-size: 2rem; background: color-mix(in srgb, var(--at-brand, #0c70de) 10%, transparent); }
.at-post__body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1.1rem; }
.at-post__body time { font-size: .8rem; color: var(--at-meta, #6b7280); }
.at-post__title { font-size: 1.02rem; line-height: 1.35; }
.at-post__excerpt { font-size: .88rem; color: var(--at-meta, #6b7280); line-height: 1.5; }

/* Lapor Kendala */
.at-kendala { max-width: 760px; margin: 0 auto; }
.at-kendala__intro { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 16px; color: #fff; background: var(--at-grad, linear-gradient(135deg,#0c70de,#22b8ff)); margin-bottom: 1rem; }
.at-kendala__intro p { margin: .3rem 0 0; opacity: .95; font-size: .95rem; line-height: 1.55; }
.at-kendala__intro strong { color: #fff; }
.at-kendala__icon { font-size: 1.8rem; line-height: 1; }
.at-kendala__note { font-size: .85rem; padding: .6rem .75rem; border-radius: 10px; background: var(--at-bg-soft, #f5f8fc); }
.at-kendala__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.at-kendala__list li { margin: 0; }
.at-kendala__row { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.at-kendala__reply { margin: .5rem 0 0; padding: .55rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--at-brand,#0c70de) 8%, transparent); font-size: .9rem; }
.at-kendala__bonus { margin: .5rem 0 0; font-weight: 600; color: #15803d; font-size: .9rem; }

/* Item per Pekerja */
.at-items > summary { cursor: pointer; list-style: none; }
.at-items > summary::-webkit-details-marker { display: none; }
.at-items__opt { font-weight: 400; color: var(--at-meta, #6b7280); }
.at-items__rules { margin: .75rem 0; padding-left: 1.1rem; font-size: .88rem; line-height: 1.55; color: var(--at-meta, #4b5563); }
.at-items__rules li { margin: .15rem 0; }
.at-items__tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.at-items__import { cursor: pointer; }
.at-items__mode { margin: .6rem 0 0; padding: .55rem .7rem; border-radius: 10px; font-size: .88rem; background: #e8f7ee; color: #166534; }
.at-items__mode.is-random { background: #eaf2fd; color: #1e4e8c; }
.at-item-card { margin: 0 0 1rem; padding: 1rem; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--at-brand,#0c70de) 35%, transparent); background: color-mix(in srgb, var(--at-brand,#0c70de) 6%, var(--at-fg, #fff)); }
.at-item-card--empty { display: flex; gap: .8rem; align-items: flex-start; }
.at-item-card--empty p { margin: .3rem 0 .7rem; font-size: .92rem; }
.at-item-card__icon { font-size: 1.6rem; line-height: 1; }
.at-item-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; font-weight: 700; color: var(--at-brand,#0c70de); margin-bottom: .55rem; }
.at-item-card__head small { font-weight: 500; color: var(--at-meta, #6b7280); }
.at-item-card__body { padding: .8rem .9rem; border-radius: 10px; background: var(--at-fg, #fff); border: 1px dashed color-mix(in srgb, var(--at-brand,#0c70de) 40%, transparent); font-size: 1rem; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; user-select: all; }
.at-item-card__copy { margin-top: .6rem; }
.at-item-card__copy.is-done { background: #16a34a !important; background-image: none !important; }
.at-items-stats { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .6rem 0; font-size: .88rem; color: var(--at-meta, #4b5563); }
.at-items-list { margin: .4rem 0 1rem; padding-left: 1.6rem; max-height: 360px; overflow: auto; border: 1px solid var(--at-border, #e5e7eb); border-radius: 12px; padding-top: .3rem; padding-bottom: .3rem; }
.at-items-list li { padding: .45rem .6rem .45rem .2rem; border-bottom: 1px solid var(--at-line, #f0f2f5); }
.at-items-list li:last-child { border-bottom: 0; }
.at-items-list li.is-locked .at-items-list__text { color: var(--at-meta, #6b7280); }
.at-items-list__text { overflow-wrap: anywhere; }
.at-items-list__act { display: flex; gap: .7rem; align-items: center; margin-top: .25rem; font-size: .85rem; }
.at-items-list__act form { margin: 0; }
.at-items-edit { margin-top: .4rem; }
.at-link-btn--danger { color: var(--at-danger, #d63638) !important; }
.at-proof__item { margin: .5rem 0; padding: .5rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--at-brand,#0c70de) 7%, transparent); font-size: .92rem; overflow-wrap: anywhere; }

/* Halaman Biaya & Tarif + Bantuan */
.at-tarif__table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--at-border, #e5e7eb); border-radius: 14px; overflow: hidden; margin: 0 0 1rem; }
.at-tarif__table th, .at-tarif__table td { padding: .75rem .95rem; text-align: left; border-bottom: 1px solid var(--at-line, #eef1f5); vertical-align: top; }
.at-tarif__table tr:last-child th, .at-tarif__table tr:last-child td { border-bottom: 0; }
.at-tarif__table th { width: 45%; font-weight: 600; background: color-mix(in srgb, var(--at-brand,#0c70de) 5%, transparent); }
.at-tarif__table td { font-weight: 600; color: var(--at-brand, #0c70de); }
.at-tarif__ex { padding: 1rem 1.1rem; border-radius: 14px; background: var(--at-grad, linear-gradient(135deg,#0c70de,#22b8ff)); color: #fff; }
.at-tarif__ex strong { color: #fff; }
.at-tarif__ex ul { margin: .5rem 0; padding-left: 1.1rem; }
.at-tarif__ex li { margin: .3rem 0; }
.at-tarif__ex small { opacity: .85; }
.at-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin: 0 0 1.25rem; }
.at-links__item { display: flex; gap: .6rem; align-items: center; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--at-border, #e5e7eb); background: var(--at-fg, #fff); font-weight: 600; text-decoration: none !important; color: inherit !important; transition: border-color .15s, transform .15s; }
.at-links__item:hover { border-color: var(--at-brand, #0c70de); transform: translateY(-1px); }
.at-links__item span { font-size: 1.25rem; }

/* Bukti fleksibel */
.at-proofset { border: 1px solid var(--at-border, #e5e7eb); border-radius: 14px; padding: .9rem 1rem 1rem; margin: 0; min-width: 0; }
.at-proofset legend { font-weight: 600; padding: 0 .35rem; }
.at-proofset__help { display: block; margin: 0 0 .6rem; color: var(--at-meta, #6b7280); }
.at-proofset__rows { display: grid; gap: .55rem; }
.at-proofset__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .8rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--at-line, #eef1f5); }
.at-proofset__row:first-child { border-top: 0; }
.at-proofset__name strong { display: block; }
.at-proofset__name small { color: var(--at-meta, #6b7280); }
.at-proofset__max { grid-column: 1 / -1; font-size: .88rem; color: var(--at-meta, #4b5563); }
.at-proofset__max select { width: auto; min-width: 4rem; padding: .2rem 1.6rem .2rem .5rem; margin: 0 .25rem; }
.at-seg { display: inline-flex; border: 1px solid var(--at-border, #d7dde5); border-radius: 999px; overflow: hidden; }
.at-seg label { margin: 0; cursor: pointer; }
.at-seg input { position: absolute; opacity: 0; pointer-events: none; }
.at-seg span { display: block; padding: .35rem .75rem; font-size: .82rem; font-weight: 600; white-space: nowrap; color: var(--at-meta, #4b5563); }
.at-seg label + label span { border-left: 1px solid var(--at-border, #d7dde5); }
.at-seg input:checked + span { background: var(--at-grad, linear-gradient(135deg,#0c70de,#22b8ff)); color: #fff; }
.at-seg input:focus-visible + span { outline: 2px solid var(--at-brand, #0c70de); outline-offset: -2px; }
@media (max-width: 520px) { .at-proofset__row { grid-template-columns: 1fr; } .at-seg { width: 100%; } .at-seg label { flex: 1; text-align: center; } }
fieldset[disabled] .at-seg { opacity: .55; }
.at-proof-extra { margin: .25rem 0 .5rem; padding: .8rem .9rem .2rem; border-radius: 12px; border: 1px dashed var(--at-border, #d7dde5); background: var(--at-bg-soft, #f7f9fc); }
.at-proof-extra__title { margin: 0 0 .4rem; font-weight: 700; }
.at-proof-tip { margin: .4rem 0 .6rem; padding: .65rem .8rem; border-radius: 10px; font-size: .9rem; line-height: 1.5; background: color-mix(in srgb, var(--at-brand,#0c70de) 8%, transparent); }
.at-proof-tip strong { color: var(--at-brand, #0c70de); }
.at-req-note { color: var(--at-danger, #d63638) !important; }
.at-file-previews { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.at-file-previews .at-file-preview { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; margin: 0; }
.at-proof__imgs { display: flex; flex-wrap: wrap; gap: .4rem; }
.at-proof__imgs .at-proof__img { max-width: 140px !important; }

/* Kode unik, syarat & tata cara, tugas berulang */
.at-code { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .5rem; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; letter-spacing: .02em; background: color-mix(in srgb, var(--at-brand,#0c70de) 8%, transparent); color: var(--at-heading, #1f2937); white-space: nowrap; }
.at-code strong { font-weight: 700; }
.at-card__code { margin-top: .5rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; color: var(--at-meta, #8a94a3); letter-spacing: .03em; }
.at-card__repeat { margin: .35rem 0 0; font-size: .8rem; font-weight: 600; color: var(--at-brand, #0c70de); }
.at-points ol, .at-repeat ol { margin: .3rem 0 0; padding-left: 1.3rem; }
.at-points li, .at-repeat li { margin: .3rem 0; line-height: 1.55; }
.at-repeat { border-color: color-mix(in srgb, var(--at-brand,#0c70de) 35%, transparent); background: color-mix(in srgb, var(--at-brand,#0c70de) 5%, var(--at-fg, #fff)); }
.at-repeat__lead { margin: 0; font-weight: 600; line-height: 1.55; }
.at-repeat__sub { margin: .7rem 0 0; font-weight: 600; font-size: .92rem; }
.at-mysubs { margin: 0 0 1rem; padding: .8rem .9rem; border-radius: 12px; background: var(--at-bg-soft, #f5f8fc); border: 1px solid var(--at-border, #e5e7eb); }
.at-mysubs p { margin: 0 0 .4rem; }
.at-mysubs ul { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.at-mysubs li { display: inline-flex; gap: .35rem; align-items: center; }
.at-repeatset { border: 1px solid var(--at-border, #e5e7eb); border-radius: 14px; padding: .9rem 1rem 1rem; margin: 0; min-width: 0; }
.at-repeatset legend { font-weight: 600; padding: 0 .35rem; }
.at-repeatset__more { margin-top: .8rem; display: grid; gap: .6rem; }
.at-inline { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

