:root{
  --brand:#ff4c27;
  --brand-soft:#ff9388;
  --danger:#ff2f5f;
  --text:#10203a;
  --muted:#6b7688;
  --line:#d9e0ea;
  --orange:#ff7a18;
  --bg:#f5f8fc;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
}
button,input,textarea{font:inherit}
button{cursor:pointer}
.page-shell{
  width:min(100%,430px);
  margin:0 auto;
  padding:12px 10px 28px;
}
.publish-card{
  background:#fff;
  border-radius:8px;
  padding:8px 8px 12px;
  box-shadow:0 10px 26px rgba(18,32,56,.08);
}
.publish-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:28px;
  font-size:13px;
}
.publish-nav strong{white-space:nowrap}
.publish-nav span{color:#f03b2d}
.tutorial-link{
  border:0;
  background:transparent;
  color:#6a7483;
  padding:2px 0;
  font-size:13px;
}
.share-box{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 52px;
  gap:6px;
  align-items:start;
  min-height:82px;
  margin-top:8px;
  border:1px solid #ffb2a6;
  border-radius:7px;
  background:#fff;
  padding:11px 9px;
}
.share-icon{
  color:#8fa0b8;
  font-size:17px;
  line-height:24px;
  text-align:center;
}
textarea{
  width:100%;
  min-height:58px;
  resize:none;
  border:0;
  outline:0;
  padding:0;
  color:#071b37;
  font-size:14px;
  font-weight:800;
  line-height:1.55;
  background:transparent;
}
textarea::placeholder{
  color:#687584;
  font-weight:800;
}
.paste-btn{
  min-width:48px;
  height:30px;
  border:0;
  border-left:1px solid #e2e7ef;
  background:#fff;
  color:#4d5b6e;
  font-size:13px;
  font-weight:700;
}
.publish-options{
  display:none;
  margin-top:9px;
}
.publish-card.has-content .publish-options{display:block}
.option-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}
.option-label{
  flex:0 0 auto;
  width:56px;
  font-size:13px;
  font-weight:800;
  color:#20324a;
}
.choice-group{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.choice{
  height:28px;
  min-width:46px;
  border:1px solid #b9c9dc;
  border-radius:6px;
  background:#fff;
  color:#0d2b4e;
  padding:0 10px;
  font-size:13px;
  font-weight:800;
}
.choice.active{
  border-color:#7db0e6;
  background:#f3f9ff;
}
.choice-danger{
  color:var(--danger);
  border-color:#ff6184;
}
.choice-danger.active{
  color:var(--danger);
  border-color:#ff2f5f;
  background:#fff3f6;
}
.custom-row{
  display:none;
  margin:7px 0 0 64px;
}
.custom-row.show{display:block}
.custom-row input{
  width:100%;
  height:28px;
  border:1px solid #cfd8e5;
  border-radius:6px;
  padding:0 10px;
  outline:0;
  color:#15263d;
  font-size:13px;
}
.custom-row input:focus{border-color:#ff7f74}
.submit-btn{
  width:100%;
  height:38px;
  margin-top:9px;
  border:0;
  border-radius:7px;
  color:#fff;
  background:linear-gradient(90deg,#ff9518,#ff4823);
  font-size:18px;
  font-weight:900;
}
.submit-btn:disabled{
  background:#ff9388;
  cursor:not-allowed;
}
.assist-panel{
  margin-top:12px;
  background:#fff;
  border-radius:8px;
  padding:12px;
  box-shadow:0 10px 26px rgba(18,32,56,.07);
}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.panel-head h1{
  margin:0;
  font-size:18px;
  line-height:1.2;
}
.panel-head p{
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px;
}
.panel-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
}
.refresh-btn,.mine-btn{
  height:28px;
  border:1px solid var(--line);
  background:#fff;
  color:#0d2b4e;
  border-radius:999px;
  padding:0 12px;
  font-size:12px;
  font-weight:800;
  box-shadow:0 2px 8px rgba(18,32,56,.04);
}
.mine-btn.active{
  color:#fff;
  border-color:var(--brand);
  background:var(--brand);
}
.green-dot{
  display:inline-block;
  width:7px;
  height:7px;
  margin:0 2px 1px;
  border-radius:50%;
  background:#14c96b;
}
.status-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
}
.status-tab{
  height:28px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  color:#4c5d72;
  padding:0 12px;
  font-size:13px;
  font-weight:800;
}
.status-tab.active{
  color:#fff;
  border-color:var(--brand);
  background:var(--brand);
}
.mine-title{
  display:none;
  color:#0d2b4e;
  font-size:13px;
  font-weight:900;
}
.assist-panel.mine-mode .status-tab{display:none}
.assist-panel.mine-mode .mine-title{display:block}
.assist-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.assist-item{
  border:1px solid #e4ebf2;
  border-radius:8px;
  background:#fbfdff;
  padding:10px;
}
.assist-item-top{
  display:flex;
  align-items:flex-start;
  gap:6px;
}
.assist-code{
  flex:1;
  min-width:0;
  color:#071b37;
  font-size:14px;
  font-weight:900;
  line-height:1.45;
  word-break:break-all;
}
.assist-tag,.assist-remain{
  flex:0 0 auto;
  border-radius:5px;
  padding:4px 7px;
  font-size:12px;
  font-weight:900;
}
.assist-tag{
  color:#0d2b4e;
  background:#f3f9ff;
  border:1px solid #bdd5ef;
}
.assist-remain{
  color:#0c8a48;
  background:#eefaf3;
  border:1px solid #bce8ce;
}
.assist-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
  color:#6b7688;
  font-size:12px;
}
.assist-actions{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:8px;
  margin-top:10px;
}
.action-btn{
  height:34px;
  border:0;
  border-radius:7px;
  font-size:14px;
  font-weight:900;
}
.action-use{
  color:#fff;
  background:linear-gradient(90deg,#ff9518,#ff4823);
}
.action-return{
  color:#4a586b;
  background:#eef2f7;
}
.action-report{
  min-width:54px;
  color:#ff2f5f;
  background:#fff3f6;
}
.empty{
  border:1px dashed #cfd8e5;
  border-radius:8px;
  padding:28px 14px;
  text-align:center;
  color:#7b8797;
  font-size:13px;
}
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(8,16,28,.42);
  padding:18px;
  z-index:20;
}
.modal.show{display:flex}
.modal-panel{
  width:min(100%,360px);
  border-radius:8px;
  background:#fff;
  padding:16px;
  box-shadow:0 24px 50px rgba(0,0,0,.22);
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.modal-head h3{margin:0;font-size:18px}
.modal-close{
  width:30px;
  height:30px;
  border:0;
  border-radius:6px;
  background:#f1f4f8;
  color:#566478;
  font-size:22px;
}
.modal-panel ol{
  margin:12px 0;
  padding-left:20px;
  color:#4c5d72;
  line-height:1.8;
  font-size:14px;
}
.modal-ok{
  width:100%;
  height:36px;
  border:0;
  border-radius:7px;
  color:#fff;
  background:var(--brand);
  font-weight:900;
}
.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,14px);
  opacity:0;
  pointer-events:none;
  max-width:calc(100vw - 28px);
  border-radius:999px;
  background:rgba(14,21,33,.94);
  color:#fff;
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  transition:.2s ease;
  z-index:30;
}
.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}
@media (min-width:760px){
  .page-shell{padding-top:18px}
}
.admin-shell{
  width:min(100%,900px);
  margin:0 auto;
  padding:18px 12px 40px;
}
.admin-card{
  background:#fff;
  border-radius:8px;
  padding:16px;
  margin-bottom:12px;
  box-shadow:0 10px 26px rgba(18,32,56,.07);
}
.admin-head,.admin-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.admin-head h1,.admin-card h2{
  margin:0;
  color:#10203a;
}
.admin-head h1{font-size:22px}
.admin-card h2{font-size:17px}
.admin-head p{
  margin:6px 0 0;
  color:#6b7688;
  font-size:13px;
}
.admin-link{
  color:#ff4c27;
  font-weight:900;
  text-decoration:none;
}
.admin-login,.admin-form-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-top:14px;
}
.admin-form-line{
  grid-template-columns:minmax(0,180px) minmax(0,1fr) auto;
}
.admin-login input,.admin-form-line input{
  height:36px;
  border:1px solid #d9e0ea;
  border-radius:7px;
  padding:0 10px;
  outline:0;
}
.admin-login button,.admin-form-line button,.admin-section-head button,.admin-small-btn{
  height:36px;
  border:0;
  border-radius:7px;
  background:#ff4c27;
  color:#fff;
  padding:0 14px;
  font-weight:900;
}
.admin-small-btn{
  height:30px;
  background:#eef2f7;
  color:#0d2b4e;
}
.admin-small-btn.danger{
  background:#fff3f6;
  color:#ff2f5f;
}
.admin-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:12px;
}
.admin-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid #e4ebf2;
  border-radius:8px;
  background:#fbfdff;
  padding:10px;
}
.admin-row strong{
  color:#071b37;
  font-size:14px;
}
.admin-row p{
  margin:5px 0 0;
  color:#6b7688;
  font-size:12px;
  word-break:break-all;
}
.admin-code-line{
  color:#10203a!important;
  font-weight:800;
}
.admin-muted{
  color:#7b8797;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.admin-empty{
  border:1px dashed #cfd8e5;
  border-radius:8px;
  color:#7b8797;
  padding:18px;
  text-align:center;
}
@media (max-width:640px){
  .admin-form-line{grid-template-columns:1fr}
}
