:root{
  --bg1:#0b1422;
  --bg2:#101c31;
  --card:rgba(255,255,255,0.085);
  --line:rgba(255,255,255,0.16);
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);
  --primary:#4c6ef5;
  --ok:#4dd77c;
  --ng:#e95a5a;
  --shadow: 0 16px 44px rgba(0,0,0,0.35);
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% -20%, rgba(76,110,245,0.38), transparent 55%),
    radial-gradient(900px 600px at 95% 5%, rgba(77,215,124,0.26), transparent 55%),
    radial-gradient(900px 700px at 0% 95%, rgba(233,90,90,0.18), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  background-attachment: fixed;
  min-height:100vh;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 14px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.brand h1{
  margin:0;
  font-size: 22px;
  letter-spacing: .02em;
}
.brand p{
  margin:0;
  color:var(--muted);
  font-size: 14px;
}

.card{
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: visible; /* selectが切れない */
}
.card + .card{ margin-top: 16px; }

.h2row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
h2{
  margin:0;
  font-size: 16px;
}
small{
  color:var(--muted);
  font-size: 12px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px){
  .container{ padding: 16px; }
  .grid{ grid-template-columns: 1fr; }
}

label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

select{
  position: relative;
  z-index: 20;
  color-scheme: dark;
  -webkit-appearance: menulist;
  appearance: auto;
}
select option{
  background: #0b1422;
  color: #ffffff;
}

input:focus, select:focus{
  border-color: rgba(76,110,245,0.6);
  box-shadow: 0 0 0 3px rgba(76,110,245,0.18);
}

.row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row .grow{ flex: 1 1 240px; }

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
}

button, .btn{
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
}

.btn.primary, button.primary{ background: var(--primary); }
button.ok{ background: var(--ok); }
button.ng{ background: var(--ng); }
.btn.ghost{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.notice{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-size: 13px;
}

.tableWrap{
  overflow-x:auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.10);
}

table{
  width:100%;
  border-collapse: collapse;
  min-width: 520px;
}
th,td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  font-size: 14px;
}
th{
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
}
tbody tr:last-child td{ border-bottom:none; }

.right{
  text-align:right;
  margin-top: 16px;
}
