:root {
  color-scheme: dark;
  font-family: "Inter", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --bg: #151914;
  --sidebar: #1a1f18;
  --panel: #1d231b;
  --raised: #242d20;
  --line: #343e2f;
  --muted: #a7b0a1;
  --soft: #cbd1c5;
  --text: #edf0e8;
  --accent: #c4ea95;
  --accent-text: #203015;
  --error: #ffb4a6;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 14px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button[disabled] { cursor: default; opacity: .52; }
.skip { position: fixed; top: -100px; z-index: 9; color: #131b11; background: var(--accent); padding: 10px 16px; }
.skip:focus { top: 10px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 231px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 32px 20px 20px; background: var(--sidebar); border-right: 1px solid #2c3427; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 4px 35px; text-decoration: none; }
.brand strong { font-size: 20px; font-weight: 850; letter-spacing: -.075em; white-space: nowrap; }
.brand small, .account small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.brand-mark { width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; background: var(--accent); display: inline-grid; place-items: center; position: relative; color: var(--accent-text); }
.brand-mark::before { content: ""; width: 19px; height: 19px; border: 2px solid currentColor; border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; width: 2px; height: 25px; border-block: 3px solid currentColor; border-radius: 1px; }
.brand-mark i { position: absolute; width: 2px; height: 8px; left: 19px; top: 12px; background: currentColor; transform: rotate(25deg); transform-origin: bottom center; }
.sidebar nav { display: grid; gap: 6px; }
.sidebar nav :is(button, .nav-link) { border: 1px solid transparent; text-align: left; padding: 11px 12px; background: transparent; color: var(--muted); border-radius: 9px; font-weight: 650; text-decoration: none; }
.sidebar nav :is(button, .nav-link):hover, .sidebar nav button[aria-current="page"] { background: #293323; color: var(--accent); border-color: #3d4b33; }
.nav-icon { display: inline-grid; width: 22px; margin-right: 4px; place-items: center; font-size: 19px; line-height: 1; vertical-align: -1px; }
.account { display: grid; grid-template-columns: 35px minmax(0, 1fr) 29px; gap: 9px; align-items: center; margin-top: auto; padding: 14px 3px 0; border-top: 1px solid var(--line); }
.account strong, .account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; font-weight: 800; color: var(--accent); background: #35412e; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 19px; line-height: 1; }
.icon-button:hover { color: var(--text); border-color: var(--line); background: var(--raised); }
.main { width: min(100%, 1330px); margin: 0 auto; padding: 37px clamp(24px, 4.2vw, 64px) 60px; }
.page-header { display: flex; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 27px; }
.date-line { color: var(--muted); font-size: 13px; margin-bottom: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { word-break: keep-all; }
h1 { font-size: clamp(30px, 3vw, 43px); line-height: 1.2; letter-spacing: -.065em; }
h2 { font-size: 19px; letter-spacing: -.055em; line-height: 1.35; }
h3 { font-size: 15px; letter-spacing: -.035em; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.mode, .chip { display: inline-flex; align-items: center; width: fit-content; white-space: nowrap; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }
.mode.live { color: var(--accent); }
.button { color: var(--text); background: var(--raised); border: 1px solid #46533b; border-radius: 9px; padding: 9px 13px; text-decoration: none; line-height: 1.35; min-height: 37px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.button:hover { border-color: var(--accent); }
.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.primary:hover { background: #d6f9ae; }
.subtle { background: transparent; border-color: var(--line); color: var(--muted); }
.danger { color: var(--error); }
.hero { min-height: 215px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; padding: 27px 30px; background: linear-gradient(105deg,#273522 0%,#212b1d 65%,#1e281c 100%); border: 1px solid #4a5d3e; border-radius: 19px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -35% -10% -45% 46%; opacity: .45; background: repeating-radial-gradient(ellipse at 72% 49%, transparent 0 29px, #586c45 30px 31px, transparent 32px 53px); mask-image: linear-gradient(90deg, transparent 1%, black 66%); }
.hero .hero-label { color: var(--accent); font-size: 12px; font-weight: 800; margin-bottom: 13px; display: flex; gap: 7px; align-items: center; }
.hero-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #c4ea9550; }
.hero h2 { font-size: clamp(23px, 3.1vw, 42px); line-height: 1.2; letter-spacing: -.065em; }
.hero .meta { color: #c0cdb5; margin-top: 9px; }
.hero .hero-link { margin-top: 14px; }
.hero-time { min-width: 169px; margin: 0 2px 4px 0; text-align: right; }
.hero-time strong { display: block; color: var(--accent); font-size: clamp(36px, 5.2vw, 70px); line-height: 1; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.075em; white-space: nowrap; }
.hero-time small { display: block; font-size: 12px; color: var(--soft); margin-top: 9px; }
.hero-empty { display: block; }
.hero-empty h2 { max-width: 24ch; font-size: 28px; }
.maintenance-note { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.maintenance-option { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.maintenance-option p { margin: 4px 0 0; font-size: 13px; }
.dashboard { margin-top: 22px; display: grid; gap: 18px; align-items: start; grid-template-columns: minmax(0, 1.58fr) minmax(260px, 1fr); }
.stack { display: grid; gap: 18px; min-width: 0; }
.panel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 17px 19px 13px; }
.panel-head p { color: var(--muted); font-size: 12px; }
.link-button { background: transparent; border: 0; padding: 5px 0 5px 5px; color: var(--accent); font-weight: 700; font-size: 12px; }
.link-button:hover { text-decoration: underline; }
.boss-list { list-style: none; margin: 0; padding: 0 17px 7px; }
.boss-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); min-height: 63px; }
.boss-row .num { background: #2a3426; color: #d3e1c7; border: 1px solid #414d38; padding: 4px 0; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.boss-row .desc { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.boss-row .at { text-align: right; font-variant-numeric: tabular-nums; }
.boss-row .at small { display: block; font-size: 11px; color: var(--muted); }
.boss-row .at strong { color: var(--accent); font-size: 13px; }
.boss-row .at .late { color: #e5be89; }
.boss-number { padding: 3px 0; border: 1px solid #414d38; border-radius: 8px; background: #2a3426; color: #d3e1c7; text-align: center; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.record-text small, .setting-row small, .muted { color: var(--muted); }
.round-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; grid-column: 2 / -1; }
.hero .round-actions { margin-top: 16px; }
.round-actions .button { min-height: 34px; padding: 5px 10px; }
.raid-reservation .chip { color: var(--accent); }
.guild-event-row { flex-wrap: wrap; }
.guild-event-row .detail-actions { margin: 0; }
.alert-results small { display: block; color: var(--muted); }
.record-list { display: grid; padding: 0 15px 8px; }
.record { border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; text-align: left; align-items: center; gap: 10px; min-height: 61px; padding: 9px 4px; }
.record:hover { background: #2b3426; }
.record-text { min-width: 0; overflow-wrap: anywhere; }
.record-text small { display: block; margin-top: 2px; font-size: 12px; }
.record-meta { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; white-space: nowrap; }
.record-history { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) auto; }
.record-history-open { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.record-history-open::after { content: ""; position: absolute; inset: 0; }
.record-history-open:focus-visible { outline: 0; }
.record-history-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.record-loot { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--soft); font-size: 12px; }
.record-loot-names { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-loot-names.is-expanded { white-space: normal; overflow-wrap: anywhere; }
.record-loot-more { position: relative; z-index: 1; padding-left: 0; flex: none; white-space: nowrap; }
.empty { padding: 12px 19px 21px; color: var(--muted); }
.alerts { padding: 0 19px 14px; list-style: none; margin: 0; }
.alerts li { border-top: 1px solid var(--line); padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.alerts time { color: var(--muted); white-space: nowrap; }
.full-panel { max-width: 920px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters input { width: auto; padding: 5px 8px; min-height: 33px; }
#screen[aria-busy="true"]:empty::before { content: "불러오는 중이에요."; color: var(--muted); }
.signin { min-height: 100vh; display: grid; align-items: center; justify-items: center; padding: 22px; }
.signin-panel { max-width: 440px; width: 100%; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.signin-panel h1 { margin: 13px 0 7px; }
.signin-panel p { color: var(--soft); margin-bottom: 16px; }
.signin-panel .error { color: var(--error); }
.pair-code { display: block; font-weight: 800; font-size: 26px; letter-spacing: .17em; color: var(--accent); margin: 8px 0; }
.pair-help { display: block; margin-bottom: 12px; }
dialog { color: var(--text); background: var(--panel); border: 1px solid #495841; border-radius: 18px; width: min(560px, calc(100% - 26px)); max-height: calc(100dvh - 28px); padding: 0; box-shadow: 0 18px 65px #0008; }
dialog::backdrop { background: #090e08b5; }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel); padding: 17px 20px 13px; border-bottom: 1px solid var(--line); }
#dialog-body { padding: 17px 20px 22px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 700; font-size: 13px; }
.form .muted { font-weight: 400; }
input, select { border: 1px solid #45523d; border-radius: 8px; background: #171e15; color: var(--text); padding: 9px 10px; width: 100%; min-height: 40px; }
input[type="checkbox"] { accent-color: var(--accent); width: 17px; min-height: auto; height: 17px; }
input[type="file"] { width: 100%; max-width: 100%; }
input::placeholder { color: #909b8c; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-actions, .detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.form-actions .boss-delete { margin-inline-end: auto; }
.detail-actions { justify-content: flex-start; margin: 11px 0; }
.error { color: var(--error); font-size: 13px; }
.details { display: grid; gap: 13px; }
.detail-lines { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 13px; }
.attendees { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.loot-list { display: grid; gap: 8px; list-style: none; padding: 0; }
.loot-list a { color: var(--accent); font-size: 12px; margin-left: 5px; }
.setting-list { padding: 0 18px 11px; }
.setting-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.setting-row small { display: block; }
.days { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.form-section { min-width: 0; margin: 0; padding: 9px 11px 11px; border: 1px solid var(--line); border-radius: 8px; }
.form-section legend { padding-inline: 4px; font-size: 13px; font-weight: 700; }
.form-section small { display: block; margin-top: 6px; }
.days label, .form label.check { display: inline-flex; align-items: center; gap: 4px; }
.toast { position: fixed; z-index: 4; bottom: 18px; right: 18px; max-width: min(400px, calc(100vw - 36px)); background: #e4efdb; color: #23311d; border-radius: 10px; padding: 11px 15px; font-weight: 650; box-shadow: 0 8px 28px #0005; }
@media(max-width: 950px) {
  .shell { grid-template-columns: 189px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .main { padding-inline: 22px; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 650px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 13px 14px 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand strong { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand-mark i { left: 16px; top: 9px; }
  .sidebar nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 3px; flex-wrap: wrap; }
  .sidebar nav :is(button, .nav-link) { padding: 6px 7px; font-size: 12px; }
  .nav-icon { font-size: 16px; margin-right: 0; width: 15px; }
  .account { margin: 0; padding: 0; border: 0; grid-template-columns: auto 28px; }
  .account strong, .account small { max-width: 75px; }
  .avatar { display: none; }
  .main { padding: 20px 13px 37px; }
  .page-header { margin-bottom: 16px; align-items: center; gap: 7px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-inline: 7px; font-size: 12px; }
  .mode { font-size: 10px; padding-inline: 5px; }
  .hero { min-height: 175px; padding: 17px 13px; gap: 10px; }
  .hero-time { min-width: auto; }
  .hero-time strong { font-size: clamp(24px, 7.7vw, 44px); }
  .hero-time small, .hero .meta { font-size: 11px; }
  .hero .hero-label { margin-bottom: 8px; }
  .hero h2 { font-size: 23px; }
  .dashboard { margin-top: 13px; gap: 12px; }
  .stack { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel-head { padding: 14px 13px 10px; }
  .boss-list { padding-inline: 13px; }
  .record-list { padding-inline: 10px; }
  .record-history { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .record-history .record-meta { grid-column: 2; grid-row: 1; }
  .record-loot { grid-column: 1 / -1; }
}

.guild-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 17px 18px; }
.guild-toolbar .button { min-height: 40px; }
.guild-filters { display: flex; flex: 1 1 590px; align-items: end; gap: 8px; }
.guild-filters label { flex: 1; min-width: 0; }
.guild-filters label:nth-child(2), .guild-filters label:nth-child(3) { min-width: 125px; }
.guild-filters label span, .guild-description { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.guild-summary { color: var(--muted); padding: 0 18px 13px; }
.guild-summary strong { color: var(--text); }
.guild-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.guild-table :is(th, td) { padding: 12px 18px; text-align: left; overflow-wrap: anywhere; }
.guild-table thead { background: var(--raised); color: var(--soft); font-size: 12px; }
.guild-table thead th { padding-block: 8px; }
.guild-table thead th:nth-child(2) { width: 24%; }
.guild-table tbody tr { border-top: 1px solid var(--line); }
.ranking { display: grid; gap: 16px; max-width: 1100px; margin-inline: auto; }
.ranking-overview { padding: clamp(15px, 2.5vw, 25px); }
.ranking-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; }
.ranking-heading h2 { font-size: clamp(20px, 2.3vw, 26px); }
.ranking-heading p { font-size: 12px; margin-top: 3px; }
.ranking-period { display: flex; gap: 6px; }
.ranking-period button[aria-pressed=true] { background: #303e27; border-color: #5a704a; color: var(--accent); }
.ranking-personal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 10px; padding: 10px 0;
  border: 1px solid var(--line); border-radius: 12px; background: #171e16; }
.ranking-personal > div { padding: 3px clamp(8px, 2vw, 19px); }
.ranking-personal > div + div { border-left: 1px solid var(--line); }
.ranking-personal dt, .ranking-rule { color: var(--muted); font-size: 12px; }
.ranking-personal dd { margin: 1px 0 0; color: var(--accent); font-size: clamp(15px, 2.6vw, 25px);
  font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ranking-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ranking-card { --medal: #f1ce79; --medal-line: #74613a; --medal-bg: #352b1c;
  min-width: 0; padding: clamp(15px, 2vw, 23px); border: 1px solid var(--medal-line); border-radius: 16px;
  background: radial-gradient(ellipse at 94% 0%, var(--medal-bg) 0%, transparent 75%), var(--panel); }
.ranking-card[data-rank="2"] { --medal: #dae5e9; --medal-line: #515f62; --medal-bg: #2a383b; }
.ranking-card[data-rank="3"] { --medal: #f4bf98; --medal-line: #72533e; --medal-bg: #392a22; }
.ranking-medal { border: 1px solid var(--medal-line); border-radius: 999px; color: var(--medal); width: fit-content;
  font-size: 13px; letter-spacing: 0; padding: 5px 12px; background: var(--medal-bg); }
.ranking-podium-members { list-style: none; margin: 16px 0 0; padding: 0; max-height: 276px; overflow-y: auto; }
.ranking-podium-members li + li { border-top: 1px solid var(--medal-line); margin-top: 8px; padding-top: 8px; }
.ranking-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; overflow-wrap: anywhere; }
.ranking-podium .ranking-name strong { font-size: clamp(17px, 2.2vw, 23px); letter-spacing: -.045em; }
.ranking-self { background: #364626; color: var(--accent); padding: 0 5px; border-radius: 5px; font-size: 11px; }
.ranking-card-score { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.ranking-card-score strong { font-size: clamp(24px, 3.1vw, 38px); color: var(--medal); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.ranking-card-score small { font-size: .49em; margin-left: 3px; }
.ranking-card-score span { color: var(--soft); font-size: 12px; }
.ranking-list table { width: 100%; border-collapse: collapse; }
.ranking-list :is(th, td) { text-align: left; padding: 11px clamp(8px, 2vw, 20px); border-top: 1px solid var(--line); }
.ranking-list thead { background: var(--raised); color: var(--soft); font-size: 12px; }
.ranking-list td:first-child { width: 14%; }
.ranking-list td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ranking-list .ranking-current { background: #253222; }
.ranking-table-points { color: var(--accent); font-weight: 800; }
.guild-description { margin: 2px 0 0; font-weight: 400; }
.guild-qty { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.guild-stock th:first-child { width: 47%; }
.guild-stock th:nth-child(2) { width: 33%; }
.guild-stock .guild-last { text-align: right; }
.guild-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.guild-tabs .button[aria-pressed=true] { color: var(--accent); background: var(--raised); border-color: #506746; }
.guild-detail .record { padding-inline: 4px; }
.guild-ledger { padding: 0 18px; }
.guild-entry { border-top: 1px solid var(--line); }
.guild-entry summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 0; cursor: pointer; overflow-wrap: anywhere; }
.guild-entry summary small { display: block; color: var(--muted); margin-top: 2px; }
.guild-entry summary .guild-entry-total { text-align: right; color: var(--accent); max-width: 165px; font-variant-numeric: tabular-nums; }
.guild-entry-body { padding: 0 0 14px; }
.guild-lines { padding: 0; margin: 0 0 7px; list-style: none; }
.guild-lines li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 6px 8px; background: var(--raised); overflow-wrap: anywhere; }
.guild-lines li + li { border-top: 1px solid var(--line); }
.guild-note { overflow-wrap: anywhere; margin: 8px 0; }
.guild-pagination { display: flex; justify-content: end; gap: 8px; border-top: 1px solid var(--line); padding: 12px 18px; }
.guild-loot-status { margin-left: 6px; color: var(--muted); }
.guild-action-fields, .guild-recipients { display: grid; gap: 10px; }
.guild-action-fields > .button { justify-self: start; }
.guild-recipient { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) 30px; gap: 7px; align-items: end; }
.guild-recipient .icon-button { margin-bottom: 5px; }
.form .guild-confirm { display: flex; align-items: center; gap: 6px; }
.guild-split { background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
.guild-split summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.guild-split-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 9px 0; }
.guild-split [role=status]:not(:empty) { margin-top: 7px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

@media (max-width: 850px) {
  .guild-filters { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guild-filters .button { align-self: end; }
  .guild-filters label:nth-child(2), .guild-filters label:nth-child(3) { min-width: 0; }
}
@media (max-width: 650px) {
  .guild-toolbar, .guild-pagination { padding: 11px; }
  .guild-toolbar { gap: 8px; }
  .guild-toolbar .button { min-height: 37px; }
  .guild-summary, .guild-ledger { padding-inline: 11px; }
  .guild-table :is(th, td) { padding-inline: 9px; }
  .guild-table th:nth-child(2) { width: 29%; }
  .guild-stock th:nth-child(2) { width: 32%; }
  .guild-stock th:first-child { width: 44%; }
  .guild-entry summary .guild-entry-total { max-width: 135px; }
}

.loot-actions { display: inline-block; margin-left: 6px; vertical-align: middle; }
.loot-actions summary { cursor: pointer; list-style: none; color: var(--accent); padding: 2px 8px; }
.loot-actions summary::-webkit-details-marker { display: none; }
.loot-actions div { display: flex; gap: 8px; padding: 3px 8px; }
