/* Gaya "profesional ringkas" halaman internal (T2). Hanya token; tanpa hex mentah.
   SEMUA aturan diawali .tim (pembungkus halaman /tim) agar tidak bocor ke halaman lain (diuji).
   Acuan: pratinjau yang disetujui pemilik (t2-pro*.html). */
.tim { font-size: var(--text-sm); }
.tim .num { font-variant-numeric: tabular-nums; }
.tim svg.ic { flex: none; }

/* Bilah atas */
.tim .appbar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tim .mark { width: 30px; height: 30px; border-radius: 10px; background: var(--grad-spot); display: grid; place-items: center; color: var(--on-dark); font: 600 15px var(--font-display); box-shadow: var(--shadow-spot); }
.tim .brand { font: 600 17px var(--font-display); letter-spacing: -0.02em; flex: 1; }
.tim .ttl { font: 600 24px/1.1 var(--font-display); letter-spacing: -0.03em; flex: 1; margin: 0; }
.tim .ib, .tim .av { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; position: relative; text-decoration: none !important; flex: none; }
.tim .ib { background: var(--card); box-shadow: var(--shadow-tile); color: var(--ink); }
.tim .ib .d { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 2px var(--card); }
.tim .av { color: var(--on-dark); font-weight: 600; background: linear-gradient(140deg, var(--cyan-strong), var(--ink)); }
.tim .greet { margin: var(--s3) 0; }
.tim .greet small { color: var(--muted); font-size: var(--text-xs); }
.tim .greet h2 { font: 600 24px/1.15 var(--font-display); letter-spacing: -0.03em; margin: 2px 0 0; }

/* Kartu jangkar gelap */
.tim .kas { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: var(--s4); background: var(--ink); color: var(--on-dark); box-shadow: 0 20px 40px -18px rgba(59, 10, 36, .7); }
.tim .kas::before { content: ""; position: absolute; z-index: -1; inset: auto -40px -70px auto; width: 220px; height: 220px; border-radius: 60px; background: var(--grad-spot); opacity: .35; transform: rotate(24deg); }
.tim .kas .lbl { display: flex; justify-content: space-between; gap: var(--s2); font-size: var(--text-xs); opacity: .8; }
.tim .kas .pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.tim .kas .big { font: 600 30px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 6px 0 2px; overflow-wrap: anywhere; }
.tim .kas .delta { font-size: var(--text-xs); color: var(--cyan-soft); }
.tim .kas .spark { display: block; width: 100%; height: 56px; margin: var(--s2) 0 10px; }
.tim .kas .stp { margin: var(--s3) 0; }
.tim .kas .k3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 10px; margin-top: var(--s2); }
.tim .kas .k3 > div { display: grid; gap: 2px; padding-right: 6px; min-width: 0; }
.tim .kas .k3 > div + div { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: 10px; }
.tim .kas .k3 span { font-size: 11px; opacity: .7; display: flex; align-items: center; gap: 5px; }
.tim .kas .k3 span i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; flex: none; }
.tim .kas .k3 b { font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }

/* Aksi cepat */
.tim .qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin: var(--s4) 0 var(--s1); }
.tim .qa a { display: grid; justify-items: center; gap: 6px; text-decoration: none !important; color: var(--ink); font-size: 11.5px; font-weight: 500; text-align: center; }
.tim .qa span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow-tile); color: var(--accent); transition: transform var(--t-fast) var(--ease); }
.tim .qa a:active span { transform: scale(.94); }

/* Judul bagian dan segmen */
.tim .sh { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin: 22px 2px 10px; }
.tim .sh h3 { font: 600 17px var(--font-display); letter-spacing: -0.02em; margin: 0; }
.tim .sh a { font-size: 13px; font-weight: 500; }
.tim .grp-h { font-size: var(--text-xs); font-weight: 600; color: var(--muted); margin: 18px 4px var(--s2); display: flex; justify-content: space-between; }
.tim .seg { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tim .seg button { flex: none; border: 0; min-height: 36px; padding: 4px 12px; border-radius: 99px; font: 500 12.5px var(--font-body); background: var(--card); color: var(--muted); box-shadow: var(--shadow-tile); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.tim .seg button b { font-weight: 600; color: var(--ink); }
.tim .seg button.on { background: var(--ink); color: var(--on-dark); }
.tim .seg button.on b { color: var(--on-dark); }

/* Daftar kaya */
.tim .list { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-tile); overflow: hidden; }
.tim .it { position: relative; display: flex; gap: var(--s3); align-items: center; padding: var(--s3) 14px; min-height: 56px; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.tim .it:first-child { border-top: 0; }
.tim a.it:active { background: var(--wash); }
.tim .it[hidden] { display: none; }
.tim .it.urgent::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-bright); }
.tim .sq { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.tim .sq.m { background: var(--wash); color: var(--wash-ink); }
.tim .sq.s { background: var(--warn-wash); color: var(--warn-ink); }
.tim .sq.c { background: var(--cyan-soft); color: var(--cyan-ink); }
.tim .sq.n { background: var(--neutral-wash); color: var(--ink); }
.tim .sq.r { background: var(--bad-wash); color: var(--bad-ink); }
.tim .sq.k { background: var(--ink); color: var(--on-dark); }
.tim .it .tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tim .it .tx b { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tim .mt { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tim .mav { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9px; font-weight: 600; color: var(--on-dark); background: var(--cyan-strong); flex: none; }
.tim .it .rt { display: grid; justify-items: end; gap: 3px; flex: none; }
.tim .it .rt b { font-size: var(--text-sm); font-weight: 600; }
.tim .it.red b { color: var(--bad-ink); }
.tim .chip { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.tim .chip.u { background: var(--wash); color: var(--wash-ink); }
.tim .chip.w { background: var(--warn-wash); color: var(--warn-ink); }
.tim .chip.n { background: var(--neutral-wash); color: var(--muted); }
.tim .chip.ok { background: var(--ok-wash); color: var(--ok-ink); }
.tim .chip.bad { background: var(--bad-wash); color: var(--bad-ink); }

/* Proyek berjalan */
.tim .rail2 { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(var(--s4) * -1); padding: 2px var(--s4) var(--s2); scrollbar-width: none; scroll-snap-type: x mandatory; }
.tim .pc { flex: none; width: 210px; scroll-snap-align: start; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-tile); padding: var(--s3); display: grid; gap: 10px; color: inherit; text-decoration: none !important; }
.tim .pc .hd { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tim .pc .cv { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.tim .pc .nm { display: grid; min-width: 0; }
.tim .pc .nm b { font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tim .pc .nm small { font-size: var(--text-xs); color: var(--muted); }
.tim .pc .ft { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tim .avatars { display: flex; }
.tim .sav { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--card); margin-left: -6px; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--on-dark); background: var(--ink); }
.tim .sav:first-child { margin-left: 0; }
.tim .sav:nth-child(2) { background: var(--accent); }
.tim .sav:nth-child(3) { background: var(--cyan-strong); }
.tim .ring { width: 38px; height: 38px; flex: none; }
.tim .stp { display: flex; gap: 3px; }
.tim .stp i { flex: 1; height: 4px; border-radius: 9px; background: var(--line); }
.tim .kas .stp i { background: rgba(255, 255, 255, .18); }
.tim .stp i.d { background: var(--accent); }
.tim .kas .stp i.d { background: var(--cyan-soft); }
.tim .stp i.n { background: var(--accent-bright); }
.tim .cv2 { width: 44px; height: 44px; border-radius: 14px; flex: none; }

/* Angka ringkas, saldo, profil */
.tim .mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: var(--s3) 0 var(--s1); }
.tim .mini3 > div { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-tile); padding: 10px var(--s3); display: grid; gap: 2px; min-width: 0; }
.tim .mini3 b { font: 600 20px var(--font-display); overflow-wrap: anywhere; }
.tim .mini3 span { font-size: 11.5px; color: var(--muted); }
.tim .mini3 i { display: block; width: 16px; height: 3px; border-radius: 9px; margin-bottom: 3px; }
.tim .sal { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-tile); padding: 14px; }
.tim .sal .big2 { font: 600 26px var(--font-display); letter-spacing: -0.03em; margin: 2px 0 10px; }
.tim .tri { display: flex; gap: 3px; height: 6px; border-radius: 9px; }
.tim .tri:empty { background: var(--line); }
.tim .tri i { border-radius: 9px; min-width: 6px; }
.tim .leg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; font-size: var(--text-xs); color: var(--muted); }
.tim .leg b { display: block; color: var(--ink); font-size: 13px; }
.tim .sal .btn { margin-top: var(--s3); }
.tim .prof { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-tile); padding: 14px; position: relative; overflow: hidden; isolation: isolate; }
.tim .prof::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -50px; width: 150px; height: 150px; border-radius: 44px; background: var(--grad-spot); opacity: .14; transform: rotate(24deg); }
.tim .prof .pav { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font: 600 22px var(--font-display); color: var(--on-dark); background: var(--grad-spot); box-shadow: var(--shadow-spot); flex: none; }
.tim .prof .who { display: grid; min-width: 0; }
.tim .prof .who b { font-size: 17px; }
.tim .prof .roles { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tim .tagd { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--ink); color: var(--on-dark); margin-left: 6px; vertical-align: 1px; }
.tim .state.compact { box-shadow: var(--shadow-tile); }

/* T2b: daftar Kerja dan detail proyek */
.tim .stp.sm { max-width: 150px; margin: 2px 0; }
.tim .stp.sm i { height: 3px; }
.tim .addb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-dark); box-shadow: var(--shadow-spot); border: 0; cursor: pointer; flex: none; }
.tim .sortbtn { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; min-height: 32px; }
.tim .backbar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.tim .backbar .ttl { font: 600 18px var(--font-display); flex: 1; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tim button.ib { border: 0; cursor: pointer; }
.tim .next { display: flex; gap: var(--s3); align-items: center; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-tile); padding: 14px 14px 14px 18px; margin-top: var(--s3); position: relative; overflow: hidden; }
.tim .next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-bright); }
.tim .next .nx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tim .next small { color: var(--muted); font-size: var(--text-xs); }
.tim .tabs2 { display: flex; gap: 4px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--shadow-tile); margin: var(--s4) 0 var(--s1); overflow-x: auto; scrollbar-width: none; }
.tim .tabs2 button { flex: 1; border: 0; background: none; min-height: 40px; border-radius: 99px; font: 500 13px var(--font-body); color: var(--muted); white-space: nowrap; padding: 0 10px; cursor: pointer; }
.tim .tabs2 button.on { background: var(--ink); color: var(--on-dark); }
.tim .tabs2 b { font-weight: 600; margin-left: 3px; }
.tim .kv2 { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; padding: var(--s3) 14px; margin: 0; }
.tim .kv2 dt { color: var(--muted); }
.tim .kv2 dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.tim .team { display: flex; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) 14px; align-items: center; }
.tim .pp { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--neutral-wash); font-size: 13px; font-weight: 500; }
.tim .pp i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 600; color: var(--on-dark); background: var(--ink); }
.tim .pp.pic { background: var(--wash); color: var(--wash-ink); }
.tim .addp { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--line-strong); background: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.tim .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tim .urlbox { display: flex; gap: var(--s2); padding: var(--s3) 14px; border-top: 1px solid var(--line); }
.tim .urlbox .input { min-height: 44px; font-size: var(--text-sm); }
.tim .brief { padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.tim .addrow { margin-top: 10px; }
.tim .stepper { display: flex; gap: 4px; margin-bottom: var(--s2); }
.tim .stepper i { flex: 1; height: 4px; border-radius: 9px; background: var(--line); }
.tim .stepper i.d { background: var(--accent); }
.tim .sub { font-size: var(--text-xs); color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: var(--s3); }
.tim .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.tim .two .wide { grid-column: 1 / -1; }
.tim.offer .stack > * + * { margin-top: var(--s3); }
.tim .field.has-error .input, .tim .field.has-error .textarea { border-color: var(--bad); }
/* Tinjauan visual T2b: kolom kanan lebih sempit agar keterangan tidak terpotong. */
.tim .it .rt .chip { font-size: 10.5px; padding: 1px 7px; }
.tim .it .rt b { font-size: 13px; }
/* T2c: baris berupa tombol, lembar keuangan */
.tim .rowbtn { width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tim .rowbtn:active { background: var(--wash); }
.tim .proof { display: block; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--neutral-wash); margin-bottom: var(--s3); }
.tim .proof img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.tim .proof .zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(59, 10, 36, .7); color: var(--on-dark); font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.tim.fin .list { margin-bottom: var(--s3); }
.tim.fin .kas { margin-bottom: var(--s3); }
.tim .copy { display: flex; align-items: center; gap: 10px; background: var(--neutral-wash); border-radius: 14px; padding: var(--s3); margin-bottom: var(--s3); }
.tim .copy .tx { flex: 1; min-width: 0; display: grid; }
.tim .copy b { font-size: 16px; letter-spacing: .02em; overflow-wrap: anywhere; }
/* T2c: Sistem */
.tim .it .mem { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; padding: 0; }
.tim .rolechips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.tim .switch { width: 48px; height: 28px; border-radius: 99px; border: 0; background: var(--line-strong); position: relative; cursor: pointer; flex: none; transition: background var(--t-mid); }
.tim .switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); transition: transform var(--t-mid) var(--ease); }
.tim .switch[aria-checked="true"] { background: var(--ok); }
.tim .switch[aria-checked="true"]::after { transform: translateX(20px); }
.tim .grp-h a { font-weight: 500; }
