:root{
  --bg:#0b1020;
  --panel:#0f1730;
  --panel2:#0e152b;
  --border:rgba(255,255,255,.15);
  --text:rgba(255,255,255,1);
  --muted:rgba(255,255,255,.92);
  --muted2:rgba(255,255,255,.82);
  --primary:#6d5efc;
  --primary2:#8a7dff;
  --danger:#ff4d6d;
  --ok:#2dd4bf;
  --warn:#fbbf24;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* 亮色模式：更适合白天/屏幕偏暗环境 */
html[data-theme="light"]{
  --bg:#f6f7fb;
  --border:rgba(15,23,42,.18);
  --text:rgba(15,23,42,1);
  --muted:rgba(15,23,42,.88);
  --muted2:rgba(15,23,42,.75);
  --shadow: 0 18px 50px rgba(2,6,23,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(109,94,252,.42), transparent 55%),
    radial-gradient(900px 500px at 90% 25%, rgba(45,212,191,.24), transparent 55%),
    radial-gradient(1200px 700px at 40% 110%, rgba(251,191,36,.18), transparent 50%),
    var(--bg);
  color:var(--text);
}

html[data-theme="light"] body{
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(109,94,252,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 25%, rgba(45,212,191,.14), transparent 60%),
    radial-gradient(1200px 700px at 40% 110%, rgba(251,191,36,.10), transparent 55%),
    var(--bg);
}

.app{max-width:1200px; margin:0 auto; padding:18px 16px 28px;}

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  position:sticky; top:10px; z-index:5;
  backdrop-filter: blur(6px);
}

html[data-theme="light"] .topbar{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
}
.brand{display:flex; gap:12px; align-items:center;}
.logo{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  font-weight:800; letter-spacing:.5px;
  box-shadow:0 10px 26px rgba(109,94,252,.35);
}
.brand-title{
  font-weight:900;
  font-size:20px;
}
.topbar-right{display:flex; align-items:center; gap:10px}

.pill{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(0,0,0,.12);
  color:var(--muted);
  font-size:13px;
}

html[data-theme="light"] .pill{
  background:rgba(255,255,255,.70);
}

.balance-mini{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  padding:4px 8px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.12);
}
html[data-theme="light"] .balance-mini{
  background:rgba(255,255,255,.80);
  border-color: rgba(15,23,42,.10);
}
.balance-value-mini{font-weight:800; font-size:13px}
.dot{width:8px; height:8px; border-radius:99px; background:var(--danger); box-shadow:0 0 0 4px rgba(255,77,109,.15)}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.span-2{grid-column: span 2;}

.card{
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.03));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

html[data-theme="light"] .card{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
}
.card-title{
  padding:14px 14px;
  font-weight:800;
  border-bottom:1px solid var(--border);
  background:rgba(0,0,0,.10);
}
.card-body{padding:14px}

.field{margin-bottom:12px}
.fields-stack .field{
  display:contents;
}
.fields-stack .field .label{
  margin-bottom:8px;
  padding-top:0;
}
.hint{margin-top:6px; font-size:12px; color:var(--muted2)}
.row{
  display:grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap:12px;
}

.fields-stack{
  display:grid;
  grid-template-columns: 1fr 4fr;
  grid-template-rows: auto auto;
  gap:14px 16px;
  margin-bottom:14px;
  align-items:start;
}
.fields-stack .field-left,
.fields-stack .field-right{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fields-stack .field-left{
  min-width:0;
}
.fields-stack .field-right{
  min-width:0;
}
.fields-stack .field-right-full{
  grid-row: span 2;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fields-stack .label{
  font-size:13px;
  color:var(--muted);
  margin-bottom:0;
  white-space:nowrap;
  font-weight:600;
}
.fields-stack .field-left .select{
  width:100%;
}
.fields-stack .field-right-full .textarea{
  width:100%;
  flex:1;
  min-height:180px;
}

.top-layout{
  display:grid;
  grid-template-columns: minmax(0,1fr); /* 上传区域占满整行 */
  margin-bottom:14px;
  align-items:start;
}
.top-left,.top-right{min-width:0}
.top-right{display:none;} /* 目前未使用，隐藏避免占空间 */

.textarea{
  min-height:160px;
  resize:vertical;
  line-height:1.35;
}

.input,.select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.10);
  color:var(--text);
  outline:none;
}

html[data-theme="light"] .input,
html[data-theme="light"] .select{
  background:rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.14);
  color:rgba(15,23,42,1);
}
html[data-theme="light"] .select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
}
.select{
  padding:10px 12px;
  font-size:15px;
  font-weight:500;
  line-height:1.5;
  letter-spacing:.2px;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  padding-right:36px;
}
.select option{
  font-size:15px;
  font-weight:500;
  padding:10px 12px;
  background:var(--panel);
  color:var(--text);
}
.input:focus,.select:focus{border-color: rgba(109,94,252,.55); box-shadow:0 0 0 4px rgba(109,94,252,.18)}

.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.09);
  color:var(--text);
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
}

html[data-theme="light"] .btn{
  background:rgba(255,255,255,.86);
  border-color: rgba(15,23,42,.14);
}
html[data-theme="light"] .btn-ghost{background:transparent}
.btn:hover{background:rgba(255,255,255,.09)}
.btn:active{transform:translateY(1px)}
.btn-primary{
  border-color: rgba(109,94,252,.55);
  background:linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(109,94,252,.25);
}
.btn-primary:hover{filter:brightness(1.03)}
.btn-ghost{background:transparent}
.full{width:100%}
.icon-btn{
  width:34px; height:34px; border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.16);
  color:var(--text);
  cursor:pointer;
  position:relative;
  z-index:30;
  pointer-events:auto;
}
.icon-btn:hover{background:rgba(0,0,0,.24)}

.uploader{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(0,0,0,.14);
  padding:12px;
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.uploader.drag{
  border-color: rgba(45,212,191,.65);
  box-shadow: 0 0 0 6px rgba(45,212,191,.14);
}
.uploader-inner{display:flex; gap:12px; align-items:center}
.uploader-icon{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.uploader-main{font-weight:700}
.uploader-sub{font-size:12px; color:var(--muted2); margin-top:3px}

.preview{
  display:flex;
  flex-direction:column;
  width:100%;
  gap:10px;
}
.preview-slots{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:8px;
}
.preview-slot{
  position:relative;
  border-radius:10px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(0,0,0,.08);
  overflow:hidden;
  min-height:100px;
}
.preview-slot.slot-has-img{
  border-style:solid;
  border-color:rgba(255,255,255,.12);
  background:rgba(0,0,0,.2);
}
.preview-slot .slot-img-wrap{
  position:relative;
  width:100%;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.preview-slot .slot-img-wrap::before{
  content:attr(data-label);
  position:absolute;
  font-size:11px;
  color:rgba(255,255,255,.35);
  pointer-events:none;
}
.preview-slot.slot-has-img .slot-img-wrap::before{
  display:none;
}
.preview-slot .slot-label-badge{
  display:none;
  position:absolute;
  top:6px;
  left:6px;
  padding:2px 6px;
  font-size:10px;
  color:rgba(255,255,255,.7);
  background:rgba(0,0,0,.5);
  border-radius:4px;
  z-index:1;
}
.preview-slot.slot-has-img .slot-label-badge{
  display:inline-block;
}
.preview-slot img{
  width:100%;
  height:100px;
  object-fit:cover;
  display:block;
}
.preview-slot:not(.slot-has-img) img{
  display:none;
}
.preview-slot .slot-actions{
  position:absolute;
  bottom:6px;
  right:6px;
  display:flex;
  gap:4px;
  opacity:0;
  transition:opacity .15s;
}
.preview-slot.slot-has-img:hover .slot-actions,
.preview-slot.slot-has-img .slot-actions:focus-within{
  opacity:1;
}
.slot-btn{
  width:26px;
  height:26px;
  border:none;
  border-radius:6px;
  background:rgba(0,0,0,.65);
  color:#fff;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.slot-btn:hover{
  background:rgba(0,0,0,.9);
}
.slot-delete{font-size:16px}
.slot-replace{font-size:11px}
html[data-theme="light"] .preview-slot{
  background:rgba(248,250,252,.6);
  border-color:rgba(15,23,42,.1);
}
html[data-theme="light"] .preview-slot.slot-has-img{
  background:#fff;
  border-color:rgba(15,23,42,.12);
}
html[data-theme="light"] .preview-slot .slot-img-wrap::before{
  color:rgba(15,23,42,.35);
}
html[data-theme="light"] .preview-slot .slot-label-badge{
  color:rgba(15,23,42,.7);
  background:rgba(255,255,255,.85);
}
.preview-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:2px}

/* 比例选择 */
.ratio-options{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.ratio-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.14);
  cursor:pointer;
  font-size:13px;
}
.ratio-pill input{
  appearance:none;
  width:0;
  height:0;
  margin:0;
  pointer-events:none;
  position:absolute;
}
.ratio-square{
  width:16px;
  height:16px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.50);
  background:rgba(15,23,42,.9);
  position:relative;
  overflow:hidden;
}
.square-1-1::after,
.square-9-16::after,
.square-16-9::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:2px;
  background:linear-gradient(135deg, var(--primary), var(--primary2));
}
.square-9-16{
  aspect-ratio:9/16;
}
.square-16-9{
  aspect-ratio:16/9;
}
.ratio-pill:hover{
  border-color: rgba(109,94,252,.60);
}
.ratio-pill-active{
  border-color: rgba(109,94,252,.90);
  background:rgba(109,94,252,.20);
}

.divider{height:1px; background:var(--border); margin:14px 0}
.mini-title{font-size:13px; color:var(--muted); margin-bottom:8px}
.code{
  font-family:var(--mono);
  font-size:12px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px;
  overflow:auto;
  max-height:180px;
  color:rgba(255,255,255,1);
}

.userbox{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,.14);
}
.user-left{display:flex; gap:10px; align-items:center}
.avatar{
  width:44px; height:44px; border-radius:16px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
}
.user-name{font-weight:800}
.user-meta{font-size:12px; color:var(--muted); margin-top:2px}
.user-right{display:flex; align-items:center; gap:12px}
.balance{padding:8px 10px; border-radius:14px; border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.12)}
.balance-label{font-size:12px; color:var(--muted)}
.balance-value{font-size:18px; font-weight:900; margin-top:2px}
.unit{font-size:12px; color:var(--muted)}
.tips{margin-top:12px; color:var(--muted); font-size:13px}
.tips-title{font-weight:800; color:rgba(255,255,255,.82); margin-bottom:6px}
.tips ul{margin:0; padding-left:18px}
.tips li{margin:6px 0}

.board-retention-hint{margin-bottom:10px}
.board-head{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px}
.board-stats{color:var(--muted); font-size:13px}

.table-wrap{position:relative}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(0,0,0,.14);
}

html[data-theme="light"] .table{
  background:rgba(255,255,255,.86);
}
.table th,.table td{
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:top;
  font-size:13px;
}
.table th{color:var(--muted); font-weight:800; background:rgba(0,0,0,.14)}
.table tr:last-child td{border-bottom:none}
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  font-size:12px;
  color:rgba(255,255,255,.95);
}
.tag i{width:7px; height:7px; border-radius:99px; display:inline-block}
.tag.q i{background:var(--warn); box-shadow:0 0 0 4px rgba(251,191,36,.12)}
.tag.g i{background:var(--primary2); box-shadow:0 0 0 4px rgba(138,125,255,.14)}
.tag.c i{background:var(--ok); box-shadow:0 0 0 4px rgba(45,212,191,.12)}
.tag.f i{background:var(--danger); box-shadow:0 0 0 4px rgba(255,77,109,.12)}

.muted{color:var(--muted); font-size:12px}
.nowrap{white-space:nowrap}

.empty{
  display:none;
  text-align:center;
  padding:16px 10px;
  color:var(--muted);
  margin-top:10px;
}

.footer{
  margin-top:14px;
  color:var(--muted2);
  font-size:12px;
  text-align:center;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:#0a0e18;
  display:grid;
  place-items:center;
  padding:18px;
  z-index:20;
}

html[data-theme="light"] .modal-backdrop{
  background:#1e293b;
}
.modal{
  width:min(520px, 100%);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:#121827;
  box-shadow:0 24px 80px rgba(0,0,0,.6);
  overflow:hidden;
}
html[data-theme="light"] .modal{
  background:#ffffff;
  border-color:rgba(15,23,42,.15);
  box-shadow:0 24px 80px rgba(0,0,0,.25);
}

.inline-panels{margin-top:12px}
.inline-panel{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  margin-top:12px;
}
html[data-theme="light"] .inline-panel{
  background:rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.14);
}
.inline-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.08);
}
html[data-theme="light"] .inline-head{
  background:rgba(255,255,255,.76);
  border-bottom-color: rgba(15,23,42,.10);
}
.inline-title{font-weight:900}
.inline-body{padding:14px}

/* 生成视频结果区 */
.result-panel{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.10);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  margin-bottom:12px;
}
html[data-theme="light"] .result-panel{
  background:rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.14);
}
.result-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.08);
}
html[data-theme="light"] .result-head{
  background:rgba(255,255,255,.76);
  border-bottom-color: rgba(15,23,42,.10);
}
.result-title{font-weight:900}
.result-sub{color:var(--muted); font-size:12px; margin-top:4px}
.result-controls{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.result-controls .select{min-width:260px}
.result-body{padding:12px}
.result-empty{color:var(--muted); font-size:13px}
.result-grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:12px;
  align-items:stretch;
}
.result-cover{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(0,0,0,.10);
  overflow:hidden;
}
html[data-theme="light"] .result-cover{
  background:rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.12);
}
.result-cover img{
  width:100%;
  height:100%;
  min-height:180px;
  object-fit:cover;
  display:block;
}
.result-meta{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(0,0,0,.08);
  padding:12px;
}
html[data-theme="light"] .result-meta{
  background:rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.12);
}
.result-kv{
  display:grid;
  grid-template-columns: 70px 1fr;
  gap:8px 10px;
  align-items:start;
}
.result-kv .k{color:var(--muted); font-size:12px}
.result-kv .v{font-size:13px; color:var(--text); white-space:pre-wrap}
.result-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}

.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.1);
  background:#161d2e;
  position:relative;
  z-index:25;
}
html[data-theme="light"] .modal-head{
  background:#f1f5f9;
  border-bottom-color:rgba(15,23,42,.1);
}
.modal-title{font-weight:900}
.modal-body{padding:14px; background:#121827;}
html[data-theme="light"] .modal-body{background:#ffffff;}

.modal .input,.modal .select{
  background:#1e293b;
  border-color:rgba(255,255,255,.15);
}
html[data-theme="light"] .modal .input,
html[data-theme="light"] .modal .select{
  background:#f8fafc;
  border-color:rgba(15,23,42,.15);
}

.tabs{display:flex; gap:10px; margin-bottom:12px}
.tab{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:#1e293b;
  color:var(--muted);
  cursor:pointer;
  font-weight:700;
}
html[data-theme="light"] .tab{
  background:#e2e8f0;
  border-color:rgba(15,23,42,.12);
}
.tab.active{
  background:rgba(109,94,252,.35);
  border-color: rgba(109,94,252,.5);
  color:rgba(255,255,255,1);
}
html[data-theme="light"] .tab.active{
  background:rgba(109,94,252,.2);
  border-color: rgba(109,94,252,.4);
  color:rgba(15,23,42,1);
}

.qr{display:flex; gap:12px; align-items:center; margin-bottom:12px}
.qr-box{
  width:92px; height:92px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
  display:grid; place-items:center;
}
.qr-inner{
  width:56px; height:56px; border-radius:12px;
  border:1px dashed rgba(255,255,255,.18);
  display:grid; place-items:center;
  color:var(--muted2);
  font-weight:900;
  letter-spacing:.8px;
}
.qr-title{font-weight:900}
.qr-sub{font-size:12px; color:var(--muted); margin-top:2px}

.packages{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin:10px 0 12px;
}
.pkg{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.14);
  border-radius:16px;
  padding:10px;
  cursor:pointer;
}
.pkg:hover{background:rgba(0,0,0,.20)}
.pkg.active{
  border-color: rgba(45,212,191,.55);
  box-shadow:0 0 0 4px rgba(45,212,191,.12);
}
.pkg-top{display:flex; justify-content:space-between; align-items:baseline}
.pkg-price{font-weight:900}
.pkg-points{color:var(--muted); font-size:12px}

.toast{
  position:fixed;
  bottom:18px; left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.75);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:10px 14px;
  color:rgba(255,255,255,1);
  font-size:13px;
  z-index:30;
  backdrop-filter: blur(10px);
}

@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
  .span-2{grid-column:auto}
  .row{grid-template-columns:1fr}
  .result-grid{grid-template-columns:1fr}
  .userbox{flex-direction:column; align-items:stretch}
  .user-right{justify-content:space-between}
}
