.home-task-progress {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(76px, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
}

/* Captain earnings and payout workspace */
.earnings-workspace {
    display: grid;
    gap: 16px;
}

.earnings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 28px;
    overflow: hidden;
    color: #fff;
    border-radius: 22px;
    background: radial-gradient(circle at 88% 15%, rgba(46, 211, 177, .28), transparent 32%), linear-gradient(135deg, #062c3d, #075568);
    box-shadow: 0 16px 38px rgba(5, 54, 70, .16);
}

.earnings-hero-copy > span,
.earnings-section-head > div > span,
.earnings-ledger summary > div > span {
    color: #149c91;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.earnings-hero-copy > span { color: #73e3d1; }
.earnings-hero h2 { margin: 8px 0 7px; color: #fff; font-size: clamp(22px, 3vw, 32px); }
.earnings-hero p { max-width: 660px; margin: 0; color: #c9e4e8; line-height: 1.65; }

.earnings-hero-total {
    min-width: 230px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}
.earnings-hero-total small,
.earnings-hero-total span { display: block; color: #c9e4e8; font-size: 11px; }
.earnings-hero-total strong { display: block; margin: 5px 0; color: #fff; font-size: 30px; }

.earnings-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.earnings-balance-grid article {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 17px;
    border: 1px solid #dfe8e7;
    border-radius: 16px;
    background: #fff;
}
.earnings-balance-grid article.available { border-color: #8bd5c9; background: linear-gradient(145deg, #effbf8, #fff); }
.earnings-balance-grid article > span { padding-left: 15px; color: #53696e; font-size: 12px; }
.earnings-balance-grid article > strong { margin: 8px 0 4px; color: #082d42; font-size: 24px; }
.earnings-balance-grid article > small { color: #7a8c90; font-size: 10px; }
.earnings-dot { position: absolute; top: 21px; left: 17px; width: 8px; height: 8px; border-radius: 50%; background: #e5ad38; }
.earnings-dot.available { background: #13a487; }
.earnings-dot.reserved { background: #4387cf; }
.earnings-dot.paid { background: #665ac5; }

.earnings-flow-strip {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid #e1e9e9;
    border-radius: 14px;
    background: #fff;
}
.earnings-flow-strip div { display: flex; gap: 8px; align-items: center; white-space: nowrap; color: #456168; font-size: 11px; font-weight: 700; }
.earnings-flow-strip div b { display: grid; width: 25px; height: 25px; place-items: center; color: #087c73; border-radius: 50%; background: #e6f6f2; }
.earnings-flow-strip > i { height: 1px; background: #d5e3e1; }

.earnings-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.earnings-action-card,
.earnings-section {
    padding: 20px;
    border: 1px solid #dfe8e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 55, 70, .04);
}
.earnings-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.earnings-section-head h2,
.earnings-ledger summary h2 { margin: 4px 0 0; color: #082d42; font-size: 18px; }
.earnings-section-head > b,
.earnings-ledger summary > b { color: #087c73; }
.account-status { padding: 6px 9px; color: #96641c; border-radius: 999px; background: #fff2d6; font-size: 10px; font-style: normal; font-weight: 800; }
.account-status.verified { color: #08765f; background: #e3f7f0; }

.saved-account { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.saved-account > div { padding: 11px; border-radius: 11px; background: #f4f8f8; }
.saved-account small,
.saved-account strong { display: block; }
.saved-account small { margin-bottom: 4px; color: #73858a; font-size: 10px; }
.saved-account strong { color: #102f3d; }
.saved-account > span { grid-column: 1 / -1; color: #74878b; font-size: 10px; }
.game-id-payout-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #e1e9e8;
    border-radius: 14px;
    background: #f4f8f8;
}
.game-id-payout-card.verified { border-color: #94d8cc; background: linear-gradient(145deg, #edf9f6, #f8fcfb); }
.game-id-payout-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; border-radius: 13px; background: #087f78; font-size: 20px; }
.game-id-payout-card small, .game-id-payout-card strong, .game-id-payout-card span { display: block; }
.game-id-payout-card small { color: #718589; font-size: 9px; letter-spacing: .08em; }
.game-id-payout-card strong { margin-top: 3px; color: #082d42; font-size: 22px; letter-spacing: .04em; }
.game-id-payout-card span { margin-top: 2px; color: #63787d; font-size: 10px; }
.game-id-payout-card > b { color: #08765f; font-size: 10px; white-space: nowrap; }
.game-id-lock-note { margin: 12px 0 0; color: #6f8185; font-size: 10px; line-height: 1.6; }
.earnings-account-editor { margin-top: 14px; }
.earnings-account-editor summary { cursor: pointer; color: #087c73; font-size: 12px; font-weight: 800; }
.earnings-form { display: grid !important; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 13px; }
.earnings-form .wide-field { grid-column: 1 / -1; }
.earnings-form label small { display: block; margin-top: 5px; color: #7a8c90; font-size: 10px; line-height: 1.5; }

.payout-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border-radius: 12px; background: #0d9b87; font-size: 19px; font-weight: 900; }
.payout-rule { margin: 16px 0 14px; padding: 13px; border-radius: 12px; background: #f1f8f7; }
.payout-rule strong { color: #0b554f; }
.payout-rule p { margin: 5px 0 0; color: #61777b; font-size: 11px; line-height: 1.55; }
.earnings-payout-form { gap: 10px; }
.earnings-payout-form button:disabled { cursor: not-allowed; opacity: .45; }
.account-warning { margin: 10px 0 0; color: #9b6819; font-size: 11px; }
.earnings-error { margin: 0; }

.earnings-history-list,
.earnings-ledger-list { display: grid; gap: 9px; margin-top: 15px; }
.earnings-history-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 13px; border: 1px solid #e7eded; border-radius: 13px; }
.history-main { display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-items: center; }
.history-main > strong { color: #082d42; font-size: 19px; }
.history-main > small { grid-column: 1 / -1; color: #77898d; font-size: 10px; }
.history-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.history-meta span { min-width: 0; color: #829095; font-size: 9px; }
.history-meta b,
.history-meta code { display: block; margin-top: 3px; overflow: hidden; color: #294650; font-size: 10px; text-overflow: ellipsis; }
.earnings-empty { padding: 26px 12px; text-align: center; color: #75888c; }
.earnings-empty > span { display: grid; width: 36px; height: 36px; margin: 0 auto 8px; place-items: center; color: #0a897a; border-radius: 50%; background: #e5f7f2; }
.earnings-empty strong { display: block; color: #294650; }
.earnings-empty p { margin: 5px 0 0; font-size: 11px; }

.earnings-ledger summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.earnings-ledger summary::-webkit-details-marker { display: none; }
.earning-ledger-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 12px 13px; border: 1px solid #e7eded; border-radius: 12px; }
.earning-ledger-row > div { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; min-width: 0; }
.earning-ledger-row > div > strong { overflow: hidden; color: #183e4b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.earning-ledger-row > div > small { grid-column: 1 / -1; color: #78898d; font-size: 9px; }
.earning-ledger-row > strong { flex: none; color: #092f42; font-size: 17px; }

@media (max-width: 760px) {
    .earnings-workspace { gap: 11px; }
    .earnings-hero { grid-template-columns: 1fr; gap: 15px; padding: 19px; border-radius: 17px; }
    .earnings-hero h2 { margin-top: 6px; font-size: 22px; line-height: 1.25; }
    .earnings-hero p { font-size: 11px; line-height: 1.55; }
    .earnings-hero-total { min-width: 0; padding: 13px 15px; }
    .earnings-hero-total strong { font-size: 27px; }
    .earnings-balance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .earnings-balance-grid article { padding: 13px; border-radius: 13px; }
    .earnings-balance-grid article > span { font-size: 10px; }
    .earnings-balance-grid article > strong { font-size: 20px; }
    .earnings-dot { top: 17px; left: 13px; }
    .earnings-flow-strip { grid-template-columns: 1fr 1fr; gap: 9px; padding: 12px; }
    .earnings-flow-strip > i { display: none; }
    .earnings-flow-strip div { white-space: normal; }
    .earnings-action-grid { grid-template-columns: 1fr; gap: 11px; }
    .earnings-action-card, .earnings-section { padding: 15px; border-radius: 15px; }
    .earnings-form { grid-template-columns: 1fr; }
    .earnings-form .wide-field { grid-column: auto; }
    .game-id-payout-card { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
    .game-id-payout-card > b { grid-column: 2; }
    .earnings-history-item { grid-template-columns: 1fr; gap: 10px; }
    .history-meta { grid-template-columns: 1fr 1fr; padding-top: 9px; border-top: 1px solid #edf1f1; }
    .earning-ledger-row { padding: 11px; }
}

/* Modern manual evidence workspace */
.evidence-workspace { display: grid; gap: 14px; }
.evidence-hero { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 17px; align-items: center; padding: 22px 24px; color: #fff; border-radius: 20px; background: radial-gradient(circle at 90% 10%,rgba(38,210,173,.24),transparent 34%),linear-gradient(135deg,#073247,#08786f); box-shadow: 0 14px 32px rgba(7,61,74,.13); }
.evidence-hero-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.11); font-size: 23px; }
.evidence-hero span,.evidence-form-card > header span,.evidence-history > header span { color: #69dfca; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.evidence-hero h1 { margin: 4px 0; color: #fff; font-size: 25px; }
.evidence-hero p { max-width: 750px; margin: 0; color: #d2e8e9; font-size: 11px; line-height: 1.6; }
.evidence-hero aside { display: grid; min-width: 105px; padding: 12px 15px; text-align: center; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(255,255,255,.1); }
.evidence-hero aside b { font-size: 28px; }
.evidence-hero aside span { margin-top: 3px; color: #d7eeee; letter-spacing: 0; }
.evidence-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border: 1px solid #dce8e6; border-radius: 14px; background: #fff; }
.evidence-flow div { display: flex; gap: 8px; align-items: center; color: #6d8286; font-size: 10px; font-weight: 800; white-space: nowrap; }
.evidence-flow div b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #edf3f2; color: #6f8185; }
.evidence-flow div.active { color: #087b70; }
.evidence-flow div.active b { color: #fff; background: #0a9182; }
.evidence-flow > i { height: 1px; background: #dbe5e4; }
.evidence-feedback { margin: 0; }
.evidence-no-task { padding: 42px 20px; text-align: center; border: 1px dashed #c9dcda; border-radius: 18px; background: #fff; }
.evidence-no-task > div { display: grid; width: 45px; height: 45px; margin: 0 auto 10px; place-items: center; color: #078271; border-radius: 50%; background: #e2f5ef; font-size: 19px; }
.evidence-no-task h2 { margin: 0; color: #153b48; font-size: 18px; }
.evidence-no-task p { max-width: 520px; margin: 7px auto 15px; color: #6f8388; font-size: 11px; line-height: 1.6; }
.evidence-form-card,.evidence-history { overflow: hidden; border: 1px solid #dce7e6; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(7,52,65,.04); }
.evidence-form-card > header,.evidence-history > header { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid #e5eceb; }
.evidence-form-card > header span,.evidence-history > header span { color: #07887d; }
.evidence-form-card > header h2,.evidence-history > header h2 { margin: 4px 0; color: #0a3042; font-size: 19px; }
.evidence-form-card > header p,.evidence-history > header p { margin: 0; color: #6f8387; font-size: 10px; }
.evidence-form-card > header em { padding: 6px 9px; color: #087868; border-radius: 999px; background: #e3f5ef; font-size: 9px; font-style: normal; font-weight: 900; }
.evidence-modern-form { display: grid; gap: 12px; padding: 18px 20px 20px; }
.evidence-task-select { display: grid; gap: 7px; padding: 14px; border: 1px solid #aedbd4; border-radius: 13px; background: linear-gradient(120deg,#edf9f6,#fff); }
.evidence-task-select > span { display: flex; gap: 8px; align-items: center; color: #184650; font-size: 11px; font-weight: 900; }
.evidence-task-select > span b,.evidence-section-title > b { display: grid; width: 25px; height: 25px; place-items: center; color: #fff; border-radius: 8px; background: #0a8e80; font-size: 10px; }
.evidence-task-select select { width: 100%; min-height: 45px; padding: 9px 12px; color: #0a3042; border: 1px solid #cbdcda; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 800; }
.evidence-task-select > small { color: #687e82; font-size: 10px; line-height: 1.5; }
.evidence-form-section { padding: 15px; border: 1px solid #e0e9e8; border-radius: 13px; background: #fafcfc; }
.evidence-form-section[hidden] { display: none; }
.evidence-section-title { display: flex; gap: 9px; align-items: center; margin-bottom: 13px; }
.evidence-section-title strong,.evidence-section-title small { display: block; }
.evidence-section-title strong { color: #163e49; font-size: 12px; }
.evidence-section-title small { margin-top: 2px; color: #7a8d90; font-size: 9px; }
.evidence-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.evidence-field-grid label { display: grid; gap: 6px; color: #2b4a52; font-size: 10px; font-weight: 800; }
.evidence-field-grid label.full { grid-column: 1 / -1; }
.evidence-field-grid input,.evidence-field-grid select,.evidence-field-grid textarea { width: 100%; min-height: 43px; padding: 10px 11px; color: #163742; border: 1px solid #cfdcdb; border-radius: 9px; background: #fff; box-sizing: border-box; font: inherit; outline: none; }
.evidence-field-grid textarea { min-height: 105px; resize: vertical; line-height: 1.6; }
.evidence-field-grid input:focus,.evidence-field-grid select:focus,.evidence-field-grid textarea:focus { border-color: #3e9f95; box-shadow: 0 0 0 3px rgba(12,144,129,.08); }
.evidence-field-grid label > small { color: #809194; font-size: 9px; font-weight: 400; }
.evidence-field-grid label.full > small:last-child { justify-self: end; }
.evidence-upload { position: relative; grid-template-columns: auto minmax(0,1fr) auto !important; gap: 11px !important; align-items: center; min-height: 66px; padding: 10px 12px; overflow: hidden; border: 1px dashed #9fcac4; border-radius: 11px; background: #f2faf8; cursor: pointer; }
.evidence-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.evidence-upload-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #087f73; border-radius: 11px; background: #dff3ee; font-size: 22px; }
.evidence-upload b,.evidence-upload small { display: block; }
.evidence-upload b { color: #153f49; font-size: 11px; }
.evidence-upload small { margin-top: 3px; overflow: hidden; color: #708589; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-upload em { padding: 7px 9px; color: #087a70; border-radius: 8px; background: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.evidence-modern-form footer { display: flex; gap: 15px; justify-content: space-between; align-items: center; padding-top: 3px; }
.evidence-modern-form footer p { margin: 0; color: #768a8e; font-size: 9px; }
.evidence-modern-form footer button { min-width: 220px; }
.evidence-history > header > b { display: grid; min-width: 35px; height: 35px; padding: 0 7px; place-items: center; color: #087c72; border-radius: 11px; background: #e4f5f1; }
.evidence-record-list { display: grid; gap: 9px; padding: 13px; }
.evidence-record { display: grid; grid-template-columns: 90px minmax(0,1fr) minmax(150px,.7fr); gap: 13px; align-items: center; padding: 12px; border: 1px solid #e2e9e8; border-radius: 13px; background: #fff; }
.evidence-record-status { display: grid; justify-items: center; gap: 5px; padding: 9px; border-radius: 10px; background: #fff4dc; color: #996715; font-size: 9px; font-weight: 900; }
.evidence-record-status i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fff; font-style: normal; font-size: 15px; }
.evidence-record.approved .evidence-record-status { color: #087454; background: #e2f6ed; }
.evidence-record.rejected .evidence-record-status { color: #af4444; background: #fff0f0; }
.evidence-record-main { min-width: 0; }
.evidence-record-main > span { color: #07877c; font-size: 9px; font-weight: 900; }
.evidence-record-main h3 { margin: 4px 0; overflow: hidden; color: #123a47; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.evidence-record-main p { margin: 0; color: #586f75; font-size: 10px; line-height: 1.5; }
.evidence-record-main small { display: block; margin-top: 6px; color: #849397; font-size: 8px; }
.evidence-record-action { display: grid; gap: 7px; justify-items: end; }
.evidence-record-action p { width: 100%; margin: 0; padding: 8px; color: #536b71; border-radius: 9px; background: #f2f6f5; font-size: 9px; line-height: 1.45; }
.evidence-record-action p b { display: block; margin-bottom: 2px; color: #153d48; }
.evidence-record-action a { padding: 7px 9px; color: #087d72; border-radius: 8px; background: #e5f5f1; font-size: 9px; font-weight: 900; text-decoration: none; }
.evidence-record-action > span { color: #8a989a; font-size: 9px; }
.evidence-history-empty { display: grid; gap: 5px; padding: 38px; color: #75898c; place-items: center; font-size: 10px; }
.evidence-history-empty > span { display: grid; width: 39px; height: 39px; place-items: center; color: #078074; border-radius: 12px; background: #e4f5f1; font-size: 17px; }
.evidence-history-empty b { color: #294b53; font-size: 13px; }
.evidence-history-empty p { margin: 0; }

@media (max-width: 640px) {
    .evidence-workspace { gap: 10px; }
    .evidence-hero { grid-template-columns: auto 1fr; gap: 11px; padding: 17px; border-radius: 17px; }
    .evidence-hero-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 18px; }
    .evidence-hero h1 { font-size: 21px; }
    .evidence-hero p { font-size: 10px; line-height: 1.55; }
    .evidence-hero aside { grid-column: 1 / -1; display: flex; min-width: 0; gap: 6px; align-items: baseline; justify-content: center; padding: 8px; }
    .evidence-hero aside b { font-size: 20px; }
    .evidence-flow { grid-template-columns: 1fr 1fr 1fr; gap: 5px; padding: 9px; }
    .evidence-flow > i { display: none; }
    .evidence-flow div { display: grid; gap: 4px; justify-items: center; text-align: center; white-space: normal; font-size: 8px; }
    .evidence-form-card,.evidence-history { border-radius: 15px; }
    .evidence-form-card > header,.evidence-history > header { padding: 15px; }
    .evidence-form-card > header em { display: none; }
    .evidence-modern-form { gap: 9px; padding: 12px; }
    .evidence-task-select { padding: 12px; }
    .evidence-form-section { padding: 12px; }
    .evidence-field-grid { grid-template-columns: 1fr; gap: 10px; }
    .evidence-field-grid label.full { grid-column: auto; }
    .evidence-upload { grid-template-columns: auto minmax(0,1fr) !important; }
    .evidence-upload em { grid-column: 2; justify-self: start; }
    .evidence-modern-form footer { display: grid; gap: 9px; }
    .evidence-modern-form footer button { width: 100%; min-width: 0; }
    .evidence-record { grid-template-columns: 62px minmax(0,1fr); gap: 10px; padding: 10px; }
    .evidence-record-status { padding: 7px 4px; }
    .evidence-record-main h3 { font-size: 13px; }
    .evidence-record-action { grid-column: 1 / -1; justify-items: start; padding-top: 8px; border-top: 1px solid #edf1f1; }
}

/* Administrator community proof detail */
.group-proof-workspace { display: grid; gap: 14px; }
.group-proof-summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 20px; color: #fff; border-radius: 18px; background: linear-gradient(135deg,#07364a,#087b73); }
.group-proof-platform { display: grid; width: 50px; height: 50px; place-items: center; color: #087970; border-radius: 15px; background: #fff; font-size: 21px; font-weight: 900; }
.group-proof-summary span { color: #6fe3ce; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.group-proof-summary h2 { margin: 4px 0; color: #fff; font-size: 22px; }
.group-proof-summary p { margin: 0; color: #d3e9e9; font-size: 11px; }
.group-proof-summary > i { background: rgba(255,255,255,.14); color: #fff; font-style: normal; }
.group-proof-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.group-proof-facts article { padding: 14px; border: 1px solid #dce7e6; border-radius: 13px; background: #fff; }
.group-proof-facts span,.group-proof-facts strong,.group-proof-facts a { display: block; }
.group-proof-facts span { margin-bottom: 5px; color: #7c8e92; font-size: 9px; }
.group-proof-facts strong,.group-proof-facts a { overflow-wrap: anywhere; color: #173d49; font-size: 12px; }
.group-proof-facts a { color: #087d72; font-weight: 800; text-decoration: none; }
.group-proof-card { padding: 18px; border: 1px solid #dce7e6; border-radius: 16px; background: #fff; }
.group-proof-card > header { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.group-proof-card > header span { color: #07877c; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.group-proof-card > header h2 { margin: 4px 0; color: #133b48; font-size: 18px; }
.group-proof-card > header p { margin: 0; color: #74878b; font-size: 10px; }
.group-proof-card > header > b { padding: 6px 9px; border-radius: 999px; font-size: 9px; }
.group-proof-card > header > b.available { color: #087357; background: #dff5eb; }
.group-proof-card > header > b.missing { color: #9b6819; background: #fff0d2; }
.group-proof-preview { display: grid; min-height: 240px; margin-bottom: 12px; overflow: hidden; place-items: center; border: 1px solid #e0e8e7; border-radius: 13px; background: #f2f6f5; }
.group-proof-preview img { display: block; max-width: 100%; max-height: 620px; object-fit: contain; }
.group-proof-image-trigger { position: relative; display: grid; width: 100%; min-height: 240px; padding: 0; cursor: zoom-in; place-items: center; border: 0; background: transparent; }
.group-proof-image-trigger span { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; color: #fff; border-radius: 999px; background: rgba(5,47,61,.86); box-shadow: 0 5px 18px rgba(5,47,61,.22); font-size: 10px; font-weight: 900; }
.group-proof-preview iframe { width: 100%; min-height: 560px; border: 0; }
.group-proof-file-icon { display: grid; gap: 8px; color: #718589; place-items: center; font-size: 34px; }
.group-proof-file-icon b { font-size: 11px; }
.group-proof-missing { display: flex; gap: 12px; align-items: flex-start; padding: 17px; border: 1px solid #f1d49f; border-radius: 13px; background: #fff8e9; }
.group-proof-missing > span { display: grid; width: 34px; height: 34px; flex: none; place-items: center; color: #fff; border-radius: 10px; background: #df9b24; font-weight: 900; }
.group-proof-missing h3 { margin: 0; color: #704e1f; font-size: 14px; }
.group-proof-missing p { margin: 5px 0 0; color: #816b47; font-size: 10px; line-height: 1.6; }
.group-related-evidence { display: grid; gap: 9px; }
.group-related-evidence article { padding: 13px; border: 1px solid #e1e9e8; border-radius: 12px; background: #fafcfc; }
.group-related-evidence article > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.group-related-evidence article > div b { color: #173e49; font-size: 12px; }
.group-related-evidence article > div small { margin-left: auto; color: #849498; font-size: 9px; }
.group-related-evidence article > p { margin: 9px 0; color: #526c72; font-size: 11px; line-height: 1.6; }
.group-related-evidence article footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid #e6eceb; }
.group-related-evidence article footer code { font-size: 9px; }
.group-related-evidence article footer a { color: #087d72; font-size: 10px; font-weight: 900; text-decoration: none; }
.group-proof-view-link { padding: 0; cursor: pointer; color: #087d72; border: 0; background: transparent; font-size: 10px; font-weight: 900; }
.evidence-preview-button { margin-top: 8px; padding: 7px 12px; cursor: zoom-in; color: #fff; border: 0; border-radius: 8px; background: #078b7f; font-size: 10px; font-weight: 900; }
.evidence-preview-button::before { content: '◉'; margin-right: 5px; }
.evidence-preview-unavailable { display: inline-block; margin-top: 7px; color: #8b6a30; font-size: 9px; }
.reward-ledger-note { margin: 4px 0 0; color: #6e8287; font-size: 10px; }
.reward-confirmation-clock { display: grid; gap: 2px; min-width: 185px; margin-top: 8px; padding: 9px 11px; border: 1px solid #f1d798; border-radius: 10px; background: #fff9e9; }
.reward-confirmation-clock span { color: #916616; font-size: 9px; font-weight: 800; }
.reward-confirmation-clock b { color: #6c4811; font-size: 13px; font-variant-numeric: tabular-nums; }
.reward-confirmation-clock small { color: #887655; font-size: 8px; }
.reward-confirmation-clock.due { border-color: #a7ddc9; background: #eaf8f2; }
.reward-confirmation-clock.due span,.reward-confirmation-clock.due b { color: #08745c; }
.reward-confirmation-clock.paused { border-color: #efb9b0; background: #fff0ed; }
.reward-confirmation-clock.paused span,.reward-confirmation-clock.paused b { color: #9d3b2d; }

/* Captain navigation system */
.nav-svg { display: block; width: 21px; height: 21px; flex: none; }
.topbar .brand .logo { width: 50px; height: 50px; min-width: 50px; flex: 0 0 50px; overflow: visible; aspect-ratio: 1 / 1; border: 0; border-radius: 0; background: transparent; box-shadow: none; clip-path: none; }
.topbar .brand .logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); transform: scale(1.12); }
.role-captain .shell { grid-template-columns: 258px minmax(0,1fr); }
.role-captain .sidebar { padding: 18px 12px 34px; color: #b7cbd2; background: radial-gradient(circle at 10% 0,rgba(13,130,137,.2),transparent 25%),linear-gradient(180deg,#061f2f 0%,#08293b 100%); border-right: 1px solid rgba(255,255,255,.06); }
.captain-nav-brand { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 11px; align-items: center; margin: 0 4px 17px; padding: 10px 9px 16px; border-bottom: 1px solid rgba(179,217,222,.14); }
.captain-nav-brand>span { display: grid; width: 42px; height: 42px; place-items: center; color: #062434; border-radius: 13px; background: linear-gradient(145deg,#f6c652,#e4a934); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.captain-nav-brand>span .nav-svg { width: 23px; height: 23px; }
.captain-nav-brand b,.captain-nav-brand small { display: block; }
.captain-nav-brand b { color: #fff; font-size: 15px; }
.captain-nav-brand small { margin-top: 3px; color: #6f9ba7; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.captain-nav-section { display: grid; gap: 4px; margin: 0 0 14px; }
.captain-nav-section>span { padding: 0 13px 5px; color: #648d99; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.role-captain .captain-nav-section a { position: relative; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; min-height: 47px; gap: 10px; align-items: center; margin: 0; padding: 6px 11px 6px 8px; color: #b7cbd2; border: 1px solid transparent; border-radius: 12px; transition: color .16s,border-color .16s,background .16s,transform .16s; }
.role-captain .captain-nav-section a>.nav-svg { width: 34px; height: 34px; padding: 7px; color: #7eabb6; border-radius: 10px; background: rgba(255,255,255,.045); }
.role-captain .captain-nav-section a>.nav-item-label { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.role-captain .captain-nav-section a>i { color: #527986; font-size: 18px; font-style: normal; transition: transform .16s; }
.role-captain .captain-nav-section a:hover { color: #fff; border-color: rgba(108,205,197,.14); background: rgba(255,255,255,.055); transform: translateX(2px); }
.role-captain .captain-nav-section a:hover>i { transform: translateX(2px); }
.role-captain .captain-nav-section a.active { color: #fff; border-color: rgba(75,198,187,.25); background: linear-gradient(100deg,rgba(14,140,137,.34),rgba(17,67,83,.8)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025),0 7px 17px rgba(0,12,22,.14); }
.role-captain .captain-nav-section a.active::before { position: absolute; top: 10px; bottom: 10px; left: -1px; width: 3px; border-radius: 0 3px 3px 0; background: #f5bd43; content: ''; }
.role-captain .captain-nav-section a.active>.nav-svg { color: #07323d; background: linear-gradient(145deg,#65ddcc,#33b9aa); box-shadow: 0 6px 14px rgba(10,169,155,.2); }
.role-captain .captain-nav-section a.active>i { color: #f5c351; }

@media (max-width:1000px) {
    .role-captain .sidebar { width: min(88vw,350px); padding: 14px 12px 110px; }
    .captain-nav-brand { position: sticky; z-index: 2; top: -14px; margin: -14px 0 15px; padding: 20px 10px 15px; background: #072333; }
    .role-captain .captain-nav-section a { min-height: 50px; }
    .mobile-bottom-nav { right: 12px; bottom: 10px; left: 12px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border: 1px solid rgba(159,202,207,.15); border-radius: 21px; background: linear-gradient(135deg,rgba(5,29,43,.98),rgba(8,44,58,.98)); box-shadow: 0 16px 42px rgba(0,17,28,.34); }
    .mobile-bottom-nav a,.mobile-bottom-nav button { position: relative; min-height: 58px; gap: 4px; padding: 4px 2px; border-radius: 15px; color: #8faab4; }
    .mobile-bottom-nav a>span,.mobile-bottom-nav button>span { display: grid; width: 32px; height: 30px; margin: auto; place-items: center; border-radius: 10px; transition: .16s; }
    .mobile-bottom-nav .nav-svg { width: 20px; height: 20px; }
    .mobile-bottom-nav b { color: inherit; font-size: 9px; font-weight: 700; letter-spacing: .01em; }
    .mobile-bottom-nav a.active,.mobile-bottom-nav button.active { color: #fff; background: rgba(255,255,255,.055); }
    .mobile-bottom-nav a.active>span,.mobile-bottom-nav button.active>span { color: #062838; background: linear-gradient(145deg,#ffd36a,#eeb43d); box-shadow: 0 6px 15px rgba(239,181,61,.2); }
    .mobile-bottom-nav a.active::after,.mobile-bottom-nav button.active::after { position: absolute; right: 22%; bottom: -2px; left: 22%; height: 2px; border-radius: 3px; background: #f4bd48; content: ''; }
    .mobile-nav-open .mobile-bottom-nav button { color: #fff; background: rgba(45,187,176,.15); }
    .mobile-nav-open .mobile-bottom-nav button>span { color: #062838; background: #58cfc1; }
}

@media (max-width:370px) {
    .mobile-bottom-nav { right: 6px; left: 6px; padding-right: 3px; padding-left: 3px; }
    .mobile-bottom-nav a,.mobile-bottom-nav button { min-height: 55px; }
    .mobile-bottom-nav b { font-size: 8px; }
}

@media (max-width:640px) {
    .role-captain .topbar .brand .logo { width: 46px; height: 46px; min-width: 46px; flex-basis: 46px; border-radius: 0; }
}
.group-related-evidence article footer span { color: #89979a; font-size: 9px; }
.group-proof-empty { display: grid; gap: 5px; padding: 28px; color: #7a8d90; place-items: center; text-align: center; font-size: 10px; }
.group-proof-empty > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #edf2f2; }
.group-proof-empty b { color: #34525a; font-size: 12px; }
.group-proof-empty p { margin: 0; }
.group-proof-review { padding: 15px; border-left: 4px solid #0a8b7d; border-radius: 0 12px 12px 0; background: #eaf7f4; }
.group-proof-review span { color: #08766d; font-size: 9px; font-weight: 900; }
.group-proof-review p { margin: 5px 0; color: #284d55; font-size: 11px; }
.group-proof-review small { color: #789094; font-size: 9px; }
.proof-viewer-modal { width: min(94vw,1080px); max-width: 1080px; padding: 0; border: 0; background: transparent; }
.proof-viewer-shell { width: 100%; max-width: none; overflow: hidden; border-radius: 18px; background: #fff; }
.proof-viewer-stage { display: grid; min-height: min(70vh,760px); padding: 12px; place-items: center; background: #132c35; }
.proof-viewer-stage img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; }
.proof-viewer-stage iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.proof-viewer-stage [hidden] { display: none; }
.proof-viewer-footer { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 12px 16px; }
.proof-viewer-footer span { color: #6d8186; font-size: 10px; }

@media (max-width: 700px) {
    .group-proof-summary { grid-template-columns: auto 1fr; padding: 16px; }
    .group-proof-summary > i { grid-column: 1 / -1; justify-self: start; }
    .group-proof-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
    .group-proof-card { padding: 14px; }
    .group-proof-card > header { display: grid; }
    .group-proof-card > header > b { justify-self: start; }
    .group-proof-preview { min-height: 180px; }
    .group-proof-image-trigger { min-height: 180px; }
    .group-proof-preview iframe { min-height: 420px; }
    .proof-viewer-modal { width: 100vw; max-width: none; margin: auto 0 0; }
    .proof-viewer-shell { border-radius: 18px 18px 0 0; }
    .proof-viewer-stage { min-height: 62vh; padding: 8px; }
    .proof-viewer-stage img,.proof-viewer-stage iframe { max-height: 64vh; height: 64vh; }
    .proof-viewer-footer { align-items: stretch; flex-direction: column; }
    .group-related-evidence article > div small { width: 100%; margin: 0; }
    .group-related-evidence article footer { align-items: flex-start; flex-direction: column; }
}

/* The invitation page now shows only the invite code; let it use the full content width. */
.invite-identities {
    grid-template-columns: 1fr;
}

.progress-main {
    min-width: 0;
}

.progress-line {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.progress-line b {
    color: var(--navy);
    font-size: 12px;
}

.progress-line > span:not(.task-reward-state) {
    color: var(--muted);
    font-size: 10px;
}

.progress-line .task-reward-state {
    margin-left: auto;
}

.progress-main .modern-progress {
    margin: 8px 0 0;
}

.progress-reward {
    display: grid;
    align-self: stretch;
    padding-left: 12px;
    border-left: 1px solid #e4ebea;
    align-content: center;
    text-align: right;
}

.progress-reward small {
    color: var(--muted);
    font-size: 9px;
}

.progress-reward strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 17px;
}

@media (max-width: 640px) {
    .home-task-progress {
        grid-template-columns: minmax(0, 3fr) minmax(70px, 1fr);
        gap: 8px;
        margin-top: 8px;
        padding-top: 9px;
    }

    .progress-line {
        gap: 5px;
    }

    .progress-line b {
        font-size: 11px;
    }

    .progress-line > span:not(.task-reward-state) {
        font-size: 9px;
    }

    .progress-line .task-reward-state {
        padding: 4px 5px;
        font-size: 8px;
    }

    .progress-reward {
        padding-left: 8px;
    }

    .progress-reward strong {
        font-size: 15px;
    }
}

/* Captain ↔ administrator direct messages */
.captain-message-entry { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid #cfe4e1; border-radius: 16px; background: linear-gradient(120deg,#effaf7,#fff 68%); box-shadow: 0 7px 22px rgba(7,71,78,.05); }
.captain-message-entry-icon { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; border-radius: 13px; background: linear-gradient(145deg,#07877c,#12a98e); box-shadow: 0 7px 18px rgba(8,139,125,.18); font-size: 19px; }
.captain-message-entry-copy { min-width: 0; }
.captain-message-entry-copy > span { color: #078a7d; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.captain-message-entry-copy h2 { margin: 3px 0; color: #092f43; font-size: 17px; }
.captain-message-entry-copy p { margin: 0; color: #60777c; font-size: 11px; line-height: 1.45; }
.captain-message-entry-action { display: flex; gap: 9px; align-items: center; }
.captain-message-entry-action > i { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 900; white-space: nowrap; }
.captain-message-entry-action > i.ready { color: #08725f; background: #dff5ed; }
.captain-message-entry-action > i.waiting { color: #9a671b; background: #fff0d3; }
.captain-message-entry-action > a { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; text-decoration: none; }
.captain-message-entry-action > a b { display: grid; min-width: 18px; height: 18px; padding: 0 6px; place-items: center; color: #087b72; border-radius: 999px; background: #fff; font-size: 8px; }
.captain-message-dialog { width: min(620px,calc(100% - 24px)); max-height: calc(100vh - 24px); border-radius: 20px; }
.captain-message-dialog-card { display: flex; max-height: calc(100vh - 24px); flex-direction: column; background: #f3f8f7; }
.captain-message-dialog-head { display: flex; flex: none; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 18px 20px; color: #fff; background: linear-gradient(135deg,#07384a,#078d82); }
.captain-message-dialog-head span { color: #70e3ce; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.captain-message-dialog-head h2 { margin: 4px 0; color: #fff; font-size: 21px; }
.captain-message-dialog-head p { margin: 0; color: #d2e9e9; font-size: 10px; }
.captain-message-dialog-head button { display: grid; width: 34px; height: 34px; flex: none; padding: 0; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.1); cursor: pointer; font-size: 22px; }
.captain-message-dialog-status { display: flex; flex: none; gap: 10px; align-items: center; margin: 13px 14px 0; padding: 10px 12px; border: 1px solid #d9e8e5; border-radius: 12px; background: #fff; }
.captain-message-dialog-status > i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; font-style: normal; font-weight: 900; }
.captain-message-dialog-status > i.ready { color: #08775e; background: #dcf5eb; }
.captain-message-dialog-status > i.waiting { color: #9a6819; background: #fff0d3; }
.captain-message-dialog-status b,.captain-message-dialog-status span { display: block; }
.captain-message-dialog-status b { color: #173c47; font-size: 11px; }
.captain-message-dialog-status span { margin-top: 2px; color: #788b8f; font-size: 9px; }
.captain-message-dialog .success-message,.captain-message-dialog .error { margin: 10px 14px 0; }
.captain-message-dialog .captain-message-timeline { flex: 1 1 auto; min-height: 150px; margin: 10px 14px; }
.captain-message-dialog .captain-message-compose { flex: none; padding: 0 14px 14px; }
.captain-admin-messages { display: grid; gap: 13px; padding: 20px; border: 1px solid #cfe4e1; border-radius: 18px; background: linear-gradient(145deg,#f0faf8,#fff 58%); box-shadow: 0 10px 28px rgba(7,71,78,.06); }
.captain-admin-messages > header { display: flex; gap: 15px; justify-content: space-between; align-items: flex-start; }
.captain-admin-messages > header span { color: #078a7d; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.captain-admin-messages > header h2 { margin: 4px 0; color: #092f43; font-size: 20px; }
.captain-admin-messages > header p { margin: 0; color: #60777c; font-size: 12px; }
.captain-admin-messages > header i { flex: none; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 900; }
.captain-admin-messages > header i.ready { color: #08725f; background: #dff5ed; }
.captain-admin-messages > header i.waiting { color: #9a671b; background: #fff0d3; }
.captain-message-timeline { display: grid; gap: 9px; max-height: 380px; padding: 12px; overflow-y: auto; border-radius: 14px; background: #eef5f4; }
.captain-message-timeline article { width: min(85%,560px); padding: 11px 13px; border-radius: 13px; background: #fff; box-shadow: 0 3px 10px rgba(4,49,61,.04); }
.captain-message-timeline article.from-captain { justify-self: end; color: #fff; background: #0a8e82; }
.captain-message-timeline article > div { display: flex; gap: 7px; align-items: center; }
.captain-message-timeline article b { font-size: 10px; }
.captain-message-timeline article em { padding: 2px 5px; border-radius: 999px; background: #e8f5f3; color: #087c72; font-size: 8px; font-style: normal; }
.captain-message-timeline article time { margin-left: auto; opacity: .65; font-size: 8px; }
.captain-message-timeline article > strong { display: block; margin-top: 7px; font-size: 13px; }
.captain-message-timeline article p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.captain-message-empty { display: grid; gap: 5px; padding: 25px; color: #73878b; place-items: center; font-size: 12px; }
.captain-message-empty:first-letter { font-size: 26px; }
.captain-message-empty b { color: #274a53; }
.captain-message-compose { display: grid; gap: 9px; }
.captain-message-compose label { color: #1b424c; font-size: 11px; font-weight: 800; }
.captain-message-compose textarea { width: 100%; min-height: 92px; margin-top: 6px; padding: 12px; resize: vertical; border: 1px solid #cbdcda; border-radius: 12px; box-sizing: border-box; font: inherit; }
.captain-message-compose textarea:disabled { cursor: not-allowed; background: #edf1f1; }
.captain-message-compose > div { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.captain-message-compose small { color: #788a8e; font-size: 9px; }

/* Administrator mandatory action banner */
.admin-action-alerts { display: grid; grid-template-columns: 205px minmax(0,1fr) 145px; gap: 14px; align-items: center; padding: 12px 18px; color: #fff; background: linear-gradient(100deg,#7d1d1b,#d44725); box-shadow: 0 6px 20px rgba(113,33,24,.25); }
.admin-action-alerts[hidden] { display: none; }
.admin-action-alert-summary { display: flex; gap: 11px; align-items: center; min-width: 0; }
.admin-alert-pulse { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: #fff; color: #a22e23; font-size: 19px; font-weight: 900; animation: adminAlertPulse 1.8s infinite; }
.admin-action-alert-summary b,.admin-action-alert-summary small { display: block; }
.admin-action-alert-summary b { color: #fff; font-size: 15px; line-height: 1.25; }
.admin-action-alert-summary small { margin-top: 3px; color: #fff0eb; font-size: 11px; font-weight: 700; }
.admin-action-alert-list { display: flex; gap: 10px; padding: 1px 0 4px; overflow-x: auto; scrollbar-color: rgba(255,255,255,.6) rgba(0,0,0,.12); scrollbar-width: thin; }
.admin-action-alert { display: grid; grid-template-columns: auto minmax(205px,1fr) auto; gap: 11px; align-items: center; min-width: 420px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.38); border-radius: 12px; background: rgba(79,8,7,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.admin-action-alert > strong { display: grid; min-width: 34px; height: 34px; padding: 0 5px; place-items: center; border-radius: 10px; background: #fff; color: #a23024; font-size: 16px; }
.admin-action-alert > div b,.admin-action-alert > div span { display: block; }
.admin-action-alert > div b { color: #fff; font-size: 14px; line-height: 1.3; }
.admin-action-alert > div span { margin-top: 4px; color: #fff7f4; font-size: 11px; font-weight: 600; line-height: 1.35; }
.admin-action-alert > a { padding: 9px 11px; color: #8d281f; border-radius: 9px; background: #fff; box-shadow: 0 3px 9px rgba(68,10,6,.15); font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.admin-alert-sound { display: grid; grid-template-columns: auto 1fr; gap: 2px 7px; align-items: center; min-height: 48px; padding: 8px 10px; color: #fff; border: 2px solid rgba(255,255,255,.65); border-radius: 11px; background: rgba(45,4,3,.3); cursor: pointer; text-align: left; white-space: nowrap; }
.admin-alert-sound i { grid-row: 1 / 3; font-size: 20px; font-style: normal; }
.admin-alert-sound span { font-size: 11px; font-weight: 900; }
.admin-alert-sound small { color: #ffe3da; font-size: 8px; }
.admin-alert-sound.enabled { border-color: #88f1cd; background: #08745b; }
.admin-alert-sound.needs-attention { animation: adminSoundPulse 1.2s infinite; }
@keyframes adminAlertPulse { 50% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(255,255,255,.12); } }
@keyframes adminSoundPulse { 50% { border-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.15); transform: translateY(-1px); } }

/* Administrator message center */
.admin-message-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.admin-message-compose .form { display: grid; gap: 11px; margin-top: 14px; }
.admin-message-compose textarea { min-height: 105px; }
.message-english-copy { padding: 10px; border: 1px solid #dce7e5; border-radius: 11px; background: #f6f9f9; }
.message-english-copy summary { cursor: pointer; color: #087c72; font-size: 11px; font-weight: 900; }
.message-english-copy label { display: block; margin-top: 9px; }
.toggle-row { display: flex !important; gap: 8px; align-items: center; padding: 10px; border-radius: 10px; background: #eef7f5; }
.toggle-row input { width: auto !important; }
.admin-conversation-list { display: grid; gap: 9px; margin-top: 14px; }
.admin-conversation { overflow: hidden; border: 1px solid #dbe6e5; border-radius: 13px; background: #f7fafa; }
.admin-conversation summary { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; background: #fff; }
.admin-conversation summary > div { display: flex; gap: 10px; align-items: center; }
.admin-conversation summary b,.admin-conversation summary small { display: block; }
.admin-conversation summary small { margin-top: 3px; color: #7b8e92; font-size: 9px; }
.message-avatar { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 11px; background: #0a8b80; font-weight: 900; }
.admin-thread { display: grid; gap: 8px; max-height: 370px; padding: 13px; overflow-y: auto; }
.admin-thread article { width: min(80%,620px); padding: 10px 12px; border-radius: 11px; background: #fff; }
.admin-thread article.admin { justify-self: end; color: #fff; background: #0b6f72; }
.admin-thread article > div { display: flex; justify-content: space-between; font-size: 9px; }
.admin-thread article p { margin: 4px 0 0; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.admin-thread article > strong { display: block; margin-top: 6px; font-size: 12px; }
.admin-reply-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 0 13px 13px; }
.admin-reply-form textarea { min-height: 72px; padding: 10px; border: 1px solid #ccdcda; border-radius: 10px; resize: vertical; }
.inline-search { display: flex; gap: 6px; }

@media (max-width: 760px) {
    .captain-message-entry { grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 13px; }
    .captain-message-entry-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
    .captain-message-entry-copy h2 { font-size: 15px; }
    .captain-message-entry-copy p { font-size: 10px; }
    .captain-message-entry-action { grid-column: 1 / -1; }
    .captain-message-entry-action > a { flex: 1; justify-content: center; }
    .role-captain .captain-message-dialog { width: calc(100% - 16px); max-height: calc(100vh - 16px); border-radius: 18px; }
    .captain-message-dialog-card { max-height: calc(100vh - 16px); }
    .captain-message-dialog-head { padding: 16px; }
    .captain-message-dialog-head p { display: none; }
    .captain-message-dialog .captain-message-timeline { margin: 9px 10px; }
    .captain-message-dialog .captain-message-compose { padding: 0 10px 10px; }
    .captain-admin-messages { padding: 14px; border-radius: 15px; }
    .captain-admin-messages > header { display: grid; }
    .captain-admin-messages > header i { justify-self: start; }
    .captain-message-timeline article { width: 92%; }
    .captain-message-compose > div { display: grid; }
    .captain-message-compose button { width: 100%; }
    .admin-action-alerts { grid-template-columns: 1fr auto; gap: 9px; padding: 10px; }
    .admin-action-alert-summary { min-width: 0; }
    .admin-action-alert-list { grid-column: 1 / -1; grid-row: 2; }
    .admin-action-alert { min-width: calc(100vw - 28px); grid-template-columns: auto 1fr; padding: 11px; }
    .admin-action-alert > a { grid-column: 2; justify-self: start; }
    .admin-alert-sound { min-height: 43px; padding: 6px 8px; }
    .admin-alert-sound i { font-size: 17px; }
    .admin-alert-sound span { font-size: 9px; }
    .admin-alert-sound small { display: none; }
    .admin-message-grid { grid-template-columns: 1fr; }
    .admin-conversation summary { align-items: flex-start; }
    .admin-reply-form { grid-template-columns: 1fr; }
    .admin-thread article { width: 90%; }
}

/* Modern message center */
.notice-center { display: grid; gap: 13px; }
.notice-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    color: #fff;
    border-radius: 20px;
    background: radial-gradient(circle at 90% 10%, rgba(41, 208, 179, .28), transparent 35%), linear-gradient(135deg, #073247, #086d72);
    box-shadow: 0 14px 32px rgba(7, 61, 74, .13);
}
.notice-hero-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.12); font-size: 23px; }
.notice-hero-copy > span { color: #71e2cf; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.notice-hero-copy h2 { margin: 5px 0 3px; color: #fff; font-size: 23px; }
.notice-hero-copy p { margin: 0; color: #cee6e8; font-size: 11px; }
.notice-hero-count { display: grid; min-width: 120px; padding: 12px 15px; text-align: center; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.1); }
.notice-hero-count strong { color: #fff; font-size: 27px; line-height: 1; }
.notice-hero-count span { margin-top: 3px; color: #d8eff0; font-size: 11px; font-weight: 700; }
.notice-hero-count small { margin-top: 7px; color: #a9d2d6; font-size: 8px; }

.notice-filter { display: flex; gap: 7px; padding: 5px; overflow-x: auto; border: 1px solid #e0e9e8; border-radius: 14px; background: #fff; }
.notice-filter a { display: flex; gap: 6px; align-items: center; justify-content: center; min-width: 105px; padding: 9px 13px; color: #5f7479; border-radius: 10px; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.notice-filter a.active { color: #fff; background: #0a8d81; box-shadow: 0 5px 13px rgba(10,141,129,.2); }
.notice-filter a b { display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; color: #087e74; border-radius: 999px; background: #e4f6f2; font-size: 8px; }
.notice-filter a.active b { color: #0a796f; background: #fff; }

.notice-list { display: grid; gap: 9px; }
.notice-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 15px 17px;
    overflow: hidden;
    border: 1px solid #e0e8e8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(7, 55, 67, .035);
}
.notice-card.is-unread { border-color: #a7dcd4; background: linear-gradient(100deg, #f0faf8, #fff 65%); }
.notice-card.is-unread::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ''; background: #12a38b; }
.notice-type-icon { display: grid; width: 39px; height: 39px; place-items: center; color: #087c72; border-radius: 12px; background: #e7f6f3; font-size: 17px; font-weight: 900; }
.notice-payout .notice-type-icon { color: #316fbd; background: #eaf2fc; }
.notice-alert .notice-type-icon { color: #b56e18; background: #fff2dc; }
.notice-account .notice-type-icon { color: #6d5fbd; background: #f0edfc; }
.notice-content { min-width: 0; }
.notice-meta { display: flex; gap: 8px; align-items: center; color: #809195; font-size: 8px; }
.notice-meta > span { color: #0a8a7e; font-weight: 900; letter-spacing: .08em; }
.notice-meta > time { margin-left: auto; }
.notice-meta > i { padding: 3px 6px; color: #fff; border-radius: 999px; background: #10a188; font-size: 7px; font-style: normal; font-weight: 900; }
.notice-content h3 { margin: 6px 0 4px; color: #0b3042; font-size: 16px; }
.notice-content p { margin: 0; color: #506b72; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-action { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.notice-action button, .notice-action > a, .notice-read-state { display: inline-flex; gap: 4px; align-items: center; padding: 7px 10px; border: 0; border-radius: 9px; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.notice-action button { cursor: pointer; color: #08796f; background: #e5f6f2; }
.notice-action button:hover { color: #fff; background: #0a8d81; }
.notice-action > a { color: #fff; background: #0a8d81; }
.notice-read-state { color: #8a999c; background: #f1f4f4; }
.notice-card.is-read { opacity: .78; }
.notice-empty { padding: 48px 18px; text-align: center; border: 1px dashed #cddcda; border-radius: 17px; background: #fff; }
.notice-empty > div { display: grid; width: 43px; height: 43px; margin: 0 auto 10px; place-items: center; color: #078377; border-radius: 50%; background: #e6f6f2; font-size: 18px; }
.notice-empty h3 { margin: 0; color: #173b47; font-size: 15px; }
.notice-empty p { margin: 6px 0 0; color: #71858a; font-size: 10px; }
.notice-pagination { padding: 8px; border-radius: 12px; background: #fff; }

@media (max-width: 640px) {
    .notice-center { gap: 10px; }
    .notice-hero { grid-template-columns: auto 1fr; gap: 11px; padding: 17px; border-radius: 17px; }
    .notice-hero-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 18px; }
    .notice-hero-copy h2 { font-size: 18px; line-height: 1.3; }
    .notice-hero-copy p { margin-top: 4px; font-size: 9px; line-height: 1.45; }
    .notice-hero-count { grid-column: 1 / -1; grid-template-columns: auto auto 1fr; gap: 6px; align-items: baseline; min-width: 0; padding: 10px 12px; text-align: left; }
    .notice-hero-count strong { font-size: 22px; }
    .notice-hero-count span { margin: 0; }
    .notice-hero-count small { margin: 0 0 0 auto; }
    .notice-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .notice-filter a { min-width: 0; padding: 9px 6px; font-size: 9px; }
    .notice-filter a span { display: none; }
    .notice-card { grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px; border-radius: 14px; }
    .notice-type-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
    .notice-meta { flex-wrap: wrap; gap: 5px; }
    .notice-meta > time { order: 3; width: 100%; margin: 0; }
    .notice-content h3 { margin-top: 7px; font-size: 15px; }
    .notice-content p { font-size: 12px; line-height: 1.6; }
    .notice-action { grid-column: 2; }
    .notice-action button, .notice-read-state { padding: 6px 9px; }
}

/* Global notification bell, red dots and popups */
.global-bell { position: relative; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); cursor: pointer; }
.global-bell > span { font-size: 16px; }
.global-bell > b, .nav-notice-badge { position: absolute; display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; color: #fff; border: 2px solid #08283a; border-radius: 999px; background: #ef3f4f; font-size: 8px; line-height: 1; box-sizing: border-box; }
.global-bell > b { top: -6px; right: -6px; }
.nav-notice-badge { top: 50%; right: 10px; transform: translateY(-50%); }
.sidebar a { position: relative; }

.global-notice-dialog { width: min(520px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 32px)); padding: 0; overflow: hidden; color: #143844; border: 0; border-radius: 20px; background: #f5f8f8; box-shadow: 0 30px 80px rgba(2,30,43,.3); }
.global-notice-dialog::backdrop { background: rgba(3,25,36,.5); backdrop-filter: blur(3px); }
.global-notice-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; color: #fff; background: linear-gradient(135deg,#07364a,#07877e); }
.global-notice-head span { color: #7ae6d3; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.global-notice-head h2 { margin: 3px 0 0; color: #fff; font-size: 20px; }
.global-notice-head button { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); cursor: pointer; font-size: 23px; }
.global-notice-list { display: grid; gap: 8px; max-height: 500px; padding: 12px; overflow-y: auto; }
.global-notice-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid #dce7e6; border-radius: 13px; background: #fff; }
.global-notice-item > i { display: grid; width: 36px; height: 36px; place-items: center; color: #087d73; border-radius: 11px; background: #e7f6f3; font-size: 15px; font-style: normal; font-weight: 900; }
.global-notice-item h3 { margin: 0; color: #0b3042; font-size: 14px; }
.global-notice-item p { margin: 4px 0; color: #597278; font-size: 12px; line-height: 1.5; }
.global-notice-item small { color: #85969a; font-size: 9px; }
.global-notice-item-actions { grid-column: 2; display: flex; gap: 6px; }
.global-notice-item-actions > button, .global-notice-item-actions > a { padding: 6px 9px; border: 0; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 800; text-decoration: none; }
.global-notice-item-actions > button { color: #08796f; background: #e5f6f2; }
.global-notice-item-actions > a { color: #fff; background: #0a8d81; }
.global-notice-view-all { display: block; margin: 0 12px 12px; padding: 10px; color: #087c73; border-radius: 10px; background: #e5f5f2; text-align: center; text-decoration: none; font-size: 11px; font-weight: 900; }
.global-notice-empty { margin: 18px; color: #71868a; text-align: center; font-size: 12px; }

.global-notice-toast { position: fixed; z-index: 1200; top: 78px; right: 18px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; width: min(390px, calc(100% - 24px)); padding: 15px; color: #173d49; border: 1px solid #95d6cc; border-radius: 17px; background: #fff; box-shadow: 0 20px 55px rgba(4,45,58,.24); animation: globalNoticeIn .25s ease-out; }
.global-notice-toast[hidden] { display: none; }
.global-notice-toast-icon { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; border-radius: 13px; background: #0a9687; font-size: 18px; font-weight: 900; }
.global-notice-toast > div:nth-child(2) > span { color: #079083; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.global-notice-toast h3 { margin: 4px 0; color: #0a3042; font-size: 15px; }
.global-notice-toast p { margin: 0; color: #587278; font-size: 12px; line-height: 1.5; }
.global-notice-toast small { display: block; margin-top: 5px; color: #87979a; font-size: 9px; }
.global-toast-close { width: 27px; height: 27px; padding: 0; color: #6a7d81; border: 0; border-radius: 50%; background: #eff4f4; cursor: pointer; font-size: 18px; }
.global-toast-actions { grid-column: 2 / -1; display: flex; gap: 7px; margin-top: 3px; }
.global-toast-actions button { padding: 7px 10px; color: #fff; border: 0; border-radius: 8px; background: #0a8f82; cursor: pointer; font-size: 10px; font-weight: 800; }
.global-toast-actions button + button { color: #2f555d; background: #edf3f3; }
@keyframes globalNoticeIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .global-bell { width: 34px; height: 34px; border-radius: 10px; }
    .topnav .user-chip { display: none; }
    .global-notice-toast { top: 68px; right: 12px; padding: 13px; }
    .global-notice-toast p { font-size: 12px; }
    .global-notice-dialog { max-height: calc(100vh - 20px); border-radius: 18px; }
    .global-notice-list { max-height: calc(100vh - 180px); }
}
