/* T.FIN admin — reuses the site's tokens so it reads as one product. */
.adm { background: var(--soft); }

.adm__warn {
  background: #F6B93B; color: #2A2100;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 9px var(--pad); text-align: center;
}
.adm__warn strong { font-weight: 600; }

.adm__bar {
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 26px;
  padding: 0 var(--pad); min-height: 64px; flex-wrap: wrap;
}
.adm__mark { text-decoration: none; line-height: 1; flex: none; }
.adm__mark b {
  font-family: var(--display); font-variation-settings: "wdth" 86;
  font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: -.035em; color: #fff;
}
.adm__mark b i { color: var(--red); font-style: inherit; }
.adm__mark span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: #8A9290; margin-left: 8px;
}
.adm__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.adm__nav a {
  color: #C7CDCC; text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: .05em; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.adm__nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.adm__nav a.on { background: var(--red); color: #fff; }
.adm__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.adm__view { color: #C7CDCC; text-decoration: none; font-family: var(--mono); font-size: 12px; }
.adm__view:hover { color: #fff; }
.adm__out {
  background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer;
  font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px;
}
.adm__out:hover { background: var(--red); }

.adm__main { max-width: 1180px; margin: 0 auto; padding: clamp(26px,3.4vw,44px) var(--pad) 80px; }
.adm__h1 {
  font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800;
  font-size: clamp(26px,3.2vw,42px); letter-spacing: -.028em; line-height: 1.05; margin: 0 0 10px;
}
.adm__muted { color: var(--ink2); margin: 0; max-width: 66ch; }
.adm__muted em { color: var(--ink); font-style: normal; font-weight: 500; }
.adm__sub { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.adm__note { font-style: italic; max-width: 40ch; }
.adm__back { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; }
.adm__back a { color: var(--ink2); text-decoration: none; }
.adm__back a:hover { color: var(--red); }
.adm__right { text-align: right; }

.adm__flash {
  background: #E8F5EC; color: #1C5C33; border-radius: var(--r-sm);
  padding: 12px 18px; font-size: 14px; margin: 0 0 24px;
}
.adm__err {
  background: #FDECEA; color: #93231B; border-radius: var(--r-sm);
  padding: 12px 18px; font-size: 14px; margin: 0 0 20px;
}

.adm__head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }

/* dashboard */
.dash__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash__stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin: 26px 0 18px; }
.stat {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift);
  padding: 20px 22px; text-decoration: none; color: inherit; display: block;
  transition: box-shadow .25s, transform .25s;
}
.stat:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
.stat__n {
  display: block; font-family: var(--display); font-variation-settings: "wdth" 100;
  font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -.03em;
}
.stat__of { font-size: 19px; color: var(--ink2); font-weight: 700; }
.stat__l { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.stat--flag .stat__n { color: var(--red); }

.dash__cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: stretch; }
.dash__cols .adm__panel { margin: 0; display: flex; flex-direction: column; }
.adm__panel--lead { background: #fff; border-left: 3px solid var(--red); }
.panel__tag {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.adm__panel--lead h2 em { font-style: normal; color: var(--red); }

.dash__jobs { list-style: none; margin: 6px 0 0; padding: 0; }
.dash__jobs li + li { box-shadow: inset 0 1px 0 var(--rule); }
.dash__jobs a { display: block; padding: 13px 0; text-decoration: none; color: inherit; transition: padding-left .2s; }
.dash__jobs a:hover { padding-left: 8px; }
.dash__jobs b { display: block; font-size: 14.5px; font-weight: 500; }
.dash__jobs a:hover b { color: var(--red); }
.dash__jobs span { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }

.dash__leads { margin-top: 12px; }
.dash__leadhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.dash__leadhead a { font-family: var(--mono); font-size: 12px; color: var(--red); text-decoration: none; }
.adm__table--flush { box-shadow: none; border-radius: 0; margin-top: 10px; }
.adm__table--flush thead th { background: none; padding-left: 0; }
.adm__table--flush td { padding-left: 0; }

.adm__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.adm__panel { background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: clamp(22px,2.4vw,32px); }
.adm__panel h2 {
  font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800;
  font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px;
}
.adm__list { list-style: none; margin: 14px 0 0; padding: 0; }
.adm__list li { padding: 12px 0; font-size: 14.5px; }
.adm__list li + li { box-shadow: inset 0 1px 0 var(--rule); }
.adm__list b { display: block; }
.adm__list span { font-size: 12.5px; color: var(--ink2); }

/* tables */
.adm__table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); font-size: 14.5px;
}
.adm__table th, .adm__table td { text-align: left; padding: 14px 18px; vertical-align: top; }
.adm__table thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink2); font-weight: 500; background: var(--soft);
}
.adm__table tbody tr + tr td { box-shadow: inset 0 1px 0 var(--rule); }
.adm__thumb { width: 76px; }
.adm__thumb img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; }
.adm__file { display: block; font-size: 12.5px; color: var(--red); text-decoration: none; }

.pill {
  display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: rgba(20,20,20,.07); color: var(--ink2); margin-right: 5px;
}
.pill--tk { background: #FDF0D5; color: #7A5B12; }
.pill--ok { background: #E4F3E9; color: #1C5C33; }

.adm__empty { background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: 44px; text-align: center; }

/* forms */
.adm__form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: clamp(22px,2.6vw,36px); margin-top: 24px; }
.adm__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld--w { grid-column: 1 / -1; }
.fld label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.fld input, .fld select, .fld textarea {
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(20,20,20,.22); border-radius: var(--r-sm);
  padding: 11px 13px; transition: border-color .2s, box-shadow .2s;
}
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: rgba(20,20,20,.4); }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,43,32,.15);
}
.fld input::placeholder, .fld textarea::placeholder { color: #8B9290; }
.fld__hint { font-family: var(--body); font-size: 12.5px; color: var(--ink2); text-transform: none; letter-spacing: 0; }
.adm__check label { display: flex; align-items: center; gap: 10px; font-size: 15px; text-transform: none; letter-spacing: 0; font-family: var(--body); color: var(--ink); }

.adm__photo { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.adm__photo > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.filebtn { position: relative; display: inline-block; cursor: pointer; }
.filebtn > span:first-child {
  display: inline-block; background: var(--ink); color: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.filebtn:hover > span:first-child { background: var(--red); }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.filebtn .fld__hint { display: block; margin-top: 8px; }
.filebtn--sm > span:first-child { padding: 8px 16px; font-size: 12px; }

.adm__actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.btn--sm { padding: 9px 18px; font-size: 12px; }
.adm__danger { margin-top: 28px; }
.adm__danger button {
  background: none; border: 0; color: #A3352C; font-size: 13px; cursor: pointer;
  font-family: var(--mono); letter-spacing: .04em; padding: 0;
}
.adm__danger button:hover { text-decoration: underline; }

/* vendors */
.adm__vendors { display: grid; gap: 16px; margin-top: 26px; }
.vcard { background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: clamp(20px,2.2vw,28px); }
.vcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.vcard h2 { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: 21px; letter-spacing: -.02em; margin: 0; }
.vcard__docs { list-style: none; margin: 16px 0; padding: 0; }
.vcard__docs li { padding: 10px 0; font-size: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vcard__docs li + li { box-shadow: inset 0 1px 0 var(--rule); }
.vcard__docs b { font-weight: 500; }
.vcard__docs span { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.vcard__docs em { margin-left: auto; font-style: normal; }
.vcard__up { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 14px; box-shadow: inset 0 1px 0 var(--rule); }
.vcard__up input[type=text], .vcard__up input:not([type]) {
  font-family: var(--body); font-size: 14px; background: var(--soft);
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 10px 12px; flex: 1 1 180px;
}
.vcard__up input:focus { outline: none; background: #fff; border-color: var(--red); }

/* login */
.adm__login { max-width: 400px; margin: clamp(50px,8vw,110px) auto; text-align: center; padding: 0 var(--pad); }
.adm__login .mark { display: inline-block; margin-bottom: 30px; text-decoration: none; }
.adm__login h1 { font-family: var(--display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: 30px; letter-spacing: -.028em; margin: 0 0 10px; line-height: 1.1; }
.adm__login p { color: var(--ink2); margin: 0 0 26px; }
.adm__login form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--lift); padding: 28px; text-align: left; }
.adm__login label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px; }
.adm__login input { width: 100%; font-size: 16px; background: var(--soft); border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 14px; }
.adm__login input:focus { outline: none; background: #fff; border-color: var(--red); }
.adm__login .btn { width: 100%; text-align: center; margin-top: 18px; }

@media (max-width: 1080px) {
  .dash__stats { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 960px) {
  .adm__cols, .dash__cols { grid-template-columns: 1fr; }
  .adm__grid { grid-template-columns: 1fr 1fr; }
  .adm__photo { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .adm__grid { grid-template-columns: 1fr; }
  .dash__stats { grid-template-columns: 1fr 1fr; }
  .adm__thumb { display: none; }
}
