/* 비서실장 꼬마 — warm cream / beige / brown */
:root {
  --page: #f0e5d2;
  --shell: #fbf6ec;
  --card: #fffdf8;
  --card-soft: #fdf8ef;
  --line: #ece0cb;
  --line-soft: #f3e9d8;
  --brown: #8a5a2b;
  --brown-deep: #6f4520;
  --brown-soft: #b9895a;
  --cream: #f6e8cf;
  --cream-deep: #efdcc0;
  --ink: #3b3028;
  --ink-soft: #6d6152;
  --muted: #a2957f;
  --green: #2f8a5b;
  --green-bg: #eaf6ee;
  --green-line: #d3ead9;
  --amber: #b4761a;
  --amber-bg: #fdf3e0;
  --amber-line: #f0dfbe;
  --red: #b3503f;
  --red-bg: #fbeeeb;
  --shadow-sm: 0 1px 2px rgba(96, 70, 38, .05), 0 2px 8px rgba(96, 70, 38, .04);
  --shadow-md: 0 8px 28px rgba(96, 70, 38, .10);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 15% -10%, #fbf3e4 0%, rgba(251, 243, 228, 0) 60%),
    radial-gradient(900px 500px at 100% 110%, #f6ead6 0%, rgba(246, 234, 214, 0) 55%),
    var(--page);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.hidden { display: none !important; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot-green { background: #35b06d; }

/* ───────── 잠금 화면 ───────── */
.lock {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
}
.lock-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 34px 26px 26px;
  text-align: center;
}
.lock-avatar {
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 32px;
  background: linear-gradient(180deg, #fbeed8, #f3e0c0);
  border: 1px solid #ecd9b8;
  box-shadow: inset 0 1px 0 #fff;
}
.lock-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.lock-sub { margin: 5px 0 0; font-size: 13px; color: var(--ink-soft); }
.lock-hint { margin: 24px 0 14px; font-size: 12.5px; color: var(--muted); }

.pin-dots { display: flex; justify-content: center; gap: 14px; height: 16px; margin-bottom: 22px; }
.pin-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid #d8c7a9; background: transparent;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.pin-dots span.on { background: var(--brown); border-color: var(--brown); transform: scale(1.05); }
.pin-dots.error span { border-color: var(--red); animation: shake .4s ease; }
.pin-dots.error span.on { background: var(--red); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.keypad button {
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 21px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease;
}
.keypad button:active { transform: scale(.96); background: var(--cream); }
.keypad .key-ghost { background: transparent; border-color: transparent; cursor: default; }
.keypad .key-del { font-size: 18px; color: var(--ink-soft); }

/* ───────── 앱 셸 ───────── */
.app {
  max-width: 820px;
  margin: 26px auto 40px;
  background: var(--shell);
  border: 1px solid #e9dcc7;
  border-radius: 30px;
  box-shadow: 0 18px 60px rgba(96, 70, 38, .12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 66px);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  background: linear-gradient(180deg, #fbeed8, #f4e2c4);
  border: 1px solid #ecd9b8;
  box-shadow: inset 0 1px 0 #fff;
}
.brand-text { min-width: 0; }
.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 5px;
}
.header-right { display: flex; align-items: center; gap: 8px; flex: none; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  white-space: nowrap;
}
.status-badge .dot { background: #35b06d; box-shadow: 0 0 0 3px rgba(53, 176, 109, .14); }
.status-badge.warn { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.status-badge.warn .dot { background: #d79b33; box-shadow: none; }
.status-badge.off { color: var(--red); background: var(--red-bg); border-color: #f0d8d2; }
.status-badge.off .dot { background: #c96a55; box-shadow: none; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  cursor: pointer;
  opacity: .8;
}
.icon-btn:active { transform: scale(.95); }

/* 탭 */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--shell);
  position: sticky; top: 0; z-index: 20;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px 8px;
  border: none;
  background: transparent;
  border-radius: 15px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tab .tab-ico { font-size: 17px; line-height: 1; filter: saturate(.85); }
.tab.active {
  background: var(--brown);
  color: #fff8ec;
  box-shadow: 0 4px 12px rgba(138, 90, 43, .22);
}
.tab.active .tab-ico { filter: none; }

.content { padding: 16px 16px 24px; flex: 1; display: flex; flex-direction: column; }
.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ───────── 공용 요소 ───────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card-title { margin: 0 0 12px; font-size: 15px; font-weight: 800; letter-spacing: -.3px; }

.input, .select {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input::placeholder { color: #b7a991; }
.input:focus, .select:focus { border-color: var(--brown-soft); background: #fff; }
textarea.input { resize: none; line-height: 1.55; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a2957f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
.select-sm { width: auto; font-size: 12.5px; padding: 8px 30px 8px 11px; border-radius: 11px; }

.btn-primary {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff8ec;
  background: linear-gradient(180deg, #96622f, #7f5124);
  border: 1px solid #74481f;
  border-radius: 13px;
  padding: 11px 20px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(121, 77, 34, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  white-space: nowrap;
  transition: transform .08s ease, filter .15s ease;
}
.btn-primary:active { transform: translateY(1px) scale(.995); filter: brightness(.97); }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-outline {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brown);
  background: var(--card);
  border: 1px solid #dcc7a4;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-outline:active { transform: scale(.98); }
.btn-ghost {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
}
.btn-mini {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 9px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-mini:hover { background: var(--cream); }
.btn-mini.danger { color: var(--red); border-color: #edd6f0; border-color: #eed6cf; }

.empty {
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.role-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -.1px;
  color: #8a6a3f;
  background: #f4e7d1;
  border: 1px solid #ecdcc0;
  border-radius: 7px;
  padding: 1px 6px;
  vertical-align: 1px;
}
.role-badge.default { color: #7a4a13; background: #f8e6c4; border-color: #eed3a5; }

/* ───────── 회의실 ───────── */
.subtabs {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.subtab.active {
  color: var(--brown-deep);
  background: var(--cream);
  border-color: #ddc7a2;
  font-weight: 700;
}

.channel-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 0 2px 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 4px;
}
.channel-name { font-weight: 700; color: var(--ink-soft); }

.messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0 8px;
  min-height: 220px;
}

.msg { display: flex; gap: 10px; padding: 9px 2px; }
.msg + .msg { border-top: 1px solid var(--line-soft); }
.msg-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  background: #f6ebd8;
  border: 1px solid #e9d9bd;
}
.msg-body { min-width: 0; flex: 1; }
.msg-head {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.msg-name { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; }
.msg-time { font-size: 11px; color: var(--muted); margin-left: auto; }
.msg-text {
  font-size: 14px;
  line-height: 1.72;
  color: #463a30;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 4px 15px 15px 15px;
  padding: 11px 14px;
}
.msg-text a { color: var(--brown); text-decoration: underline; text-underline-offset: 2px; }

.msg.user { flex-direction: row-reverse; }
.msg.user .msg-body { text-align: right; }
.msg.user .msg-head { flex-direction: row; justify-content: flex-end; }
.msg.user .msg-time { margin-left: 0; }
.msg.user .msg-avatar { background: #efe0c6; border-color: #e2cfae; }
.msg.user .msg-text {
  display: inline-block;
  text-align: left;
  max-width: 100%;
  background: #f7ead4;
  border-color: #ead6b6;
  border-radius: 15px 4px 15px 15px;
}

.composer {
  position: sticky;
  bottom: 0;
  padding: 10px 0 max(4px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--shell) 65%, rgba(251, 246, 236, 0));
}
.composer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 10px 9px;
  box-shadow: var(--shadow-sm);
}
.composer-card textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  padding: 4px 6px 8px;
  max-height: 140px;
}
.composer-row { display: flex; align-items: center; gap: 8px; }
.author-select { flex: 1; font-size: 12.5px; padding: 8px 30px 8px 11px; border-radius: 11px; }

/* ───────── 작업실 ───────── */
.new-task-card { margin-bottom: 14px; }
.task-input { margin-bottom: 10px; }
.new-task-row { display: flex; gap: 8px; }
.new-task-row .select { flex: 1; }

.filter-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.chips { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.chip {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.chip.active { color: #fff8ec; background: var(--brown); border-color: var(--brown); }

.task-list { display: flex; flex-direction: column; gap: 9px; }
.task {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}
.task.done { background: #fdfaf3; }
.task-top { display: flex; align-items: flex-start; gap: 10px; }
.task-title { font-size: 14px; font-weight: 600; line-height: 1.55; flex: 1; word-break: break-word; }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: #d6c6ac; }
.task-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: var(--muted); }
.assignee-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--brown-deep);
  background: #f7ecd9;
  border: 1px solid #ecdcc0;
  border-radius: 8px;
  padding: 2px 7px;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card-soft); }
.seg button {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 5px 11px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on[data-st="pending"] { background: #efe6d6; color: #6f6152; }
.seg button.on[data-st="doing"] { background: var(--amber-bg); color: var(--amber); }
.seg button.on[data-st="done"] { background: var(--green-bg); color: var(--green); }
.task-actions { margin-left: auto; display: flex; gap: 6px; }
.task-result {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #f9f4e9;
  border: 1px dashed #e5d6bb;
  font-size: 12.5px;
  line-height: 1.6;
  color: #5a4c3e;
  white-space: pre-wrap;
  word-break: break-word;
}
.task-result.editing { background: var(--card-soft); border-style: solid; }
.task-result textarea {
  width: 100%; border: none; background: transparent; outline: none; resize: none;
  font-family: var(--font); font-size: 12.5px; line-height: 1.6; color: var(--ink);
}

/* ───────── 비서현황 ───────── */
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-title { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.section-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

.add-assistant-card { margin-bottom: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.emoji-hints { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 12px; }
.emoji-hints button {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  font-size: 16px;
  cursor: pointer;
}
.emoji-hints button:active { background: var(--cream); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }

.assistant-list { display: flex; flex-direction: column; gap: 10px; }
.assistant {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.assistant.default { border-color: #e5cfa6; background: linear-gradient(180deg, #fffdf6, #fdf7ea); }
.assistant-top { display: flex; align-items: flex-start; gap: 11px; }
.assistant-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  background: #f6ebd8;
  border: 1px solid #e9d9bd;
}
.assistant-info { flex: 1; min-width: 0; }
.assistant-name { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; flex-wrap: wrap; }
.assistant-note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); line-height: 1.55; word-break: break-word; }
.assistant-state { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; }
.assistant-state .dot.online { background: #35b06d; }
.assistant-state .dot.busy { background: #d79b33; }
.assistant-state .dot.idle { background: #b7a991; }
.assistant-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.api-panel { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.api-row { margin-bottom: 8px; }
.api-label { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; text-transform: uppercase; }
.api-value {
  display: flex; align-items: center; gap: 6px;
  background: #f8f2e6;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 7px 9px;
}
.api-value code {
  font-family: var(--mono);
  font-size: 11px;
  color: #5a4a38;
  word-break: break-all;
  white-space: pre-wrap;
  flex: 1;
  line-height: 1.55;
}
.api-hint { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 6px; }

/* ───────── 메모 ───────── */
.memo-compose { margin-bottom: 12px; }
.memo-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.check-inline input { accent-color: var(--brown); width: 15px; height: 15px; }

.memo-list { display: flex; flex-direction: column; gap: 9px; }
.memo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}
.memo.pinned { background: linear-gradient(180deg, #fffdf5, #fdf6e6); border-color: #e9d5ae; }
.memo-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.memo-date { font-size: 11px; color: var(--muted); }
.memo-actions { margin-left: auto; display: flex; gap: 5px; }
.memo-text { font-size: 13.5px; line-height: 1.7; color: #463a30; white-space: pre-wrap; word-break: break-word; }
.memo-edit textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px;
  font-family: var(--font); font-size: 13.5px; line-height: 1.7; color: var(--ink);
  background: var(--card-soft); outline: none; resize: vertical;
}
.memo-edit-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 7px; }

/* ───────── 토스트 ───────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(59, 48, 40, .94);
  color: #fdf6ea;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(59, 48, 40, .28);
  z-index: 200;
  pointer-events: none;
  animation: toast-in .18s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ───────── 반응형 ───────── */
@media (max-width: 680px) {
  .app {
    margin: 0;
    border: none;
    border-radius: 0;
    min-height: 100dvh;
    box-shadow: none;
  }
  .app-header { padding: calc(14px + env(safe-area-inset-top)) 16px 10px; }
  .brand-text h1 { font-size: 18px; }
  .brand-avatar { width: 42px; height: 42px; font-size: 20px; }
  .status-badge { font-size: 11px; padding: 6px 10px; }
  .tabs { padding: 2px 8px 8px; }
  .tab { font-size: 11.5px; }
  .content { padding: 12px 12px 18px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .msg-text { font-size: 13.5px; }
  /* iOS Safari가 입력창 포커스 때 화면을 확대하지 않도록 16px 유지 */
  .input, .select, .composer-card textarea, .memo-edit textarea, .task-result textarea {
    font-size: 16px;
  }
  .author-select { font-size: 14px; }
}

@media (min-width: 681px) {
  .messages { min-height: 320px; }
}
