
*{box-sizing:border-box}
:root{
  --deep:#0c4648;
  --deep2:#123d43;
  --gold:#b58a47;
  --soft:#f7f3ea;
  --soft2:#fbfaf6;
  --danger:#a23d36;
  --text:#183234;
  --muted:#68787a;
  --line:#e2e7e8;
  --shadow:0 10px 28px rgba(0,0,0,.08);
  --shadow-lg:0 18px 42px rgba(0,0,0,.12);
}

html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Yu Gothic",Meiryo,sans-serif;
  background:linear-gradient(180deg,#f8f7f2 0%,#f2f4f2 100%);
  color:var(--text);
  line-height:1.6;
}
.admin-bg{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#0c4648,#d4b56f);
}
.login-card{
  width:min(480px,92vw);
  background:#fff;
  padding:30px;
  border-radius:26px;
  box-shadow:var(--shadow-lg);
}
h1,h2,h3{
  color:var(--deep);
  margin:0 0 10px;
  line-height:1.35;
}
h1{font-size:28px}
h2{font-size:24px}
h3{font-size:18px;margin-top:24px}

label{
  display:block;
  font-weight:700;
  font-size:13px;
  margin:12px 0;
}
input,textarea,select{
  width:100%;
  padding:12px 14px;
  border:1px solid #ccd4d5;
  border-radius:12px;
  margin-top:6px;
  font:inherit;
  background:#fff;
}
input[type=color]{height:48px;padding:5px}
textarea{min-height:118px;resize:vertical}
input:focus,textarea:focus,select:focus{
  outline:none;
  border-color:#7ca6a8;
  box-shadow:0 0 0 4px rgba(12,70,72,.08);
}
button,.button{
  border:0;
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  transition:.18s ease;
}
button:hover,.button:hover{transform:translateY(-1px)}
.primary{background:var(--deep);color:#fff}
.gold{background:var(--gold);color:#fff}
.danger{background:#fff0ef;color:var(--danger);border:1px solid #e7b8b4}
.muted{color:var(--muted)}
.alert{
  padding:12px 14px;
  border-radius:14px;
  background:#fff1df;
  color:#7a4a00;
  margin:12px 0;
  box-shadow:var(--shadow);
}
.success{background:#e8f6ee;color:#23623d}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.04);
}
.topbar strong{font-size:20px}
.topbar .links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.wrap{
  max-width:1220px;
  margin:26px auto 34px;
  padding:0 16px;
}
.note{
  padding:14px 16px;
  background:#f4efe5;
  border-left:4px solid var(--gold);
  border-radius:14px;
  font-size:14px;
  color:#5e5548;
  margin-bottom:16px;
}
.soft-note{
  background:#eef6f4;
  border-left-color:#7ca6a8;
  color:#365154;
}
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:18px 0;
}
.dashboard-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  text-decoration:none;
  color:var(--text);
  box-shadow:var(--shadow);
  min-height:108px;
}
.dashboard-card strong{
  display:block;
  color:var(--deep);
  font-size:17px;
  margin-bottom:8px;
}
.dashboard-card span{
  display:block;
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
}
.dashboard-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lg);
}
.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.tabs a{
  background:#fff;
  border:1px solid #dde2df;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  color:var(--deep);
  font-size:13px;
  font-weight:800;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.quick-nav{
  position:sticky;
  top:74px;
  z-index:10;
  background:rgba(248,247,242,.92);
  backdrop-filter:blur(8px);
  padding:10px 0 12px;
}
.panel{
  background:#fff;
  border:1px solid rgba(12,70,72,.05);
  border-radius:22px;
  padding:22px;
  margin-bottom:20px;
  box-shadow:var(--shadow);
}
.panel h2{
  padding-bottom:10px;
  border-bottom:1px solid #edf1f2;
  margin-bottom:10px;
}
.section-help{
  margin:0 0 14px;
  color:var(--muted);
  font-size:14px;
}
.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.item{
  border:1px solid var(--line);
  background:var(--soft2);
  border-radius:18px;
  padding:16px;
  margin:14px 0;
}
.item .actions,.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.small{font-size:12px}
.pill{
  display:inline-block;
  border-radius:999px;
  padding:5px 10px;
  background:#eef3f4;
  font-size:12px;
  font-weight:700;
}
.owner{background:#f4e7c8;color:#705417}
.admin{background:#dff0f1;color:#0a575e}
.inline{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.inline label{flex:1;min-width:180px}
.section-switches{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.switchbox{
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft2);
}
.switchbox input[type=checkbox]{width:auto;margin-right:6px}
.password-wrap{position:relative}
.password-wrap input{padding-right:105px}
.toggle,.show-password{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:#eef4f1;
  color:#0c5b59;
  border-radius:10px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.pass-note,.info{
  background:#eef8f4;
  border-radius:14px;
  padding:14px 16px;
  line-height:1.7;
  margin-bottom:18px;
}
table{width:100%;border-collapse:collapse}
th,td{padding:12px 10px;border-bottom:1px solid #eceff0;text-align:left}
th{color:var(--deep);font-size:13px}
@media(max-width:980px){
  .dashboard-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .row,.row3,.section-switches,.dashboard-grid{grid-template-columns:1fr}
  .topbar{align-items:flex-start;flex-direction:column}
  .quick-nav{
    top:116px;
    overflow:auto;
    flex-wrap:nowrap;
    white-space:nowrap;
  }
  .topbar strong{font-size:18px}
  .panel{padding:18px}
}
