body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#f5f7fb;
  margin:0;
  color:#111827;
}

.tw-shell{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:100vh;
}

.tw-sidebar{
  background:#0f172a;
  color:#fff;
  padding:20px;
  box-sizing:border-box;
}

.tw-brand{
  font-size:18px;
  font-weight:700;
  margin-bottom:20px;
  letter-spacing:.2px;
}

.tw-nav a{
  display:block;
  color:#cbd5e1;
  padding:10px 12px;
  text-decoration:none;
  border-radius:8px;
  margin-bottom:6px;
  transition:background .15s ease,color .15s ease;
}

.tw-nav a.active,
.tw-nav a:hover{
  background:#1e293b;
  color:#fff;
}

.tw-main{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.tw-topbar{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  padding:16px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.02);
}

.tw-topbar .tw-title{
  font-size:20px;
  font-weight:700;
}

.tw-topbar .tw-subtitle{
  font-size:13px;
  color:#6b7280;
  margin-top:4px;
}

.tw-topbar .tw-meta{
  font-size:14px;
  color:#6b7280;
  text-align:right;
}

.tw-content{
  padding:24px;
  box-sizing:border-box;
}

.tw-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.tw-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:18px;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}

.tw-card h3{
  margin:0 0 8px 0;
  font-size:13px;
  color:#6b7280;
  font-weight:600;
  letter-spacing:.2px;
}

.tw-value{
  font-size:26px;
  font-weight:700;
}

.tw-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tw-button{
  display:inline-block;
  background:#E87722;
  color:#fff;
  padding:10px 14px;
  text-decoration:none;
  border-radius:8px;
  font-weight:600;
  transition:transform .08s ease, box-shadow .15s ease;
}

.tw-button:hover{
  box-shadow:0 6px 16px rgba(232,119,34,.18);
}

.tw-button.secondary{
  background:#fff;
  color:#111827;
  border:1px solid #d1d5db;
}

.tw-chip{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}

.tw-chip.green{background:#dcfce7;color:#166534;}
.tw-chip.red{background:#fee2e2;color:#991b1b;}
.tw-chip.orange{background:#ffedd5;color:#9a3412;}

.tw-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  overflow:hidden;
}

.tw-table th,
.tw-table td{
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid #e5e7eb;
}

.tw-table th{
  background:#f8fafc;
  font-size:13px;
  color:#475569;
}

.tw-table tr:last-child td{
  border-bottom:none;
}

@media (max-width: 1100px){
  .tw-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 800px){
  .tw-shell{
    grid-template-columns:1fr;
  }

  .tw-sidebar{
    padding-bottom:10px;
  }

  .tw-grid{
    grid-template-columns:1fr;
  }

  .tw-topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .tw-topbar .tw-meta{
    text-align:left;
  }
}

.tw-settings-shell{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:24px;
  align-items:start;
}

.tw-settings-menu{
  position:sticky;
  top:24px;
}

.tw-settings-menu__title{
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:14px;
}

.tw-settings-nav a{
  display:block;
  padding:12px 14px;
  margin-bottom:8px;
  border-radius:10px;
  text-decoration:none;
  color:#334155;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  font-weight:600;
}

.tw-settings-nav a.active,
.tw-settings-nav a:hover{
  background:#fff7ed;
  border-color:#fdba74;
  color:#9a3412;
}

.tw-settings-panel{
  min-width:0;
}

.tw-settings-panel__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.tw-settings-panel__eyebrow{
  font-size:12px;
  font-weight:700;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:6px;
}

.tw-settings-panel__title{
  margin:0;
  font-size:24px;
}

.tw-settings-panel__subtitle,
.tw-muted{
  margin:8px 0 0;
  color:#64748b;
  font-size:14px;
}

.tw-settings-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.tw-settings-grid--two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.tw-stack-sm{
  display:grid;
  gap:12px;
}

.tw-field-label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#475569;
}

.tw-input,
.tw-textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:11px 12px;
  background:#fff;
  color:#111827;
  font:inherit;
}

.tw-textarea{
  min-height:110px;
  resize:vertical;
}

.tw-logo-preview{
  width:120px;
  height:120px;
  border-radius:18px;
  background:#0f172a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:700;
  margin-bottom:16px;
}

.tw-footer-preview{
  border:1px dashed #cbd5e1;
  border-radius:14px;
  padding:18px;
  background:#f8fafc;
}

.tw-footer-preview__line{
  font-weight:600;
  margin-bottom:8px;
}

.tw-footer-preview__line--muted{
  font-weight:400;
  color:#64748b;
  margin-bottom:0;
}

.tw-button-static{
  cursor:default;
}

@media (max-width: 1100px){
  .tw-settings-shell,
  .tw-settings-grid--two{
    grid-template-columns:1fr;
  }

  .tw-settings-menu{
    position:static;
  }
}

.tw-notice{background:#ecfeff;border:1px solid #a5f3fc;color:#0f172a;}
.tw-logo-preview--live{display:flex;align-items:center;justify-content:center;min-height:120px;overflow:hidden;}
.tw-logo-preview--live img{display:block;max-width:100%;max-height:72px;width:auto;height:auto;}
.tw-field-label{display:block;font-size:12px;font-weight:700;color:#475569;margin-bottom:6px;}
.tw-input,.tw-textarea,select.tw-input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#111827;}
.tw-textarea{min-height:110px;resize:vertical;}
.tw-stack-sm{display:flex;flex-direction:column;gap:10px;}
.tw-footer-preview--center{text-align:center;}
.tw-footer-preview--right{text-align:right;}
.tw-footer-preview--single{gap:8px;}
.tw-footer-preview--stacked{gap:12px;}
@media (max-width: 980px){.tw-settings-shell{grid-template-columns:1fr;}.tw-settings-menu{position:static;}.tw-settings-panel__header{flex-direction:column;}.tw-settings-grid--two{grid-template-columns:1fr;}}


.tw-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.tw-brand-mark{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#1e293b;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
  overflow:hidden;
  flex:0 0 40px;
}

.tw-brand-mark--image{
  background:#fff;
}

.tw-brand-mark img{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
}

.tw-brand-text{
  display:block;
  min-width:0;
  font-size:16px;
  font-weight:700;
  color:#fff;
  line-height:1.2;
}

.tw-app-footer{
  margin-top:24px;
  padding:16px 24px 24px;
  border-top:1px solid #e5e7eb;
  color:#64748b;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.tw-app-footer--center{ text-align:center; }
.tw-app-footer--right{ text-align:right; }
.tw-app-footer__line{ font-size:13px; }
.tw-app-footer__line--muted{ color:#94a3b8; }

.tw-legacy-shell{
  min-height:100vh;
  background:#f5f7fb;
}

.tw-legacy-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 24px;
  background:#0f172a;
}

.tw-legacy-header__meta{
  color:#cbd5e1;
  text-align:right;
  font-size:13px;
}

.tw-legacy-nav{
  background:#1e293b;
  padding:12px 24px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tw-legacy-nav a{
  color:#e2e8f0;
  text-decoration:none;
  font-weight:600;
  padding:8px 12px;
  border-radius:8px;
}

.tw-legacy-nav a:hover{
  background:#334155;
  color:#fff;
}

.tw-legacy-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:24px;
}

.tw-legacy-wrap h1{ margin-top:0; }
.tw-legacy-wrap .button{display:inline-block;background:#E87722;color:#fff;padding:10px 14px;text-decoration:none;border:none;cursor:pointer;border-radius:8px}
.tw-legacy-wrap .button.secondary{background:#fff;color:#111;border:1px solid #ccc}
.tw-legacy-wrap form{background:#fff;padding:20px;border:1px solid #ddd;max-width:720px}
.tw-legacy-wrap input,.tw-legacy-wrap select{width:100%;padding:10px;margin:6px 0 16px;border:1px solid #ccc;box-sizing:border-box}
.tw-legacy-wrap textarea{width:100%;padding:10px;margin:6px 0 16px;border:1px solid #ccc;box-sizing:border-box}
.tw-legacy-wrap .notice{background:#fff3cd;border:1px solid #ffe69c;padding:12px;margin:0 0 16px}

@media (max-width: 800px){
  .tw-legacy-header{flex-direction:column;align-items:flex-start;}
  .tw-legacy-header__meta{text-align:left;}
}

/* v1.1.20 logo refinement */
.tw-brand,.tw-app-brand,.tw-shell-brand{display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.tw-brand__logo,.tw-app-brand__logo,.tw-shell-brand__logo{display:block;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;line-height:0}
.tw-brand__logo img,.tw-app-brand__logo img,.tw-shell-brand__logo img{display:block;max-height:44px;width:auto;height:auto;object-fit:contain;background:transparent!important;border:0!important;box-shadow:none!important}
.tw-brand__name,.tw-app-brand__name,.tw-shell-brand__name{display:block;margin:0;padding:0;line-height:1.2;font-size:12px;font-weight:600;opacity:.9}


/* corrected v1.1.20 brand output */
.tw-brand,
.tw-legacy-header__brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
}

.tw-brand-logo{
  display:block;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  line-height:0;
}

.tw-brand-logo img{
  display:block;
  max-height:44px;
  width:auto;
  height:auto;
  object-fit:contain;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}

.tw-brand-name{
  display:block;
  margin:0;
  padding:0;
  line-height:1.2;
  font-size:12px;
  font-weight:600;
  color:inherit;
  opacity:.95;
}

.tw-brand-mark{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#1e293b;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
  overflow:hidden;
  flex:0 0 40px;
}

.tw-brand .tw-brand-mark + .tw-brand-name,
.tw-legacy-header__brand .tw-brand-mark + .tw-brand-name{
  color:inherit;
}

/* v1.1.21 center app name under logo */
.tw-brand,
.tw-legacy-header__brand{
  align-items:center !important;
  text-align:center;
}

.tw-brand-name{
  text-align:center;
  width:100%;
}


/* v1.1.22 footer lock */
.tw-main{
  min-height:100vh;
}

.tw-content{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.tw-content > .tw-app-footer{
  margin-top:auto;
}

.tw-legacy-shell{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

.tw-legacy-wrap{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  width:100%;
  box-sizing:border-box;
}

.tw-legacy-wrap > .tw-app-footer{
  margin-top:auto;
}


/* v1.1.23 login page */
.tw-login-body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:#0f172a;
}

.tw-login-shell{
  flex:1 1 auto;
  min-height:calc(100vh - 88px);
  display:grid;
  grid-template-columns:1fr 1fr;
}

.tw-login-column{
  position:relative;
  min-height:100%;
  color:#fff;
}

.tw-login-column__overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.14);
}

.tw-login-column__overlay--right{
  background:rgba(6,23,48,.24);
}

.tw-login-column__inner,
.tw-login-form-wrap{
  position:relative;
  z-index:1;
  min-height:100%;
  padding:48px;
  box-sizing:border-box;
}

.tw-login-column__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:28px;
}

.tw-login-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
}

.tw-login-brand img{
  display:block;
  max-width:220px;
  max-height:88px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.tw-login-brand__fallback{
  width:72px;
  height:72px;
  border-radius:18px;
  background:rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  font-weight:800;
  letter-spacing:.08em;
}

.tw-login-brand__name{
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.tw-login-info-cards{
  width:min(100%, 520px);
  display:grid;
  gap:16px;
}

.tw-login-info-card{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:20px;
  backdrop-filter:blur(4px);
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}

.tw-login-info-card h3{
  margin:0 0 10px 0;
  color:#fff;
  font-size:18px;
  font-weight:700;
}

.tw-login-info-card p{
  margin:0;
  line-height:1.6;
  color:rgba(255,255,255,.92);
}

.tw-login-form-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

.tw-login-card{
  width:min(100%, 440px);
  background:#fff;
  border-radius:18px;
  padding:28px;
  box-shadow:0 24px 48px rgba(0,0,0,.24);
  color:#111827;
}

.tw-login-card__header{
  margin-bottom:18px;
}

.tw-login-card__header h1{
  margin:0 0 8px 0;
  font-size:28px;
  line-height:1.1;
}

.tw-login-card__header p{
  margin:0;
  color:#64748b;
}

.tw-login-form{
  display:grid;
  gap:12px;
}

.tw-login-form label{
  font-weight:600;
  color:#334155;
}

.tw-login-form input{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  font:inherit;
}

.tw-login-form .tw-button{
  margin-top:6px;
  border:0;
  cursor:pointer;
}

.tw-login-error{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:16px;
}

.tw-login-image-preview{
  display:block;
  border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
  margin-top:8px;
}

.tw-login-image-preview img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

@media (max-width: 980px){
  .tw-login-shell{
    grid-template-columns:1fr;
  }

  .tw-login-column__inner,
  .tw-login-form-wrap{
    padding:32px 24px;
  }

  .tw-login-info-cards{
    width:100%;
  }

  .tw-login-card{
    width:min(100%, 520px);
  }
}


/* v1.1.24 login polish */
.tw-login-body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.tw-login-shell{
  flex:1 1 auto;
  min-height:0;
  display:block;
}

.tw-login-column--left{
  min-height:calc(100vh - 88px);
}

.tw-login-column__inner{
  justify-content:flex-start;
  align-items:center;
  padding:40px 48px 32px;
}

.tw-login-brand{
  margin-bottom:20px;
}

.tw-login-toprow{
  width:min(100%, 1180px);
  display:grid;
  grid-template-columns:minmax(360px, 1fr) minmax(360px, 460px);
  gap:28px;
  align-items:start;
}

.tw-login-info-cards{
  width:100%;
  display:grid;
  gap:16px;
}

.tw-login-form-wrap{
  min-height:auto;
  padding:0;
  display:block;
}

.tw-login-card{
  width:100%;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  padding:24px;
  backdrop-filter:blur(4px);
  box-shadow:0 10px 28px rgba(0,0,0,.14);
  color:#fff;
}

.tw-login-card__header{
  margin-bottom:18px;
}

.tw-login-card__header h1{
  margin:0 0 8px 0;
  font-size:28px;
  line-height:1.1;
  color:#fff;
}

.tw-login-card__header p{
  margin:0;
  color:rgba(255,255,255,.82);
}

.tw-login-form{
  display:grid;
  gap:12px;
}

.tw-login-form label{
  font-weight:600;
  color:#fff;
}

.tw-login-form input{
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:12px;
  font:inherit;
  background:rgba(255,255,255,.12);
  color:#fff;
  outline:none;
  backdrop-filter:blur(4px);
}

.tw-login-form input::placeholder{
  color:rgba(255,255,255,.6);
}

.tw-login-form input:focus{
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.16);
}

.tw-login-submit{
  margin-top:8px;
  width:100%;
  border:0;
  cursor:pointer;
}

.tw-login-error{
  background:rgba(127,29,29,.28);
  color:#fff;
  border:1px solid rgba(254,202,202,.35);
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:16px;
}

.tw-login-body > .tw-app-footer{
  margin-top:0 !important;
  flex-shrink:0;
}

@media (max-width: 980px){
  .tw-login-column--left{
    min-height:auto;
  }

  .tw-login-column__inner{
    padding:32px 24px;
  }

  .tw-login-toprow{
    grid-template-columns:1fr;
  }
}


/* v1.1.25 restore true two-column login layout */
.tw-login-shell.tw-login-shell--two-col{
  flex:1 1 auto;
  min-height:calc(100vh - 88px);
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
}

.tw-login-shell--two-col .tw-login-column{
  position:relative;
  min-height:100%;
}

.tw-login-shell--two-col .tw-login-column__inner{
  position:relative;
  z-index:1;
  min-height:100%;
  padding:40px 48px 32px;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.tw-login-shell--two-col .tw-login-column__inner--right{
  align-items:stretch;
}

.tw-login-shell--two-col .tw-login-brand{
  margin-bottom:20px;
}

.tw-login-shell--two-col .tw-login-info-cards{
  width:min(100%, 520px);
  display:grid;
  gap:16px;
}

.tw-login-shell--two-col .tw-login-spacer{
  width:100%;
  height:132px;
  flex:0 0 132px;
}

.tw-login-shell--two-col .tw-login-form-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:0;
  min-height:auto;
}

.tw-login-shell--two-col .tw-login-card{
  width:min(100%, 460px);
}

.tw-login-body > .tw-app-footer{
  margin-top:0 !important;
  flex-shrink:0;
}

@media (max-width: 980px){
  .tw-login-shell.tw-login-shell--two-col{
    grid-template-columns:1fr !important;
    min-height:auto;
  }

  .tw-login-shell--two-col .tw-login-column__inner{
    padding:32px 24px;
  }

  .tw-login-shell--two-col .tw-login-info-cards{
    width:100%;
  }

  .tw-login-shell--two-col .tw-login-spacer{
    display:none;
  }

  .tw-login-shell--two-col .tw-login-card{
    width:min(100%, 520px);
  }
}


/* v1.1.27 branding/footer fixes */
.tw-logo-preview--plain{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:84px;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.tw-logo-preview--plain img{
  display:block;
  max-width:240px;
  max-height:72px;
  width:auto;
  height:auto;
  object-fit:contain;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.tw-logo-preview__fallback{
  color:#64748b;
  font-size:14px;
  font-weight:600;
}
.tw-footer-preview{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:16px 18px;
  background:#fff;
}
.tw-footer-preview--single{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:16px;
  align-items:center;
}
.tw-footer-preview--stacked{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tw-footer-preview__col--left{ text-align:left; }
.tw-footer-preview__col--center{ text-align:center; }
.tw-footer-preview__col--right{ text-align:right; }
.tw-footer-preview--stacked .tw-footer-preview__col--left,
.tw-footer-preview--stacked .tw-footer-preview__col--center,
.tw-footer-preview--stacked .tw-footer-preview__col--right{
  text-align:left;
}
.tw-app-footer--single{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:16px;
  align-items:center;
}
.tw-app-footer--single .tw-app-footer__col--left{ text-align:left; }
.tw-app-footer--single .tw-app-footer__col--center{ text-align:center; }
.tw-app-footer--single .tw-app-footer__col--right{ text-align:right; }
.tw-app-footer--stacked{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tw-app-footer--stacked.tw-app-footer--left{ text-align:left; }
.tw-app-footer--stacked.tw-app-footer--center{ text-align:center; }
.tw-app-footer--stacked.tw-app-footer--right{ text-align:right; }


/* v1.1.29 login button ThinkWeb blue */
.tw-login-submit{
background:#0b5cff;
color:#fff;
border:0;
}

.tw-login-submit:hover{
background:#094de0;
}

.tw-login-submit:active{
background:#083fc2;
}


/* v1.1.30 menu containment */
.tw-shell{
  display:grid;
  grid-template-columns:292px 1fr;
  min-height:100vh;
}

.tw-sidebar{
  background:#0f172a;
  color:#fff;
  padding:20px 16px;
  box-sizing:border-box;
}

.tw-sidebar__panel{
  position:sticky;
  top:20px;
  min-height:calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(30,41,59,.96) 0%, rgba(15,23,42,.98) 100%);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}

.tw-brand{
  margin-bottom:0;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.tw-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:0;
}

.tw-nav a{
  margin-bottom:0;
}

.tw-sidebar__footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

.tw-sidebar__logout{
  display:block;
  color:#e2e8f0;
  text-decoration:none;
  font-weight:700;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.06);
}

.tw-sidebar__logout:hover{
  background:rgba(255,255,255,.12);
  color:#fff;
}

.tw-legacy-menu-shell{
  padding:14px 24px 0;
}

.tw-legacy-nav{
  background:#1e293b;
  padding:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  box-shadow:0 10px 24px rgba(15,23,42,.12);
}

@media (max-width: 800px){
  .tw-shell{
    grid-template-columns:1fr;
  }

  .tw-sidebar{
    padding:16px;
  }

  .tw-sidebar__panel{
    min-height:auto;
    position:relative;
    top:auto;
  }

  .tw-legacy-menu-shell{
    padding:12px 16px 0;
  }
}


/* v1.1.31 settings submenu in main menu */
.tw-subnav{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-top:14px;
  margin-top:2px;
  border-top:1px solid rgba(255,255,255,.08);
}

.tw-subnav a{
  display:block;
  color:#94a3b8;
  padding:9px 12px 9px 22px;
  text-decoration:none;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  margin:0;
}

.tw-subnav a.active,
.tw-subnav a:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.tw-settings-shell{
  display:block;
}

.tw-settings-panel--full{
  min-width:0;
}

.tw-settings-menu{
  display:none !important;
}


/* v1.1.32 footer single-line tighten */
.tw-footer-preview--single{
  padding-bottom:12px;
}

.tw-app-footer--single{
  padding-top:12px;
  padding-bottom:12px;
  gap:12px;
}

.tw-app-footer--single .tw-app-footer__col,
.tw-footer-preview--single .tw-footer-preview__col{
  font-size:inherit;
  font-weight:inherit;
  line-height:1.4;
  margin:0;
  padding:0;
}

.tw-app-footer--single .tw-app-footer__col--left,
.tw-app-footer--single .tw-app-footer__col--center,
.tw-app-footer--single .tw-app-footer__col--right{
  font-size:14px;
  font-weight:400;
}

.tw-app-footer--stacked .tw-app-footer__line{
  font-size:14px;
  font-weight:400;
}


/* v1.1.33 reduce sidebar height slightly */
.tw-sidebar__panel{
  padding-top:12px;
  padding-bottom:8px;
}

.tw-brand{
  margin-bottom:8px;
}

.tw-nav a{
  padding:8px 12px;
}

.tw-subnav{
  padding-top:8px;
  gap:4px;
}

.tw-subnav a{
  padding:7px 12px 7px 20px;
}

.tw-sidebar__footer{
  padding-top:8px;
}


/* v1.1.34 further sidebar tighten */
.tw-sidebar__panel{
  padding-top:10px;
  padding-bottom:6px;
}

.tw-brand{
  margin-bottom:6px;
}

.tw-nav a{
  padding:7px 12px;
}

.tw-subnav{
  padding-top:6px;
  gap:3px;
}

.tw-subnav a{
  padding:6px 12px 6px 18px;
}

.tw-sidebar__footer{
  padding-top:6px;
}

/* footer single line padding reduce */
.tw-app-footer--single{
  padding-top:8px;
  padding-bottom:8px;
}

.tw-app-footer--single .tw-app-footer__col{
  line-height:1.2;
  margin:0;
}


/* v1.1.35 viewport fit */
html,
body{
  height:100%;
}

body{
  overflow:hidden;
}

.tw-shell{
  height:100vh;
  overflow:hidden;
}

.tw-sidebar{
  height:100vh;
  overflow:hidden;
}

.tw-sidebar__panel{
  height:calc(100vh - 32px);
  min-height:0;
  overflow:hidden;
}

.tw-nav{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:2px;
}

.tw-subnav{
  flex:0 0 auto;
}

.tw-main{
  min-height:100vh;
  height:100vh;
  overflow:hidden;
}

.tw-content{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}

.tw-app-footer--single,
.tw-app-footer--stacked{
  margin-top:auto;
  flex-shrink:0;
  padding-top:6px;
  padding-bottom:6px;
}

.tw-app-footer--single .tw-app-footer__col,
.tw-app-footer--stacked .tw-app-footer__line{
  line-height:1.15;
}


/* v1.1.36 lift sidebar off bottom */
.tw-sidebar__panel{
  padding-bottom:5px;
}

.tw-sidebar{
  padding-bottom:5px;
}


/* v1.1.37 sidebar shell flatten + top gap reduce */
.tw-sidebar{
  padding-top:10px !important;
  padding-right:12px !important;
  padding-bottom:5px !important;
  padding-left:12px !important;
}

.tw-sidebar__panel{
  top:10px !important;
  min-height:calc(100vh - 20px) !important;
  height:calc(100vh - 20px) !important;
  padding-top:8px !important;
  padding-right:0 !important;
  padding-bottom:0 !important;
  padding-left:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.tw-brand{
  padding-right:18px;
  padding-left:18px;
  padding-bottom:12px;
}

.tw-nav,
.tw-subnav{
  padding-right:8px;
  padding-left:8px;
}

.tw-sidebar__footer{
  padding-top:6px;
  padding-right:8px;
  padding-bottom:0;
  padding-left:8px;
}

.tw-sidebar__logout{
  margin-bottom:0;
}


/* v1.1.38 logout bottom spacing */
.tw-sidebar__footer{
    padding-bottom:10px !important;
}

.tw-sidebar__logout{
    margin-bottom:5px !important;
}


/* v1.1.39 admin ui polish */
:root{
  --tw-radius-sm:10px;
  --tw-radius-md:12px;
  --tw-radius-lg:16px;
  --tw-border:#dbe3ee;
  --tw-border-strong:#c9d4e2;
  --tw-surface:#ffffff;
  --tw-surface-soft:#f8fafc;
  --tw-text:#111827;
  --tw-text-soft:#64748b;
  --tw-primary:#E87722;
  --tw-primary-hover:#d86817;
  --tw-primary-active:#c75f13;
}

.tw-content{
  padding:20px 24px;
  box-sizing:border-box;
}

.tw-card,
.tw-table{
  border:1px solid var(--tw-border);
  border-radius:var(--tw-radius-md);
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  background:var(--tw-surface);
}

.tw-card{
  padding:16px;
}

.tw-card h3{
  margin:0 0 10px 0;
  font-size:13px;
  font-weight:700;
  color:var(--tw-text-soft);
  letter-spacing:.02em;
}

.tw-settings-panel__header{
  margin-bottom:14px;
}

.tw-settings-panel__title{
  margin:0;
  line-height:1.1;
}

.tw-settings-panel__subtitle,
.tw-muted,
.tw-topbar .tw-subtitle,
.tw-topbar .tw-meta{
  color:var(--tw-text-soft);
}

.tw-button,
button.tw-button,
input.tw-button,
a.tw-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border-radius:var(--tw-radius-sm);
  border:0 !important;
  outline:0;
  box-shadow:none;
  font-size:14px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  background:var(--tw-primary);
  color:#fff;
}

.tw-button:hover,
button.tw-button:hover,
a.tw-button:hover{
  background:var(--tw-primary-hover);
  box-shadow:none;
  transform:none;
}

.tw-button:active,
button.tw-button:active,
a.tw-button:active{
  background:var(--tw-primary-active);
}

.tw-button:focus-visible,
button.tw-button:focus-visible,
a.tw-button:focus-visible,
.tw-input:focus,
.tw-textarea:focus,
select.tw-input:focus{
  outline:2px solid rgba(232,119,34,.18);
  outline-offset:1px;
}

.tw-button.secondary,
button.tw-button.secondary,
a.tw-button.secondary{
  background:#fff;
  color:var(--tw-text);
  border:1px solid var(--tw-border-strong) !important;
}

.tw-button.secondary:hover,
button.tw-button.secondary:hover,
a.tw-button.secondary:hover{
  background:#f8fafc;
}

.tw-input,
.tw-textarea,
select.tw-input,
input.tw-input{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--tw-border-strong);
  border-radius:var(--tw-radius-sm);
  background:#fff;
  color:var(--tw-text);
  font-size:14px;
  font-weight:400;
  padding:10px 12px;
  min-height:42px;
  box-shadow:none;
}

.tw-textarea{
  min-height:110px;
  resize:vertical;
  line-height:1.45;
}

.tw-field-label{
  display:block;
  margin:0 0 8px 0;
  font-size:13px;
  font-weight:700;
  color:#334155;
}

.tw-stack-sm{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tw-settings-grid{
  gap:16px;
}

.tw-settings-grid--two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.tw-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.tw-table th,
.tw-table td{
  padding:12px 14px;
}

.tw-table th{
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:#475569;
  background:#f8fafc;
}

.tw-topbar{
  padding:14px 22px;
}

.tw-topbar .tw-title{
  font-size:20px;
  font-weight:800;
  line-height:1.1;
}

.tw-topbar .tw-subtitle{
  margin-top:5px;
  font-size:13px;
}

.tw-notice{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#9a3412;
}

@media (max-width: 900px){
  .tw-settings-grid--two{
    grid-template-columns:1fr;
  }
}


/* v1.1.40 button size align to settings save */
.tw-button,
button.tw-button,
a.tw-button,
input.tw-button{
  min-height:36px;
  padding:8px 12px;
  font-size:13px;
  border-radius:8px;
}

.tw-actions .tw-button{
  min-height:36px;
}


/* v1.1.41 exact settings save button sizing */
.tw-button,
button.tw-button,
a.tw-button,
input.tw-button{
  min-height:32px !important;
  height:32px !important;
  padding:6px 10px !important;
  font-size:12px !important;
  line-height:1 !important;
  border-radius:6px !important;
}

.tw-actions .tw-button{
  min-height:32px !important;
  height:32px !important;
  padding:6px 10px !important;
  font-size:12px !important;
  line-height:1 !important;
  border-radius:6px !important;
}


/* v1.1.42 hard normalize all buttons */
.tw-button,
button.tw-button,
a.tw-button,
input.tw-button,
.tw-actions .tw-button,
.tw-card .tw-button,
.tw-content .tw-button{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
  height:32px !important;
  min-height:32px !important;
  max-height:32px !important;
  padding:0 10px !important;
  margin:0 !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  border-radius:6px !important;
  white-space:nowrap !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  vertical-align:middle !important;
}

.tw-button.secondary,
button.tw-button.secondary,
a.tw-button.secondary{
  border:1px solid #c9d4e2 !important;
}


/* v1.1.43 client editor shell support */
.tw-form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}


/* v1.1.46 nested submenu under active nav item */
.tw-subnav--nested{
  margin-top:6px;
  margin-bottom:2px;
  padding-top:0;
  border-top:0;
}

.tw-nav > a.active + .tw-subnav--nested{
  margin-bottom:8px;
}

.tw-subnav--nested a{
  padding-left:26px;
}


/* v1.1.52 nested editor collections menu */
.tw-subnav__group{
  display:block;
}

.tw-subnav__parent{
  display:block;
  color:#94a3b8;
  padding:9px 12px 9px 22px;
  text-decoration:none;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  margin:0;
}

.tw-subnav__parent.active,
.tw-subnav__parent:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.tw-subnav--child{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:4px;
}

.tw-subnav--child a{
  padding-left:38px;
}


/* v1.1.55 globals editor shell */
.tw-editor-shell-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.tw-editor-shell-grid .tw-card{
  margin:0;
}

@media (max-width: 900px){
  .tw-editor-shell-grid{
    grid-template-columns:1fr;
  }
}


/* v1.1.60 global page bottom padding */
.tw-main,
.tw-content,
.tw-page,
.tw-body,
.tw-layout-content{
    padding-bottom:24px;
}

/* ensure last card never touches bottom */
.tw-layout-content > .tw-card:last-child{
    margin-bottom:24px;
}

/* forms bottom breathing room */
.tw-actions{
    margin-bottom:8px;
}


/* v1.1.61 client spacing + polish */
.tw-content{
  padding-top:18px;
  padding-right:22px;
  padding-left:22px;
  padding-bottom:28px;
}

.tw-card{
  margin-bottom:16px;
}

.tw-card:last-child{
  margin-bottom:0;
}

.tw-settings-grid,
.tw-editor-shell-grid,
.tw-grid{
  gap:16px;
}

.tw-card h3{
  margin-bottom:10px;
}

.tw-card p{
  margin-top:0;
  margin-bottom:10px;
}

.tw-card p:last-child{
  margin-bottom:0;
}

.tw-form-row{
  margin-bottom:12px;
}

.tw-form-row:last-child{
  margin-bottom:0;
}

.tw-actions{
  gap:8px;
  align-items:center;
}

.tw-table{
  margin-top:8px;
}

.tw-table th,
.tw-table td{
  vertical-align:middle;
}

.tw-muted{
  line-height:1.45;
}

.tw-topbar{
  padding-bottom:12px;
}

.tw-topbar .tw-title{
  margin-bottom:2px;
}

.tw-notice{
  margin-bottom:16px;
}

@media (max-width: 900px){
  .tw-content{
    padding-right:16px;
    padding-left:16px;
    padding-bottom:24px;
  }
}
