/* ================================================
   YE TRADE JOURNAL — MASTER UI STYLES
   Full UI identical to original inline CSS version
   Modular, scalable, and ready for expansion
=================================================== */


/* Base App Wrapper */
.ye-tj-app {
    width: 100%;
    max-width: none;              /* full width */
    margin: 0;                    /* remove page margin container */
    padding: 1rem;                /* keep same breathing room */
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 260px minmax(0,1fr);
    gap: 1.75rem;

    background: #020617;
    border-radius: 22px;
    border: 1px solid #0f172a;
    box-shadow: 0 24px 60px rgba(15,23,42,0.9);
    color: #e5e7eb;
}

/* FIX: was @media (max-width: 100%) which is invalid */
@media (max-width: 960px) {
    .ye-tj-app {
        grid-template-columns: minmax(0,1fr);
        padding: 0.75rem;
    }
}

/* Filter bar (top-right) */
.ye-tj-filters{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.ye-tj-filter{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:140px;
}

.ye-tj-filter span{
  font-size:12px;
  opacity:.85;
}

.ye-tj-filter select,
.ye-tj-filter input[type="date"]{
  height:36px;
  border-radius:10px;
  padding:0 10px;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
}

.ye-tj-filter-custom{ display:none; }
.ye-tj-filters.is-custom .ye-tj-filter-custom{ display:flex; }

/* Filter date input + calendar button wrapper */
.ye-tj-datewrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ye-tj-datewrap input{
  padding-right: 42px; /* room for calendar button */
}

.ye-tj-datebtn{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  width: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.ye-tj-datebtn:hover{
  background: rgba(255,255,255,.10);
}

/* Sidebar */
.ye-tj-sidebar {
    background: #020617;
    border-right: 1px solid #0f172a;
    padding: 1.2rem 1.2rem 1.5rem;
    border-radius: 22px 0 0 22px;
}
@media (max-width: 960px) {
    .ye-tj-sidebar {
        border-right: none;
        border-bottom: 1px solid #0f172a;
        border-radius: 22px 22px 0 0;
    }
}

.ye-tj-logo {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.6rem;
}
.ye-tj-logo span {
    color: #f97316;
}

.ye-tj-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.ye-tj-status-active {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.5);
    color: #bbf7d0;
}
.ye-tj-status-locked {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.5);
    color: #fecaca;
}

/* Sidebar Navigation */
.ye-tj-nav {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ye-tj-nav-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin: 0.7rem 0 0.25rem;
}

.ye-tj-nav-btn {
    width: 100%;
    text-align: left;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ye-tj-nav-btn:hover {
    background: #0f172a;
}

.ye-tj-nav-btn.active {
    background: linear-gradient(135deg,#ef4444,#b91c1c);
    color: #fff;
}

/* Main Panel */
.ye-tj-main {
    background: #020617;
    border-radius: 0 22px 22px 0;
    padding: 1.25rem 1.5rem 1.75rem;
}

@media (max-width: 960px) {
    .ye-tj-main {
        border-radius: 0 0 22px 22px;
    }
}

/* Header */
.ye-tj-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.3rem;
    color: #f9fafb;
}

.ye-tj-header-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.ye-tj-header-sub {
    font-size: 0.9rem;
    color: #9ca3af;
    max-width: 420px;
    margin-top: 0.2rem;
}

.ye-tj-header-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Buttons */
.ye-tj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
    white-space: nowrap;
}

.ye-tj-btn-primary {
    background: linear-gradient(135deg,#ef4444,#b91c1c);
    color: #fff;
    box-shadow: 0 14px 35px rgba(248,113,113,0.35);
}
.ye-tj-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(248,113,113,0.5);
}
.ye-tj-btn-ghost {
    background: rgba(15,23,42,0.9);
    border: 1px solid #1f2937;
    color: #e5e7eb;
}

/* Sections */
.ye-tj-section { display: none; }
.ye-tj-section.active { display: block; }

/* Dashboard Grid */
.ye-tj-grid-3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
    .ye-tj-grid-3 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 640px) {
    .ye-tj-grid-3 {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Cards */
.ye-tj-card {
    background: #020617;
    border-radius: 16px;
    border: 1px solid #0f172a;
    padding: 1rem;
    color: #e5e7eb;
}

.ye-tj-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.ye-tj-card .big {
    font-size: 1.4rem;
    font-weight: 700;
}

.ye-tj-card .sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Flash Messages */
.ye-tj-flash {
    margin-bottom: 0.9rem;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    font-size: 0.85rem;
}
.ye-tj-flash-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.55);
    color: #bbf7d0;
}
.ye-tj-flash-error {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.55);
    color: #fecaca;
}

/* Tables */
.ye-tj-table-wrap {
    background: #020617;
    border-radius: 16px;
    border: 1px solid #0f172a;
    padding: 1rem;
    overflow-x: auto;
}

.ye-tj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.ye-tj-table th,
.ye-tj-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #0f172a;
    white-space: nowrap;
}

.ye-tj-badge-green { color: #22c55e; }
.ye-tj-badge-red { color: #ef4444; }

/* Pills */
.ye-tj-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    padding: 0.15rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
}

/* Forms */
.ye-tj-form label {
    display: block;
    font-size: 0.8rem;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.ye-tj-form input,
.ye-tj-form select,
.ye-tj-form textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #0f172a;
    background: #020617;
    color: #e5e7eb;
    padding: 0.45rem 0.55rem;
    font-size: 0.85rem;
}

.ye-tj-form textarea {
    min-height: 70px;
    resize: vertical;
}

/* Form grid */
.ye-tj-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0.75rem;
}
@media (max-width: 768px) {
    .ye-tj-form-grid-2 {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Repeater Rows */
.ye-tj-repeater-row {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1.4fr) auto;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.ye-tj-repeater-row button {
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #fff;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
}

/* Calendar */
.ye-tj-calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: #e5e7eb;
}

.ye-tj-calendar th,
.ye-tj-calendar td {
    border: 1px solid #0f172a;
    padding: 0.3rem;
    vertical-align: top;
    min-width: 70px;
    height: 60px;
}

.ye-tj-calendar-day {
    font-size: 0.7rem;
    color: #9ca3af;
}

.ye-tj-calendar-pl {
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.ye-tj-calendar-pl.pos { color: #22c55e; }
.ye-tj-calendar-pl.neg { color: #ef4444; }
.ye-tj-calendar-pl.flat { color: #e5e7eb; }

/* Reports Section */
.ye-tj-reports-filters {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}
@media (max-width: 1024px) {
    .ye-tj-reports-filters {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 640px) {
    .ye-tj-reports-filters {
        grid-template-columns: minmax(0,1fr);
    }
}

.ye-tj-reports-tiles {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}
@media (max-width: 960px) {
    .ye-tj-reports-tiles {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 640px) {
    .ye-tj-reports-tiles {
        grid-template-columns: minmax(0,1fr);
    }
}

/* Lock Screen */
.ye-tj-lock {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    background: #020617;
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    border: 1px solid #0f172a;
    color: #e5e7eb;
}

/* =========================================================
   FORCE FULL-WIDTH (break out of theme container)
   Add this at the very bottom of journal.css
========================================================= */

/* 1) Break the app out of any theme max-width container */
.ye-tj-app {
  width: 100vw !important;        /* full viewport width */
  max-width: 100vw !important;
  margin-left: 50% !important;    /* breakout technique */
  transform: translateX(-50%) !important;
  padding: 1rem !important;       /* keep your spacing */
  box-sizing: border-box !important;
}

/* 2) Remove common theme padding/max-width wrappers *around* the shortcode area */
body .entry-content:has(.ye-tj-app),
body .wp-block-group:has(.ye-tj-app),
body .site-main:has(.ye-tj-app),
body .content-area:has(.ye-tj-app),
body .container:has(.ye-tj-app),
body .wrap:has(.ye-tj-app),
body .site-content:has(.ye-tj-app) {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3) Mobile: avoid horizontal scrolling */
@media (max-width: 960px) {
  .ye-tj-app {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
    padding: 0.75rem !important;
  }
}

/* =========================
   DASHBOARD LAYOUT (KPIs TOP)
========================= */

/* Main dashboard grid */
.ye-tj-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

/* KPI row: 4 across */
.ye-tj-dashboard__kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* Big panels under KPIs */
.ye-tj-dashboard__calendar {
  grid-column: 1 / 7;  /* left half */
}
.ye-tj-dashboard__equity {
  grid-column: 7 / -1; /* right half */
}

/* Bottom 3 tiles */
.ye-tj-dashboard__byinst { grid-column: 1 / 5; }
.ye-tj-dashboard__bywday { grid-column: 5 / 9; }
.ye-tj-dashboard__bystrat { grid-column: 9 / -1; }

/* Recent full width */
.ye-tj-dashboard__recent {
  grid-column: 1 / -1;
}

/* Card header row */
.ye-tj-dashboard__cardhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ye-tj-dashboard__monthnav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Equity */
.ye-tj-equity svg {
  width: 100%;
  height: 220px;
  color: #ef4444; /* uses currentColor */
}
.ye-tj-equity__meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Mini tables */
.ye-tj-mini-table { margin-top: 0.6rem; }
.ye-tj-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #0f172a;
}
.ye-tj-mini-row:last-child { border-bottom: none; }

.ye-tj-muted {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .ye-tj-dashboard__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ye-tj-dashboard__calendar { grid-column: 1 / -1; }
  .ye-tj-dashboard__equity   { grid-column: 1 / -1; }

  .ye-tj-dashboard__byinst   { grid-column: 1 / -1; }
  .ye-tj-dashboard__bywday   { grid-column: 1 / -1; }
  .ye-tj-dashboard__bystrat  { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .ye-tj-dashboard__kpis {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   CLEANUP: Remove theme page title ("Journal") + extra gaps
   + Sleek dashboard polish
   Paste at the BOTTOM of journal.css
========================================================= */

/* -----------------------------
   1) Hide THEME page title ("Journal") on this page only
   ----------------------------- */
body:has(.ye-tj-app) h1,
body:has(.ye-tj-app) .entry-title,
body:has(.ye-tj-app) .page-title,
body:has(.ye-tj-app) header.page-header,
body:has(.ye-tj-app) .elementor-page-title,
body:has(.ye-tj-app) .elementor-widget-theme-post-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Some themes add spacing under title wrapper */
body:has(.ye-tj-app) .page-header,
body:has(.ye-tj-app) .entry-header {
  margin: 0 !important;
  padding: 0 !important;
}

/* -----------------------------
   2) Remove empty space under "YE Trading Journal + Playbook"
   ----------------------------- */
.ye-tj-header {
  margin-bottom: 0.75rem !important; /* was bigger */
  padding-bottom: 0 !important;
}

/* If your first section/card adds extra top margin, neutralize it */
.ye-tj-main > .ye-tj-section.active:first-of-type,
.ye-tj-main > .ye-tj-card:first-of-type {
  margin-top: 0 !important;
}

/* -----------------------------
   3) Make the dashboard sleek + professional
   ----------------------------- */

/* Slightly soften overall borders + tighten spacing */
.ye-tj-app {
  border: 1px solid rgba(148,163,184,0.10) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55) !important;
}

/* Main padding a touch tighter */
.ye-tj-main {
  padding: 1.1rem 1.25rem 1.25rem !important;
}

/* Dashboard spacing */
.ye-tj-dashboard {
  gap: 0.85rem !important;
}

/* Cards: more premium glass look */
.ye-tj-card {
  background: rgba(2,6,23,0.92) !important;
  border: 1px solid rgba(148,163,184,0.12) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35) !important;
  border-radius: 18px !important;
  padding: 0.95rem !important;
}

/* KPI cards: slightly tighter + aligned */
.ye-tj-kpi .big {
  font-size: 1.35rem !important;
  letter-spacing: 0.2px;
}

/* Header title/sub tighter */
.ye-tj-header-title {
  font-size: 1.35rem !important;
}
.ye-tj-header-sub {
  max-width: 520px !important;
  margin-top: 0.15rem !important;
}

/* Buttons: cleaner hover, less "puffy" */
.ye-tj-btn {
  padding: 0.5rem 1.05rem !important;
}
.ye-tj-btn-primary {
  box-shadow: 0 10px 24px rgba(239,68,68,0.26) !important;
}
.ye-tj-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(239,68,68,0.35) !important;
}

/* Tables: cleaner rows */
.ye-tj-table th {
  color: #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ye-tj-table td {
  padding: 0.55rem 0.6rem !important;
}
.ye-tj-table tr:hover td {
  background: rgba(15,23,42,0.55) !important;
}

/* Calendar: subtle cell background so it looks less empty */
.ye-tj-calendar td {
  background: rgba(15,23,42,0.25) !important;
}
.ye-tj-calendar th {
  background: rgba(15,23,42,0.55) !important;
}

/* Mini tables (performance tiles) spacing */
.ye-tj-mini-row {
  padding: 0.3rem 0 !important;
  border-bottom: 1px solid rgba(148,163,184,0.10) !important;
}

/* -----------------------------
   4) Optional: Fill any theme "grey area" behind content
   (some themes set a light background around the page content)
   ----------------------------- */
body:has(.ye-tj-app) .site,
body:has(.ye-tj-app) .site-content,
body:has(.ye-tj-app) .content-area,
body:has(.ye-tj-app) .site-main,
body:has(.ye-tj-app) .entry-content,
body:has(.ye-tj-app) .elementor-section-wrap,
body:has(.ye-tj-app) .elementor-container {
  background: transparent !important;
}

/* KPI value + visual */
.ye-kpi-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:0.75rem;
}

/* The spark bar container */
.ye-kpi-spark{
  position:relative;
  width:92px;
  height:10px;
  border-radius:999px;
  background: rgba(148,163,184,0.14);
  border: 1px solid rgba(148,163,184,0.16);
  overflow:hidden;
  flex: 0 0 auto;
}

/* The filled portion (uses --kpi as percentage) */
.ye-kpi-spark::before{
  content:"";
  position:absolute;
  inset:0;
  width: calc(var(--kpi, 0) * 1%);
  background: linear-gradient(135deg,#ef4444,#b91c1c);
  border-radius:999px;
}

/* Subtle shine */
.ye-kpi-spark::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0));
  opacity:0.35;
  pointer-events:none;
}

/* =========================
   KPI visuals (Win Rate / Avg RR / Profit Factor)
   Uses inline style: --fill: XX%;
========================= */

.ye-tj-kpi-visual{
  margin-top: .55rem;
}

.ye-tj-kpi-bar{
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.14); /* subtle track */
  overflow: hidden;
}

.ye-tj-kpi-bar > span{
  display:block;
  height:100%;
  width: var(--fill, 0%);
  border-radius: 999px;
  background: currentColor;          /* inherits color */
  opacity: .95;
}

/* tiny legend under bar */
.ye-tj-kpi-legend{
  margin-top: .35rem;
  display:flex;
  justify-content: space-between;
  gap:.6rem;
  font-size: .78rem;
  color:#9ca3af;
  line-height:1.1;
}

.ye-tj-kpi-legend .ye-tj-kpi-label{
  opacity:.95;
}

.ye-tj-kpi-legend .ye-tj-kpi-pct{
  color:#cbd5e1;
  font-weight:600;
}

/* give each KPI a distinct color without changing your layout */
.ye-tj-kpi-visual--win{ color:#22c55e; }  /* green */
.ye-tj-kpi-visual--rr{  color:#38bdf8; }  /* blue */
.ye-tj-kpi-visual--pf{  color:#f59e0b; }  /* amber */

/* Profit factor empty state (no losses => —) */
.ye-tj-kpi-visual.is-empty .ye-tj-kpi-bar > span{
  width:0% !important;
  opacity:.4;
}

/* =========================================
   Equity (Chart.js canvas + SVG fallback)
   ========================================= */

.ye-tj-equity {
  position: relative;
}

/* Canvas container defaults hidden until Chart.js successfully renders */
.ye-tj-equity-canvas {
  display: none;          /* journal.js will toggle this ON */
  width: 100%;
  height: 220px;          /* match your SVG height */
}

/* Make canvas fill the container cleanly */
.ye-tj-equity-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* SVG fallback defaults visible */
.ye-tj-equity-svg {
  display: block;
}

.ye-tj-equity-svg svg {
  width: 100%;
  height: 220px;
  color: #ef4444; /* uses currentColor */
}

/* =====================================================
   EDIT TRADE MODAL (moved from inline JS to CSS)
===================================================== */
.ye-tj-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999999;
  background: rgba(0,0,0,.55);
}
.ye-tj-modal.is-open{ display:flex; }

.ye-tj-modal__card{
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.ye-tj-modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ye-tj-modal__title{
  font-weight: 700;
  font-size: 16px;
}
.ye-tj-modal__x{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 22px;
}

.ye-tj-modal__body{ padding: 16px; }

.ye-tj-formgrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px){
  .ye-tj-formgrid{ grid-template-columns: 1fr; }
}

.ye-tj-field{ display:block; }
.ye-tj-field--full{ margin-top: 12px; }
.ye-tj-field__label{
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}
.ye-tj-input, .ye-tj-textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 10px 12px;
}
.ye-tj-textarea{ resize: vertical; }

.ye-tj-modal__foot{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ye-tj-modal__actions{
  display:flex;
  gap: 10px;
}
.ye-tj-edit-status{
  font-size: 12px;
  opacity: .85;
  min-height: 18px;
}