:root {
  --ink: #24211f;
  --muted: #6c6963;
  --line: #c9c1b8;
  --dark: #3f352d;
  --darker: #2b251f;
  --gold: #d5a647;
  --green: #3d855f;
  --red: #b8422f;
  --panel: #f5f1ea;
  --paper: #fffdf8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #e8e4dd;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(360px, 1fr);
  background: #fff;
}

.login-panel {
  padding: 0 18px 30px;
  max-width: 390px;
  margin: 0 auto;
  width: 100%;
}

.lang-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #453c35;
  color: #fff;
  height: 42px;
}

.lang {
  border: 0;
  color: #e4d8c3;
  background: transparent;
}

.lang.active {
  color: #fff;
  background: #685743;
  border-bottom: 3px solid var(--gold);
}

.login-mark {
  width: 84px;
  height: 84px;
  margin: 36px auto 18px;
  background: url("assets/login_mark.png") center / cover no-repeat;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 0 14px;
}

.role-tab {
  min-height: 40px;
  border: 1px solid #9b8c7c;
  color: #3d332b;
  background: linear-gradient(#fffaf1, #ddd2c5);
  border-radius: 3px;
  font-weight: 700;
}

.role-tab.active {
  color: #fff;
  border-color: #5b4938;
  background: linear-gradient(#6b533e, #443327);
}

.agent-mode .login-panel {
  max-width: 356px;
}

.agent-mode .role-tab.active {
  border-color: #7e1414;
  background: #961f1d;
}

.agent-login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 55px;
  margin-bottom: 0;
}

.agent-login-tab {
  border: 0;
  color: #a49e9e;
  background: #585757;
  font-size: 16px;
}

.agent-login-tab.active {
  color: #fff;
  background: #8b8b8b;
}

.login-fields {
  border: 1px solid rgba(0, 0, 0, .26);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.field {
  display: block;
  min-height: 56px;
  background: #fff;
}

.field + .field {
  border-top: 1px solid rgba(0, 0, 0, .2);
}

.field input {
  width: 100%;
  height: 56px;
  border: 0;
  padding: 0 14px 0 62px;
  color: #333;
}

.user-field input {
  background: url("assets/log_name.png") 16px center no-repeat;
}

.pass-field input {
  background: url("assets/log_pass.png") 20px center no-repeat;
}

.safe-field input {
  background: linear-gradient(135deg, transparent 42%, #777 42% 58%, transparent 58%) 22px center / 18px 18px no-repeat;
}

.safe-notice {
  height: 42px;
  line-height: 42px;
  color: #737373;
  text-align: left;
  text-shadow: 2px 1px #fff;
  font-size: 14px;
}

.login-options,
.login-links {
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(0, 0, 0, .62);
  font-size: 14px;
}

.remember input {
  display: none;
}

.remember span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 0, 0, .4);
  border-radius: 3px;
  display: inline-block;
}

.remember input:checked + span {
  background: linear-gradient(135deg, transparent 45%, var(--green) 45% 60%, transparent 60%), linear-gradient(45deg, transparent 52%, var(--green) 52% 66%, transparent 66%);
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 3px 0;
}

.login-error {
  margin-top: 14px;
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px;
  background: #fff9f7;
}

.login-btn,
.submit-bet {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(#5a9b76, #2e7652);
  font-size: 17px;
  font-weight: 700;
}

.login-hint {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.ad-box {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  background: #f7f3ed;
}

.ad-box img {
  width: 100%;
  display: block;
  max-height: 390px;
  object-fit: cover;
}

.ip-banner {
  position: relative;
}

.ip-banner span {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: #fff;
  font-weight: 700;
}

.member-view {
  min-height: 100vh;
  background: #d4d0c8;
}

.member-frame {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 118px 1fr;
  background: #cfc9bd;
}

.member-header-old {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-width: 980px;
  height: 118px;
  color: #f6eddd;
  background: #3a3129;
  border-bottom: 2px solid #8d744d;
  box-shadow: 0 1px 0 #6d5b45 inset;
}

.member-logo {
  display: grid;
  place-items: center;
  color: #f7d47b;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(#514236, #2c241f);
  border-right: 1px solid #1f1a17;
}

.member-head-main {
  display: grid;
  grid-template-rows: 28px 32px 32px 26px;
  min-width: 0;
}

.member-status-row,
.member-game-row,
.member-sports-row,
.member-type-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  min-width: 0;
  white-space: nowrap;
}

.member-status-row {
  justify-content: flex-end;
  background: #2b251f;
  color: #d8cbb7;
  font-size: 12px;
}

.member-status-row strong,
.member-status-row b {
  color: #ffd475;
}

.tiny-btn {
  min-height: 21px;
  border: 1px solid #8f7c63;
  color: #fbf4e6;
  background: #594637;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 12px;
}

.tiny-btn.danger {
  background: #7e2f25;
  border-color: #ad6f5f;
}

.member-game-row {
  background: linear-gradient(#5b4939, #3d3128);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid #211b17;
}

.member-game-row .topnav-btn,
.member-type-row .topnav-btn {
  min-height: 24px;
  border: 1px solid #8c7a61;
  color: #f4e9d2;
  background: linear-gradient(#665440, #493929);
  padding: 0 10px;
  border-radius: 2px;
}

.member-game-row .topnav-btn.active,
.member-game-row .topnav-btn.hot {
  color: #fff;
  background: linear-gradient(#b23527, #7e1c15);
  border-color: #c86e5d;
}

.member-sports-row {
  background: #d4cab9;
  border-top: 1px solid #6f5a43;
  border-bottom: 1px solid #9f8e78;
  overflow: hidden;
}

.member-sports-row .sport {
  width: auto;
  min-width: 118px;
  height: 27px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 5px;
  margin: 0;
  padding: 2px 8px;
  font-size: 12px;
}

.member-sports-row .sport img {
  width: 20px;
  height: 20px;
}

.member-type-row {
  background: #efe7db;
  color: #2d2a27;
  border-bottom: 1px solid #b6a995;
}

.member-type-row .market {
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
}

.member-type-row select {
  height: 22px;
  margin-left: auto;
  border: 1px solid #948775;
  background: #fff;
  font-size: 12px;
}

.lang-switch {
  color: #5d5145;
  font-size: 12px;
}

.member-main-frame {
  display: grid;
  grid-template-columns: 240px minmax(680px, 1fr);
  min-width: 980px;
  min-height: calc(100vh - 118px);
  gap: 0;
}

.member-order-frame {
  border: 0;
  border-right: 1px solid #918270;
  background: #ece5da;
}

.order-title {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  color: #fff;
  background: #3a3129;
  font-weight: 700;
}

.order-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  gap: 5px;
}

.order-tabs button,
.order-links button {
  border: 1px solid #948775;
  background: linear-gradient(#fffaf1, #d6cbbd);
  min-height: 26px;
  color: #302b25;
}

.order-tabs .active {
  color: #fff;
  background: #725337;
}

.record-pane {
  padding: 8px;
}

.record-empty {
  padding: 12px 8px;
  border: 1px solid #c7b9a7;
  background: #fff7e7;
  color: #695c4c;
  text-align: center;
  font-size: 12px;
}

.record-pane table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  background: #fffaf2;
  font-size: 12px;
}

.record-pane th,
.record-pane td {
  border: 1px solid #c1b2a0;
  padding: 5px;
  text-align: center;
}

.order-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}

.mem-credit-box {
  margin: 8px;
  padding: 8px;
  border: 1px solid #b5a796;
  background: #fffaf2;
  display: flex;
  justify-content: space-between;
  color: #51493f;
  font-size: 12px;
}

.mem-credit-box strong {
  color: #8c2419;
}

.member-body-frame {
  border: 0;
  border-left: 1px solid #fff;
  background: #fffdf8;
}

.browse-box {
  margin: 8px;
  border: 1px solid #9b8d7b;
  background: #f8f1e6;
}

.browse-title {
  height: 31px;
  background: linear-gradient(#4d4036, #302821);
  border-bottom: 1px solid #8f7a5f;
}

.browse-title h1 {
  margin: 0;
  padding: 0 12px;
  color: #f2ddaa;
  font-size: 14px;
  line-height: 31px;
}

.browse-title em {
  font-style: normal;
}

.browse-toolbar {
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 7px;
  background: #ded4c4;
  border-bottom: 1px solid #aa9b88;
  font-size: 12px;
}

.page-tools,
.browse-toolbar .tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.browse-toolbar button,
.tool-pill {
  min-height: 23px;
  border: 1px solid #948472;
  color: #302b25;
  background: linear-gradient(#fffaf1, #d5cab9);
  padding: 0 8px;
}

.icon-like {
  width: 28px;
  color: #b48518;
  font-weight: 700;
}

.browse-toolbar select {
  height: 23px;
  border: 1px solid #948472;
  background: #fff;
  font-size: 12px;
}

.date-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.date-filter select {
  min-width: 82px;
}

.browse-foot {
  height: 24px;
  background: #4a3b2d;
}

.topbar {
  height: 54px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  background: linear-gradient(#4d4036, #302821);
  color: #fff;
  box-shadow: 0 1px 0 #806c51 inset;
}

.brand {
  padding-left: 18px;
  font-size: 20px;
  font-weight: 700;
  color: #f0d087;
}

.topnav {
  display: flex;
  height: 100%;
}

.topnav-btn {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .1);
  color: #eadcc9;
  background: transparent;
  padding: 0 15px;
}

.topnav-btn.active {
  color: #fff;
  background: #7b5b2d;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  font-size: 13px;
}

.account strong {
  color: #f5c46e;
}

.account button,
.bet-head button,
.tools button,
.side-actions button,
.admin-header button,
.admin-menu,
.agent-nav,
.agent-side,
.sport {
  border: 1px solid #8d7e6d;
  background: linear-gradient(#fffaf0, #d8d0c4);
  color: #2d2a27;
  min-height: 30px;
  border-radius: 2px;
}

.agent-topbar {
  background: linear-gradient(#445047, #25342d);
  box-shadow: 0 1px 0 #708872 inset;
}

.agent-nav {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .12);
  color: #e4efe6;
  background: transparent;
  padding: 0 15px;
}

.agent-nav.active {
  background: #006255;
  color: #fff;
}

.agent-workspace {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: calc(100vh - 54px);
  padding: 8px;
  gap: 8px;
}

.agent-menu,
.agent-content {
  border: 1px solid #9aa99d;
  background: var(--paper);
}

.agent-menu {
  padding: 8px;
}

.agent-side {
  width: 100%;
  margin-bottom: 7px;
  text-align: left;
  padding: 8px;
}

.agent-side.active {
  background: #006255;
  color: #fff;
}

.agent-content {
  padding: 12px;
}

.agent-source-page {
  margin-top: 8px;
  color: #111;
  font-size: 12px;
}

.agent-mline {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 3px 6px;
  color: #fff;
  background: #577176;
  border: 1px solid #9ba7a6;
}

.agent-mline select,
.agent-mline input,
.agent-edit-table select,
.agent-edit-table input,
.agent-table input {
  height: 22px;
  border: 1px solid #8b8b8b;
  background: #fff;
  font-size: 12px;
}

.agent-mline input {
  width: 78px;
}

.agent-mline a {
  color: #0000ee;
  background: #9ed4f2;
  padding: 2px 6px;
}

.za-button,
.agent-source-page button {
  min-height: 22px;
  border: 1px solid #6f6f6f;
  background: linear-gradient(#fff, #d8d8d8);
  color: #111;
  font-size: 12px;
}

.agent-table,
.agent-edit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  background: #fff;
}

.agent-table th {
  color: #fff;
  background: #669999;
}

.agent-table th,
.agent-table td,
.agent-edit-table td {
  border: 1px solid #b8ab6e;
  padding: 5px;
  text-align: center;
}

.agent-table tbody tr:nth-child(even) {
  background: #f8f4d0;
}

.agent-table .num {
  text-align: right;
  color: #003399;
}

.agent-table .ok {
  color: #008000;
  font-weight: 700;
}

.agent-table .warn {
  color: #cc0000;
  font-weight: 700;
}

.agent-table input {
  width: 70px;
  text-align: right;
}

.control-source-page {
  margin-top: 0;
  overflow-x: auto;
}

.control-source-page .agent-table {
  min-width: 900px;
}

.control-source-page .agent-table input {
  width: 120px;
  text-align: left;
}

.control-source-page .agent-mline input[type="date"] {
  width: 128px;
}

.control-edit-wide {
  width: 100%;
  min-width: 900px;
}

.control-edit-wide textarea {
  width: 360px;
  border: 1px solid #8b8b8b;
  font-size: 12px;
}

.m-title-edit td,
.m-title-edit {
  color: #fff;
  background: #669999;
  text-align: center;
  font-weight: 700;
}

.manual-add-shell {
  display: grid;
  grid-template-columns: 240px minmax(660px, 1fr);
  gap: 8px;
  margin-top: 8px;
  min-width: 920px;
}

.manual-bet-card {
  padding: 6px;
  border: 3px solid #808080;
  background: #413c15;
  color: #111;
  font-size: 12px;
}

.manual-bet-head,
.manual-match {
  padding: 6px;
  background: #fff;
  border-bottom: 1px solid #c30;
  text-align: center;
  line-height: 1.6;
}

.manual-bet-card label {
  display: block;
  padding: 4px 8px;
  background: #ece9d8;
}

.manual-bet-card input,
.manual-bet-card select {
  width: 120px;
  height: 22px;
  border: 1px solid #c0c0c0;
  background: #fff;
  font-size: 12px;
}

.manual-bet-card > div:last-child {
  padding: 8px;
  background: #ece9d8;
  text-align: center;
}

.manual-game-list .agent-table button {
  display: block;
  width: 100%;
  margin: 2px 0;
}

.edit-window {
  width: min(760px, calc(100vw - 32px));
  left: 50%;
  transform: translateX(-50%);
}

.edit-main {
  border: 1px solid #776246;
  background: #f7f2e7;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.edit-main h1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 6px 10px;
  color: #fff;
  background: #56402c;
  font-size: 14px;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px;
}

.edit-grid label {
  display: grid;
  gap: 4px;
  color: #2f2419;
  font-size: 12px;
}

.edit-grid input,
.edit-grid select,
.edit-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #9b8d7d;
  background: #fff;
  padding: 5px;
  font-size: 12px;
}

.edit-grid input[readonly] {
  background: #ece6dc;
}

.edit-wide {
  grid-column: 1 / -1;
}

.agent-edit-table {
  width: 760px;
}

.agent-edit-table td {
  background: #c9dbdf;
  text-align: left;
}

.agent-edit-table .m-title-re {
  width: 100px;
  color: #fff;
  background: #577176;
  text-align: right;
}

.workspace {
  display: grid;
  grid-template-columns: 186px minmax(620px, 1fr) 280px;
  gap: 8px;
  padding: 8px;
  min-height: calc(100vh - 54px);
}

.left-menu,
.bet-slip,
.content {
  background: var(--paper);
  border: 1px solid #a89b8d;
}

.left-menu {
  padding: 7px;
}

.sport {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  text-align: left;
  margin-bottom: 6px;
  padding: 5px 8px;
}

.sport img {
  width: 28px;
  height: 28px;
}

.sport.active {
  background: linear-gradient(#725337, #4a3626);
  color: #fff;
}

.side-actions {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.content {
  overflow: auto;
}

.market-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: #eee5d9;
  border-bottom: 1px solid #ad9f90;
}

.segmented,
.tools {
  display: flex;
  gap: 4px;
  align-items: center;
}

.market {
  border: 1px solid #8d7e6d;
  background: #fffaf0;
  padding: 6px 12px;
}

.market.active {
  background: #725337;
  color: #fff;
}

.notice {
  background: #fff5ca;
  color: #5b4b14;
  border-bottom: 1px solid #d3ba66;
  padding: 8px 12px;
  font-size: 13px;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.odds-table th {
  background: #006255;
  color: #fff;
  height: 32px;
}

.odds-table td,
.odds-table th {
  border: 1px solid #b7ab9f;
  padding: 7px;
}

.odds-table tbody tr:nth-child(even) {
  background: #f7f2e9;
}

.ft-game-table {
  background: #fffaf2;
  table-layout: fixed;
}

.ft-game-table th.time {
  width: 66px;
}

.ft-game-table th.team {
  width: 154px;
}

.league-row td {
  height: 26px;
  padding: 0 8px;
  color: #fff;
  background: #6d5a43;
  border-color: #514334;
  font-weight: 700;
}

.legmark {
  display: inline-block;
  width: 20px;
  color: #ffd071;
}

.match-row td {
  height: 34px;
}

.market-special-row td {
  min-height: 38px;
  text-align: center;
  background: #fffaf2;
}

.market-special-row:nth-child(even) td {
  background: #fffdf8;
}

.market-special-row .team-name {
  text-align: left;
  min-width: 150px;
}

.market-special-row .odd {
  min-width: 60px;
  justify-content: center;
}

.no-game {
  height: 80px;
  color: #6d6256;
  text-align: center;
  background: #fffaf2;
}

.match-row.alt td {
  background: #fffdf8;
}

.more-row td {
  background: #fff;
}

.b-cen,
.b-1st {
  text-align: center;
}

.b-rig,
.b-1st-r {
  text-align: right;
}

.b-1st,
.b-1st-r {
  background: #f0eadf;
}

.team-name {
  line-height: 1.6;
  color: #4c3b2d;
}

.team-name strong {
  color: #9a3122;
}

.drawn-td {
  text-align: center;
  color: #b98b18;
}

.con {
  color: #555;
  margin-right: 3px;
}

.more-link {
  border: 0;
  color: #9a281b;
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
}

.floating-window {
  position: fixed;
  z-index: 500;
  color: #2f2a24;
  background: #eee4d5;
  border: 1px solid #5c4d3d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  font-size: 12px;
}

.league-window {
  top: 184px;
  left: 270px;
  width: 675px;
}

.leg-head {
  height: 19px;
  background: linear-gradient(#5a4a38, #342a22);
  cursor: move;
}

.leg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 4px 8px;
  color: #fff;
  background: #7a6246;
}

.leg-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-actions button {
  min-height: 23px;
  border: 1px solid #584734;
  color: #2d241d;
  background: linear-gradient(#fffdf6, #d7c7b0);
  padding: 0 12px;
}

.leg-actions .close-text {
  color: #fff;
  background: #5d4632;
}

.league-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: #bcae9c;
}

.league-item {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: #fffaf1;
  overflow: hidden;
}

.league-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leg-foot {
  height: 9px;
  background: #5b4b3a;
}

.more-window {
  top: 154px;
  left: 285px;
  width: min(920px, calc(100vw - 315px));
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 0 0 8px;
  background: #f6efe3;
}

.more-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  table-layout: fixed;
}

.more-table th,
.more-table td {
  border: 1px solid #b3a28f;
  padding: 5px;
  text-align: center;
  background: #fffaf2;
}

.team-line td.game-team {
  position: relative;
  height: 34px;
  color: #fff;
  background: #4a3a2c;
  font-size: 13px;
  font-weight: 700;
}

.team-line tt {
  color: #ffd57a;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.team-line .vs {
  margin: 0 16px;
  color: #fff;
}

.more-close {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 24px;
  height: 22px;
  border: 1px solid #9c8a74;
  color: #fff;
  background: #7f251c;
  font-weight: 700;
}

.more-table .game-title {
  color: #fff;
  background: #6b5740;
  font-weight: 700;
  text-align: left;
  padding-left: 10px;
}

.more-table th {
  color: #f9efdd;
  background: #006255;
  font-weight: 700;
}

.more-table .odd {
  min-width: 58px;
  justify-content: center;
}

.pass-window {
  top: 150px;
  left: 50%;
  width: 430px;
  transform: translateX(-50%);
  background: #e4d7c3;
}

.pass-main h1 {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 10px;
  color: #fff;
  background: #3a3129;
  font-size: 14px;
}

.pass-close {
  border: 0;
  color: #f7d47b;
  background: transparent;
  font-size: 12px;
}

.pass-bg {
  padding: 14px;
}

.pass-text {
  padding: 10px;
  border: 1px solid #bcae9c;
  background: #fffaf2;
  line-height: 1.7;
  font-size: 12px;
}

.pass-text .text-1 {
  color: #8c2419;
  font-weight: 700;
}

.pass-fields {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.pass-fields input {
  height: 34px;
  border: 1px solid #9b8b76;
  padding: 0 10px;
  background: #fff;
}

.pass-error {
  margin-top: 10px;
  color: #b8422f;
  font-size: 12px;
}

.pass-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.pass-foot button {
  min-width: 74px;
  min-height: 30px;
  border: 1px solid #8d7e6d;
}

.pass-foot .no {
  background: #fffaf2;
}

.pass-foot .yes {
  color: #fff;
  background: #2e7652;
}

@media (max-width: 900px) {
  .league-window,
  .more-window,
  .pass-window {
    left: 8px;
    right: 8px;
    width: auto;
    transform: none;
  }

  .more-window {
    top: 130px;
  }
}

.team {
  display: grid;
  gap: 3px;
}

.team strong {
  color: #65442a;
}

.odd {
  display: inline-flex;
  justify-content: space-between;
  min-width: 74px;
  gap: 6px;
  border: 1px solid #d4c8ba;
  background: #fff;
  padding: 4px 6px;
  margin: 1px;
  color: #a12818;
  font-weight: 700;
  font-size: 12px;
}

.odd:hover {
  background: #fff0ce;
}

.bet-slip {
  display: flex;
  flex-direction: column;
}

.bet-head {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  background: #3f352d;
}

.empty-slip {
  margin: 12px;
  padding: 24px 10px;
  border: 1px dashed #b6aa9d;
  color: var(--muted);
  text-align: center;
}

.bet-card {
  margin: 8px;
  border: 1px solid #c3b6a7;
  background: #fffaf3;
}

.bet-card header {
  display: flex;
  justify-content: space-between;
  padding: 7px;
  background: #efe4d3;
  font-weight: 700;
}

.bet-card p {
  margin: 7px;
  color: #504a43;
}

.stake-box {
  margin-top: auto;
  border-top: 1px solid #b4a797;
  padding: 10px;
  background: #f1ebe2;
}

.stake-box input {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  border: 1px solid #a99c8d;
  padding: 0 8px;
}

.summary {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.cancel-bet {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
  border: 1px solid #aaa;
  background: #fff;
}

.info-page {
  padding: 20px;
}

.history-shell {
  border: 1px solid #a99a87;
  background: #fffaf2;
}

.history-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #ded4c4;
  border-bottom: 1px solid #aa9b88;
  font-size: 12px;
}

.history-filter input,
.history-filter select {
  height: 25px;
  border: 1px solid #948472;
  background: #fff;
}

.today-record-shell {
  width: 260px;
  border: 1px solid #a99a87;
  background: #e8ddcc;
}

.today-record-title {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  color: #fff;
  background: #3a3129;
}

.today-record-title h1 {
  margin: 0;
  font-size: 13px;
}

.today-record-card {
  margin: 8px;
  padding: 8px;
  border: 1px solid #c2b29f;
  background: #fffaf2;
  font-size: 12px;
  line-height: 1.6;
}

.record-match strong {
  color: #8c2419;
}

.fin-gold {
  color: #b51d12;
}

.record-state {
  margin-top: 4px;
  padding-left: 18px;
  font-weight: 700;
}

.record-state.wait {
  color: #0033ff;
}

.record-state.ok {
  color: #009900;
}

.result-shell,
.rules-shell {
  border: 1px solid #a99a87;
  background: #fffaf2;
}

.result-top {
  height: 31px;
  background: linear-gradient(#4d4036, #302821);
}

.result-top h1 {
  margin: 0;
  padding: 0 12px;
  color: #f2ddaa;
  font-size: 14px;
  line-height: 31px;
}

.result-top em {
  font-style: normal;
}

.result-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #ded4c4;
  border-bottom: 1px solid #aa9b88;
  font-size: 12px;
}

.result-tools input,
.result-tools select {
  height: 25px;
  border: 1px solid #948472;
  background: #fff;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.result-table th {
  height: 30px;
  color: #fff;
  background: #006255;
}

.result-table th,
.result-table td {
  border: 1px solid #b3a28f;
  padding: 7px;
}

.result-table .time {
  width: 80px;
  text-align: center;
}

.result-table strong {
  color: #8c2419;
}

.rules-nav {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #ded4c4;
  border-bottom: 1px solid #aa9b88;
}

.rules-nav button {
  min-height: 26px;
  border: 1px solid #948472;
  background: linear-gradient(#fffaf1, #d6cbbd);
  color: #302b25;
}

.rules-nav .active {
  color: #fff;
  background: #725337;
}

.rules-shell section {
  padding: 14px 18px 22px;
  line-height: 1.7;
  font-size: 13px;
}

.rules-shell h2 {
  margin: 0 0 10px;
  color: #5d3d24;
  font-size: 16px;
}

.rules-shell h3 {
  margin: 12px 0 4px;
  color: #006255;
  font-size: 13px;
}

.rules-shell p {
  margin: 0;
}

.info-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.info-card,
.admin-card {
  border: 1px solid #b9ad9f;
  background: #fffaf2;
  padding: 12px;
  min-height: 92px;
}

.admin-view {
  min-height: 100vh;
  background: #fff;
}

.admin-login {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding-top: 80px;
  background: #fff;
}

.mail-card {
  width: 450px;
  border: 1px solid #c7c7c7;
  box-shadow: 0 1px 0 #eee inset;
  padding: 0 40px 28px;
  color: #333;
}

.mail-top {
  height: 9px;
  margin: 0 -40px 0;
  background: #00559d;
}

.mail-card h2 {
  margin: 0 -40px 16px;
  height: 31px;
  line-height: 31px;
  color: #fff;
  background: #1b71b5;
  text-align: center;
  font-size: 15px;
}

.mail-card p,
.mail-links {
  text-align: center;
  font-size: 12px;
}

.mail-card label {
  display: block;
  margin-top: 10px;
  color: #3366cc;
  font-size: 13px;
}

.mail-card input {
  width: 100%;
  height: 28px;
  border: 1px solid #9f9f9f;
  margin-top: 5px;
}

.mail-row,
.mail-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.admin-header {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background: #006255;
  color: #fff;
}

.control-toolbar {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 0 6px;
  background: #2f4540;
  border-bottom: 1px solid #9dafc3;
  overflow-x: auto;
}

.control-top {
  border: 0;
  color: #bb0000;
  background: transparent;
  min-height: 28px;
  padding: 0 8px;
  white-space: nowrap;
}

.control-top.active {
  color: #fff;
  background: #577176;
}

.admin-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: calc(100vh - 76px);
}

.admin-layout aside {
  padding: 8px;
  background: #ece5dc;
  border-right: 1px solid #ab9e90;
}

.admin-menu {
  width: 100%;
  margin-bottom: 7px;
  text-align: left;
  padding: 8px;
}

.admin-menu.active {
  background: #4f3e2f;
  color: #fff;
}

#adminContent {
  padding: 12px;
  background: #fffdf8;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #006255;
  color: #fff;
}

.admin-table th,
.admin-table td {
  border: 1px solid #b8ab9e;
  padding: 8px;
  text-align: left;
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 8px;
  border: 1px solid #b8ab9e;
  background: #e9f0ef;
}

.module-head strong {
  color: #004f45;
}

.user-msg {
  margin-top: 14px;
  border: 1px solid #b8ab9e;
  background: #fff;
}

.user-msg > span {
  display: block;
  padding: 8px 10px;
  color: #fff;
  background: #900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  min-width: 240px;
  text-align: center;
  padding: 12px 18px;
  color: #fff;
  background: rgba(45, 37, 31, .94);
  border-radius: 4px;
  z-index: 20;
}

@media (max-width: 900px) {
  .login-view,
  .workspace,
  .topbar,
  .agent-workspace,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .ad-box {
    display: none;
  }

  .topbar {
    height: auto;
    gap: 8px;
    padding: 10px;
  }

  .topnav {
    overflow-x: auto;
  }

  .workspace {
    padding: 0;
  }

  .left-menu {
    display: grid;
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    overflow-x: auto;
  }

  .side-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}
