/* 我的白板（雲端版 A2）外掛樣式：延續畫廊白牆編輯美學（無漸層・無霓虹・細線襯線） */

body.a2-colleague .ifdel,
body.a2-colleague .ifundo,
body.a2-colleague [data-ifdel],
body.a2-colleague [data-ifundo],
body.a2-colleague #ifTip [data-ifundo],
body.a2-colleague .dblockbar,
body.a2-colleague [data-dblock],
body.a2-colleague .dbmv {
  display: none !important;
}

.a2-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid #e7e5df;
  background: #f7f7f8;
  color: #6f6e69;
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.a2-pill:hover {
  border-color: #c9c7bf;
  color: #2c2c2a;
}

.a2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b8a3e;
  flex-shrink: 0;
}

.a2-dot.syncing {
  background: #2f6fde;
}

.a2-dot.err {
  background: #b42318;
}

.a2-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #d7d4cc;
  background: #ffffff;
  color: #2c2c2a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.a2-btn:hover {
  background: #f7f7f8;
  border-color: #b7b3a9;
}

.a2-btn.primary {
  background: #2c2c2a;
  border-color: #2c2c2a;
  color: #ffffff;
}

.a2-btn.primary:hover {
  opacity: 0.92;
}

.a2-btn.danger {
  color: #b42318;
  border-color: #e6c6c3;
  background: #fffafa;
}

.a2-btn.danger:hover {
  background: #fef2f2;
}

.a2-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.a2-cal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.a2-ev-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e7e5df;
}

.a2-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(34, 33, 29, 0.36);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.a2-modal-backdrop.on {
  display: flex;
}

.a2-modal {
  width: min(480px, 100%);
  background: #ffffff;
  border: 1px solid #e5e2dc;
  border-radius: 14px;
  box-shadow: 0 22px 48px -18px rgba(24, 24, 22, 0.25);
  padding: 22px;
  color: #2c2c2a;
}

.a2-modal h3 {
  margin: 0 0 14px;
  font-family: "Songti SC", "Noto Serif TC", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.a2-form {
  display: grid;
  gap: 12px;
  font-size: 13px;
}

.a2-field label {
  display: block;
  font-size: 12px;
  color: #6f6e69;
  margin-bottom: 4px;
}

.a2-field input,
.a2-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dcd9d0;
  border-radius: 8px;
  background: #f7f7f8;
  color: #2c2c2a;
  font: inherit;
}

.a2-field input:focus,
.a2-field textarea:focus {
  outline: 2px solid #2f6fde;
  outline-offset: 1px;
  background: #ffffff;
}

.a2-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.a2-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.a2-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eceae4;
}

/* 計劃書工作台（非 AI 味畫廊襯線風格） */
.a2-plan-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.a2-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e2dc;
}

.a2-plan-head h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif TC", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.a2-plan-sub {
  font-size: 12px;
  color: #6f6e69;
  font-variant-numeric: tabular-nums;
}

.a2-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 860px) {
  .a2-plan-grid {
    grid-template-columns: 1fr;
  }
}

.a2-card {
  background: #ffffff;
  border: 1px solid #e5e2dc;
  border-radius: 14px;
  padding: 20px;
}

.a2-drop {
  border: 1px dashed #c9c7bf;
  border-radius: 10px;
  background: #f7f7f8;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.a2-drop.over,
.a2-drop:hover {
  border-color: #2f6fde;
  background: #f2f6fd;
}

.a2-drop-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #6f6e69;
  margin-bottom: 6px;
}

.a2-drop-title {
  font-size: 14px;
  font-weight: 500;
  color: #2c2c2a;
}

.a2-drop-hint {
  font-size: 12px;
  color: #6f6e69;
  margin-top: 4px;
}

.a2-opts {
  margin-top: 16px;
  border-top: 1px solid #eceae4;
  padding-top: 14px;
  display: grid;
  gap: 12px;
  font-size: 13px;
}

.a2-opt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.a2-opt-row small {
  display: block;
  font-size: 12px;
  color: #6f6e69;
  margin-top: 2px;
}

.a2-seg3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.a2-seg3 button {
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid #e7e5df;
  background: #f7f7f8;
  color: #6f6e69;
  font-size: 12px;
  cursor: pointer;
}

.a2-seg3 button.on {
  background: #2c2c2a;
  border-color: #2c2c2a;
  color: #ffffff;
  font-weight: 500;
}

.a2-dl-list {
  border: 1px solid #e5e2dc;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}

.a2-dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #eceae4;
  font-size: 13px;
}

.a2-dl-item:first-child {
  border-top: 0;
}

.a2-dl-meta {
  font-size: 12px;
  color: #6f6e69;
  margin-left: 8px;
}

.a2-brief-frame {
  width: 100%;
  height: 460px;
  border: 1px solid #e7e5df;
  border-radius: 10px;
  background: #ffffff;
  margin-top: 14px;
}

/* 手機自動上下排列（補齊 MDRT 雙欄）與手動「將右欄移到下面」切換選項 */
@media (max-width: 760px) {
  .mdtop,
  .mdpair {
    grid-template-columns: 1fr;
  }
}

body.a2-stack .pl-grid,
body.a2-stack .mdtop,
body.a2-stack .mdpair,
body.a2-stack .ifcols,
body.a2-stack .cvgrid,
body.a2-stack .cbreq {
  grid-template-columns: 1fr !important;
}

.a2-layout-btn {
  margin-left: auto;
  border: 0;
  border-radius: 99px;
  background: #ffffff;
  color: #6f6e69;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: color 0.15s ease, background 0.15s ease;
}

.a2-layout-btn:hover {
  color: #2c2c2a;
}

.a2-layout-btn.on {
  color: #2f6fde;
  background: #eaf1fd;
  font-weight: 600;
}
