.we-ref-app{
  max-width:900px;
  margin:24px auto;
  font-family:inherit;
  color:#222;
  box-sizing:border-box
}
.we-ref-app *{box-sizing:border-box}
.we-ref-searchbox{
  position:relative;
  padding:16px;
  border:1px solid #d7d7d7;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.16),0 2px 8px rgba(0,0,0,.08)
}
.we-ref-searchbox label,.we-ref-section-title{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#222;
  box-shadow:0 3px 10px rgba(0,0,0,.10)
}
.we-ref-input-row{display:flex;gap:8px;align-items:stretch}
.we-ref-input-row input{
  flex:1;
  min-width:0;
  min-height:48px;
  font:inherit;
  font-size:16px;
  padding:12px 14px;
  border:1px solid #cfcfcf;
  border-radius:10px;
  background:#fff;
  color:#222
}
.we-ref-input-row input:focus{
  outline:2px solid #1a73e8;
  outline-offset:1px;
  border-color:#1a73e8;
  box-shadow:0 0 0 3px rgba(26,115,232,.12),0 5px 16px rgba(0,0,0,.14)
}
.we-ref-app button,.we-ref-list-button,.we-ref-chip,.we-ref-person,.we-ref-suggest-item{
  font:inherit;
  cursor:pointer;
  color:#222!important;
  -webkit-text-fill-color:#222!important
}
.we-ref-list-button{
  min-height:48px;
  padding:10px 14px!important;
  border:1px solid #aaa!important;
  background:#fff!important;
  border-radius:10px!important;
  white-space:nowrap;
  box-shadow:0 3px 10px rgba(0,0,0,.10)
}
.we-ref-list-button:hover,.we-ref-chip:hover,.we-ref-person:hover,.we-ref-suggest-item:hover{
  background:#f5f5f5!important;
  color:#111!important
}
.we-ref-suggest{
  position:absolute;
  left:0;
  right:0;
  top:100%;
  z-index:50;
  max-height:min(420px,60vh);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid #d6d6d6;
  border-radius:10px;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.22),0 4px 12px rgba(0,0,0,.10);
  margin-top:5px
}
.we-ref-suggest-item{
  width:100%;
  min-height:54px;
  display:flex!important;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  text-align:left!important;
  padding:11px 13px!important;
  border:0!important;
  border-bottom:1px solid #eee!important;
  background:#fff!important;
  border-radius:0!important
}
.we-ref-suggest-item:last-child{border-bottom:0!important}
.we-ref-suggest-name{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.we-ref-suggest-name strong{font-size:1.02em}
.we-ref-suggest-name small,.we-ref-suggest-meta{
  font-size:.82em;
  color:#666!important;
  -webkit-text-fill-color:#666!important
}
.we-ref-suggest-meta{white-space:nowrap}
.we-ref-empty{padding:13px;color:#666;background:#fff;line-height:1.55}
.we-ref-recent,.we-ref-all{margin-top:20px}
.we-ref-chip-row{display:flex;gap:8px;flex-wrap:wrap}
.we-ref-chip{
  min-height:40px;
  border:1px solid #ddd!important;
  background:#fff!important;
  border-radius:999px!important;
  padding:7px 13px!important;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.07)
}
.we-ref-all-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:8px
}
.we-ref-person{
  text-align:left!important;
  border:1px solid #ddd!important;
  background:#fff!important;
  border-radius:10px!important;
  padding:11px!important;
  min-height:76px
}
.we-ref-person strong{display:block;color:#222!important}
.we-ref-person small{
  display:block;
  color:#666!important;
  -webkit-text-fill-color:#666!important;
  margin-top:2px
}
.we-ref-loading{padding:28px 0;text-align:center;color:#666}
.we-ref-card{
  margin-top:24px;
  border:1px solid #e1e1e1;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  color:#222;
  box-shadow:0 12px 32px rgba(0,0,0,.15),0 3px 10px rgba(0,0,0,.07)
}
.we-ref-profile{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding:20px;
  border-bottom:1px solid #eee
}
.we-ref-profile h2{margin:0 0 6px;font-size:1.65rem;line-height:1.25;color:#222}
.we-ref-sub{font-size:.9em;color:#666;line-height:1.55}
.we-ref-official{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:.85em;
  padding:8px 10px;
  border:1px solid #d9d9d9;
  border-radius:8px;
  text-decoration:none!important
}
.we-ref-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1px;
  background:#e8e8e8
}
.we-ref-stat-grid>div{background:#fff;padding:15px}
.we-ref-stat-grid span{display:block;color:#666;font-size:.82em;margin-bottom:4px;line-height:1.35}
.we-ref-stat-grid strong{font-size:1.1em;line-height:1.35;color:#222}
.we-ref-stat-primary strong{font-size:1.2em}
.we-ref-section{padding:20px;border-top:1px solid #eee}
.we-ref-section h3{margin:0 0 14px;color:#222;line-height:1.4}
.we-ref-time-table{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr;
  border:1px solid #e2e2e2;
  border-radius:10px;
  overflow:hidden
}
.we-ref-time-table>div{
  padding:10px 12px;
  border-bottom:1px solid #eee;
  color:#222;
  text-align:center
}
.we-ref-time-table>div:nth-child(3n+1){text-align:left}
.we-ref-time-table .head{font-weight:700;background:#f7f7f7}
.we-ref-match-list{
  border:1px solid #e2e2e2;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 5px 16px rgba(0,0,0,.08)
}
.we-ref-match{
  display:grid;
  grid-template-columns:34px 1fr 20px;
  gap:10px;
  align-items:center;
  min-height:72px;
  text-decoration:none!important;
  color:#222!important;
  padding:12px;
  border-bottom:1px solid #eee
}
.we-ref-match:last-child{border-bottom:0}
.we-ref-match:hover{background:#fafafa}
.we-ref-match-result{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:50%;
  font-weight:700;
  font-size:1.05em;
  background:#f3f3f3
}
.we-ref-result-w{background:#eef8ef}
.we-ref-result-l{background:#fff0f0}
.we-ref-result-d{background:#f4f4f4}
.we-ref-match-body{display:flex;flex-direction:column;min-width:0}
.we-ref-match-date{font-size:.78em;color:#777;margin-bottom:3px}
.we-ref-match-score{
  color:#222;
  font-size:.98em;
  line-height:1.4;
  word-break:keep-all
}
.we-ref-match-score b{font-weight:800}
.we-ref-match-body small{display:block;color:#777;margin-top:3px;line-height:1.35}
.we-ref-match-arrow{font-size:1.5em;color:#999;text-align:right}
.we-ref-note{margin-top:12px;color:#777;font-size:.82em;line-height:1.65}
.we-ref-error{
  padding:14px;
  background:#fff3f3;
  border:1px solid #efcaca;
  border-radius:10px;
  color:#7a2020
}

@media(max-width:640px){
  .we-ref-app{
    width:100%;
    max-width:none;
    margin:16px 0;
    padding:0 2px
  }
  .we-ref-searchbox{
    padding:13px;
    border-radius:13px;
    box-shadow:0 9px 24px rgba(0,0,0,.17),0 2px 7px rgba(0,0,0,.08)
  }
  .we-ref-searchbox label,.we-ref-section-title{
    font-size:1rem;
    margin-bottom:7px
  }
  .we-ref-input-row{display:block}
  .we-ref-input-row input{
    width:100%;
    min-height:52px;
    padding:13px 14px;
    border-radius:12px
  }
  .we-ref-list-button{
    width:100%;
    min-height:46px;
    margin-top:8px
  }
  .we-ref-suggest{
    top:auto;
    left:0;
    right:0;
    max-height:52vh;
    border-radius:12px
  }
  .we-ref-suggest-item{
    min-height:58px;
    padding:12px 13px!important
  }
  .we-ref-suggest-meta{font-size:.76em}

  .we-ref-recent{margin-top:18px}
  .we-ref-chip-row{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:2px 2px 8px;
    margin:0 -2px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch
  }
  .we-ref-chip-row::-webkit-scrollbar{display:none}
  .we-ref-chip{flex:0 0 auto;min-height:42px}

  .we-ref-all-grid{grid-template-columns:1fr 1fr;gap:7px}
  .we-ref-person{min-height:82px;padding:10px!important}

  .we-ref-card{
    margin-top:18px;
    border-radius:12px
  }
  .we-ref-profile{
    display:block;
    padding:16px
  }
  .we-ref-profile h2{font-size:1.55rem;margin-bottom:5px}
  .we-ref-official{
    width:100%;
    justify-content:center;
    min-height:44px;
    margin-top:12px;
    font-size:.9em
  }

  .we-ref-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .we-ref-stat-grid>div{
    min-height:86px;
    padding:13px 12px;
    display:flex;
    flex-direction:column;
    justify-content:center
  }
  .we-ref-stat-grid span{font-size:.78em}
  .we-ref-stat-grid strong{font-size:1.08em}
  .we-ref-stat-primary strong{font-size:1.22em}
  .we-ref-stat-primary:first-child{
    grid-column:1 / -1;
    min-height:72px
  }

  .we-ref-section{padding:16px}
  .we-ref-section h3{font-size:1.16rem;margin-bottom:12px}
  .we-ref-time-table>div{
    padding:10px 8px;
    font-size:.94em
  }

  .we-ref-match{
    grid-template-columns:34px minmax(0,1fr) 16px;
    min-height:82px;
    gap:9px;
    padding:11px 10px
  }
  .we-ref-match-result{
    width:30px;
    height:30px
  }
  .we-ref-match-date{font-size:.75em}
  .we-ref-match-score{font-size:.93em}
  .we-ref-match-body small{font-size:.74em}
  .we-ref-match-arrow{font-size:1.35em}

  .we-ref-note{
    margin:12px 4px 0;
    font-size:.76em
  }
}

@media(max-width:380px){
  .we-ref-all-grid{grid-template-columns:1fr}
  .we-ref-stat-grid>div{padding:12px 10px}
  .we-ref-stat-grid strong{font-size:1.02em}
  .we-ref-stat-primary strong{font-size:1.15em}
  .we-ref-match-score{font-size:.9em}
}

/* v0.5.1: 直近試合と主審をセットで表示 */
.we-ref-recent-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px
}
.we-ref-recent-card{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start!important;
  justify-content:center;
  min-width:0;
  min-height:92px;
  padding:10px 11px!important;
  border:1px solid #d8d8d8!important;
  border-radius:11px!important;
  background:#fff!important;
  text-align:left!important;
  box-shadow:0 4px 12px rgba(0,0,0,.10)!important
}
.we-ref-recent-card:hover{background:#f7f7f7!important}
.we-ref-recent-match{
  display:block;
  width:100%;
  margin-bottom:4px;
  color:#666!important;
  -webkit-text-fill-color:#666!important;
  font-size:.76em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.we-ref-recent-card strong{
  display:block;
  width:100%;
  font-size:.94em;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.we-ref-recent-score{
  display:inline-block;
  margin-top:5px;
  padding:2px 7px;
  border-radius:999px;
  font-size:.78em;
  font-weight:700;
  background:#f3f3f3
}
.we-ref-recent-score.we-ref-result-w{background:#eef8ef}
.we-ref-recent-score.we-ref-result-l{background:#fff0f0}
.we-ref-recent-score.we-ref-result-d{background:#f4f4f4}

@media(max-width:640px){
  .we-ref-recent-grid{
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding:2px 2px 9px;
    margin:0 -2px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch
  }
  .we-ref-recent-grid::-webkit-scrollbar{display:none}
  .we-ref-recent-card{
    flex:0 0 185px;
    min-height:92px
  }
}

/* v0.5.2: ベレーザを意識した検索エリア + クリック安定化の視覚フィードバック */
.we-ref-searchbox{
  border:2px solid #087a4b;
  background:linear-gradient(180deg,#f4fbf7 0%,#ffffff 72%);
  box-shadow:0 12px 30px rgba(0,92,58,.20),0 3px 10px rgba(0,0,0,.10)
}
.we-ref-searchbox label{
  color:#075f3d;
  box-shadow:none;
  font-size:1.02em
}
.we-ref-input-row input{
  border:1.5px solid #8dbda7;
  box-shadow:0 3px 10px rgba(0,92,58,.10)
}
.we-ref-input-row input:focus{
  outline:2px solid #087a4b;
  border-color:#087a4b;
  box-shadow:0 0 0 3px rgba(8,122,75,.14),0 6px 18px rgba(0,92,58,.16)
}
.we-ref-list-button{
  border-color:#087a4b!important;
  background:#087a4b!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-weight:700;
  box-shadow:0 4px 12px rgba(0,92,58,.22)
}
.we-ref-list-button:hover,
.we-ref-list-button:focus{
  background:#06623d!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important
}
.we-ref-suggest{
  border-color:#87b9a1;
  box-shadow:0 16px 36px rgba(0,92,58,.18),0 4px 14px rgba(0,0,0,.10)
}
.we-ref-suggest-item:hover,
.we-ref-suggest-item:focus{
  background:#eff8f3!important
}
.we-ref-person.is-selected,
.we-ref-suggest-item.is-selected,
.we-ref-recent-card.is-selected{
  border-color:#087a4b!important;
  background:#eff8f3!important;
  box-shadow:0 0 0 2px rgba(8,122,75,.16),0 5px 14px rgba(0,92,58,.14)!important
}
.we-ref-recent-card:hover,
.we-ref-recent-card:focus{
  border-color:#75ac91!important;
  background:#f3faf6!important
}
.we-ref-section-title{
  box-shadow:none
}

@media(max-width:640px){
  .we-ref-searchbox{
    border-width:2px;
    box-shadow:0 10px 26px rgba(0,92,58,.20),0 2px 8px rgba(0,0,0,.09)
  }
}
/* v0.5.3: JSに依存しない審判一覧 */
.we-ref-native-list{
  margin-top:10px;
  border:1px solid #8dbda7;
  border-radius:10px;
  background:#fff;
  overflow:hidden
}
.we-ref-native-list summary{
  cursor:pointer;
  list-style:none;
  padding:11px 14px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  background:#087a4b;
  user-select:none
}
.we-ref-native-list summary::-webkit-details-marker{display:none}
.we-ref-native-list summary::after{
  content:"＋";
  margin-left:8px;
  font-weight:700
}
.we-ref-native-list[open] summary::after{content:"−"}
.we-ref-native-list .we-ref-all-grid{
  padding:10px;
  background:#f7fbf9
}
.we-ref-person{
  display:block;
  text-decoration:none!important
}
.we-ref-recent-card{
  text-decoration:none!important
}
.we-ref-suggest-item{
  text-decoration:none!important
}
