/* ==========================================================
   凯凯装修 · Android 版  全局样式
   Material 风格 / 移动优先 / 深色状态栏适配
   ========================================================== */

:root {
  --primary: #3066ff;
  --primary-dark: #1f4fd8;
  --primary-soft: #eaf0ff;
  --accent: #ff4458;
  --accent-soft: #fff1f2;
  --warn: #f6b100;
  --ok: #5fc94b;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #1f2330;
  --text-2: #5b6270;
  --text-3: #8b909a;
  --line: rgba(31, 35, 48, 0.08);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-1: 0 2px 8px rgba(31, 35, 48, 0.05);
  --sh-2: 0 6px 20px rgba(31, 35, 48, 0.08);
  --sh-3: 0 12px 32px rgba(31, 35, 48, 0.16);

  --appbar-h: 56px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC",
               "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  padding-top: var(--safe-top);
  min-height: 100vh;
}

/* 禁止长按选中（图片/画布除外由各自控制） */
body { -webkit-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; user-select: text; }

/* ================= AppBar ================= */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--appbar-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.appbar.transparent {
  background: transparent;
  box-shadow: none;
}
.appbar .back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.appbar .back:active { background: rgba(31, 35, 48, 0.06); }
.appbar .back svg { width: 22px; height: 22px; }
.appbar .title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appbar .action {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.appbar .action.ghost { background: transparent; color: var(--primary); }
.appbar .action:active { opacity: .82; }

/* ================= 通用容器 ================= */
.page { padding: 16px 16px calc(24px + var(--safe-bottom)); }
.card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  padding: 16px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 4px 2px 12px;
}
.muted { color: var(--text-3); font-size: 13px; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #4f7cff 0%, #3066ff 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(48, 102, 255, .28);
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: .45; box-shadow: none; }

.btn-block { display: flex; width: 100%; }

/* ================= 首页 ================= */
.home-header { padding: 20px 6px 8px; }
.home-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #1f2330 0%, #3066ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-sub { margin-top: 6px; font-size: 13px; color: var(--text-3); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 12px;
  margin-top: 26px;
}
.section-head .t { font-size: 17px; font-weight: 700; }
.section-head .meta { font-size: 13px; font-weight: 700; color: var(--accent); }

/* 横向滚动热门 */
.hot-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hot-scroll::-webkit-scrollbar { display: none; }
.hot-card {
  position: relative;
  flex: none;
  width: 132px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 22px 14px 18px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.hot-card:active { transform: scale(.96); }
.hot-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4458 100%);
  padding: 2px 9px;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.hot-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.hot-title { font-size: 15px; font-weight: 700; }
.hot-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 自绘图标（零资源依赖） */
.i-cross, .i-ruler, .i-camera { position: relative; display: inline-block; }
.i-cross { width: 34px; height: 34px; }
.i-cross.small { width: 24px; height: 24px; }
.i-cross i { position: absolute; background: currentColor; border-radius: 3px; display: block; }
.i-cross i.h { width: 100%; height: 22%; top: 39%; left: 0; }
.i-cross i.v { width: 22%; height: 100%; top: 0; left: 39%; }

.i-ruler { width: 34px; height: 17px; background: currentColor; border-radius: 4px; overflow: hidden; }
.i-ruler i { position: absolute; top: 0; width: 1px; height: 100%; background: rgba(255,255,255,.9); display: block; }
.i-ruler i:nth-child(1) { left: 20%; }
.i-ruler i:nth-child(2) { left: 35%; height: 60%; }
.i-ruler i:nth-child(3) { left: 50%; }
.i-ruler i:nth-child(4) { left: 65%; height: 60%; }
.i-ruler i:nth-child(5) { left: 80%; }

.i-camera { width: 34px; height: 28px; }
.i-camera i.b { position: absolute; bottom: 0; left: 0; right: 0; height: 20px; background: currentColor; border-radius: 5px; display: block; }
.i-camera i.l {
  position: absolute; top: 50%; left: 50%; width: 13px; height: 13px;
  background: #fff; border: 2.5px solid currentColor; border-radius: 50%;
  transform: translate(-50%, -50%); z-index: 2; display: block;
}
.i-camera i.f { position: absolute; top: 2px; right: 5px; width: 6px; height: 4px; background: #fff; border-radius: 2px; display: block; }

/* 网格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 4px; }
.grid-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 18px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform .12s ease;
}
.grid-item:active { transform: scale(.96); }
.grid-icon {
  width: 48px; height: 48px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.grid-title { font-size: 13px; font-weight: 500; }
.quote-icon {
  background: linear-gradient(135deg, #FFE5B4 0%, #FFD180 100%);
  color: #C2410C;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.home-footer { margin-top: 36px; text-align: center; }
.home-footer .tip { font-size: 12px; color: var(--text-3); }
.home-footer .meta { font-size: 11px; color: #c0c4cc; margin-top: 4px; }

/* ================= 尺寸标注页 ================= */
.top-tip {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--primary-soft);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
}
.top-tip em { font-style: normal; color: var(--primary); font-weight: 600; }

.canvas-area {
  position: relative;
  width: 100%;
  height: 46vh;
  min-height: 260px;
  background: #eceef4;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  touch-action: none;
}
#live-canvas { width: 100%; height: 100%; display: block; }
.canvas-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  cursor: pointer;
}
.canvas-empty .plus {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--sh-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--primary); font-weight: 300;
}

/* 工具栏 */
.toolbar {
  display: flex;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  margin-top: 12px;
  padding: 8px 0;
}
.tool {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text-2);
}
.tool:active { opacity: .6; }
.tool .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(0,0,0,.12);
}
.tool .ic { font-size: 20px; line-height: 22px; color: var(--text-2); }
.tool .nm { font-size: 12px; }

.actions { display: flex; gap: 12px; margin-top: 14px; }
.actions .btn { flex: 1; }

/* 折叠卡片 */
.fold-card {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  margin-top: 14px;
  overflow: hidden;
}
.fold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
}
.fold-head .t { font-size: 15px; font-weight: 700; }
.fold-head .arrow { transition: transform .2s ease; color: var(--text-3); font-size: 13px; }
.fold-head.open .arrow { transform: rotate(180deg); }
.fold-body { padding: 0 16px 16px; }
.help-step { display: flex; gap: 10px; margin-bottom: 10px; }
.help-num {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.help-text { font-size: 13px; color: var(--text-2); }

/* 案例展示 */
.case-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}
.case-scroll::-webkit-scrollbar { display: none; }
.case-item { flex: none; width: 132px; cursor: pointer; }
.case-img {
  width: 132px; height: 92px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.case-cap { font-size: 12px; color: var(--text-2); margin-top: 6px; text-align: center; }

/* ================= 弹窗 ================= */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 28, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97) } to { opacity: 1; transform: none } }

.dialog {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px 18px 14px;
  box-shadow: var(--sh-3);
  animation: pop .18s ease;
}
.dialog-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; text-align: center; }
.dialog-sub-label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin: 12px 0 6px;
  font-weight: 500;
}
.dialog-sub-label:first-of-type { margin-top: 4px; }
.dialog-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  background: #fafbfd;
  color: var(--text);
  font-family: inherit;
}
.dialog-input:focus { border-color: var(--primary); background: #fff; }
.dialog-tip { font-size: 12px; color: var(--text-3); margin-top: 10px; line-height: 1.6; }
.dialog-tip b { color: var(--warn); font-weight: 600; }

.unit-row { display: flex; gap: 8px; margin-top: 12px; }
.unit-btn {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  background: #fafbfd;
}
.unit-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* 字号档位选择：与单位按钮同款，但靠字号大小直观示意 */
.font-row { display: flex; gap: 6px; margin-top: 8px; }
.font-btn {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  background: #fafbfd;
}
.font-btn span { line-height: 1; display: inline-block; transform: translateY(-1px); }
.font-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.font-btn.active span { color: #fff; }

.dialog-actions { display: flex; gap: 10px; margin-top: 18px; }
.dialog-actions button {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-cancel { background: #f2f3f7; color: var(--text-2); }
.btn-ok { background: var(--primary); color: #fff; }

/* 颜色选择器 */
.color-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.swatch.active { box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px #fff; }
.custom-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.custom-row label { font-size: 13px; color: var(--text-2); flex: none; }
.custom-row input {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 12px;
  font-size: 14px;
  font-family: monospace;
  background: #fafbfd;
  color: var(--text);
}
.custom-preview {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
  flex: none;
}

/* ================= Toast ================= */
#toast-root {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(80px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  background: rgba(24, 27, 36, .92);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  animation: toastIn .2s ease;
  max-width: 80vw;
  text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* 全屏图片预览 */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade .16s ease;
}
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
#lightbox .close {
  position: absolute;
  top: calc(16px + var(--safe-top));
  right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ================= 报价页 ================= */
.hero {
  background: linear-gradient(135deg, #4f7cff 0%, #3066ff 100%);
  border-radius: var(--r-md);
  padding: 22px 20px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(48, 102, 255, .22);
}
.hero .t { font-size: 21px; font-weight: 800; }
.hero .s { font-size: 13px; opacity: .85; margin-top: 4px; }

.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .ci { font-size: 17px; }
.card-head .ct { font-size: 15px; font-weight: 700; }
.card-head .tag { font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: var(--r-pill); }
.card-head .hint { font-size: 11px; color: var(--text-3); margin-left: auto; }

.form-row { display: flex; align-items: center; margin-bottom: 12px; gap: 10px; }
.form-label { flex: none; font-size: 14px; color: var(--text-2); min-width: 96px; }
.field {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fafbfd;
  padding: 0 12px;
}
.field:focus-within { border-color: var(--primary); background: #fff; }
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.field .suffix { font-size: 12px; color: var(--text-3); flex: none; padding-left: 6px; }
.field select {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  appearance: none;
}
.field .caret { font-size: 10px; color: var(--text-3); flex: none; }

.level-group { display: flex; gap: 8px; flex: 1; }
.level-pill {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 0;
  text-align: center;
  cursor: pointer;
  background: #fafbfd;
}
.level-pill .n { font-size: 14px; font-weight: 600; }
.level-pill .y { font-size: 11px; color: var(--text-3); }
.level-pill.active { background: var(--primary); border-color: var(--primary); }
.level-pill.active .n, .level-pill.active .y { color: #fff; }

.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.room-cell { background: #fafbfd; border-radius: var(--r-sm); padding: 10px; }
.room-name { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.room-cell .field { height: 36px; }

.room-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.room-summary .num { font-size: 16px; font-weight: 700; color: var(--primary); }
.room-summary .unit { font-size: 12px; color: var(--text-3); }
.diff-ok { color: var(--ok); }
.diff-warn { color: var(--warn); }

/* 报价表格 */
.qrow { display: grid; grid-template-columns: 1.15fr 1.25fr 1fr .9fr; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qrow:last-child { border-bottom: 0; }
.qrow.head { color: var(--text-3); font-size: 12px; padding-bottom: 6px; }
.qname { font-size: 13px; font-weight: 500; }
.qname .u { font-size: 11px; color: var(--text-3); font-weight: 400; }
.qfield { display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; padding: 0 8px; }
.qfield:focus-within { border-color: var(--primary); background: #fff; }
.qfield input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; font-family: inherit; color: var(--text); }
.qfield .sf { font-size: 10px; color: var(--text-3); flex: none; padding-left: 3px; white-space: nowrap; }
.qamount { font-size: 13px; font-weight: 600; text-align: right; color: var(--text); }

.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; }
.summary-row .amt { font-weight: 700; }
.summary-divider { height: 1px; background: var(--line); margin: 8px 0; }
.grand-row { display: flex; justify-content: space-between; align-items: baseline; }
.grand-row .l { font-size: 15px; font-weight: 700; }
.grand-row .a { font-size: 26px; font-weight: 800; color: var(--accent); }
.unit-row-2 { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.summary-unit { font-size: 11px; color: var(--text-3); margin-left: auto; }

/* 底部固定条 */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -6px 18px rgba(31,35,48,.05);
  z-index: 60;
}
.bottom-bar .btn { flex: 1; }
.bottom-space { height: 88px; }

/* 隐藏的导出画布 */
.hidden-canvas { position: fixed; left: -99999px; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

@media (min-width: 560px) {
  .page, .home-header, .section-head { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ---------- Service Worker 新版本提示条 ---------- */
#sw-update-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1f2330;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 22px rgba(31, 35, 48, .28);
  animation: sw-up .26s ease;
}
@keyframes sw-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#sw-update-bar .sw-txt { flex: 1; font-weight: 600; }
#sw-update-bar .sw-btn {
  flex: none;
  border: 0;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#sw-update-bar .sw-btn:active { opacity: .82; }
#sw-update-bar .sw-close {
  flex: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
