*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --border: #ddd;
  --text: #1a1a1a;
  --muted: #888;
  --accent: #FE690E;
  --radius: 6px;
  --font: 'Aptos', 'Segoe UI', Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  min-height: 100vh;
  padding: 24px 16px;
}

#app { max-width: 100%; margin: 0 auto; padding: 0 24px; }

header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
}

h1 {
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

#version { font-size: 12px; color: var(--muted); margin-left: 6px; }
#status { color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 4px; margin-bottom: 10px; }

.tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 5px 14px;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  transition: all 0.15s;
}

.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { border-color: var(--accent); color: var(--accent); }

.panel { display: none; flex-direction: column; gap: 8px; }
.panel.active { display: flex; }

textarea, input[type="url"], input[type="text"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 8px 12px;
  width: 100%;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

textarea { min-height: 80px; }
textarea:focus, input:focus { border-color: var(--accent); }

input[type="file"] {
  color: var(--muted);
  font-family: var(--font);
  font-size: 14px;
}

button {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  padding: 7px 20px;
  align-self: flex-start;
  transition: opacity 0.15s;
}

button:hover { opacity: 0.85; }

#list-area { margin-top: 24px; }

.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
}

.item-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.item-type {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}

.item-meta {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

.item-content {
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.item-content a { color: #FE690E; text-decoration: none; }
.item-content a:hover { text-decoration: underline; }

.item-del {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}

.item-del:hover { color: var(--accent); }

.empty { color: var(--muted); font-size: 14px; padding: 16px 0; }
