/* 花の店サトウ 休日希望 — ロゴの黄緑・青緑・黄色をもとにした配色 */
:root {
  --green: #6aa121;
  --green-dark: #4f7d14;
  --green-soft: #eef6e0;
  --teal: #2a9fb4;
  --teal-soft: #e3f4f7;
  --sky: #66c0e0;
  --yellow: #f6bd1f;
  --yellow-soft: #fff6d9;
  --red: #d64541;
  --red-soft: #fdecec;
  --blue: #2f6fc7;
  --ink: #1f2a1a;
  --ink-2: #4c5747;
  --ink-3: #7c8678;
  --line: #e2e7dc;
  --bg: #f6f8f2;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 26, .06), 0 4px 16px rgba(31, 42, 26, .06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.55; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--ink-3); }

/* ---------- レイアウト ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
  display: flex; align-items: center; gap: 10px;
}
.topbar img { height: 30px; max-width: 46vw; object-fit: contain; }
.topbar .title { font-weight: 700; font-size: 15px; color: #000; white-space: nowrap; }
.topbar .who { margin-left: auto; font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.3; }
.main { max-width: 980px; margin: 0 auto; padding: 14px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-b); height: calc(var(--tabbar-h) + var(--safe-b));
}
.tabbar button {
  flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--ink-3); cursor: pointer;
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--green-dark); font-weight: 700; }
@media (min-width: 900px) {
  .tabbar { top: 0; bottom: auto; left: auto; right: 16px; width: auto; height: auto; border: 0; background: none; padding: calc(env(safe-area-inset-top, 0px) + 6px) 0 0; gap: 4px; }
  .tabbar button { flex: none; flex-direction: row; padding: 8px 12px; font-size: 13px; border-radius: 10px; white-space: nowrap; }
  .tabbar button svg { width: 18px; height: 18px; }
  .tabbar button.on { background: var(--green-soft); }
  .topbar { padding-right: 420px; }
  .main { padding-bottom: 40px; }
}

/* ---------- 部品 ---------- */
h1 { font-size: 20px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
h3 { font-size: 15px; margin: 14px 0 8px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.muted { color: var(--ink-3); font-size: 13px; }
.small { font-size: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.grow { flex: 1; }
.btn {
  appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px;
  font-weight: 600; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:active { background: var(--green-dark); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.danger { color: var(--red); border-color: #f1c3c1; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 34px; padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid #cfd6c8; border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 16px;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--teal); }
.counter { font-size: 12px; color: var(--ink-3); text-align: right; margin-top: 2px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.radio-group { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.radio-card.on { border-color: var(--green); background: var(--green-soft); }
.radio-card input { accent-color: var(--green); width: 18px; height: 18px; }

.banner { border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.banner.ok { background: var(--green-soft); color: #355c0c; border: 1px solid #d3e7b4; }
.banner.info { background: var(--teal-soft); color: #145a67; border: 1px solid #c3e5ec; }
.banner.warn { background: var(--yellow-soft); color: #6d5100; border: 1px solid #f3df9c; }
.banner.err { background: var(--red-soft); color: #8a2421; border: 1px solid #f4c7c5; }
.banner strong { display: block; }
.prewrap { white-space: pre-wrap; word-break: break-word; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.st-pending { background: var(--yellow-soft); color: #7a5a00; border: 1px solid #f0d27a; }
.st-approved { background: var(--green); color: #fff; border: 1px solid var(--green); }
.st-rejected { background: #eceee9; color: #5d655a; border: 1px solid #d5d9d1; }

.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px 6px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.subnav button.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

.monthbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.monthbar .label { font-size: 19px; font-weight: 700; }
.monthbar .btn { min-width: 44px; }

/* ---------- カレンダー ---------- */
.cal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { text-align: center; font-size: 12px; font-weight: 700; padding: 6px 0; background: var(--green-soft); color: var(--ink-2); }
.cal-head div:first-child { color: var(--red); }
.cal-head div:last-child { color: var(--blue); }
.cell {
  min-height: 92px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 3px 3px 4px;
  cursor: pointer; position: relative; background: #fff; text-align: left; overflow: hidden; min-width: 0;
}
.cell:nth-child(7n+1) { border-left: 0; }
.cell.empty { background: #fafbf8; cursor: default; }
.cell.today { box-shadow: inset 0 0 0 2px var(--sky); }
.cell.target { background: #fdfef9; }
.cell.disabled-day { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #fbf0ef 6px, #fbf0ef 8px); }
.cell .dn { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.cell .dn.sun, .cell .dn.hol { color: var(--red); }
.cell .dn.sat { color: var(--blue); }
.cell .tomo { font-size: 8px; white-space: nowrap; letter-spacing: -.5px; font-weight: 700; color: #8a6d00; background: var(--yellow-soft); border-radius: 4px; padding: 0 3px; }
.cell .hol-name { font-size: 9px; color: var(--red); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 予定名は2行まで折り返し、それ以上は「…」 */
.cell .dtype, .cell .ev {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; word-break: break-all; overflow-wrap: anywhere;
}
.cell .dtype { font-size: 9px; font-weight: 700; color: #fff; border-radius: 4px; padding: 1px 3px; line-height: 1.3; margin-top: 1px; }
.cell .ev { font-size: 9px; color: var(--teal); line-height: 1.25; margin-top: 1px; }
.cell .ev.plain { color: var(--ink-2); }
.cell .chips { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.chip { font-size: 10px; line-height: 1.35; border-radius: 4px; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.pending { background: var(--yellow-soft); color: #6d5100; border: 1px dashed #e2b93b; }
.chip.approved { background: var(--green); color: #fff; }
.chip.rejected { background: #eef0eb; color: #8a9087; text-decoration: line-through; }
.chip.mine { font-weight: 700; box-shadow: 0 0 0 1px var(--teal); }
.cell .more { font-size: 10px; color: var(--ink-3); }
@media (min-width: 700px) {
  .cell { min-height: 110px; padding: 5px; }
  .cell .dn { font-size: 14px; }
  .cell .hol-name, .cell .ev, .cell .dtype, .cell .tomo { font-size: 11px; }
  .chip { font-size: 12px; padding: 1px 5px; }
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; line-height: 1.4; color: var(--ink-2); margin: 10px 2px; }
.legend > span { display: inline-flex; align-items: center; gap: 4px; }
.legend .chip { display: inline-block; font-size: 11px; line-height: 1.4; padding: 0 4px; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.t th { font-size: 12px; color: var(--ink-3); font-weight: 600; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.over td { color: var(--red); }
table.t.compact { width: auto; }
table.t.compact th, table.t.compact td { padding: 6px 8px; }
table.t.compact td:first-child, table.t.compact th:first-child { padding-left: 0; padding-right: 14px; }
table.t.compact .num { min-width: 3.2em; }

/* ---------- 申請リスト ---------- */
.req { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.req + .req { margin-top: 8px; }
.req .head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.req .name { font-weight: 700; }
.req .meta { font-size: 12px; color: var(--ink-3); }
.req .reason { font-size: 13px; margin-top: 4px; }
.req .note { font-size: 13px; margin-top: 4px; background: var(--teal-soft); border-radius: 8px; padding: 6px 8px; }
.req .actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.daygroup { margin-bottom: 14px; }
.daygroup .dhead { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; flex-wrap: wrap; }

/* ---------- シート（モーダル） ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 28, 16, .42); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0;
  padding: 8px 16px calc(var(--safe-b) + 20px); animation: up .2s ease-out;
}
.sheet .grip { width: 40px; height: 4px; border-radius: 4px; background: #d5dbcf; margin: 4px auto 8px; }
.sheet .sheet-head { display: flex; align-items: center; gap: 8px; position: sticky; top: -8px; background: #fff; padding: 6px 0 8px; z-index: 1; }
.sheet .sheet-head h2 { margin: 0; flex: 1; font-size: 18px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 18px; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 80;
  background: #26321f; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: calc(100vw - 32px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2); animation: up .2s;
}
.toast.err { background: #8a2421; }

/* ---------- ログイン ---------- */
.login { max-width: 460px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 28px) 16px 40px; }
.login .logo { display: block; width: 100%; max-width: 360px; margin: 0 auto 6px; }
.login .sys { text-align: center; color: var(--green-dark); font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.names button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 8px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.names button:active { background: var(--green-soft); }
.pin-boxes { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.pin-boxes span { width: 48px; height: 56px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 26px; background: #fff; }
.pin-boxes span.fill { border-color: var(--green); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 300px; margin: 0 auto; }
.keypad button { height: 58px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 22px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.keypad button:active { background: var(--green-soft); }
.keypad button.fn { font-size: 14px; box-shadow: none; background: transparent; border-color: transparent; }

.note-hint { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.badge.wrap { white-space: normal; }
/* 初期設定の入力欄の幅をそろえる */
.set-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.set-row:last-of-type { border-bottom: 0; }
.set-row .w-name { width: 11rem; flex: none; }
.set-row .w-short { width: 6.5rem; flex: none; }
.set-row .w-policy { width: 11rem; flex: none; }
.set-row .w-color { width: 40px; height: 40px; border: 0; background: none; padding: 0; flex: none; }
.set-row .w-warn { flex: 1 1 100%; }
.set-head { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; }
.logo-preview { max-width: 100%; max-height: 80px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.icon-preview { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); }
code.block { display: block; white-space: pre-wrap; word-break: break-all; background: #f2f4ef; border-radius: 8px; padding: 8px; font-size: 12px; }
.log { font-size: 12px; }
.log div { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.empty-note { text-align: center; color: var(--ink-3); padding: 18px 0; font-size: 14px; }
/* 設定有休 */
.badge.paid { background: #efe9fb; color: #5b3fa0; border: 1px solid #d8ccf3; }
.paid-field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fbfaff; }
.paid-field .check { margin: 4px 0; }
.paid-field .check.disabled { color: var(--ink-3); cursor: default; }
.paid-balance { font-size: 14px; margin-top: 4px; }
.paid-balance b { color: #5b3fa0; }
.paid-balance.warn { color: #6d5100; font-size: 13px; }

/* 日付入力（幅をそろえ、クリックでカレンダー） */
.input.date-input { width: 11.5em; cursor: pointer; }
/* カレンダー下の凡例：色の四角だけ */
.legend .chip.legend-box { width: 22px; height: 14px; padding: 0; border-radius: 4px; }
/* 社員マスター一覧：名前とボタンを近づける */
.staff-list { max-width: 760px; }
.staff-row { display: flex; align-items: center; gap: 10px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.staff-row:last-child { border-bottom: 0; }
.staff-row .info { flex: 1 1 260px; max-width: 520px; min-width: 0; }
.staff-row .btns { display: flex; gap: 4px; align-items: center; }
/* 会社カレンダー：スクロールなしで見えるように */
.cc-head { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.cc-head h1 { margin: 0; }
.cc-head .cc-month { flex: 1 1 260px; }
.cc-head .cc-month .monthbar { margin: 0; }
.note-inline { padding: 8px 12px; margin-bottom: 8px; }
.note-inline label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
.note-row { display: flex; gap: 8px; align-items: stretch; }
.note-row textarea.input { min-height: 0; height: 52px; padding: 6px 10px; font-size: 14px; resize: vertical; }
.note-row .btn { flex: none; }
@media (min-width: 700px) { .cal-compact .cell { min-height: 84px; } }
/* 希望の調整：1行表示 */
.req-line { display: flex; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-wrap: wrap; }
.req-line + .req-line { margin-top: 6px; }
.req-line .who { flex: 1 1 320px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-width: 0; }
.req-line .name { font-weight: 700; }
.req-line .msg { font-size: 13px; background: #f4f6f1; border-radius: 6px; padding: 1px 6px; }
.req-line .msg.private { background: var(--teal-soft); }
.req-line .meta { font-size: 11px; color: var(--ink-3); }
.req-line .ops { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.del-link { color: var(--red); font-size: 13px; margin-left: 6px; }
.badge.overlap { background: #fff; color: var(--red); border: 1.5px solid var(--red); border-radius: 4px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.grayed { opacity: .45; }
/* 確認ダイアログ */
.dialog-overlay { z-index: 90; align-items: center; padding: 16px; }
.dialog { background: #fff; border-radius: 16px; padding: 18px 18px 16px; width: 100%; max-width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,.25); animation: up .15s ease-out; font-size: 15px; }
.dialog h3 { margin: 0 0 8px; font-size: 17px; }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.pin-boxes.long span { width: 36px; height: 48px; font-size: 20px; }
/* 社員マスター：まとめて設定 */
.bulk-bar { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.staff-row .pick { width: 20px; height: 20px; accent-color: var(--green); flex: none; }

/* 社員マスター：名前と並べ替え・編集ボタンを1行に */
.staff-row .name-line { display: flex; align-items: center; gap: 6px; }
.staff-row .name-line .nm { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.staff-row:has(.pick-col) { align-items: flex-start; flex-wrap: nowrap; gap: 8px; }
.staff-row .pick-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; padding-top: 4px; }
.staff-row .pick-col .updown { display: flex; gap: 0; }
.staff-row .pick-col .btn.sm.ghost { min-width: 30px; min-height: 30px; padding: 2px 4px; }

/* 期間（から〜まで）を1行に */
.date-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 6px; align-items: end; max-width: 26rem; }
.date-pair label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* iPhone の日付欄は既定で幅が広く、枠からはみ出すため、見た目を通常の入力欄に揃える */
.date-pair .input.date-input { display: block; width: 100%; min-width: 0; min-height: 44px; padding-left: 8px; padding-right: 8px;
  -webkit-appearance: none; appearance: none; text-align: center; }
.date-pair .input.date-input::-webkit-date-and-time-value { text-align: center; }
.date-pair .tilde { align-self: end; line-height: 44px; }
.date-pair .run-btn { justify-self: end; }
.share-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: nowrap; }
.share-row .btn { flex: 1 1 auto; white-space: nowrap; padding-left: 6px; padding-right: 6px; }

/* 営業区分：色・区分名・扱い・削除を1行に（区分名は全角8文字ぶんの幅） */
.set-row.daytype { flex-wrap: wrap; gap: 4px; }
.set-row.daytype .w-color { width: 28px; height: 36px; }
.set-row.daytype .w-name8 { width: calc(8em + 18px); flex: none; padding-left: 8px; padding-right: 8px; }
.set-row.daytype .w-policy { flex: 1 1 0; width: auto; min-width: 0; max-width: 9rem; padding-left: 6px; padding-right: 0; }
.set-row.daytype .w-del { flex: none; width: 30px; min-width: 0; padding: 4px 0; font-size: 13px; }
.set-head.daytype { gap: 4px; }
.set-head.daytype .h-color { width: 28px; flex: none; }
.set-head.daytype .h-name { width: 146px; flex: none; }
.set-row.daytype .w-warn { flex: 0 0 calc(100% - 48px); margin-left: 48px; }
.set-row.daytype .w-warn textarea.input { min-height: 0; height: auto; line-height: 1.5; resize: none; padding: 6px 10px; }

/* 中身の幅に合わせた箱（下の行のボタンを上の行の右端に揃える） */
.fit-box { display: inline-flex; flex-direction: column; max-width: 100%; }
